➗
Distance Between Two Points Calculator
Find the straight-line distance between two points (x1,y1) and (x2,y2) on a plane.
x₁
y₁
x₂
y₂
Loading calculator…
How it works
d = √((x₂ − x₁)² + (y₂ − y₁)²)
The distance formula is the Pythagorean theorem applied to the horizontal and vertical gaps between two points. The straight-line distance is the hypotenuse of that right triangle.
Worked example
From (1,2) to (4,6): Δx=3, Δy=4, so d = √(9+16) = 5.
Frequently asked questions
Does order of points matter?
No — the differences are squared, so swapping the two points gives the same distance.
Can it do 3D?
This version is 2D. For 3D, add a z term inside the square root — see the vector magnitude calculator.
Related calculators
Midpoint Calculator
Find the midpoint of the segment between two points (x₁, y₁) and (x₂, y₂) — the exact center of the line segment.
Slope of a Line Calculator
Find the slope of the line through two points, plus its rise, run and angle of inclination — with a vertical-line guard.
Pythagorean Theorem Calculator
Find the missing side of a right triangle — hypotenuse or either leg — using a² + b² = c².
This calculator is for educational purposes. Double-check important results before acting on them.