Calculator Uni

Distance Formula Calculator

Compute straight-line distance between points in 2D or 3D.

Two points

Distance

5

Deltas

3, 4

Pythagoras, generalized

Distance is the square root of summed squared differences — the Pythagorean theorem applied per axis. It extends unchanged to 3D and beyond: machine learning measures 'distance' between data points in hundreds of dimensions with the same formula.

Straight lines vs. real paths

This is 'as the crow flies.' City-grid travel follows Manhattan distance (|Δx| + |Δy|), and geographic distance over kilometers must account for the Earth's curvature (haversine formula). Pick the metric that matches the movement.

Related calculators