Skip to content
Easy

Horizontal and Vertical Lines

Simple Explanation

A horizontal line has the same y-value everywhere (equation y = a constant) because it never rises or falls. A vertical line has the same x-value everywhere (equation x = a constant) and has an undefined slope, since Ξ”x = 0 would mean dividing by zero in the slope formula.

Why Do We Need It?

Horizontal and vertical lines are the simplest possible lines, and recognizing them instantly β€” without calculating slope β€” saves time and avoids the "division by zero" trap.

See It

A horizontal line
-6-6-4-4-2-22244660xyA (-4, 3)B (4, 3)

A coordinate plane showing a horizontal line through (-4, 3) and (4, 3)

Worked Example

Identify a horizontal line

What is the equation of the line passing through (2, 5) and (-6, 5)?

    Why Does This Work?

    If two points already share a y-value, every point in between (and beyond) on that straight line must share it too β€” that is exactly what 'horizontal' means.

    Real-Life Example

    Sea level on an elevation chart

    An elevation chart marks a horizontal line at 0 metres to represent sea level.

    No matter how far the chart extends left or right, sea level (y = 0) stays the same height β€” a real horizontal line.

    Practice

    What is the equation of the vertical line through (-3, 1) and (-3, 9)?

    Easy

    Common mistake

    Mixing up which equation form belongs to which line β€” a horizontal line is y = (number); a vertical line is x = (number). It is easy to swap them by accident.

    Quick Review

    • Horizontal line: y = constant, slope = 0.
    • Vertical line: x = constant, slope is undefined.
    • Check by comparing the coordinates directly, without calculating slope.