InfyCalculator
➗

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

This calculator is for educational purposes. Double-check important results before acting on them.