Skip to content
MasterMath

Slope Calculator

The slope between two points, as a number, as a percentage and as an angle. A slope of 2 means the line climbs two units for every one it moves across.

Slope

—

Slope—
Angle with the horizontal—
Rise (Δy)—
Run (Δx)—
As a percentage—
Perpendicular slope—

How it was solved

    The formula

    m = (y₂ − y₁) ÷ (x₂ − x₁)

    Why it works

    Slope is rise over run: how much the line climbs for each unit it travels sideways. It is the same quantity whichever pair of points on the line you pick, which is exactly what makes a line a line.

    How to solve it by hand

    1. Subtract the y values: rise = y₂ − y₁
    2. Subtract the x values: run = x₂ − x₁
    3. Divide the rise by the run
    4. For the angle, take the arctangent of the slope

    What is worth knowing

    Three ways of expressing the same thing cause endless confusion. A slope of 1 is 100 % and 45°, not 90°: the percentage is the tangent of the angle times a hundred, so it grows without limit while the angle tops out. A vertical line has no slope at all, since the run is zero and the division is undefined — 'infinite slope' is loose talk, not a value. Road gradient signs use the percentage, roofs are often quoted as a ratio, and mathematics uses the plain number. Converting between them is the arctangent, not a proportion.

    Frequently asked questions

    What does a slope of 2 mean?

    For every unit the line moves across, it rises two. That is 200 % and about 63.4°.

    What is the slope of a vertical line?

    It has none. The run is zero, and dividing by zero is undefined — not infinite.

    How do I convert slope to an angle?

    Take the arctangent. A slope of 1 is 45°, and a slope of 0.5 is about 26.6°.

    What is the perpendicular slope?

    The negative reciprocal. If one line has slope 2, a perpendicular line has slope −0.5, and their product is −1.