[Home](https://learningfolio.de5.net/) / [Math](https://learningfolio.de5.net/math/) / [Geometry](https://learningfolio.de5.net/math/geometry/) / Horizontal Line in Geometry: Equation, Slope and Examples

[Geometry](https://learningfolio.de5.net/math/geometry/)

# Horizontal Line in Geometry: Equation, Slope and Examples

Recognise horizontal lines, write y = k and distinguish them from vertical lines.

Written by **Learningfolio Team**

We’re subject-matter experts in math, science, parent support, and education, with 100 years of combined experience. We believe in learning, experimenting, and growing, and we review one another’s work.

## On this page

* [TL;DR](https://learningfolio.de5.net/math/geometry/horizontal-line/#tldr)
* [Key Points](https://learningfolio.de5.net/math/geometry/horizontal-line/#key-points)
* [Why is the slope zero?](https://learningfolio.de5.net/math/geometry/horizontal-line/#why-is-the-slope-zero)
* [Worked examples](https://learningfolio.de5.net/math/geometry/horizontal-line/#worked-examples)
* [Use a horizontal line to find an intersection](https://learningfolio.de5.net/math/geometry/horizontal-line/#use-a-horizontal-line-to-find-an-intersection)
* [Tell a constant value from a horizontal axis](https://learningfolio.de5.net/math/geometry/horizontal-line/#tell-a-constant-value-from-a-horizontal-axis)
* [Practice problem](https://learningfolio.de5.net/math/geometry/horizontal-line/#practice-problem)
* [Frequently Asked Questions](https://learningfolio.de5.net/math/geometry/horizontal-line/#frequently-asked-questions)
* [Conclusion](https://learningfolio.de5.net/math/geometry/horizontal-line/#conclusion)
* [Read More](https://learningfolio.de5.net/math/geometry/horizontal-line/#read-more)
* [Research Behind This Article](https://learningfolio.de5.net/math/geometry/horizontal-line/#research-behind-this-article)

## 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](https://openstax.org/books/college-algebra-2e/pages/4-1-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](https://learningfolio.de5.net/math/geometry/slope-of-a-line/)

## 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](https://learningfolio.de5.net/math/geometry/perpendicular-lines/)
* [Slope of a Line: What Positive, Negative and Zero Slope Mean](https://learningfolio.de5.net/math/geometry/slope-of-a-line/)
* [Browse geometry guides](https://learningfolio.de5.net/math/geometry/)

## Research Behind This Article

1. OpenStax, *College Algebra 2e: Linear Functions*. [openstax.org](https://openstax.org/books/college-algebra-2e/pages/4-1-linear-functions)
2. OpenStax, *College Algebra 2e: Key Equations for Functions*. [openstax.org](https://openstax.org/books/college-algebra-2e/pages/2-key-equations)
