Slope Calculator

Calculate the slope between two points, with the angle of inclination, percentage grade and the line equation in slope-intercept form.

Slope (m) 2
m = (y₂ − y₁) ÷ (x₂ − x₁)
Angle of inclination 63.4349 °
Percentage grade 200 %
Y-intercept (b) 0
Line equation y = 2x + 0
Distance between points 8.944272

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the Slope Calculator does

Use this slope calculator to calculate the slope between two points, with the angle of inclination, percentage grade and the line equation in slope-intercept form. Fill in all 4 fields and the result updates as you type — there is no Calculate button to press and no page reload. It is most often used for finding the gradient of a ramp or roof pitch. Companion tools to this one live on FreeToolStation.org.

How to use it

  1. Enter the coordinates of two points.
  2. The slope is the rise divided by the run.
  3. Percentage grade is the slope expressed as a percentage, as used on road signs.
  4. The equation row gives the line in y = mx + b form.

When to use it

  • Finding the gradient of a ramp or roof pitch.
  • Deriving a line equation from two data points.
  • Converting between slope, angle and percentage grade.

Common mistakes to avoid

  • Subtracting the coordinates in different orders between numerator and denominator, which flips the sign.
  • Confusing percentage grade with angle — a 100% grade is 45°, not 90°.

Frequently asked questions

What does a 10% grade mean?

A rise of 10 units for every 100 travelled horizontally, which is about 5.7°. Road signs use percentage grade because it is easy to compute from a map, not because it equals the angle.

What if the two x values are the same?

The line is vertical and the slope is undefined — division by zero. The equation row reports it as x = constant instead.

Related tools

See all math & statistics calculators →