Math & Statistics

Distance Formula Calculator

Measure straight-line Euclidean distance between two points in a plane.

Private, in-browser calculationUpdated

Let’s work it out

Enter your numbers. We’ll show the working.

How to use this calculator

  1. Enter first point x and the remaining values.
  2. Check the selected units and the counting or calculation convention described below.
  3. Select Calculate to review the result and breakdown. Reset restores the example.

The formula

Distance = sqrt[(x₂−x₁)² + (y₂−y₁)²]

Coordinate differences are perpendicular legs of a right triangle. Their hypotenuse gives straight-line distance; identical points correctly have distance zero.

PUTTING IT INTO PRACTICE

A worked example

From (0,0) to (3,4), distance is sqrt(9+16) = 5 coordinate units.

How to interpret your result

The result uses the common coordinate unit. It is not distance traveled along a route.

Assumptions and limitations

Use the units, timing, and bounds stated beside the inputs. Example values are hypothetical; replace them with your own.

Both axes must use the same length scale; latitude and longitude are not supported as planar distances.