Skip to content
MathsCBSE Class 11 · Introduction to Three Dimensional Geometry

Distance Formula in Three Dimensions: Collinearity, Shapes and Loci

Updated 17 October 2026 · Fact-checked

The distance between P(x1, y1, z1) and Q(x2, y2, z2) is √((x2 − x1)² + (y2 − y1)² + (z2 − z1)²). Three points are collinear if the largest of the three distances equals the sum of the other two. A triangle is right-angled if the squares of two sides add up to the square of the third. A locus is found by writing the distance condition for P(x, y, z) and simplifying: equidistance from two points gives a plane.

Apply Pythagoras on the base to get d², then again with dz to get PQ², so PQ² is the sum of the three squared differences.

Illustration drawn for QuestionBuddy.

Understand Distance Formula in Space: Collinearity, Shapes and Loci

The distance formula. For and ,
$$
It follows from applying Pythagoras twice inside a box with as space diagonal. Always compare squared distances to avoid roots until the end.

Collinearity. Points are collinear if one of , , holds. Compute the three distances, identify the largest and check. (Do not use the section formula in space: it is formative only in 2026-27.)

Shapes.

  • Equilateral triangle: all three sides equal. Isosceles: two equal sides.
  • Right-angled triangle: for the three squared sides (the largest square is the sum of the other two).
  • Square: four equal sides and two equal diagonals. Rhombus: four equal sides. Rectangle: opposite sides equal and equal diagonals. Parallelogram: both pairs of opposite sides equal (but check the points are not collinear).

For a quadrilateral , first list the sides , then the diagonals .

Loci. Take a general point and translate the words into an equation of squared distances.

  • : the two squared distances are equal; the quadratic terms cancel, leaving a linear equation, a plane (the perpendicular bisector plane of ).
  • with : the quadratic terms stay, giving a sphere (it can be rewritten as after completing the square).
  • : also a sphere.

**Equations such as ** describe all points at distance from the origin. Always check one or two points on your locus.

Distance Formula in Space: Collinearity, Shapes and Loci: formulas to remember

Distance
Space diagonal of the box with P and Q as opposite corners.
Collinear points
Test all three distances.
Right angle
Converse of Pythagoras theorem.
Equidistant locus
Gives a plane.
Distance from origin
Sphere of radius r: x² + y² + z² = r².

How to solve Distance Formula in Space: Collinearity, Shapes and Loci questions

Use these steps for proving collinearity or a shape and for finding loci.

  1. 1List the points and compute the squared distance between each relevant pair; keep the squares.
  2. 2For collinearity, check that the square root of the largest squared distance equals the sum of the other two roots.
  3. 3For a triangle, compare squares: equal squares mean equal sides; means a right angle.
  4. 4For a quadrilateral, compute all four sides and both diagonals before naming the shape.
  5. 5For a locus, take , write the squared distances to each given point, equate as stated and expand.
  6. 6Simplify to a plane or a sphere (complete the square) and verify with a point.

Distance Formula in Space: Collinearity, Shapes and Loci 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.

Distance between two points in space

Suppose two cable-car stations are at and in a coordinate system measured in hundreds of metres.

How long is the straight cable between them in metres?

Try it first, then show the solutionSolution
  1. .
  2. units m.

Answer: 700 m.

Memory hook: Difference each coordinate, square, add, root.

Sphere of coverage

Suppose a Wi-Fi router stands at the origin and a repeater at . A technician marks the boundary surface of all points that are exactly twice as far from the router as from the repeater.

Find the equation of this boundary surface.

Try it first, then show the solutionSolution
  1. Let . Condition gives .
  2. Expand: , so .
  3. Complete the square: , a sphere of centre and radius 2.

Answer: The sphere .

Memory hook: Equal distances give a plane; a fixed ratio other than 1 gives a sphere.

Tricks to remember Distance Formula in Space: Collinearity, Shapes and Loci

Short memory aids. Say each one aloud once, then use it on a question the same day.

  • Keep the squares

    Compare squared distances; take roots only for the final answer.

    Use it when: Shape and collinearity proofs.

  • Largest equals the sum

    For collinear points the longest distance is the sum of the other two.

    Use it when: Collinearity.

  • Equal distance kills the squares

    In PA = PB the x², y², z² terms cancel, leaving a plane.

    Use it when: Locus questions.

  • Ratio keeps the squares

    If PA = k PB with k not 1, the quadratic terms survive: a sphere.

    Use it when: Apollonius-type loci.

Distance Formula in Space: Collinearity, Shapes and Loci: solved examples

Ordered from board level to HOTS. Try each one before you open the solution.

Example 1: Plain distance · 2 marks · Very short answerBoard level

Find the distance between and .

Try it first, then show the solutionSolution
  1. . (1 mark)
  2. . (1 mark)

Answer: 7 units

Example 2: Collinearity · 3 marks · Short answerBoard level

Show that , and are collinear.

Try it first, then show the solutionSolution
  1. , so . (1 mark)
  2. , so . (½ mark)
  3. , so . (1 mark)
  4. , so the points are collinear (and is the midpoint of ). (½ mark)

Answer: Collinear

Example 3: A right-angled triangle · 3 marks · Short answerHarder board level

Show that , and form a right-angled triangle, and find its area.

Try it first, then show the solutionSolution
  1. , , . (1 mark)
  2. , so the angle at is a right angle. (1 mark)
  3. Area square units. (1 mark)

Answer: Right angle at ; area

Example 4: Locus: a plane · 3 marks · Short answerHarder board level

Find the locus of a point equidistant from and .

Try it first, then show the solutionSolution
  1. and . (1 mark)
  2. Equate and expand; the terms cancel: . (1 mark)
  3. Simplify: , so . The midpoint satisfies it: . (1 mark)

Answer: The plane

Example 5: Locus: a sphere · 5 marks · Long answerHOTS / competency

Find the locus of a point whose distance from the origin is twice its distance from , and identify it.

Try it first, then show the solutionSolution
  1. Condition , so . (1 mark)
  2. . (1 mark)
  3. Expand: , i.e. . (1 mark)
  4. Complete the square: . (1 mark)
  5. A sphere with centre and radius 2. Check: is at distance 2 from and 1 from ; at 6 and 3. (1 mark)

Answer: The sphere

Where students lose marks in Distance Formula in Space: Collinearity, Shapes and Loci

The slips examiners see most often, and what to write instead.

  • Mistake: Forgetting the third coordinate

    The 2D formula is used by habit.

    Wrong working

    .

    Right working

    Add inside the root.

    Do this: Write three brackets every time.

    Usually costs: The answer.

  • Mistake: Adding squares instead of roots for collinearity

    Squares must not be added to test the sum of lengths.

    Wrong working

    , so not collinear.

    Right working

    , so collinear.

    Do this: Convert to lengths before adding.

    Usually costs: The conclusion.

  • Mistake: Naming a quadrilateral from sides only

    Equal sides alone do not prove a square.

    Wrong working

    "All four sides are 3, hence a square."

    Right working

    All sides equal gives a rhombus; equal diagonals as well give a square.

    Do this: Always compute both diagonals.

    Usually costs: 1 to 2 marks.

  • Mistake: Leaving a sphere locus as a raw equation

    The question asks to identify the locus.

    Wrong working

    Stops at .

    Right working

    Complete the square and state centre and radius 2.

    Do this: Finish with the name of the surface.

    Usually costs: The last mark.

Exam tips

  • Always show the three squared differences inside the root; the method mark depends on them.
  • For collinearity name the longest distance and show the sum, not just the numbers.
  • For quadrilaterals, list four sides and both diagonals in a small table.
  • For loci end with a verification point and the name of the surface (plane or sphere).
  • The section formula is formative only in 2026-27; use distances for midpoint-type checks.

Practice questions on Distance Formula in Space: Collinearity, Shapes and Loci

Write each answer on paper first. Open the hint only if you are stuck, and the answer only when you have finished.

  1. Q1 · 1 mark · MCQBoard level

    The distance of the point from the origin is:
    (a) 11
    (b) 12
    (c) 13
    (d) 19

    Hint

    Use .

    Answer

    (c). .

  2. Q2 · 1 mark · MCQHarder board level

    The number of points on the -axis at a distance of 5 units from the point is:
    (a) 0
    (b) 1
    (c) 2
    (d) infinitely many

    Hint

    Take the point and form .

    Answer

    (b). , so only : the point .

  3. Q3 · 3 marks · Short answerHarder board level

    Find the point on the -axis which is equidistant from and .

    Hint

    Let the point be and equate .

    Answer

    , so , giving . Point (both squared distances are ).

  4. Q4 · 1 mark · Assertion-reasonHarder board level

    Assertion (A): The points , and are collinear.
    Reason (R): The distances are and , so .
    (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

    Compute the three distances.

    Answer

    (a). , , .

  5. Q5 · 4 marks · Short answerHOTS / competency

    Show that , , and are the vertices of a square.

    Hint

    Find the four sides and both diagonals.

    Answer

    , , , : all sides equal 3. , : equal diagonals. A rhombus with equal diagonals is a square (also gives a right angle at each vertex).

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. 1.What is the distance between two points in space?Show answer

    √((x2 − x1)² + (y2 − y1)² + (z2 − z1)²).

  2. 2.How do you test collinearity?Show answer

    The longest of the three distances equals the sum of the other two.

  3. 3.What does PA = PB give?Show answer

    A plane (the perpendicular bisector plane of AB).

  4. 4.What does PA = 2 PB give?Show answer

    A sphere.

  5. 5.What do equal diagonals and equal sides give?Show answer

    A square.

Distance Formula in Space: Collinearity, Shapes and Loci: frequently asked questions

Why is the formula the same as in the plane with one extra term?

Because applying Pythagoras twice in a box adds the square of the third difference.

Can three points in space form a triangle?

Yes, unless they are collinear. Check that no distance equals the sum of the other two.

Is a locus always a plane or a sphere here?

In this chapter, equal distances from two points gives a plane and a fixed ratio or a fixed sum of squares gives a sphere.

Is the section formula needed?

The chapter page marks the section formula in 3D as formative only in 2026-27, so distance-based reasoning is enough.