MyCalCute
Install
Calculators / Math / Distance between two points

Distance between two points calculator

Measure straight-line distance between two Cartesian points.

On this page

Your result

Distance5units

Calculator controls

How to calculate

Measure straight-line distance between two Cartesian points.

Distance = sqrt((x2-x1)^2+(y2-y1)^2)

Worked example

First x coordinate: 1; First y coordinate: 2; Second x coordinate: 4; Second y coordinate: 6.

Distance: 5 units.

Assumptions and limits

No. Geographic coordinates lie on a curved Earth and use angular units. This formula assumes a flat plane and matching linear coordinate units.

Results are rounded for display; calculations use unrounded values. Read our calculation methodology.

Understanding the result

The straight-line distance on a two-dimensional Cartesian plane combines the horizontal and vertical differences using the Pythagorean theorem.

When this tool is useful

Measure straight-line distance between two Cartesian points.

Understanding your inputs

InputWhat to enter
First x coordinateEnter a number of at least -1000000000 and no more than 1000000000.
First y coordinateEnter a number of at least -1000000000 and no more than 1000000000.
Second x coordinateEnter a number of at least -1000000000 and no more than 1000000000.
Second y coordinateEnter a number of at least -1000000000 and no more than 1000000000.

Frequently asked questions

Can I enter latitude and longitude?

No. Geographic coordinates lie on a curved Earth and use angular units. This formula assumes a flat plane and matching linear coordinate units.