Slope, Distance & Midpoint Calculator
Slope calculator: slope, distance, midpoint and line equation through two points.
m = y2 − y1x2 − x1
How to use this calculator
- Type your input in the box.
- The result updates as you type.
- Use “Copy result” or “Copy link” to share it.
m = (y₂ − y₁)/(x₂ − x₁), d = √(Δx² + Δy²) and the midpoint is the average of the coordinates.
The line is given as y = mx + b.
Frequently asked questions
Slope between (1, 2) and (4, 6)?
4/3 ≈ 1.333; the distance is 5.