What does a vertical line say about whether a slope is defined?
Quick answer
Slope is change in output divided by change in input, often written rise over run. On a vertical line, the input does not change, so the run is zero and the slope is undefined; you cannot divide by zero. On a horizontal line, the output does not change, so the rise is zero while the run can be nonzero. Its slope is zero. [S1][S2]
The question, the details, the next step.
A practical checklist
Write the two points in a consistent order as (x₁, y₁) and (x₂, y₂).
Calculate rise as y₂ − y₁ and run as x₂ − x₁.
If the run is zero, label the slope undefined; do not divide by zero.
If the rise is zero and the run is nonzero, label the slope zero.
Check the coordinates: equal x-values indicate a vertical line; equal y-values indicate a horizontal line.
A few more useful answers
Is an undefined slope the same as a slope of zero?
Does a vertical line have a slope that is simply very large?
What does this tell me about a vertical line and a function of x?
A vertical line has the same x-coordinate at different points while its y-coordinate varies, so it does not represent a function of x. [S1]
Sources
References used for this guide.
- [S1] OpenStax Precalculus: Horizontal and Vertical Lines and Their Slopes openstax.org · Checked
- [S2] OpenStax Elementary Algebra: Slopes of Horizontal and Vertical Lines openstax.org · Checked
