CalcuAll.
A quick calculation, right here.

CalcuAlltor.

FREE ONLINE SCIENTIFIC CALCULATOR

0
Ready when you are.
English

Mathematics

Distance Between Two Points

Find straight-line distance in a flat coordinate system.

Let’s calculate.

Usage estimate

Find straight-line distance in a flat coordinate system.

Your result
—
Rounded to up to 2 decimal places.

EXPLORE THE FORMULA

Distance Between Two Points

Mathematics · FORMULA GUIDE

Your current calculation

The values and displayed result follow the calculator as you edit it.

First x coordinate
—
First y coordinate
—
Second x coordinate
—
Second y coordinate
—
Your result—
This panel uses the calculator’s displayed, rounded result.

The formula

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

Find straight-line distance in a flat coordinate system.

Variables and input conventions

x1
First x coordinate
y1
First y coordinate
x2
Second x coordinate
y2
Second y coordinate

Understanding the calculation

The coordinate differences form perpendicular legs. The nonnegative square root of their squared sum is the straight-line distance. From (−2,1) to (1,5) it is 5.

Interpreting the result

Both axes must use the same linear scale and unit. Geographic latitude/longitude degrees do not form this flat Cartesian metric.

A worked example

From (0,0) to (3,4) the distance is 5.

A fixed reference example; it does not change with your inputs.

Assumptions and valid inputs

Coordinates must share a unit. This is not geographic distance on Earth.

Numeric entries must be finite, at most 100 characters, and either zero or have magnitude from 10⁻¹⁰⁰ to 10¹⁰⁰. Lists accept up to 1,000 entries, separated by semicolons or new lines; commas may be decimal separators, not thousands separators. Geometric series sums, CV, standard error and z-scores additionally limit result magnitude to 10¹⁰⁰.

Rounding and numerical precision

Mathematics calculations use a private 640-significant-digit decimal context; factorials and selections use exact integer arithmetic before display. Other topics use their stated numeric methods. Choose 0–8 decimal places for display and copying. Trailing zeros are omitted; very small values may round to zero. Display rounding does not change the underlying calculation. Finite-precision arithmetic is not symbolic exact arithmetic.

Accuracy of input data

Extra displayed decimals do not improve input accuracy. Measurement uncertainty, product variability and uncertain chosen rates are separate from rounding. This tool does not propagate measurement uncertainty. Check that its stated assumptions describe your situation.

References and further study

Wolfram MathWorld

The Pythagorean reference supports Euclidean distance from perpendicular coordinate differences. Both axes must have a common scale; latitude and longitude do not meet that flat-coordinate assumption.

Related tools

Formula and worked example

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

Reference example

From (0,0) to (3,4) the distance is 5.

When this calculation applies

Both axes must use the same linear scale and unit. Geographic latitude/longitude degrees do not form this flat Cartesian metric.

Background reference: Wolfram MathWorld. References explain the method or units; they do not certify this calculator.

Source scope: The Pythagorean reference supports Euclidean distance from perpendicular coordinate differences. Both axes must have a common scale; latitude and longitude do not meet that flat-coordinate assumption.

For the derivation, input conventions and numerical limits, open .