Slope Calculator

Calculate the slope of a line between two points.

How steep, and which way

The slope of a line measures how steep it is and in which direction it tilts, found from two points as the change in height divided by the change in horizontal distance — often remembered as rise over run. This calculates it from two points.

Enter two points to find the slope.

What the slope tells you

Slope is one of the most practical ideas in coordinate geometry. Its sign tells direction — positive slopes rise left to right, negative ones fall — and its size tells steepness, with a large slope being steep and a slope of zero being flat. It is the same concept as the gradient of a road or a ramp, and the rate of change in any linear relationship: how much one thing changes per unit of another, like speed as distance over time. An undefined slope, from a vertical line, is the one special case, since it would mean dividing by zero. Understanding slope as rise over run connects the geometry of a line to real rates of change everywhere.

Slope Calculator FAQ

How is slope calculated?

As the change in vertical distance divided by the change in horizontal distance between two points — rise over run.

What does the sign of the slope mean?

Positive slopes rise from left to right, negative slopes fall, and a slope of zero is a flat, horizontal line.

Is anything uploaded?

No. The calculation happens in your browser.

More Math tools