Calxora logoCalxora

Slope Calculator

Slope, distance, midpoint and angle between two points.

About the Slope Calculator

Slope is steepness as a number

Slope measures how much a line climbs for each step sideways: rise over run. A slope of 1.5 between (1, 2) and (5, 8) means the line gains 1.5 units of height for every unit of horizontal distance. This calculator also gives the distance between the points, their midpoint, the angle of incline and the y-intercept.

The formulas

Slope = (y₂ − y₁) ÷ (x₂ − x₁)
Distance = √((x₂ − x₁)² + (y₂ − y₁)²)

A horizontal line has slope 0; a vertical line's slope is undefined, because the run is zero — the calculator says so rather than inventing a number.

Practical notes

Road grades, roof pitch, wheelchair ramps and drainage falls are all slopes in disguise — a 1:12 ramp is a slope of about 0.083, or an angle near 4.8°.