Practice free
Unit 3 · Linear equations and functions

Equations of horizontal and vertical lines

Grade 8 · AA. Linear equations · 30 practice questions

How this works

Find the coordinate that stays the same in both points; the line is that letter equals that number.

A line passes through the points (−3, 2) and (−3, −8). What is its equation?

Compare the x-values
−3 and −3
Compare the y-values
2 and −8
x never changes → vertical
x = −3

Answer: x = -3

Watch out: Writing y = −3. The x-value stays −3 while y changes, so the line is vertical: x = −3.

Try it

1. A line passes through the points (4, 0) and (4, -7). What is its equation?

2. A line passes through the points (2, -2) and (9, -2). What is its equation?

3. A line passes through the points (-9, 9) and (9, 9). What is its equation?

Answers are checked in the free account — with a hint before the answer, and the full solution after a miss.

How to help at home

A line that holds the same sideways value everywhere runs straight up and down, and its equation has only one job, which is to pin that value down. Moving from one point to the other the height changes: -7 - 0 = -7, while the sideways value never budges from 4, so the equation names it and says nothing at all about y.

More in AA. Linear equations