Pythagorean theorem
Find the hypotenuse of a right triangle.
Measure straight-line distance between two Cartesian points.
Measure straight-line distance between two Cartesian points.
First x coordinate: 1; First y coordinate: 2; Second x coordinate: 4; Second y coordinate: 6.
Distance: 5 units.
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.
The straight-line distance on a two-dimensional Cartesian plane combines the horizontal and vertical differences using the Pythagorean theorem.
Measure straight-line distance between two Cartesian points.
| Input | What to enter |
|---|---|
| First x coordinate | Enter a number of at least -1000000000 and no more than 1000000000. |
| First y coordinate | Enter a number of at least -1000000000 and no more than 1000000000. |
| Second x coordinate | Enter a number of at least -1000000000 and no more than 1000000000. |
| Second y coordinate | Enter a number of at least -1000000000 and no more than 1000000000. |
No. Geographic coordinates lie on a curved Earth and use angular units. This formula assumes a flat plane and matching linear coordinate units.