Properties of Vertical Lines
Properties of the Vertical Lines
A vertical line is the straight-up-and-down one: every point shares the same x-value, its equation is , and its slope is undefined (you’d divide by zero). It’s the mirror twin of the horizontal line, and the pair students most often confuse. We’ll make the difference clear, with a solver, practice, and a worksheet maker a tap away.
Properties of the Vertical Lines: what to notice and how to work it
What to notice first
Common student mistake
Key formulas and cues
A reliable path
- Find slopeUse two points, a table, or the coefficient of x in slope-intercept form.
- Find an anchorUse a point or intercept so the line is in the right location.
- Check directionPositive slope rises left to right; negative slope falls left to right.
Worked examples
Find slope from two points
- Change in y is 10 – 4 = 6.
- Change in x is 3 – 1 = 2.
- Divide rise by run.
Write slope-intercept form
- Use y = mx + b.
- Put m = 3 and b = -2.
- Write the line.
Try one before moving on
Properties of the Vertical Lines: pop-up practice

A vertical line is the straight-up-and-down one. It’s the mirror twin of the horizontal line, with three properties to lock in: every point shares the same x-value, its equation is , and its slope is undefined. That last point is the classic trap, a vertical line doesn’t have slope zero; it has no slope at all.
In short: a vertical line has the form (a constant), every point shares that x-value, and its slope is undefined (you’d divide by zero). For example, is a line straight up through every point with .
Why the Slope Is Undefined
On a vertical line you move up and down but never sideways, so the run is always . Slope is rise over run, and dividing by is undefined, so a vertical line has no defined slope. Because never changes, the equation just fixes at a constant: .
The three properties:
- Equation: (a number; no ).
- Slope: undefined (run is ).
- Points: all share the same x-value.
The line
Every point on it, , , , has . Moving up or down changes but never , so there’s no run and the slope is undefined.
Explore a lineWorked Examples
Each upright line below has the same everywhere, so there’s no run, and the slope is undefined.
Example A, Find the slope
What is the slope of the line through and ?
- Run: .
- Slope is rise over run, and dividing by 0 is undefined.
- So the slope is undefined. It’s vertical.
Answer: undefined
Example B, Write the equation
Write the vertical line through .
- A vertical line fixes only, is free.
- The shared -value here is 2.
- Equation: .
Answer:
Example C, Identify from an equation
Describe .
- There’s no term, so is fixed at .
- Every point has , so the line is upright.
- It’s a vertical line with undefined slope.
Answer: vertical line, undefined slope
Example D, Don’t confuse with horizontal
Compare and .
- is vertical, undefined slope.
- is horizontal, slope 0.
- They meet at at a right angle.
Answer: upright, flat
Where You’ll See It
Vertical lines mark a fixed input: a deadline on a timeline, a boundary at a specific x-value, an asymptote where a function “blows up.” They’re also a quick test of whether a graph is a function, if any vertical line hits a curve twice, it isn’t one (the vertical-line test).
Slip-Ups That Cost Easy Points
- Calling the slope zero. A vertical line’s slope is undefined; zero slope is the horizontal line.
- Writing it with a . The equation is just ; there is no term.
- Forcing it into . Vertical lines can’t be written that way. There’s no slope to use.
- Confusing with . is up-and-down; is flat.
Your Turn
Answer each, then reveal.
- Slope of the line through and ?
- Equation of the vertical line through ?
- Is horizontal or vertical?
- Equation of the vertical line through ?
Show answers
Make Your Own Lines Worksheet
Generate fresh line problems with a full answer key, print or save as a PDF.
Frequently Asked Questions
What is the equation of a vertical line?
A vertical line has the equation x = h, where h is the x-value every point on the line shares. For example, the line through (4, −1), (4, 0) and (4, 7) is x = 4. There is no y in the equation because y can be anything; only x stays fixed. That is why the line goes straight up and down.
Is a vertical line slope 0 or undefined?
A vertical line has an undefined slope, not 0. Using two points like (3, 1) and (3, 5), slope = (5 − 1)/(3 − 3) = 4/0, and division by zero is undefined. A slope of 0 belongs to a horizontal line such as y = 2, where the rise is zero. A quick memory trick: horizontal is zero, vertical is undefined.
Can the equation of a vertical line be written in slope intercept form?
No. Slope-intercept form is y = mx + b, and it needs a number for the slope m. A vertical line’s slope is undefined, so there is no value of m to plug in, and you cannot solve x = 5 for y. Write vertical lines as x = h instead, or in standard form as 1x + 0y = h.
How do you find the equation of a vertical line with two points?
First check that both points have the same x-coordinate; if they do, the line is vertical and its equation is x equals that value. For (−2, 3) and (−2, 9), both x-values are −2, so the line is x = −2. If the x-values differ, the line is not vertical, and you would find the slope with (y₂ − y₁)/(x₂ − x₁) instead.
What is the equation of a vertical line through (2, 3)?
The equation is x = 2. A vertical line keeps the same x-value at every point, so you only need the x-coordinate of the given point. The 3 tells you one point on the line, but the line also passes through (2, 0), (2, −5) and every other point with x = 2. Compare this with the horizontal line through (2, 3), which is y = 3.
What is the equation of a vertical line in standard form?
In standard form Ax + By = C, a vertical line has B = 0, so it looks like Ax = C. For example, 3x = 12 is a vertical line, and dividing both sides by 3 gives the simpler x = 4. Any standard-form equation with no y-term graphs as a vertical line crossing the x-axis at C/A.
Related Topics
Continue Your Study
Ready for the next step? Pick up right where this lesson leaves off:
Related to This Article
More math articles
- The Best Pre-Algebra Book to Build a Rock-Solid Foundation
- 5th Grade Math: A Year-at-a-Glance Guide for Parents
- Media, Technology, and Digital Life
- How to Master Polar Coordinates: A Comprehensive Guide to Calculating Rate of Change in Polar Functions
- How to Prepare for the SSAT Upper-Level Math Test?
- Overview of Upper-Level SSAT Mathematics Test
- The Best Grade 4 Math Book for Wisconsin Students
- The Best Calculator for PSAT 8/9 Math Test
- Chapter 41: Political Behavior and Data Analysis
- Best Bachelor’s Degree in Finance Programs





What people say about "Vertical Line: Equation x = h, Undefined Slope, Examples"?
No one replied yet.