Two formulas, one calculator, side-by-side comparison
Reviewed by [email protected], Geometry Calculator Developer & Online Math Educator Last updated May 8, 2026
The distance and midpoint formulas are two of the most-used results in coordinate geometry. They take two points and give you (a) how far apart they are, and (b) the exact center of the segment connecting them.
| Name | Formula | Notes |
|---|---|---|
| Distance | d = √((x₂−x₁)² + (y₂−y₁)²) |
Length of the segment from (x₁,y₁) to (x₂,y₂). |
| Midpoint | M = ((x₁+x₂)/2, (y₁+y₂)/2) |
Coordinates of the exact center. |
| 3D Distance | d = √((x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²) |
Same idea, z-axis included. |
| 3D Midpoint | M = ((x₁+x₂)/2, (y₁+y₂)/2, (z₁+z₂)/2) |
Average of each coordinate. |
Plug in your numbers and get instant step-by-step results.