Home Math Distance Between Two Points Calculator

Distance Between Two Points Calculator

Straight-line distance between two points on a plane.

Advertisement

How it works

The distance formula is the Pythagorean theorem applied to the gap between two points. Subtract the x values and the y values, square each, add them and take the square root. The result is in the same unit as your coordinates.

Advertisement

Formula

d = √((x2 − x1)² + (y2 − y1)²)
midpoint = ((x1 + x2)/2, (y1 + y2)/2)

Sources

Example

From (1, 2) to (7, 10): difference in x is 6 and in y is 8. d = √(36 + 64) = 10. Check: 10² = 100 = 36 + 64. The midpoint is (4, 6).

Frequently asked questions

Does the order of the points matter?

No. Swapping the points gives the same distance.

Can I use negative numbers?

Yes.

Does it work in 3D?

Add (z2 − z1)² under the root.

What unit is the answer in?

The same unit as the inputs.

Advertisement

Related calculators

Percentage Calculator

Find a percent of a number, what percent one number is of another, and percent change, all at once.

Fraction Calculator

Add, subtract, multiply and divide fractions, with the answer simplified.

Scientific Calculator

Online scientific calculator with trig, logs, powers, roots, factorial and degree or radian mode.

Quadratic Formula Calculator

Solve ax² + bx + c = 0, with the discriminant and the vertex.