Distance Formula (2D)
Worked example: (1,2) to (4,6) m → 3-4-5 hypotenuse, 5 m — press Try an example to run it live, then adjust anything.
Enter your known values, leave one input blank, and solves for the missing one. Tap a variable’s symbol to see what it means, with a typical value. Try different units for next level excitement!
Midpoint and distance →
Grade 10Grade 10 Math
Test your skills in the Exam Room: new numbers every attempt — free lessons for students, no sign-up, just pure learning.
share your results
Distance Formula (2D) explained
The distance formula is the Pythagorean theorem wearing coordinate clothing. Between any two points, the horizontal separation (x₂ − x₁) and the vertical separation (y₂ − y₁) form the two legs of a right triangle, and the straight-line distance is its hypotenuse. From (1, 2) to (4, 6) the legs are 3 and 4, so the distance is √(9 + 16) = 5 — the beloved 3–4–5 triangle hiding in the grid.
Historically this formula marks the marriage of algebra and geometry: René Descartes's La Géométrie (1637) introduced the coordinate plane that lets shapes be handled as equations, and measuring distance was the first payoff. Today the same square-root-of-summed-squares expression computes GPS displacements, collision distances in games, and error magnitudes in statistics. Note that only d can be solved for directly — recovering a single coordinate from a known distance gives two equally valid mirror-image answers, so there is no unique inverse.
Distance Formula (2D)
- = First point x-coordinate (m)
- = First point y-coordinate (m)
- = Second point x-coordinate (m)
- = Second point y-coordinate (m)
- = Distance between the points (m)
Missing one of these? Work it out first, then come back
- First point x-coordinate — Slope Between Two Points, Distance from a Point to a Line
- First point y-coordinate — Slope Between Two Points, Distance from a Point to a Line
- Second point x-coordinate — Slope Between Two Points, Distance from a Point to a Line
- Second point y-coordinate — Slope Between Two Points, Distance from a Point to a Line
- Distance between the points — Earthwork Volume by Average End Area, Earthwork Volume by the Prismoidal Formula