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 \(x = h\), 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 \(x = h\), 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 \(x = h\) (a constant), every point shares that x-value, and its slope is undefined (you’d divide by zero). For example, \(x = 4\) is a line straight up through every point with \(x = 4\).
Why the Slope Is Undefined
On a vertical line you move up and down but never sideways, so the run is always \(0\). Slope is rise over run, and dividing by \(0\) is undefined, so a vertical line has no defined slope. Because \(x\) never changes, the equation just fixes \(x\) at a constant: \(x = h\).
The three properties:
- Equation: \(x = h\) (a number; no \(y\)).
- Slope: undefined (run is \(0\)).
- Points: all share the same x-value.
The line \(x = 4\)
Every point on it, \((4,-3)\), \((4,0)\), \((4,5)\), has \(x = 4\). Moving up or down changes \(y\) but never \(x\), so there’s no run and the slope is undefined.
Explore a lineWorked Examples
Each upright line below has the same \(x\) everywhere, so there’s no run, and the slope is undefined.
Example A, Find the slope
What is the slope of the line through \((4,-3)\) and \((4,5)\)?
- Run: \(4 – 4 = 0\).
- 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 \((2, -1)\).
- A vertical line fixes \(x\) only, \(y\) is free.
- The shared \(x\)-value here is 2.
- Equation: \(x = 2\).
Answer: \(x = 2\)
Example C, Identify from an equation
Describe \(x = -3\).
- There’s no \(y\) term, so \(x\) is fixed at \(-3\).
- Every point has \(x = -3\), 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 \(x = 4\) and \(y = 4\).
- \(x = 4\) is vertical, undefined slope.
- \(y = 4\) is horizontal, slope 0.
- They meet at \((4,4)\) at a right angle.
Answer: \(x=4\) upright, \(y=4\) 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 \(y\). The equation is just \(x = h\); there is no \(y\) term.
- Forcing it into \(y = mx + b\). Vertical lines can’t be written that way. There’s no slope to use.
- Confusing \(x = h\) with \(y = h\). \(x = h\) is up-and-down; \(y = h\) is flat.
Your Turn
Answer each, then reveal.
- Slope of the line through \((-2, 1)\) and \((-2, 7)\)?
- Equation of the vertical line through \((5, 3)\)?
- Is \(x = 0\) horizontal or vertical?
- Equation of the vertical line through \((-1, -4)\)?
Show answers
- \(\color{blue}{\text{undefined}}\)
- \(\color{blue}{x = 5}\)
- \(\color{blue}{\text{vertical (it’s the y-axis)}}\)
- \(\color{blue}{x = -1}\)
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
- How to Use Grids to Multiply One-digit Numbers By Teen Numbers
- The Best Grade 3 Math Book for Massachusetts Students
- PERT Math – Test Day Tips
- Gas Laws: Pressure, Volume and Kelvin Temperature
- Free Common Core (CCSS) Grade 5 Math Worksheets: 49 Printable Skill Pages with Step-by-Step Answer Keys
- Culture and Meaning
- HSPT Math-Test Day Tips
- How to Write Equation of Parallel and Perpendicular Lines?
- A Deep Dive Into The World of Trigonometric Limits
- How to Divide Polynomials Using Synthetic Division?


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