Key Points
- Zero slope means the rise is while the run is not, so .
- Every horizontal line has zero slope, at any height. Its equation is .
- Zero slope is a real number; an undefined slope (a vertical line) is not a number at all.
- On any graph of change, zero slope means "nothing is changing right now".
What Does a Slope of Zero Tell You?
A runner's distance-time graph climbs, then goes flat for six minutes, then climbs again.
- You do not need the numbers to know what happened in the middle: the runner stopped.
- A flat stretch says one clear thing: the quantity on the vertical axis did not change.
- That flatness has a number, and the number is . Zero slope is how mathematics writes "no change".

What Is Zero Slope?
Zero slope is the slope of a horizontal line, a line on which every point shares the same y-coordinate. The rise between any two of its points is , so the slope of a line formula gives
as long as the two points are different, which makes the run non-zero.
- Slope is rise over run: the vertical change divided by the horizontal change between two points.
- Take and . The rise is , the run is , and .
- The quick test: if two points share a y-coordinate, the line through them has zero slope.
Why the Slope of a Horizontal Line Is Exactly 0
Reason 1: there is nothing on top of the fraction
On a horizontal line, never changes, so the numerator of every slope calculation is . Zero divided by any non-zero number is .
Reason 2: flatten a line and watch the slope shrink
Start with a line that rises over a run of : slope .
- Halve the rise to : slope . Halve again: , then .
- Each time the line tips closer to flat, and when the rise reaches the slope is exactly .
- The angle agrees: slope equals , a flat line makes with the x-axis, and .

The Equation of a Zero-Slope Line
A line with zero slope always has an equation , where is its height; can be anything.
- Slope-intercept form with gives .
- Point-slope form with gives .
- General form has slope , so it is exactly when : is .
"The slope is " is about tilt; "" is about height. Only , the x-axis, has both.

Zero Slope vs Undefined Slope
These two are confused more than any other pair in coordinate geometry, yet they are opposites.
| Zero slope | Undefined slope | |
|---|---|---|
| Line | Horizontal | Vertical |
| Equation | ||
| Same coordinate | y | x |
| Rise and run | rise , run not | run , rise not |
| Slope | , a number | , no number |
| Angle with the x-axis |
- Some books say "no slope" for a vertical line, and students hear "zero". Say "zero" or "undefined" instead.
- Lines parallel to a horizontal line are horizontal; lines perpendicular to it are vertical.
- The rule "perpendicular slopes multiply to " breaks here: no makes .
Try It Yourself
Drag both handles of the blue line to the same height and the readout shows . Stand the orange line upright: its slope reads "undefined", yet the angle between the lines is still .
Zero Average Slope Is Not the Same as Flat
Two points at the same height give a slope of , but the graph between them need not be flat.
- On , both and are at height , so the chord joining them has slope .
- Yet the curve dips to in between. Equal end heights only mean the ups and downs cancel.
- At the vertex the slope truly is : the touching line, the tangent, is horizontal.

Pierre de Fermat found highest and lowest values by hunting for such places, where a quantity briefly stops changing. "Set the slope to " is still how calculus finds them; tangents and normals picks up the story.
Examples of Zero Slope
Six examples run from reading two points to solving for an unknown.
Example 1
Find the slope of the line through (1, 4) and (6, 4).
- .
- Zero divided by is .
Final answer: ; the line is .
Example 2
Find the slope of the line through (2, 5) and (2, 9). Predict first.
- A quick reading says "a plain straight line, so zero slope".
- Try it: . Division by has no answer.
- The points share an x-coordinate, not a y-coordinate, so the line is vertical: .
Final answer: the slope is undefined, not zero.
Example 3
Which of these have zero slope: 3y − 12 = 0, y + 2x = 2x + 6, and 2x = 8?
- gives : horizontal.
- gives : horizontal.
- gives : vertical, undefined slope.
Final answer: the first two.
Example 4
Write the equation of the zero-slope line through (−3, 7).
- A zero-slope line keeps the y-value of its point.
Final answer: .
Example 5
Find the lines through (3, 1) perpendicular and parallel to y = 4.
- is horizontal, so a perpendicular line is vertical: .
- A parallel line is horizontal: .
Final answer: perpendicular ; parallel .
Example 6
The line through (2, k + 1) and (6, 2k − 3) has zero slope. Find k.
- Zero slope means equal y-values: .
- So .
- Check: both points are at height , and .
Final answer: , and the line is .
Why Zero Slope Matters: "A Flat Line Still Carries Information"
Slope gives a single number for "how steep", and zero slope is the reading that says nothing is changing vertically. That flatness is often the most important reading on a graph.
- A steady state. A walker covers m in minutes (slope m per minute), waits minutes at a crossing (slope ), then covers m in minutes (slope ).
- A level surface. Shelves, floors and still water have zero slope; a spirit level's bubble sits centred when the rise is .
- Roads and railways. A road's grade is its slope as a percentage, and a grade is level ground.
- A baseline. A heart monitor, a tank neither filling nor emptying, or a steady C fever graphs flat. A spike only means something against that baseline.


Common Mistakes With Zero Slope
These errors come up the moment horizontal and vertical lines sit side by side.
Mistake 1: Confusing zero slope with undefined slope
Where it slips in: A vertical line looks plain, so it gets the simplest-sounding label.
Don't do this: Say has zero slope.
The correct way: Check which coordinate stays the same: same is horizontal and zero; same is vertical and undefined. A student who learned "flat equals zero" by sight alone mixes these up, so tie the rule to the coordinates.

Mistake 2: Reading the formula upside down
Where it slips in: Setting up the slope fraction quickly.
Don't do this: Write , which turns a flat line's slope of into "undefined".
The correct way: Rise over run, change in on top. If a flat line comes out undefined, the fraction is upside down.
Mistake 3: Thinking y = 0 is the only zero-slope line
Where it slips in: Reading "zero" as a height.
Don't do this: Claim cannot have zero slope because is not .
The correct way: The describes steepness. , and all have slope ; a steady fever is flat but far from zero.
Mistake 4: Reading an average slope of zero as flat all the way
Where it slips in: Two points on a curve at the same height.
Don't do this: Conclude the graph is level between them.
The correct way: A zero chord slope only says the end heights match; look at the graph in between.
Conclusion
- Zero slope is the slope of a horizontal line: rise over a non-zero run.
- Its equation is always , at any height, not only .
- Zero slope (horizontal, same ) is the opposite of undefined slope (vertical, same ).
- On a graph of change, zero slope means nothing is changing; on a curve, a horizontal tangent marks a peak or valley.
Read More
- Horizontal Line
- Undefined Slope
- Positive Slope
- Negative Slope
- Finding Slope from Two Points
- y = mx + b
Research Behind This Article
- Marecek, L. and others, Elementary Algebra 2e, Section 4.4: Understand Slope of a Line (horizontal lines have slope 0, vertical lines have undefined slope), OpenStax, Rice University. openstax.org
- Abramson, J., College Algebra 2e, Section 3.3: Rates of Change and Behavior of Graphs (average rate of change of a function over an interval), OpenStax, Rice University. openstax.org
- Strang, G. and Herman, E., Calculus Volume 1, Section 4.3: Maxima and Minima (horizontal tangents at local extrema), OpenStax, Rice University. openstax.org
- O'Connor, J. J. and Robertson, E. F., "Pierre de Fermat", MacTutor History of Mathematics, University of St Andrews. mathshistory.st-andrews.ac.uk
Quick Quiz: Check Yourself
Three levels, questions with figures, instant feedback with the reason.
Was this article helpful?
Your feedback helps us write better content
Frequently Asked Questions
Is a zero slope the same as no slope?
What is the equation of a line with zero slope?
Can a zero-slope line pass through the origin?
How can you tell a line has zero slope from two points?
What does zero slope mean on a graph of change?
