Distance between two points calculator
Free TutorAura tool · no sign-up · Updated
Enter two points and the calculator finds the straight-line distance between them, giving the exact answer as a surd when it isn't a whole number. The distance formula is Pythagoras' theorem on a grid:
Worked examples
- and : changes of 3 and 4, so .
- and : .
- and : changes of 5 and , so .
Why it's Pythagoras
Draw the two points and complete a right-angled triangle with a horizontal and a vertical side. The horizontal side is the change in , the vertical side is the change in , and the distance between the points is the hypotenuse. Squaring removes any negative signs, so the order you subtract in doesn't matter.
Exact answers with surds
When the distance isn't a whole number, exam questions often want it in surd form. . Our square root simplifier shows how to simplify any surd.
Circles on coordinate axes
A circle with centre and radius has the equation : every point on it is distance from the centre. To check whether a point lies on, inside or outside a circle, find its distance from the centre and compare with the radius. See our equation of a circle questions.
Common mistakes
- Forgetting to square-root at the end.
- Squaring a negative change wrongly: , not .
- Adding the changes before squaring.
Practise with our Pythagoras questions, and see the midpoint calculator.
Exam tips
- Sketch the triangle on the grid: it makes the method obvious and earns method marks.
- Give exact answers in simplified surd form if asked, otherwise round to 3 significant figures.
- Watch for 3-4-5 and 5-12-13 triangles: they give whole-number distances.
Distance on maps and in 3D
On a grid map where each square is 1 km, a walk from to is km in a straight line ("as the crow flies"), even though walking along the grid lines would be 14 km.
In three dimensions, add the third change too: . The space diagonal of a 3 × 4 × 12 box is .
Frequently asked questions
What is the distance formula?
d = √((x₂ − x₁)² + (y₂ − y₁)²): Pythagoras' theorem using the horizontal and vertical changes.
How do you find the length of a line segment?
Find the change in x and the change in y, square both, add them, then take the square root.
Does the order of the points matter?
No. The changes are squared, so the distance comes out the same either way.
Is anything I type sent to a server?
No. The calculation runs in your browser and nothing is stored.
Sources
- GCSE mathematics: subject content and assessment objectives. Department for Education.
- Cambridge IGCSE Mathematics 0580 syllabus. Cambridge International.
Keep reading
Pythagoras' theorem questions and answers
8 GCSE and IGCSE questions with worked answers, checked as you type.
Pythagoras theorem calculator: find the missing side
The missing side of a right-angled triangle, with exact surds, decimals and the working.
Midpoint calculator with working
The midpoint of two points, averaging each coordinate, with the working shown.
Equation of a circle questions and answers
8 GCSE and IGCSE questions with worked answers, checked as you type.