Maths & numbers

Distance between two points

Find straight-line distance in a two-dimensional coordinate plane.

Distance between two points
Esc to restore

Your inputs

Results update as you type. Larger files run when you press Update result.

Your result

Your result will appear here.

More actions

Your inputs stay in this browser. Nothing is uploaded, and nothing is saved unless you choose “Save result”.

A clear answer. Here’s how.

Euclidean distance = hypot(x₂−x₁, y₂−y₁). Both axes must use the same scale and units. This is planar geometry, not a geographic distance on the Earth.

See a worked example

Worked example

A fixed demonstration, separate from the values you enter above.

First x
0
First y
0
Second x
3
Second y
4

Example result

Distance
5
Change in x
3
Change in y
4