Horizontal Line in Geometry: Equation, Slope and Examples
Recognise horizontal lines, write y = k and distinguish them from vertical lines.
TL;DR
A horizontal line has the equation y = k for a constant k. Every point has the same y-coordinate, so its slope is zero.
Key Points
- Horizontal lines are parallel to the x-axis, with the x-axis itself described by y = 0.
- Distinct points on a horizontal line have different x-coordinates and equal y-coordinates.
- A vertical line has equation x = k and an undefined slope.
Why is the slope zero?
Take any two distinct points on the line. Because the y-coordinates match, rise is zero. Because the points are distinct, run is nonzero. Zero divided by a nonzero number is zero. In a graph over time, a horizontal stretch represents a constant output during that interval. OpenStax — College Algebra 2e: Linear Functions
Worked examples
Through a point
The horizontal line through (−2, 7) is y = 7.
Test another point
The point (15, 7) lies on y = 7. The point (−2, 6) does not.
Same y-values
From (−3, 2) to (5, 2), m = 0/8 = 0.
Find the intercept
y = −4 crosses the y-axis at (0, −4) and never crosses the x-axis.
Wrong fixed variable
x = 7 holds x fixed while y varies. That describes a vertical line.
Use a horizontal line to find an intersection
The line y = 4 intersects y = 2x − 6 where both y-values are 4. Set 4 = 2x − 6, giving x = 5 and intersection (5, 4). The same idea works on a graph: start at 4 on the vertical axis and trace across to see where the rising line crosses. If the other line is also horizontal at y = 7, they are parallel. If both equal y = 4, they are the same line.
Tell a constant value from a horizontal axis
The line y = 0 is the x-axis. A line y = −3 runs parallel to it three units below. If a distance-time graph remains flat during a time interval, the measured distance stays the same during that interval. That interpretation comes from the labels. On a temperature graph, a flat stretch represents constant temperature instead.
A horizontal segment can appear as part of a larger graph that rises or falls elsewhere. Report zero change for that segment rather than assuming the entire graph is constant. What the slope of a line means
Practice problem
Give the horizontal line through (−4, 6) and its intersection with y = 3x.
Solution. The line holds y fixed at 6. Solve 6 = 3x to obtain x = 2, so the intersection is (2, 6). The horizontal line has slope zero.
Frequently Asked Questions
Are all horizontal lines graphs of functions?
Yes. Each x has exactly one y-value, namely k.
Conclusion
- Use the fixed y-coordinate in the equation.
- Expect zero slope.
- Check which axis is parallel to the line.
Read More
- Perpendicular Lines: Definition, Slope and Examples
- Slope of a Line: What Positive, Negative and Zero Slope Mean
- Browse geometry guides
Research Behind This Article
- OpenStax, College Algebra 2e: Linear Functions. openstax.org
- OpenStax, College Algebra 2e: Key Equations for Functions. openstax.org