JEE maths study guide

Distance between points in three dimensions for JEE maths

The distance between points in three dimensions is the square root of the sum of their squared coordinate differences. For P(x1, y1, z1) and Q(x2, y2, z2), PQ = √((x2 − x1)² + (y2 − y1)² + (z2 − z1)²). This formula uses rectangular Cartesian coordinates with a common unit of length.

Made for: Indian JEE maths students who know Cartesian coordinates and square roots.

What should you take away?

  • Subtract matching coordinates before you square each difference.
  • The sum of squared differences gives distance squared.
  • The distance is nonnegative and does not depend on point order.
  • Rectangular coordinates and consistent length units support this formula.

What does the three-dimensional distance formula measure?

The formula gives the straight-line Euclidean distance between two points in space. The three squared differences account for perpendicular coordinate directions.

A point has an ordered triple of real coordinates. The x-coordinate of P pairs with the x-coordinate of Q, and the other coordinates pair in the same way. Each difference measures a change along one coordinate direction. The formula combines all three changes into one length.

The Pythagorean theorem first combines two perpendicular changes in a coordinate plane. A second application combines that planar length with the perpendicular third change. The resulting distance squared is the sum of three squares. The distance itself uses the nonnegative square root because a length cannot be negative.

For the origin O(0, 0, 0), the formula becomes OP = √(x1² + y1² + z1²). This special case measures the distance of one point from the origin. It does not replace the general formula when neither given point is the origin.

    How do you calculate a distance from signed coordinates?

    For P(−2, 1, 4) and Q(4, −2, 6), the coordinate differences are 6, −3, and 2. Thus PQ = √49 = 7 units.

    Subtract the coordinates of P from the matching coordinates of Q. The x-difference is 4 − (−2) = 6. The y-difference is −2 − 1 = −3. The z-difference is 6 − 4 = 2. Parentheses preserve the subtraction of a negative coordinate.

    Square each complete difference. The values are 6² = 36, (−3)² = 9, and 2² = 4. Their sum is 36 + 9 + 4 = 49. Therefore PQ² = 49. The negative y-difference contributes a positive square, rather than a negative length.

    Take the nonnegative square root to obtain PQ = 7. A reverse subtraction gives differences −6, 3, and −2. Their squares are again 36, 9, and 4, so QP = 7 as well. The distance between two points cannot depend on which point receives the first label.

    • Subtract corresponding coordinates with parentheses around negative values.
    • Square the three differences and add their squares.
    • Take the nonnegative square root and state the unit.

    Which common errors change the calculated distance?

    A sum of coordinate changes is not the straight-line distance. Also, a sum of squared changes gives distance squared until the square root appears.

    For the worked example, the sum of absolute changes is 6 + 3 + 2 = 11. This is the length of a path along coordinate directions, rather than the straight segment PQ. The rectangular distance formula gives 7. These are different geometric quantities.

    The square applies to the whole difference. For instance, (−2 − 1)² = 9, while (−2)² − 1² = 3. These expressions are unequal. A careful substitution retains the brackets from the distance formula until each subtraction is complete.

    All coordinates must use the same length unit and perpendicular axes. Otherwise, this unmodified formula need not measure the intended physical distance. Equal corresponding coordinates cause no difficulty: their difference is zero. When all three coordinate pairs agree, the two points coincide and the distance is zero.

      Can you find the distance for a different pair of points?

      Find the distance between A(1, −3, 2) and B(−3, 1, 3). Give an exact radical and its squared value before any approximation.

      Use the same coordinate order for both points. Calculate the three changes separately, and retain the negative sign until the square is complete. Make sure that the final answer represents a length, rather than a squared length. An irrational exact distance does not require a decimal approximation.

      For an additional comparison, replace B with C(−3, 1, 2). The z-coordinate now equals the z-coordinate of A. Only the third squared difference changes. Predict whether AC is shorter than AB before the final square root. The comparison follows directly from the nonnegative squared terms.

      Answer: The changes from A to B are −4, 4, and 1. Thus AB² = 16 + 16 + 1 = 33 and AB = √33 units. For C, AC² = 16 + 16 + 0 = 32, so AC = √32 = 4√2 units. Therefore AC is shorter.

        What else should you know?

        Can the distance between distinct points be zero?

        No. A sum of three nonnegative squares is zero only when all three differences are zero. The points then coincide.

        Does a negative coordinate make the distance negative?

        No. Coordinates can be negative, but their squared differences are nonnegative. The distance uses the nonnegative square root.

        What happens when both points have the same z-coordinate?

        The z-difference is zero. The formula reduces to the two-dimensional distance formula for their x- and y-coordinates.

        What should you do next?

        Apply the idea to one attempted problem. Ask a qualified teacher to resolve disputed mathematics.

        Try one maths problem

        What changed: Initial article prepared with Codex and its subagents, textbook sources, and a separate automated review. Mathematics reviewed and publication approved by AIR1 site owner on 2026-11-03. No independent professional review is claimed.