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. Change any unit and the answer follows.
Where Distance Formula (2D) fits
See also
Slope Between Two Points: Both use first point x-coordinate and first point y-coordinate.Slope-Intercept Form of a Line: Both use first point x-coordinate and first point y-coordinate.Distance Formula (3D): Both use distance between the points.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.
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 comes back unique: recovering a single coordinate from a known distance gives two equally valid mirror-image answers, so the page returns one, the first point to the left of or below the second, and says the other is its mirror.
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)
Cite this page
formula.expert. (2026, November 1). Distance Formula (2D) Calculator. https://formula.expert/solvers/distance-formula-2d