Enter two coordinate points to find the straight-line distance between them.
Distance Calculator
LiveThe formula
From (2, 3) to (7, 15): distance = √((7-2)² + (15-3)²) = √(25 + 144) = √169 = 13.
Step-by-step guide
- Enter the coordinates of your first point (x₁, y₁).
- Enter the coordinates of your second point (x₂, y₂).
- Read the straight-line distance between them.
Why this is just the Pythagorean theorem in disguise
The distance formula isn't a separate rule to memorize - it's the Pythagorean theorem applied directly to coordinate geometry. The horizontal difference (x₂ - x₁) and vertical difference (y₂ - y₁) between two points form the two legs of a right triangle, and the straight-line distance between the points is exactly the hypotenuse of that triangle. This is also why the example above (2,3) to (7,15) gives a clean whole number - the horizontal and vertical differences, 5 and 12, form a classic Pythagorean triple with a hypotenuse of exactly 13.
Common mistakes
Frequently asked questions
Does this work for negative coordinates?
Yes - the formula works correctly regardless of whether coordinates are positive or negative, since squaring the differences eliminates any sign issues.
Can this be extended to 3D coordinates?
Yes - the same pattern extends naturally by adding a squared z-difference term inside the square root, following the same underlying geometric logic in three dimensions.
Is this the same as distance on a map (accounting for curvature)?
No - this calculates straight-line ("as the crow flies") distance on a flat plane. Real-world distances over large areas of the Earth's curved surface use different formulas that account for that curvature.
Related calculators
See the full list of Math calculators, or try: