Find the distance between two points or two places.
d = √((x₂ − x₁)² + (y₂ − y₁)²). The distance from (1, 2) to (4, 6) is 5.
This page has two distance tools. The first finds the straight-line (Euclidean), Manhattan and Chebyshev distance between two points in 2-D or 3-D, with the midpoint, slope and angle. The second finds the great-circle distance between two places from their latitude and longitude using the haversine formula, with the initial bearing.
The Cartesian formula is the Pythagorean theorem in coordinates — see the Pythagorean Theorem Calculator. For the line through the points use the Slope Calculator. For road trips try the Mileage Calculator and Speed Calculator.
The calculator applies the standard method step by step.
| Item | Value |
|---|---|
| Euclidean (straight-line) distance | 5 |
| Manhattan (taxicab) distance | 7 |
| Chebyshev distance | 4 |
| Δx, Δy | 3, 4 |
| Midpoint | (2.5, 4) |
| Slope | 1.3333333333 |
| Angle of the line | 53.13010235° |
| Points | Distance |
|---|---|
| (1,2) to (4,6) | 5 |
| (0,0) to (3,4) | 5 |
| (−2,5) to (4,−3) | 10 |
| (0,0) to (5,12) | 13 |
| (1,1) to (7,9) | 10 |
d = √((x₂ − x₁)² + (y₂ − y₁)²). It is the Pythagorean theorem applied to coordinates.
Add the squared difference in z: d = √(Δx² + Δy² + Δz²).
The distance you would travel along a grid, adding the horizontal and vertical differences: |Δx| + |Δy|.
With the haversine formula, which finds the shortest path over the Earth's surface (the great-circle distance).
No. It is the straight-line 'as the crow flies' distance; roads are usually 10–30% longer.
Average the coordinates: ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2).
It uses the standard method: d = √((x₂ − x₁)² + (y₂ − y₁)² + (z₂ − z₁)²) The full working and a worked example are shown on this page.
Decimal results use standard double-precision arithmetic (about 15–16 significant digits). Tools that work with whole numbers — big numbers, factors, bases, combinations — use exact integer arithmetic, so no digits are lost.
Yes for checking your work and learning the method. The steps and formula are shown so you can understand the answer, but follow your teacher's rules about calculators in exams.
No. Everything is calculated in your browser and nothing you enter is uploaded or saved.