About this calculator
Enter the coordinates of both points.
How to use it
- Enter point 1.
- Enter point 2.
- Read the distance.
The formula
- Δx, Δy
- horizontal and vertical gaps
Worked example
(1, 2) to (4, 6)
- Δx = 3, Δy = 4.
- d = √(9 + 16) = 5.
What the result means
For points in space, use the 3D distance calculator.
Worked example: straight-line distance on a map grid
On a town map with a 1 km grid, your home is at (2, 3) and a school is at (8, 11). Enter both points. The gaps are Δx = 6 and Δy = 8, so the distance is √(36 + 64) = 10 km.
This is the straight-line (‘as the crow flies’) distance. Road distance is usually longer because roads do not run in a straight line.
What else the distance formula is used for
The distance formula is a core topic in NCERT Class 10 coordinate geometry. Beyond a single length, it helps you answer questions about shapes drawn on a grid.
- Checking if three points lie on one line: for A(1, 2), B(4, 6) and C(7, 10), AB = 5, BC = 5 and AC = 10. Since AB + BC = AC, the points are collinear.
- Naming a triangle from its corners: find all three side lengths, then compare them (equal sides) or test c² = a² + b² for a right angle.
- Distance from the origin: with (0, 0) as point 1, the formula becomes √(x² + y²).
Common mistakes
- Sign errors with negatives. From (−3, 4) to (2, −8), Δx = 2 − (−3) = 5 and Δy = −8 − 4 = −12, giving √(25 + 144) = 13.
- Adding the gaps before squaring. √(3² + 4²) = 5, but (3 + 4)² would give 7.
- Mixing units on the two axes. Both coordinates must use the same unit.
Assumptions
- All lengths in the same unit.
Limitations
- Results are rounded to 10 significant figures.
Frequently asked questions
What is the distance formula?
√((x₂ − x₁)² + (y₂ − y₁)²).
Can distance be negative?
No.
How is it related to Pythagoras?
The gaps in x and y are the legs of a right triangle.
Does the order of the two points matter?
No. Swapping the points changes the sign of Δx and Δy, but squaring removes the sign, so the distance is the same.
How do I find the distance of a point from the origin?
Use √(x² + y²). The point (6, 8) is √(36 + 64) = 10 units from the origin.
Last reviewed on 12 October 2026. How we calculate and check. Found a mistake? Tell us.

