Worksheets · Algebra 1

Horizontal and vertical lines worksheet

A horizontal line is y = k: every point on it has the same y-value, and its slope is zero. A vertical line is x = k: every point has the same x-value, and its slope is undefined. Easy reads and graphs single lines and two lines on one grid; medium writes the line through two points, finds the slope and the intercepts, and solves for x or y before graphing; hard writes lines parallel or perpendicular to an axis or a line through a point, finds where two lines cross, the rectangle four lines make, and the distance between parallel lines.

Not quite the one you need? Same words, different skill:

Select your difficulty

Pick more than one for a sheet that mixes them.

The preview can look cramped on a phone. The PDF and printed sheet come out normal.

Free math worksheets at sigmaprep.io/worksheets© 2026 Sigma Prep

Sigma Prep · sigmaprep.io/worksheets

Name

Horizontal and Vertical Lines

Date Period

Follow the heading above each group.

  1. Write the equation of the line through each pair of points

    Write the equation of the line through (18, 12) and (18, −5).
  2. Write the equation of the line through (9, −17) and (3, −17).
  3. Write the equation of the line through (11, 0) and (−10, 0).
  1. Find the slope of each line, and say whether it is zero or undefined

    Find the slope of the line through (−14, 12) and (−14, −7). Is the slope zero or undefined?
  2. What is the slope of y=−5? What is the slope of x=−10?
  3. Find the slope of the line through (10, 17) and (4, 17). Is the slope zero or undefined?
  1. Find the intercepts of each line, or say that there is none

    A line through (11, −9) has no x-intercept. Write its equation, and give the intercept it does have.
  2. Give the x-intercept and the y-intercept of x=−15, or say that there is none.
  3. Give the x-intercept and the y-intercept of y=25, or say that there is none.
  1. Solve each equation for x or y, then graph the line

    Solve for y, then graph y−9=−12.−10−10−8−8−6−6−4−4−2−200224466881010xy
  2. Solve for y, then graph 5y=−10.−10−10−8−8−6−6−4−4−2−200224466881010xy
  3. Solve for x, then graph 5x+10=0.−10−10−8−8−6−6−4−4−2−200224466881010xy

Free math worksheets at sigmaprep.io/worksheets© 2026 Sigma Prep

Sigma Prep · sigmaprep.io/worksheets

Name

Horizontal and Vertical LinesAnswer keyVersion 1

Date Period

Follow the heading above each group.

  1. Write the equation of the line through each pair of points

    Write the equation of the line through (18, 12) and (18, −5).x=18: both points have x=18, so the line is vertical
  2. Write the equation of the line through (9, −17) and (3, −17).y=−17: both points have y = −17, so the line is horizontal
  3. Write the equation of the line through (11, 0) and (−10, 0).y=0: both points have y=0, so the line is the x-axis
  1. Find the slope of each line, and say whether it is zero or undefined

    Find the slope of the line through (−14, 12) and (−14, −7). Is the slope zero or undefined?−7−12−14−(−14)=−190: undefined, because the run is 0. The line is vertical.
  2. What is the slope of y=−5? What is the slope of x=−10?y = −5 has slope zero (horizontal); x = −10 has an undefined slope (vertical)
  3. Find the slope of the line through (10, 17) and (4, 17). Is the slope zero or undefined?17−174−10=0−6=0: zero. The line is horizontal.
  1. Find the intercepts of each line, or say that there is none

    A line through (11, −9) has no x-intercept. Write its equation, and give the intercept it does have.y=−9: a line with no x-intercept is horizontal. Its y-intercept is (0, −9).
  2. Give the x-intercept and the y-intercept of x=−15, or say that there is none.x-intercept (−15, 0). No y-intercept: the line is vertical and never meets the y-axis.
  3. Give the x-intercept and the y-intercept of y=25, or say that there is none.No x-intercept: the line is horizontal and never meets the x-axis. y-intercept (0, 25)
  1. Solve each equation for x or y, then graph the line

    Solve for y, then graph y−9=−12.−10−10−8−8−6−6−4−4−2−200224466881010xyy=−3, a horizontal line
  2. Solve for y, then graph 5y=−10.−10−10−8−8−6−6−4−4−2−200224466881010xyy=−2, a horizontal line
  3. Solve for x, then graph 5x+10=0.−10−10−8−8−6−6−4−4−2−200224466881010xyx=−2, a vertical line

Free math worksheets at sigmaprep.io/worksheets© 2026 Sigma Prep

How to do these

Write the equation of the line through (4,−2) and (4,7).

  1. Both points have x = 4, so the line is vertical.
  2. Every point on a vertical line has the same x-value.

The answer is x=4.

Where students go wrong

Mixing up the two. y = 3 is the horizontal line through (0, 3), not a vertical line through 3 on the x-axis: the letter in the equation is the coordinate that stays the same.

Also called graphing horizontal and vertical lines, equations of horizontal and vertical lines or horizontal and vertical lines slope.

What you can put on this worksheet

From a graph; through two points; parallel or perpendicular through a point
The marked point is on the line. Write the equation of the line. — a coordinate grid with the line x = 1; marked points (1, -4) → x=1: every point on it has x=1, like (1, −4)
Graph the line; zero or undefined slope; where two lines cross
Graph x=7. — a blank coordinate grid → A vertical line through (7, 0)
Horizontal or vertical?; intercepts; the rectangle four lines make
Is y=−7 horizontal or vertical? Which of the points (3, −7), (−7, −4), (−9, −7) are on it? → Horizontal. (3, −7) and (−9, −7) are on it: their y-coordinate is −7. (−7, −4) is not.
Two lines on a grid; solve, then graph; distances between parallel lines
Write the equation of the solid line and of the dashed line. — a coordinate grid with the line y = 1 and the line y = -5 (dashed) → solid: y=1; dashed: y=−5

Questions about these worksheets

Yes. Every horizontal and vertical lines sheet is free to print and free to download as a PDF. There is no account to make, no email to hand over and no limit on how many you take.

Yes. The answer key prints on a second page, and you can choose whether it shows each question beside its answer or just the answers in a list.

Yes. Print straight from the page, or download the PDF and print that. The sheet is laid out for paper rather than squeezed off a screen, so there is room to work under each question, and the answer key comes out on its own page.

Algebra 1 is usually taken around 8th or 9th grade, though schools vary and plenty of students meet it earlier or later. Pick the difficulty rather than the grade: the easy level suits a first lesson on it, the hard level suits review before a test.

Yes, as many as you like. The questions are built fresh each time rather than picked from a fixed set of files, so pressing Generate gives a new sheet. That is what you want for a second class, a retake, or two students sitting next to each other.

That is the closest comparison, and Kuta Software is good software. It is also paid software you install on a computer. These worksheets run in a browser tab for free, with no account and nothing to install. Like Kuta, the horizontal and vertical lines questions are generated when you ask for them rather than pulled from a fixed set of files, so two classes never get the same sheet, and the answer key comes with it.

Yes. There are three levels, and you can tick more than one for a sheet that mixes them, in which case the questions come out easiest first. The harder levels are not just larger numbers: they ask for something the easy ones do not.

You pick from 4: from a graph; through two points; parallel or perpendicular through a point, graph the line; zero or undefined slope; where two lines cross, horizontal or vertical?; intercepts; the rectangle four lines make and two lines on a grid; solve, then graph; distances between parallel lines. Tick as many as you want and set how many of each, or let it spread them evenly.

Mixing up the two. y = 3 is the horizontal line through (0, 3), not a vertical line through 3 on the x-axis: the letter in the equation is the coordinate that stays the same.