Distance Formula Calculator

Enter two coordinate points to get the distance between them — with the Δx/Δy breakdown, the midpoint, and the exact radical form.

The Pythagorean theorem in disguise

The distance formula is a² + b² = c² wearing coordinates: the horizontal change Δx and vertical change Δy are the legs, and the straight-line distance is the hypotenuse. Enter two points and this calculator shows the distance, the two deltas so you can see the triangle, the midpoint as a bonus, and the exact √ form for answers that don’t land whole.

How to use it

  1. Enter the first point (x₁, y₁).
  2. Enter the second point (x₂, y₂).
  3. Read the distance, the deltas, the midpoint and the exact form.

The formula

d = √((x₂ − x₁)² + (y₂ − y₁)²)

A worked example

From (2, 3) to (8, 11): Δx = 6 and Δy = 8, so d = √(36 + 64) = √100 = 10 — a scaled 3-4-5 triple — with midpoint (5, 7). Points like (0, 0) to (1, 1) come out irrational: √2 ≈ 1.4142, which is where the exact-form row earns its place on homework.

The same formula extends to three dimensions by adding a (zu2082 u2212 zu2081)u00b2 term under the root u2014 the logic never changes, only the number of axes.

Common questions

Does the order of the points matter?
No — the differences are squared, so the sign vanishes. Distance from A to B always equals B to A.
Can coordinates be negative?
Yes — the formula handles all four quadrants. From (−3, −4) to (0, 0) is √(9+16) = 5.
What about three dimensions?
Add the z term under the root: √(Δx² + Δy² + Δz²) — the same Pythagorean idea, one axis deeper.