Skip to content
Medium

The Vertical Line Test

Simple Explanation

The vertical line test is a graphical shortcut for checking whether a graph represents a function: if any vertical line drawn on the graph crosses the curve more than once, the graph is not a function.

Why Do We Need It?

This test lets you check the function rule visually, directly from a graph, without needing to inspect a list of ordered pairs by hand.

Worked Example

Apply the vertical line test

A circle is graphed on the coordinate plane. Is it the graph of a function?

    Why Does This Work?

    Every point on a vertical line at a fixed x shares that same x-value, so if a vertical line crosses the graph twice, that one x-value is paired with two different y-values β€” exactly the situation the function definition forbids.

    Real-Life Example

    Checking a sensor reading graph

    An engineer graphs a sensor's output against time and needs to confirm the sensor never reports two different readings at the same instant.

    Applying the vertical line test to the time-vs-reading graph confirms whether the data behaves as a true function of time.

    Practice

    A graph is a straight, non-vertical line. Does it pass the vertical line test?

    Medium

    Common mistake

    Applying the test with a horizontal line instead of a vertical one β€” the test specifically checks for repeated y-values at the same x, which requires a vertical (not horizontal) test line.

    Quick Review

    • If any vertical line crosses a graph more than once, the graph is not a function.
    • A vertical line represents a single fixed x-value β€” multiple crossings mean multiple y-values for that x.
    • This is a fast, visual way to apply the function definition to a graph.