🧮

Slope & Distance Calculator

Free slope calculator — slope, distance, midpoint, angle, and line equation between any two points on a graph.

Loading…

Everyday Uses

Graphing homework

Slope, intercept, and full line equation from two points — everything a linear equations worksheet asks.

Ramps and grades

Convert rise-and-run measurements into slope and angle to check ramps, roofs, and driveways.

Coordinate distances

The distance between plotted points — for maps, game development, and design layouts.

Trend estimation

Two data points give a quick rate of change — sales per month, growth per year.

Frequently Asked Questions

How do you calculate slope between two points?

Slope m = (y₂ − y₁) / (x₂ − x₁) — "rise over run". A slope of 2 means the line climbs 2 units for every 1 unit right. Positive slopes go up left-to-right, negative slopes go down, zero is horizontal, and a vertical line has undefined slope because the run is zero.

How is the distance between two points found?

With the distance formula d = √((x₂−x₁)² + (y₂−y₁)²) — the Pythagorean theorem applied to the horizontal and vertical differences. Points (1, 2) and (5, 8) are √(16 + 36) = √52 ≈ 7.21 units apart.

How do I get the equation of the line?

With the slope m known, use point-slope form and simplify to y = mx + b, where b = y₁ − m·x₁ is the y-intercept. This calculator does it automatically — for vertical lines the result is written as x = constant instead, since they can't be expressed as y = mx + b.

What does the angle of incline mean?

The angle the line makes with the positive x-axis: θ = atan2(rise, run). A 45° angle equals a slope of 1; 26.57° equals slope 0.5. It's useful for grades and ramps — a road grade of 10% is a slope of 0.1, about 5.7°.