Distance Calculator

The distance formula is the Pythagorean theorem on a grid: the horizontal and vertical gaps are the two shorter sides.

Results update as you type.

Distance

5

Δx, Δy
3, 4

About this calculator

Enter the coordinates of both points.

How to use it

  1. Enter point 1.
  2. Enter point 2.
  3. Read the distance.

The formula

d = √((x₂ − x₁)² + (y₂ − y₁)²)
Δx, Δy
horizontal and vertical gaps

Worked example

(1, 2) to (4, 6)

  1. Δx = 3, Δy = 4.
  2. d = √(9 + 16) = 5.

What the result means

For points in space, use the 3D distance calculator.

Assumptions

  • All lengths in the same unit.

Limitations

  • Results are rounded to 10 significant figures.

Frequently asked questions

What is the distance formula?

√((x₂ − x₁)² + (y₂ − y₁)²).

Can distance be negative?

No.

How is it related to Pythagoras?

The gaps in x and y are the legs of a right triangle.

Last reviewed on 3 October 2026. Found a mistake? Tell us.