Home / Math / Slope and Distance Calculator

Slope and Distance Calculator

Distance, slope, midpoint, and line equation from two points.

How it works

Distance = √((x₂ − x₁)² + (y₂ − y₁)²). Slope = (y₂ − y₁) ÷ (x₂ − x₁); a vertical line has no defined slope. The midpoint averages the x and y values. Example: (1, 2) to (7, 10) has distance 10 and slope 1.3333.

FAQ

Is this calculator free?

Yes. No signup is needed and nothing you enter is stored.

Is the result exact?

Results are rounded for display. For financial, medical, or legal decisions, confirm with a professional.

Do my numbers leave my device?

No. The calculation runs in your browser.