Distance between two points (3D)
You already know how to find the distance between two points on a flat plane: subtract the coordinates, square, add, and take a square root. Space just adds one more coordinate to keep track of. Once you have the coordinates of two points in three dimensions, the same Pythagorean instinct — squares of differences, summed, square-rooted — gives you the distance between them, except now there are three differences instead of two. This section builds that 3-D distance formula from two stacked right triangles, applies it to the special case of a point's distance from the origin, and shows how it drives the standard exam tasks: testing whether three points are collinear, and deciding whether a triangle in space is scalene, isosceles, equilateral, or right-angled. Everything here stays within the CBSE Class 11 syllabus for coordinate geometry in three dimensions — no direction cosines, no vectors, just coordinates and square roots.
The distance between and in space is , the natural three-coordinate extension of the familiar 2-D distance formula.
The core idea
Three-dimensional space is described using three mutually perpendicular axes, , , and , meeting at the origin . Any point in space is fixed by an ordered triple of coordinates , exactly the way a point on paper is fixed by . The distance formula answers one question: given two such triples, how far apart are the points they describe? For points and ,
where: , , and are the differences of the corresponding coordinates of and , and is the straight-line distance between the two points, always taken as the positive square root. A useful special case is the distance of a point from the origin. Setting and in the formula above:
where: , , are the coordinates of the point itself, since each coordinate of the origin is zero. The formula is symmetric — it does not matter which point you call "first" and which "second," since every difference gets squared anyway. It also reduces correctly to the familiar 2-D formula whenever the two points share a -coordinate, because that term then vanishes.
Three standard uses of this formula recur across problems: checking whether three points are collinear (compute all three pairwise distances; the largest equals the sum of the other two exactly when the points lie on one line), classifying a triangle as isosceles, equilateral, or right-angled using squared distances and the converse of the Pythagorean theorem, and checking whether a point is equidistant from two given points, which is useful for locus-type questions. A fourth use, less common but still examinable, is deciding whether four points form a parallelogram, rectangle, or square by comparing the lengths of the four sides and the two diagonals, all computed with the same formula — equal opposite sides indicate a parallelogram, and equal diagonals on top of that indicate a rectangle. Working with squared distances instead of distances themselves is a habit worth building early: it avoids carrying square roots through an entire multi-step problem and only takes the root at the very end, which keeps the arithmetic cleaner and the sign-handling more transparent.
The goal is to show, using only the ordinary (2-D) Pythagorean theorem applied twice in succession, that the straight-line distance between and in three-dimensional space is exactly , with no new geometric idea beyond what already produces the 2-D distance formula.
Step 1. Drop a point that shares 's -coordinate and 's - and -coordinates, so . Then lies in the same horizontal plane as (both have -coordinate ), and is a purely 2-D distance within that plane, between and . By the ordinary distance formula, .
Step 2. Look at and . They share both the - and -coordinates () and differ only in the -coordinate, so is a vertical segment of length , perpendicular to the plane containing and .
Step 3. Because is perpendicular to the horizontal plane, it is perpendicular to as well, so triangle has a right angle at . Apply the Pythagorean theorem to this right triangle: .
Step 4. Take the positive square root of both sides to get , exactly the stated formula. The whole argument used the 2-D distance formula once (Step 1) and one more application of Pythagoras (Step 3), which is why the 3-D formula is often described as "two Pythagorean steps stacked."
Worked example
Question: Find the distance between the points and , and hence check whether , , and the origin could be the vertices of a right-angled triangle.
Step 1. Apply the distance formula to and :
Since is prime, this does not simplify further; units.
Step 2. Find the distance of each point from the origin using :
Step 3. Test the right-angle condition using squares of the three sides: , , . Check whether the largest squared side equals the sum of the other two: .
Step 4. Since (and no other pairing works either, as is already the largest), the converse of the Pythagorean theorem fails, so triangle is not right-angled. The distance units, and , , do not form a right-angled triangle.
Common traps
- Mishandling signs when a coordinate is already negative, e.g. computing as instead of .
- Being inconsistent about subtraction order across the three coordinates within a single distance calculation, which does not change the squared result but causes arithmetic slips if done carelessly.
- Declaring a triangle right-angled or isosceles by eyeballing coordinates instead of actually computing and comparing all three squared distances.
- Leaving a surd unsimplified when it could be reduced (writing instead of ), or trying to force-simplify a surd like that is already in simplest form since is prime.
Ask the tutor: if you get stuck classifying a triangle from squared distances or want more collinearity practice, ask the AI tutor for similar 3-D coordinate problems with step-by-step checking.
Why does the 3-D distance formula have three squared terms instead of two?
Because a point in space needs three coordinates to locate it, so there are three coordinate differences to account for: one along each axis. The derivation shows this is not an arbitrary extra term — it comes from applying the ordinary Pythagorean theorem a second time, once to combine the x and y differences within a plane, and again to bring in the z difference as a perpendicular leg. Each dimension you add contributes exactly one more squared term under the root.
Do I need to know direction cosines or vectors to use this formula?
No. The distance formula only needs the coordinates of the two points; it is pure arithmetic once you know and . Direction cosines, direction ratios, and vector methods for distances and angles belong to Class 12 and are not required for this topic. If a problem only gives you coordinates and asks for a distance, length of a side, or whether points are collinear, the formula on this page is all you need.
How do I decide if a surd answer like root 41 can be simplified further?
Factor the number under the root and look for a perfect-square factor greater than . For example, because is a perfect square. For , since is a prime number, it has no factors other than and itself, so no perfect-square factor exists and is already in simplest form. A quick way to check is to test small perfect squares () as possible factors before concluding a surd cannot be reduced.