Distance Calculator

Calculate the straight-line distance and midpoint between two coordinate points in 2D or 3D space.

Share this calculator

Mode

Point 1

Point 2

5

Distance

3

Δx

4

Δy

(1.5, 2)

Midpoint

Also in General

Geometry

Distance between two coordinate points in 2D or 3D

The distance calculator finds the straight-line distance between two points using the distance formula. It works in both 2D and 3D coordinate space and also computes the midpoint.

The distance formula

In 2D: d = sqrt((x2-x1) squared + (y2-y1) squared). In 3D, add the z-component: d = sqrt((x2-x1) squared + (y2-y1) squared + (z2-z1) squared).

The midpoint is the average of the coordinates: ((x1+x2)/2, (y1+y2)/2) in 2D, with the z-average added for 3D.

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

Euclidean distance in 2D.

Limitations

This calculator computes straight-line (Euclidean) distance only. It does not account for paths, roads, or curved surfaces.

Frequently asked questions

What is the distance between (0,0) and (3,4)?

5 units. This is the classic 3-4-5 right triangle: sqrt(9+16) = sqrt(25) = 5.

Does the order of the points matter?

No. Distance is symmetric: the distance from A to B equals the distance from B to A.

Related

More from nearby categories

These related calculators come from the same leaf category, nearby sibling categories, or the same top-level topic.