Zero Slope: Definition Equation Graph and Worked Examples

#Zero Slope
TL;DR
A zero slope belongs to a horizontal line: the rise is 0, so the slope is 0 and the equation is y = c. Six worked examples follow.
Prabhjot Kaur·reviewed byMadhukar VLast updated on December 2, 202613 min read

Key Points

  • Zero slope means the rise is 00 while the run is not, so m=0run=0m = \dfrac{0}{\text{run}} = 0.
  • Every horizontal line has zero slope, at any height. Its equation is y=cy = c.
  • 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 00. Zero slope is how mathematics writes "no change".
a horizontal line has a rise of 0, so its slope is 0
The horizontal line y = 3 through (−2, 3) and (4, 3), with a run of 6 marked between the points and the working rise = 3 − 3 = 0, run = 6, m = 0 ÷ 6 = 0.

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 00, so the slope of a line formula gives

m=y2−y1x2−x1=0x2−x1=0m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{0}{x_2 - x_1} = 0

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 (−2,3)(-2, 3) and (4,3)(4, 3). The rise is 3−3=03 - 3 = 0, the run is 4−(−2)=64 - (-2) = 6, and 0÷6=00 \div 6 = 0.
  • 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, yy never changes, so the numerator of every slope calculation is 00. Zero divided by any non-zero number is 00.

Reason 2: flatten a line and watch the slope shrink

Start with a line that rises 88 over a run of 44: slope 22.

  • Halve the rise to 44: slope 11. Halve again: 12\frac{1}{2}, then 14\frac{1}{4}.
  • Each time the line tips closer to flat, and when the rise reaches 00 the slope is exactly 00.
  • The angle agrees: slope equals tan⁡θ\tan\theta, a flat line makes 0°0° with the x-axis, and tan⁡0°=0\tan 0° = 0.
as a line flattens its slope shrinks to exactly 0
Five lines through one point with slopes 2, 1, one half, one quarter and 0, at angles of 63.4, 45.0, 26.6, 14.0 and 0 degrees, beside the divisions 8 ÷ 4 = 2 down to 0 ÷ 4 = 0.

The Equation of a Zero-Slope Line

A line with zero slope always has an equation y=cy = c, where cc is its height; xx can be anything.

  • Slope-intercept form y=mx+cy = mx + c with m=0m = 0 gives y=cy = c.
  • Point-slope form y−y1=m(x−x1)y - y_1 = m(x - x_1) with m=0m = 0 gives y=y1y = y_1.
  • General form Ax+By+C=0Ax + By + C = 0 has slope −AB-\frac{A}{B}, so it is 00 exactly when A=0A = 0: 3y−12=03y - 12 = 0 is y=4y = 4.

"The slope is 00" is about tilt; "c=0c = 0" is about height. Only y=0y = 0, the x-axis, has both.

horizontal lines at any height all have slope 0
Three horizontal lines, y = 3, y = 0 (the x-axis) and y = −2, each with two marked points and the working m = 0 ÷ 7 = 0.

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 y=cy = c x=kx = k
Same coordinate y x
Rise and run rise 00, run not 00 run 00, rise not 00
Slope 0run=0\dfrac{0}{\text{run}} = 0, a number rise0\dfrac{\text{rise}}{0}, no number
Angle with the x-axis 0°0° 90°90°
  • 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 −1-1" breaks here: no mm makes 0×m=−10 \times m = -1.

Try It Yourself

Drag both handles of the blue line to the same height and the readout shows m1=0m_1 = 0. Stand the orange line upright: its slope reads "undefined", yet the angle between the lines is still 90°90°.

Zero Average Slope Is Not the Same as Flat

Two points at the same height give a slope of 00, but the graph between them need not be flat.

  • On y=x2−4x+5y = x^2 - 4x + 5, both (0,5)(0, 5) and (4,5)(4, 5) are at height 55, so the chord joining them has slope 5−54−0=0\frac{5 - 5}{4 - 0} = 0.
  • Yet the curve dips to (2,1)(2, 1) in between. Equal end heights only mean the ups and downs cancel.
  • At the vertex (2,1)(2, 1) the slope truly is 00: the touching line, the tangent, is horizontal.
a chord with zero slope does not mean the curve is flat; only the tangent at the vertex has slope 0
The curve y = x squared minus 4x + 5 with an orange dashed chord from (0, 5) to (4, 5) of slope 0, and a short green horizontal tangent at the vertex (2, 1), the only point where the curve is flat.

Pierre de Fermat found highest and lowest values by hunting for such places, where a quantity briefly stops changing. "Set the slope to 00" 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).

  1. m=4−46−1=05m = \frac{4 - 4}{6 - 1} = \frac{0}{5}.
  2. Zero divided by 55 is 00.

Final answer: m=0m = 0; the line is y=4y = 4.

Example 2

Find the slope of the line through (2, 5) and (2, 9). Predict first.

  1. A quick reading says "a plain straight line, so zero slope".
  2. Try it: m=9−52−2=40m = \frac{9 - 5}{2 - 2} = \frac{4}{0}. Division by 00 has no answer.
  3. The points share an x-coordinate, not a y-coordinate, so the line is vertical: x=2x = 2.

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?

  1. 3y−12=03y - 12 = 0 gives y=4y = 4: horizontal.
  2. y+2x=2x+6y + 2x = 2x + 6 gives y=6y = 6: horizontal.
  3. 2x=82x = 8 gives x=4x = 4: vertical, undefined slope.

Final answer: the first two.

Example 4

Write the equation of the zero-slope line through (−3, 7).

  1. A zero-slope line keeps the y-value of its point.

Final answer: y=7y = 7.

Example 5

Find the lines through (3, 1) perpendicular and parallel to y = 4.

  1. y=4y = 4 is horizontal, so a perpendicular line is vertical: x=3x = 3.
  2. A parallel line is horizontal: y=1y = 1.

Final answer: perpendicular x=3x = 3; parallel y=1y = 1.

Example 6

The line through (2, k + 1) and (6, 2k − 3) has zero slope. Find k.

  1. Zero slope means equal y-values: k+1=2k−3k + 1 = 2k - 3.
  2. So k=4k = 4.
  3. Check: both points are at height 55, (2,5)(2, 5) and (6,5)(6, 5).

Final answer: k=4k = 4, and the line is y=5y = 5.

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 600600 m in 44 minutes (slope 150150 m per minute), waits 66 minutes at a crossing (slope 00), then covers 600600 m in 66 minutes (slope 100100).
  • A level surface. Shelves, floors and still water have zero slope; a spirit level's bubble sits centred when the rise is 00.
  • Roads and railways. A road's grade is its slope as a percentage, and a 0%0\% grade is level ground.
  • A baseline. A heart monitor, a tank neither filling nor emptying, or a steady 38°38°C fever graphs flat. A spike only means something against that baseline.
a flat stretch on a distance-time graph has zero slope and means standing still
A distance-time graph of a walk to school: a blue rise to 600 metres at 4 minutes with slope 150 metres per minute, an orange flat stretch from 4 to 10 minutes with slope 0, then a blue rise to 1200 metres at 16 minutes with slope 100 metres per minute.
a spirit level shows zero slope when its bubble is centred
Two yellow spirit levels: on the left, flat on a level shelf with the bubble centred, rise 0 and slope 0; on the right, tilted by 3 degrees with the bubble drifted to the higher end, rise about 2.7 centimetres over 52 centimetres and slope about 0.052.

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 x=5x = 5 has zero slope.

The correct way: Check which coordinate stays the same: same yy is horizontal and zero; same xx is vertical and undefined. A student who learned "flat equals zero" by sight alone mixes these up, so tie the rule to the coordinates.

zero slope belongs to horizontal lines and undefined slope to vertical lines
Two panels. Left: the horizontal line y = 2 through (1, 2) and (4, 2), rise 0 and run 3, so m = 0 ÷ 3 = 0. Right: the vertical line x = 3 through (3, 1) and (3, 4), rise 3 and run 0, so m = 3 ÷ 0 is undefined.

Mistake 2: Reading the formula upside down

Where it slips in: Setting up the slope fraction quickly.

Don't do this: Write x2−x1y2−y1\dfrac{x_2 - x_1}{y_2 - y_1}, which turns a flat line's slope of 00 into "undefined".

The correct way: Rise over run, change in yy 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 y=4y = 4 cannot have zero slope because 44 is not 00.

The correct way: The 00 describes steepness. y=4y = 4, y=−7y = -7 and y=0y = 0 all have slope 00; 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 00 over a non-zero run.
  • Its equation is always y=cy = c, at any height, not only y=0y = 0.
  • Zero slope (horizontal, same yy) is the opposite of undefined slope (vertical, same xx).
  • On a graph of change, zero slope means nothing is changing; on a curve, a horizontal tangent marks a peak or valley.

A Practical Next Step

Practice these problems to solidify your understanding.

  1. Find the slope through (3,5)(3, 5) and (9,5)(9, 5).
  2. Write the equation of the horizontal line through (0,−6)(0, -6).
  3. Does x=2x = 2 have a zero or an undefined slope? And 4y+8=04y + 8 = 0?
  4. Find kk so the line through (1,2k)(1, 2k) and (5,k+3)(5, k + 3) is horizontal.

Answer to Question 1: 00.

Answer to Question 2: y=−6y = -6.

Answer to Question 3: x=2x = 2 is vertical, so undefined; 4y+8=04y + 8 = 0 is y=−2y = -2, so zero.

Answer to Question 4: 2k=k+32k = k + 3, so k=3k = 3. If it stalls, go back to Example 6.

To go further with a teacher, explore Bhanzu's geometry tutor, middle school math tutor or math classes online.

Want a live Bhanzu trainer to walk your child through slope and graphs? Book a free demo class.

Read More

Research Behind This Article

  1. 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
  2. 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
  3. Strang, G. and Herman, E., Calculus Volume 1, Section 4.3: Maxima and Minima (horizontal tangents at local extrema), OpenStax, Rice University. openstax.org
  4. 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?
No. Zero slope is the number 00, for horizontal lines. "No slope" usually means an undefined slope, for vertical lines.
What is the equation of a line with zero slope?
y=cy = c, where cc is the height of the line, for example y=5y = 5 or y=−3y = -3.
Can a zero-slope line pass through the origin?
Yes, but only one: y=0y = 0, the x-axis.
How can you tell a line has zero slope from two points?
Compare the y-coordinates. If they are equal and the x-coordinates are not, the slope is 00.
What does zero slope mean on a graph of change?
The quantity on the vertical axis is not changing over that stretch. On a distance-time graph the object is standing still.
✍️ Written By
Prabhjot Kaur
Prabhjot Kaur
Subject Matter Expert & Curriculum Developer
Prabhjot Kaur is an education professional with 14 years of experience in teaching, curriculum development, content review and teacher training. She taught for six years in the UK and has worked as a Subject Matter Expert for competitive exams, developing and reviewing content for Numerical Ability and Logical Reasoning. She has trained teachers in effective classroom practices and designs activity-based learning experiences that make concepts easy to understand.
LinkedIn
🔬 Reviewed By
Madhukar V
Math Columnist & Analyst
Book a FREE Demo ClassBook Now →