Distance Formula Class 10: Derivation, Uses and Solved Questions
Updated 14 October 2026 · Fact-checked
The distance formula gives the length of the straight line joining two points on the Cartesian plane. It comes from Pythagoras theorem: square the difference of the x-coordinates, square the difference of the y-coordinates, add them and take the square root. The board asks you to find lengths, unknown coordinates, equidistant points and triangle types with it.
Understand Distance Formula
Every point on the Cartesian plane has an address . Once points have addresses, you can measure how far apart they are without a ruler. The distance formula does this using only the coordinates.
Take and . Draw a horizontal line through P and a vertical line through Q. They meet at . Triangle PRQ is right-angled at R. The horizontal side is and the vertical side is . By Pythagoras theorem, . Taking the positive root, .
Because each difference is squared, the order does not matter: . A negative difference also becomes positive. But you must still subtract carefully. For example, , not . Most lost marks in this topic come from sign slips, not from the formula.
The formula holds for any two points in any quadrants. It also covers the special cases. If one point is the origin, the distance is . If both points have the same y-coordinate, the segment is horizontal and the length is just . If they share the x-coordinate, it is . A distance is never negative, so you always take the positive square root.
The formula is the base of the whole chapter. With it you can find an unknown coordinate from a given length, find a point equidistant from two points, and decide whether a triangle is isosceles or right-angled using the converse of Pythagoras theorem. These uses are developed on the Applications page. The section formula, the other main tool of the chapter, can also be checked with distances.
Two working habits help. First, work with squared distances such as when comparing lengths; this avoids surds until the end. Second, give the final answer in simplest surd form, like units, and always write the units.
Distance Formula: formulas to remember
- Distance formula
- Length between and . Order of points does not matter.
- Squared distance
- Use this when comparing lengths or solving for an unknown; it avoids square roots.
- Distance from the origin
- Distance of from .
- Horizontal and vertical segments
- Quick case when two points share a coordinate.
- Equidistant condition
- Squaring is safe because distances are never negative.
- Right angle test (converse of Pythagoras theorem)
- The right angle is opposite the longest side.
- Collinearity test
- Collinear: the sum of the two smaller distances equals the third. B then lies between A and C. If the sum is not equal, the points form a triangle.
- Square
- Four equal sides and equal diagonals.
- Rhombus
- Four equal sides but unequal diagonals.
- Rectangle
- Opposite sides equal and equal diagonals.
- Parallelogram
- Opposite sides equal. If the diagonals are also unequal, it is not a rectangle.
- Point equidistant from three points
- Each condition simplifies to a linear equation in x and y; solve the pair to get P.
- Types of triangle by sides
- Find all three squared distances first, then compare them.
How to solve Distance Formula questions
This method works for any distance question, from a 1-mark MCQ to a 5-mark proof.
- 1Label the points clearly as and . If a point is on an axis, write it as or first.
- 2Find the x-difference and y-difference separately, using brackets for negatives, e.g. .
- 3Square each difference and add them to get the squared distance.
- 4If an unknown is involved, set the squared distance equal to the square of the given length (or equal to another squared distance) and solve.
- 5Keep both roots of a square equation unless a condition such as a quadrant rules one out.
- 6For collinearity, find all three distances, then check whether the two smaller ones add up to the largest. If they do, the points are collinear; if not, they form a triangle.
- 7For a quadrilateral ABCD with vertices taken in order, find all four sides and both diagonals. Then match: square (four equal sides, equal diagonals), rhombus (four equal sides, unequal diagonals), rectangle (opposite sides equal, equal diagonals) or parallelogram (opposite sides equal).
- 8For a point equidistant from three points, write and , simplify each to a linear equation and solve the pair.
- 9Take the positive square root and simplify the surd, e.g. .
- 10Write units and, for proofs, a one-line conclusion with the reason.
- 11Check by substituting the answer back into the distance condition.
Distance Formula in real life
Each concept, met in an everyday situation. Read the situation, try the problem, then check the solution. The one-line hook is what to remember.
The distance formula and why it works
Imagine your village panchayat marks a plan on a grid where 1 unit = 10 m. The main road runs along the x-axis. House A is at and house B is at . A water tank must stand on the main road so that the straight pipes to the two houses are equal in length.
Find the position of the tank on the road and the length of each pipe in metres. Suppose laying pipe costs Rs 40 per metre. Find the total cost of both pipes.
Try it first, then show the solutionSolution
- The tank is on the x-axis, so let it be
- Equal pipes: , so
- , so and the tank is at
- , so units m
- Check: , so units m
- Total pipe m
- Cost Rs 4000
Answer: Tank at , that is 40 m along the road from the origin; each pipe is 50 m; total cost Rs 4000.
Memory hook: Tank on the road: write it as ; equal pipes means equal squared distances.
Tricks to remember Distance Formula
Short memory aids. Say each one aloud once, then use it on a question the same day.
Across, up, Pythagoras
Think of walking from one point to the other: go across by the x-difference, then up by the y-difference. The straight path is the hypotenuse.
Use it when: Recall the derivation and the formula in any exam question.
Square kills the sign, not the subtraction
Order does not matter because you square, but is still 8. Bracket every negative coordinate.
Use it when: Avoid the commonest sign error.
Compare squares, root at the end
When checking equal sides or a right angle, compare , , . Take roots only for the final length.
Use it when: Saves time and avoids surd mistakes.
Distance Formula: solved examples
Ordered from board level to HOTS. Try each one before you open the solution.
Example 1: Distance with letters · 2 marks · Very short answerBoard level
Find the distance between the points and .
Try it first, then show the solutionSolution
- x-difference: ; y-difference: (½ mark)
- (½ mark)
- units (1 mark)
Answer: units
Example 2: Unknown coordinate from a given distance · 3 marks · Short answerBoard level
The distance between and is 10 units. Find the possible values of y. Which value places Q in the fourth quadrant?
Try it first, then show the solutionSolution
- (½ mark)
- , so (1 mark)
- , so or (1 mark)
- Fourth quadrant needs , so , giving (½ mark)
- Check: ✓
Answer: or ; Q is in the fourth quadrant when .
Example 3: Point on the x-axis equidistant from two points · 3 marks · Short answerBoard level
Find the point on the x-axis which is equidistant from and . Also find this common distance.
Try it first, then show the solutionSolution
- Let the point be since it lies on the x-axis (½ mark)
- : (½ mark)
- , so , (1 mark)
- ; , so units (½ mark)
- Check: ✓ (½ mark)
Answer: ; common distance units.
Example 4: Proving a quadrilateral is a square · 5 marks · Long answerHarder board level
Show that the points , , and , taken in order, are the vertices of a square. Also find its perimeter and the length of each diagonal.
Try it first, then show the solutionSolution
- , so units (½ mark)
- , so units (½ mark)
- , so units (½ mark)
- , so units (½ mark)
- Diagonal , so units (½ mark)
- Diagonal , so units (½ mark)
- All four sides are equal and the diagonals are equal, so ABCD is a square (1 mark)
- Perimeter units; each diagonal is 4 units (1 mark)
- Check: , so , as a square needs ✓
Answer: ABCD is a square with side units; perimeter units; each diagonal 4 units.
Example 5: Collinearity using distances · 3 marks · Short answerHarder board level
Show that the points , and are collinear. Which point lies between the other two?
Try it first, then show the solutionSolution
- , so units (½ mark)
- , so units (½ mark)
- , so units (½ mark)
- Sum of the two smaller distances: (1 mark)
- Hence A, B, C are collinear, and A lies between B and C (½ mark)
Answer: units, so the points are collinear with A between B and C.
Example 6: Unknown vertex of a right-angled triangle · 5 marks · Long answerHarder board level
The points , and form a triangle which is right-angled at A. Find the value of k. Show that the triangle is also isosceles and find its perimeter.
Try it first, then show the solutionSolution
- (½ mark)
- (½ mark)
- (½ mark)
- Right angle at A, so BC is the hypotenuse: (½ mark)
- (½ mark)
- , so , (1 mark)
- With : , , and ✓ (½ mark)
- units, so the triangle is isosceles (½ mark)
- Perimeter units (½ mark)
Answer: ; units, so the triangle is isosceles; perimeter units.
Example 7: Case study: placing a bus stop · 4 marks · Case-basedHOTS / competency
Suppose a town map is drawn on a grid where 1 unit = 100 m. The main road runs along the x-axis. A school S is at and a hospital H is at . The town wants a bus stop P on the main road that is equidistant from the school and the hospital. A library L is at and a market M is at .
(i) Find the position of the bus stop P. (1 mark)
(ii) Find the distance of the bus stop from the school in metres. (1 mark)
(iii) Of the school, the library and the market, which is nearest to the bus stop? Justify, and give that distance in metres. (2 marks)
Try it first, then show the solutionSolution
- (i) P is on the x-axis, so ; : (½ mark)
- , so , ; bus stop at (½ mark)
- (ii) , so units m; check ✓ (1 mark)
- (iii) , so units (½ mark)
- (½ mark)
- Compare squares: , so the library is nearest, at m (1 mark)
Answer: (i) (ii) m (iii) The library, at 500 m.
Where students lose marks in Distance Formula
The slips examiners see most often, and what to write instead.
Mistake: Dropping the sign when subtracting a negative coordinate
Students write but ignore that is negative.
Wrong working
For and :
Right working
, so distance units
Do this: Put every negative coordinate in brackets before subtracting.
Usually costs: Usually all marks after that step.
Mistake: Splitting the square root over a sum
Treating as .
Wrong working
Right working
Do this: Add the squares first, then take one square root.
Usually costs: The final answer mark and often method marks.
Mistake: Keeping only one root
Taking only when solving .
Wrong working
, so
Right working
, so or
Do this: Write whenever you root both sides; reject a value only with a stated reason.
Usually costs: ½ to 1 mark.
Mistake: Unsimplified surd or missing units
Stopping at or forgetting units.
Wrong working
Right working
units
Do this: Pull out perfect squares and always end with units.
Usually costs: ½ mark.
Exam tips
- Show the squared-distance line before the root; examiners give method marks for it.
- For equidistant points on an axis, write the point as or in the first line.
- When a quadrant or condition is given, state clearly why you reject a root.
- In proofs about triangles, end with a sentence naming the result used, such as the converse of Pythagoras theorem.
- In case studies, find each distance separately and give metres or km as the question uses.
Practice questions on Distance Formula
Write each answer on paper first. Open the hint only if you are stuck, and the answer only when you have finished.
Q1 · 1 mark · MCQBoard level
If the distance between the points and is 5 units, then the value of p is:
(a)
(b) 4 only
(c) only
(d) 0Hint
Square both sides; a square equal to a number has two roots.
Answer
(a) . , so , .
Q2 · 3 marks · Short answerHarder board level
Find k so that the point is equidistant from and . For this value, show that is isosceles and right-angled, and name the right angle.
Hint
Equate and ; then compare with .
Answer
gives , so and . Then , and . units, so the triangle is isosceles, and , so it is right-angled at A.
Q3 · 4 marks · Long answerHarder board level
Show that , and form an isosceles right-angled triangle. Then find the point D such that ABDC is a square, and verify that all its sides are equal.
Hint
The right angle is at the vertex where the two equal sides meet; in a square the diagonals have the same midpoint, so .
Answer
, , . So units and : isosceles and right-angled at A. (2) For the square ABDC, the midpoint of AD equals the midpoint of BC, , so . (1) Check: and , so all four sides are 5 units and the diagonals units. (1)
Q4 · 3 marks · Short answerHarder board level
Find a relation between x and y such that the point is equidistant from and .
Hint
Expand ; the and terms cancel.
Answer
gives , so , i.e. . Check: midpoint satisfies it.
Q5 · 2 marks · Very short answerBoard level
A student found the distance between and as units. Find the error and give the correct distance.
Hint
Look at how the student subtracted the negative x-coordinate.
Answer
The x-difference should be , not . Correct: units.
Q6 · 1 mark · MCQBoard level
The distance of the point from the origin, where , is:
(a)
(b)
(c)
(d) 1Hint
Use .
Answer
(a) . Distance .
Q7 · 1 mark · MCQBoard level
The points on the y-axis which are at a distance of 10 units from the point are:
(a) and
(b) and
(c) and
(d) andHint
A point on the y-axis is .
Answer
(a) and . , so , , or .
Q8 · 1 mark · Assertion-reasonBoard level
Assertion (A): The points , and are collinear.
Reason (R): .
(a) Both A and R are true and R is the correct explanation of A.
(b) Both A and R are true but R is not the correct explanation of A.
(c) A is true but R is false.
(d) A is false but R is true.Hint
Find OA, AB and OB.
Answer
(a). , , . So , which is exactly why the points are collinear.
Q9 · 2 marks · Very short answerBoard level
The distance between and is 10 units, and P lies in the fourth quadrant. Find y.
Hint
Get both roots first, then use the quadrant to reject one.
Answer
, so , or . Fourth quadrant needs , so . Check: .
Q10 · 3 marks · Short answerHarder board level
Find the points on the x-axis which are at a distance of 13 units from . Then find the perimeter of the triangle formed by A and these two points.
Hint
Take the point as ; the two points found are each 13 units from A.
Answer
, so , or . Points and , which are units apart. Perimeter units.
Q11 · 3 marks · Short answerHOTS / competency
Riya says the quadrilateral with vertices , , and , taken in order, is a square because all four sides are equal. Is she right? Justify by naming the quadrilateral correctly.
Hint
Equal sides alone are not enough; check the diagonals.
Answer
, , , . Diagonals: units, units. The diagonals are unequal, so ABCD is a rhombus, not a square. Riya is wrong.
Q12 · 4 marks · Long answerHarder board level
Show that , , and , taken in order, are the vertices of a square.
Hint
Find all four sides and both diagonals using squared distances.
Answer
, , , , so each side is units. and , so the diagonals are equal ( units). Four equal sides and equal diagonals, so ABCD is a square.
Q13 · 5 marks · Long answerHarder board level
Find the point P which is equidistant from , and . Also find this equal distance.
Hint
Form two linear equations from and .
Answer
Let . : gives , so . : gives , so . Then , , . ; units. Check: , .
Q14 · 4 marks · Case-basedHOTS / competency
Case study: Suppose a garden is drawn on a grid where 1 unit = 1 m. A sprinkler at waters every point within 5 m of it, including points exactly 5 m away. Plants stand at , and . A straight path runs along the x-axis.
(i) Does plant P get water? Justify. (1 mark)
(ii) Which of Q and R gets water? (1 mark)
(iii) Find the points on the path that are exactly 5 m from the sprinkler, and the length of the path that gets wet. (2 marks)Hint
Compare each squared distance with . For (iii), take the point as .
Answer
(i) , so m; P just gets water (on the edge). (ii) , so Q gets water; , so R does not. (iii) gives , so and ; wet length m.
Test your recall
Answer in your head or on paper first, then open the card. Pulling an answer out of memory makes it stick far better than re-reading.
1.Distance between and ?Show answer
2.Distance of from the origin?Show answer
3.Distance of from the origin?Show answer
13 units
4.Distance between and ?Show answer
Same y, so units
5.Which theorem is the distance formula based on?Show answer
Pythagoras theorem
Distance Formula: frequently asked questions
Does the order of the points matter in the distance formula?
No. Each difference is squared, so swapping the points gives the same result. Only be careful with signs while subtracting.
Why is the distance always positive?
A length cannot be negative, so you take only the positive square root. Negative roots may appear when solving for a coordinate, but not for the distance itself.
Should I leave answers as surds?
Yes, give them in simplest surd form such as 3 root 5 units unless the question asks for a decimal. Always write the units.
Is the area of a triangle using coordinates in the syllabus?
No, the area of a triangle from coordinates is not in the 2026-27 syllabus.
What kind of questions does Exercise 7.1 have?
It has questions on finding distances, finding unknown coordinates from distances, equidistant points and identifying shapes. Practise them with your own numbers using the steps on this page.