Sumfinder All calculators

Math & Everyday

Slope Calculator

How steep a line is from two points — slope, angle and equation.

Slope is how steep a line is — how far it climbs for every step across. Give it two points and this page works out the rise, the run, the slope as a number, the angle in degrees and the equation of the line through them. The same arithmetic is used for ramps, stairs, roofs and gradients on a map.

How this is worked out

Slope is rise divided by run: (y₂ − y₁) ÷ (x₂ − x₁). For the points (0, 0) and (4, 6) the rise is 6 and the run is 4, so the slope is 1.5. The angle comes from turning that slope into degrees, and the equation is worked out from the same two numbers.

Good to know

  • A slope of 1 is a 45° line. Under 1 is flatter than 45°; over 1 is steeper.
  • A negative slope falls from left to right — the size of the number is still how steep it is.
  • Slope as a percentage is simply slope × 100: a slope of 1.5 is a 150% grade.

What this assumes

  • The line between the two points is straight.
  • The x values must differ — a vertical line has no slope, because the run is zero.
  • The angle is measured from the horizontal, so a flat line is 0° and a 45° line has a slope of 1.
  • Answers are rounded to three decimal places.

Common questions

What does a slope of 1.5 mean?

For every 1 across, the line goes up 1.5. As a percentage that is a 150% grade, and as an angle it is about 56.3°.

How do I find the slope from an equation?

In y = mx + b, the number in front of x is the slope. For y = 2x + 3 the slope is 2 and the line crosses the y-axis at 3.

What if the two points are one above the other?

A vertical line has no slope at all: the run is zero, and dividing by zero has no answer. The page asks you to check the numbers rather than inventing one.

Estimate only. Figures come from the numbers you enter and the standard rates shown on the page. Check anything that matters against the official figure before you rely on it.