Home Math & Science Slope Calculator

Slope Calculator

Calculate the slope (gradient) between two points (x₁, y₁) and (x₂, y₂). Plus the angle, line equation, and slope as a percentage (useful for grades and ramps).

Inputs

Slope (m)
Line equation
Angle from horizontal
Grade (slope as %)
Distance between points

About Slope Calculator

Slope formula

m = (y₂ − y₁) ÷ (x₂ − x₁). The change in y ("rise") divided by the change in x ("run"). Vertical lines have undefined slope; horizontal lines have slope 0.

Grade vs slope

Slope as a fraction is the geometric ratio. Grade (used for roads, ramps, ski runs) is the same value as a percent. A 5% grade means 5 units rise per 100 units horizontal — pretty steep for a road.

Line equation

Slope-intercept form: y = mx + b. Once you have slope m and one point, the y-intercept b = y − mx (substituting either point). Then any (x, y) on the line satisfies y = mx + b.