Distance Two Points
Calculator

Inputs

Distance
5

Results

Distance
5
Horizontal difference (Δx)
3
Vertical difference (Δy)
4
Midpoint x
2.5
Midpoint y
4

Results

Distance5
Horizontal difference (Δx)3
Vertical difference (Δy)4
Midpoint x2.5
Midpoint y4

formula-map diagram

Distance
5
Horizontal difference (Δx)
3
Vertical difference (Δy)
4
Midpoint x
2.5
Midpoint y
4

Formula map

Formula

d = √((x₂ − x₁)² + (y₂ − y₁)²)

= 5

Note

Simplified model: these are exact results of the stated idealised formulas, assuming perfect shapes and exact inputs. Real measurements carry error, and the ellipse perimeter is a Ramanujan approximation. Verify independently before relying on these figures.

More in Mathematics

See all →

Frequently asked questions

What coordinates do I need?+

The (x, y) coordinates of both points. If you're working in 3D, some versions also accept a z-coordinate for each point.

What formula is used?+

The distance formula, derived from the Pythagorean theorem: d = √((x₂-x₁)² + (y₂-y₁)²). It treats the horizontal and vertical differences as the two legs of a right triangle.

Does the order of the two points matter?+

No, since both differences are squared before being added, subtracting point 1 from point 2 or point 2 from point 1 gives the same final distance.

What if the two points have the same x-coordinate or the same y-coordinate?+

The formula still works — it just simplifies to the absolute difference in the remaining coordinate, since one of the squared terms becomes zero.

Can I use this for real-world distances like GPS coordinates?+

Only as a flat-plane approximation over short distances. Latitude and longitude are angular coordinates on a sphere, so for accurate real-world distances over any meaningful range you need a great-circle formula instead.