Distance and midpoint calculator

d = √((x₂ − x₁)² + (y₂ − y₁)²). From (0, 0) to (3, 6) the distance is √45 = 3√5 ≈ 6.708 and the midpoint is (1.5, 3).

6.70820393
distance = 3√5
(1.5, 3)midpoint
2slope
3 / 6horizontal / vertical gap
  1. d = √((x₂ − x₁)² + (y₂ − y₁)²)
  2. = √(3² + 6²) = √45 = 6.70820393
  3. Midpoint = ((0 + 3) ÷ 2, (0 + 6) ÷ 2)

Formulas

distance = √((x₂ − x₁)² + (y₂ − y₁)²)
midpoint = ((x₁ + x₂)/2, (y₁ + y₂)/2)

The distance formula is the Pythagorean theorem applied to the horizontal and vertical gaps.

PointsDistanceMidpoint
(0, 0) – (3, 4)5(1.5, 2)
(1, 2) – (4, 6)5(2.5, 4)
(-2, 3) – (4, -5)10(1, -1)
(0, 0) – (1, 1)1.4142(0.5, 0.5)
(2, 7) – (10, 1)10(6, 4)

Frequently asked questions

How do I find the distance in 3D?
Add the z term: √(Δx² + Δy² + Δz²).
What is the midpoint used for?
It is the point exactly halfway between two points, e.g. the center of a diameter.