Distance Formula (2D)
Enter your known values, leave one input blank, and solves for the missing one. Try different units for next level excitement!
Learning zone
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.
- = First point x-coordinate
- = First point y-coordinate
- = Second point x-coordinate
- = Second point y-coordinate
- = Distance between the points
- 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 — Distance Formula (3D), Distance from a Point to a Line