Part of the Maths & Statistics suite · 235 calculators

Distance Between Two Points Calculator

The straight-line distance between two points on a plane, their midpoint and the slope of the line joining them — the distance formula from Pythagoras.

Drop a right triangle between the points: the legs are the differences in x and y, so the distance is √((x₂ − x₁)² + (y₂ − y₁)²).

Results update as you type
Results
Distance
5
Midpoint
Δx
Δy
Slope
Reviewed September 2026. Pure mathematics: the result does not depend on where you are. Terminology follows the Australian Curriculum (maths, brackets, decimal point).
No account required · Google Analytics off unless allowedCalculator arithmetic runs in your browserResults update as you type
All calculations run 100% in your browser. The calculator code does not submit your figures to GlobalCalc to obtain a result.
About distance between two points

How the distance between two points calculator works

Drop a right triangle between the points: the legs are the differences in x and y, so the distance is √((x₂ − x₁)² + (y₂ − y₁)²). The midpoint averages the coordinates.

Formula: d = √((x₂ − x₁)² + (y₂ − y₁)²); midpoint = ((x₁ + x₂)/2, (y₁ + y₂)/2)

Worked examples

InputsDistanceNote
(1, 1) to (4, 5)5a 3-4-5 triangle: 5
(0, 0) to (1, 1)1.414214√2

Frequently asked questions

Where does the distance formula come from?

Pythagoras: the horizontal and vertical differences are the legs of a right triangle and the distance is the hypotenuse.

Does it work in three dimensions?

Yes — add (z₂ − z₁)² under the root.

Is the distance ever negative?

No; it is a length. The differences Δx and Δy can be negative.

What is the midpoint used for?

Bisecting a segment, finding a circle's centre from a diameter, averaging two positions.

Can I use it on a map?

For short distances on a flat grid, yes. Over the Earth's surface use the haversine formula with latitude and longitude instead.

Where these figures come from

Last checked: September 2026. Formulas are fixed by mathematics and do not change with tax years or regulations.