← All tools/Calculators/Geometry/Distance Between Two Points Calculator
Distance Between Two Points Calculator
How far apart are two points, as the crow flies? Enter both points and get the distance, the midpoint and each coordinate change.
Distance between the points
Midpoint (2.5, 4)
How it works
2D: d = √((x₂ − x₁)² + (y₂ − y₁)²) 3D: d = √((x₂ − x₁)² + (y₂ − y₁)² + (z₂ − z₁)²) Midpoint = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2)
From (1, 2) to (4, 6): distance = √((4 − 1)² + (6 − 2)²) = √(9 + 16) = √25 = 5 units, and the midpoint is ((1 + 4) ÷ 2, (2 + 6) ÷ 2) = (2.5, 4). In 3D, from (1, 2, 3) to (4, 6, 7): distance = √(9 + 16 + 16) = √41 ≈ 6.40 units, midpoint (2.5, 4, 5).
Frequently asked questions
What is the distance formula, in words?
It is Pythagoras’ theorem in disguise: the distance is the hypotenuse of a right triangle whose sides are the changes in x and y. Square both changes, add them, and take the square root.
How is the midpoint worked out?
Average each coordinate separately: midpoint x = (x₁ + x₂) ÷ 2 and midpoint y = (y₁ + y₂) ÷ 2. It is the point exactly halfway along the straight line between the two points.
Can I use negative coordinates?
Yes. The formula squares the differences, so the sign of each coordinate does not matter — only how far apart the points are on each axis.
What changes in 3D mode?
A third coordinate, z, is added: distance = √((Δx)² + (Δy)² + (Δz)²) and the midpoint gains a z value. Switch to 3D above and enter both z values.
More tools
Tell us what you think
Loving this tool, or stuck on something? Tell us — it takes a minute.
We’ll only use your name and email to reply if needed. The tool and page are filled in for you.