Points in Space, Distance, Section Formula: JEE Main Notes
Reviewed Last updated 2026-11-20. Syllabus topic: Points in space, distance and section formula.
In short. A point in space is a triple (x, y, z). Distance is the root of the sum of squared coordinate differences, and the section formula (m Q + n P)/(m + n) divides a segment internally in the ratio m : n, with n P replaced by minus n P and n by minus n for external division.
- Three mutually perpendicular axes give eight octants; each coordinate is a signed perpendicular distance from a coordinate plane.
- Distance formula: d² = (x2 - x1)² + (y2 - y1)² + (z2 - z1)²; the distance from the origin is the root of x² + y² + z².
- Internal division m : n: R = (m Q + n P)/(m + n); external: R = (m Q - n P)/(m - n); the midpoint takes m = n = 1.
- A coordinate plane (for example z = 0) divides a segment in the ratio -z1 : z2 of the signed z-values; a negative ratio means external division.
Syllabus line: THREE DIMENSIONAL GEOMETRY : Coordinates of a point in space, the distance between two points, section formula, direction ratios and direction cosines and the angle between two intersecting lines. Equation of a line; Skew lines, the shortest distance between them and its equation. (NTA JEE (Main) 2026 syllabus, Mathematics, Unit 11 (https://jeemain.nta.nic.in/document/syllabus-2026/))
Before you start
Prerequisites
- Coordinates, distance, section formula and locus: The space formulas are the plane formulas with one more term. Read this first if the two-dimensional section formula is not automatic.
- Vectors, addition and components: Position vectors and the vector form of the section formula use component addition.
Related topics
The concept step by step
Coordinate axes, planes and octants
Three mutually perpendicular lines through a point O, the origin, form the x-axis, y-axis and z-axis. Each pair of axes spans a coordinate plane: xy-plane (z = 0), yz-plane (x = 0) and zx-plane (y = 0). The planes cut space into eight octants, according to the signs of x, y and z. A point P(x, y, z) has x, y and z as its signed perpendicular distances from the yz, zx and xy planes. Points on the x-axis look like (a, 0, 0); points in the xy-plane look like (a, b, 0).
Distance between two points
Drop perpendiculars to build a box whose edges are parallel to the axes and whose space diagonal is the segment PQ. The edges have lengths |x2 - x1|, |y2 - y1| and |z2 - z1|, and Pythagoras applied twice gives PQ² = (x2 - x1)² + (y2 - y1)² + (z2 - z1)². The distance of P(x, y, z) from the origin is sqrt(x² + y² + z²). Its distance from the x-axis is sqrt(y² + z²), from the y-axis sqrt(x² + z²) and from the z-axis sqrt(x² + y²): drop the coordinate along the axis.
Section formula: internal division
A point R on the segment PQ with PR : RQ = m : n lies between the two points. Each coordinate of R is the weighted average of the matching coordinates of P and Q, with the weight n on P and m on Q: R = ((m x2 + n x1)/(m + n), (m y2 + n y1)/(m + n), (m z2 + n z1)/(m + n)). The weights are crossed: the larger weight goes to the end that R is closer to. For m = n the formula gives the midpoint, the plain average of the coordinates.
External division and the sign of the ratio
If R lies on the line PQ outside the segment with PR : RQ = m : n, then R = (m Q - n P)/(m - n); it lies beyond Q if m > n and beyond P if m 0 means internal and k < 0 (k not equal to -1) means external. To find where a coordinate plane cuts the segment, set that coordinate of R to zero and solve for k.
Geometry with points: parallelograms, centroids, collinearity
A parallelogram ABCD has diagonals that bisect each other, so A + C = B + D, which gives the fourth vertex. The centroid of a triangle is the average of its three vertices, and it divides each median in the ratio 2 : 1 from the vertex. Three points A, B, C are collinear exactly when AB and AC have proportional coordinate differences, or when the three distances satisfy AB + BC = AC for some ordering. Equal distance conditions, such as PA = PB, give linear equations once the squares are expanded.
Worked examples
Each solution shows the marks every step would earn. The sanity check tests units and size of the answer.
Example 1 (easy)
Find the distance between P(-2, 1, 4) and Q(4, 4, 10), in units.
| Step | Marks |
|---|---|
| Differences: 4 - (-2) = 6, 4 - 1 = 3, 10 - 4 = 6. | 1 |
| PQ² = 36 + 9 + 36 = 81. | 1 |
| PQ = 9 units. | 1 |
| Total: 3 marks | 3 |
Answer: 9 units
Fast method: Differences (6, 3, 6) are 3 times (2, 1, 2), whose magnitude is 3, so the distance is 9.
Sanity check: Units: the same length unit as the coordinates. The distance must be at least the largest difference (6) and at most the sum of the differences (15); 9 lies between them.
Example 2 (easy)
Find the distance of the point P(3, -4, 12) from the z-axis, in units, and from the origin.
| Step | Marks |
|---|---|
| The foot of the perpendicular from P on the z-axis is (0, 0, 12), so drop the z-coordinate. | 1 |
| Distance from the z-axis = sqrt(3² + 4²) = 5 units. | 1 |
| Distance from the origin = sqrt(9 + 16 + 144) = 13 units; the z-axis distance is 5 units. | 1 |
| Total: 3 marks | 3 |
Answer: 5 units from the z-axis; 13 units from the origin
Fast method: From an axis, ignore that axis coordinate. (3, 4, 12) is a standard triple with 13.
Sanity check: The distance from an axis cannot exceed the distance from the origin: 5 is less than 13. Check by Pythagoras: 5² + 12² = 13².
Example 3 (medium)
The point P divides the line segment joining A(2, -3, 5) and B(6, 5, -3) internally in the ratio 3 : 1 (AP : PB). Find x + y + z for P.
| Step | Marks |
|---|---|
| Use P = (3 B + 1 A)/4. | 1 |
| x = (18 + 2)/4 = 5, y = (15 - 3)/4 = 3, z = (-9 + 5)/4 = -1. | 2 |
| P = (5, 3, -1) and x + y + z = 7. | 1 |
| Total: 4 marks | 4 |
Answer: 7 (P = (5, 3, -1))
Fast method: P is three quarters of the way from A to B: A + 3/4 (B - A) = (2 + 3, -3 + 6, 5 - 6).
Sanity check: Each coordinate of P lies between those of A and B: x between 2 and 6, y between -3 and 5, z between -3 and 5. P is nearer B, as the ratio 3 : 1 requires.
Example 4 (medium)
The point R divides the segment joining A(1, 2, 3) and B(4, -1, 6) externally in the ratio 2 : 1. Find x + y + z for R.
| Step | Marks |
|---|---|
| External division: R = (m B - n A)/(m - n) with m = 2, n = 1. | 1 |
| x = (8 - 1)/1 = 7, y = (-2 - 2)/1 = -4, z = (12 - 3)/1 = 9. | 2 |
| R = (7, -4, 9), so x + y + z = 12. | 1 |
| Total: 4 marks | 4 |
Answer: 12 (R = (7, -4, 9))
Fast method: R is beyond B with AR = 2 RB, so B is the midpoint of AR: R = 2B - A = (7, -4, 9).
Sanity check: AR should be twice RB in length: AB = sqrt(27) so AR = 2 sqrt(27) and RB = sqrt(27); the distance from A to (7, -4, 9) is sqrt(36 + 36 + 36) = sqrt(108) = 2 sqrt(27). Consistent.
Example 5 (medium)
Find the ratio m : n (as m/n, with the sign convention that a negative value means external division) in which the zx-plane (y = 0) divides the segment joining A(1, 2, 3) and B(4, 5, 6).
| Step | Marks |
|---|---|
| A point on AB with ratio m : n has y = (m(5) + n(2))/(m + n). | 1 |
| On the zx-plane y = 0, so 5 m + 2 n = 0. | 1 |
| m/n = -2/5 = -0.4. | 1 |
| The ratio is negative, so the division is external in the ratio 2 : 5, m/n = -0.4. | 1 |
| Total: 4 marks | 4 |
Answer: externally in the ratio 2 : 5 (m/n = -0.4)
Fast method: Ratio = -(y of A)/(y of B) = -2/5. Both y-values are positive, so the signs already tell you the division is external.
Sanity check: The cut point is A + (m/(m + n))-weighted: with m : n = -2 : 5 the point is (-2 B + 5 A)/3 = ((-8 + 5)/3, (-10 + 10)/3, (-12 + 15)/3) = (-1, 0, 1), which has y = 0 and lies beyond A.
Example 6 (hard, multi-step)
A(2, 3, 1), B(4, -1, 5) and C(0, 5, 3) are the vertices of a triangle. Find the length of the median from A, and the distance AG from A to the centroid G.
| Step | Marks |
|---|---|
| Midpoint of BC: D = ((4 + 0)/2, (-1 + 5)/2, (5 + 3)/2) = (2, 2, 4). | 2 |
| Median AD: differences (0, -1, 3), so AD = sqrt(0 + 1 + 9) = sqrt(10) = 3.162 units. | 2 |
| G is the centroid ((2 + 4 + 0)/3, (3 - 1 + 5)/3, (1 + 5 + 3)/3) = (2, 7/3, 3); AG = sqrt(0 + 4/9 + 4) = 2.108 units, which equals 2/3 of AD. | 2 |
| Median length 3.162 units; AG = 2.108 units. | 1 |
| Total: 7 marks | 7 |
Answer: median AD = sqrt(10) = 3.162 units; AG = 2.108 units
Fast method: AD from the midpoint; then AG = (2/3) AD = 0.6667 x 3.1623 = 2.108 without finding G.
Sanity check: G divides AD in the ratio 2 : 1, so AG : GD = 2 : 1: GD = 1.054, and AG + GD = 3.162 = AD. The median is shorter than the sum of the other sides' half-lengths, as it should be.
Example 7 (hard)
The points A(1, 2, 3), B(3, 6, 7) and C(5, 10, k) are collinear. Find k.
| Step | Marks |
|---|---|
| AB = (2, 4, 4) and AC = (4, 8, k - 3) must be proportional. | 2 |
| From the x and y differences, AC = 2 AB, so k - 3 = 2 x 4 = 8. | 1 |
| k = 11. | 1 |
| Total: 4 marks | 4 |
Answer: k = 11
Fast method: From A to B the coordinates rise by (2, 4, 4); C is two steps from A in x, so z rises by 8 from 3: k = 11.
Sanity check: Check distances: AB = 6, BC = sqrt(4 + 16 + 16) = 6, AC = sqrt(16 + 64 + 64) = 12, and AB + BC = AC, which confirms that the three points are collinear with B the midpoint.
Formulas and units
| Result | Formula | Valid when | Units or note | Worked example |
|---|---|---|---|---|
| Distance between P and Q | PQ = sqrt((x2 - x1)² + (y2 - y1)² + (z2 - z1)²) | rectangular axes, same length unit for all coordinates | length units of the coordinates | Example 1 |
| Distance from the origin | OP = sqrt(x² + y² + z²) | rectangular axes | length | Example 2 |
| Distance from an axis | x-axis: sqrt(y² + z²); y-axis: sqrt(x² + z²); z-axis: sqrt(x² + y²) | rectangular axes; drop the coordinate along that axis | length | Example 2 |
| Internal division m : n | R = (m Q + n P)/(m + n) | P, Q points; R on segment PQ between them, ratio PR : RQ = m : n | n/a (coordinates) | Example 3 |
| External division m : n | R = (m Q - n P)/(m - n), m not equal to n | m not equal to n; R on line PQ outside the segment | n/a (coordinates) | Example 4 |
| Midpoint | (P + Q)/2 | any two points P, Q | n/a (coordinates) | Example 6 |
| Centroid of a triangle | (A + B + C)/3; divides each median 2 : 1 from the vertex | A, B, C non-collinear vertices | n/a (coordinates) | Example 6 |
| Parallelogram ABCD | D = A + C - B (diagonals bisect each other) | ABCD parallelogram taken in order, A and C opposite | n/a (coordinates) | none |
| Plane cut ratio (xy-plane) | AR : RB = -z1 : z2; negative means external | A and B off the plane; negative ratio means external division | dimensionless | Example 5 |
Common mistakes and speed
- Swapping m and n in the section formula. Why it tempts: The ratio is written m : n, so it feels natural to put m with the first point P; but the weight m belongs to Q, the far end, and the swapped point is a typical wrong option.
- Adding the coordinate differences instead of their squares, or forgetting the final square root. Why it tempts: Under time pressure the formula is remembered as 'differences added'; the options 169 and 19 against the true 13 show both slips.
- Taking the distance from an axis as the distance from the origin. Why it tempts: Both use a root of squares, so students keep all three coordinates; the coordinate along the axis must be dropped.
- Reading a negative ratio as an error, or ignoring that it means external division. Why it tempts: Plane-cut problems give m/n negative when the endpoints lie on the same side of the plane; a student then discards the answer or uses the internal formula.
- Finding the fourth vertex as B + C - A without checking which vertices are opposite. Why it tempts: The pattern 'sum of two minus the third' is correct only for the vertex opposite the one subtracted: in ABCD the fourth vertex is D = A + C - B.
Time per question and fast method
Target: about 60 seconds per question.
Distance: subtract, square, add, then spot a standard triple. Section: write the weights on the end that is nearer the point, and test each coordinate lies between the ends. Plane cut: ratio = minus the ratio of the two signed coordinates; the sign tells internal or external.
Recall quiz
Pick an option for each question. Your answers stay on this page and are not sent anywhere.
Score: 0 of 5 correct. Pick an option for each question.
Practice
- The distance between the points A(1, -2, 3) and B(4, 2, 15) in space is Verified (T1)
- The point R divides the line segment joining P(2, -1, 4) and Q(-3, 9, -6) internally in the ratio 2 : 3 (PR :… Verified (T1)
- A point P lies on the y-axis and is equidistant from A(3, 1, 2) and B(5, 5, 3). The y-coordinate of P is Verified (T1)
- A(1, 2, 3), B(3, 0, 5) and C(4, 4, 8) are three consecutive vertices of a parallelogram ABCD. The length of… Verified (T1)
- The points P and Q divide the segment joining A(1, 2, 3) and B(7, 8, 9) internally in the ratios 1 : 2 and 2… Verified (T3)
Previous-year questions
Previous-year questions are not imported yet. Previous-year questions are not imported yet; see the official papers on the NTA site. Official NTA papers page.
Going deeper and revision
Coordinates, octants and special points
A point has three signed coordinates. The signs decide the octant: (+, +, +) is the first octant, and each sign change moves to another of the eight. The reflection of (a, b, c) in the xy-plane is (a, b, -c); in the x-axis it is (a, -b, -c); in the origin it is (-a, -b, -c). Foot of the perpendicular from (a, b, c) to the x-axis is (a, 0, 0) and to the xy-plane (a, b, 0). Questions such as the number of points at a given distance on an axis reduce to the distance formula with the other two coordinates zero. Units: every coordinate is a length, so the distance carries the same unit.
Distance formula: derivation, uses and speed
From the box construction, PQ² is the sum of three squares. Always square first and take the root at the end. The condition that a point is equidistant from two given points, PA² = PB², is linear after the squared terms cancel, so it is the equation of a plane, but for a point restricted to an axis it gives a single linear equation in one unknown. Use standard triples to avoid arithmetic: (2, 3, 6) with 7, (1, 4, 8) with 9, (2, 6, 9) with 11, (3, 4, 12) with 13 and (4, 4, 7) with 9. A triangle is right angled if the squares of two sides add to the square of the third; it is isosceles or equilateral if two or three squared sides are equal.
Section formula: results the exam uses
Internal division in the ratio m : n gives R = (m Q + n P)/(m + n); external division gives R = (m Q - n P)/(m - n), where m is not equal to n. The midpoint is the average. Points that trisect a segment divide it in the ratios 1 : 2 and 2 : 1 from one end. The centroid of a triangle is (A + B + C)/3, and of a tetrahedron (A + B + C + D)/4. If R divides PQ in the ratio k : 1, then P divides RQ in the ratio -k/(k + 1) : 1; rarely needed, but it shows how the ratio changes sign with the reference segment. A line segment cut by a coordinate plane: the ratio is -z1/z2 (for the xy-plane), -x1/x2 or -y1/y2 for the others, with P(x1, y1, z1) and Q(x2, y2, z2).
Edge cases, traps and what examiners test
Frequent items: distance between two points with an integer answer; point on an axis or plane equidistant from two given points; ratio in which a plane or axis divides a segment, where a negative ratio signals external division; fourth vertex of a parallelogram; centroid and median length; collinearity with an unknown coordinate; locus-style statements such as the set of points at a fixed distance from a point (a sphere, which is not asked beyond this description). Traps: swapping m and n in the section formula; adding coordinate differences instead of their squares; forgetting the square root; assuming that a coordinate plane always cuts the segment between the points (it does so only if the two endpoints lie on opposite sides). Check every answer by substituting back: the distances from R to P and to Q must stand in the ratio m : n.
Memory hook
Suppose a drone hovers above a cricket ground. You mark the ground corner as the origin, the boundary rope along the length as the x-axis, along the width as the y-axis, and measure the height straight up as z.
- The drone is 30 m along the length, 40 m along the width and 120 m above the ground, so it is at (30, 40, 120). Its straight distance from the corner is the root of 900 + 1600 + 14400 = 16900, which is 130 m.
- A second drone hovers at (50, 60, 60). The midpoint of the two drones is (40, 50, 90), the plain average of the coordinates.
- The line through the two drones, extended, would touch the ground where z = 0. The ratio is -120 : 60 = -2, which is external division beyond the second drone: 2 x (50, 60, 60) - (30, 40, 120) = (70, 80, 0).
Position is three signed distances, distance between two positions is the root of the three squared differences, and any point along the line joining them is a weighted average of the end positions.
Three numbers fix a point, and the straight distance is Pythagoras applied twice.
Revision card
Try to answer each without looking above.
- Write the distance formula in space and the distance of a point from each axis.
- State the internal and external section formulas and the midpoint.
- How do you find where a coordinate plane cuts the segment joining two points, and what does a negative ratio mean?
- Write the fourth vertex of parallelogram ABCD in terms of A, B and C.
- What does the centroid of a triangle equal, and how does it divide a median?
- How do you test that three points are collinear?
Sources and review
Reviewed Reviewed on 2026-11-20: every number recomputed by code and independently reviewed; textbook section references pending.
- Method: Every number in worked examples, recall checks and notes recomputed by code; claims recomputed independently by a separate verifier run using other numerical methods; textbook section references not yet attached; wording defects found were fixed afterwards and re-linted (code checks re-run) but not re-reviewed by a second run; syllabus scope compared with the NTA JEE Main 2026 syllabus text (by the verifier; see the report)
- Reviewer: independent verifier agent run (not the author)
- Date: 2026-11-20
- Defects found: 4; fixed: 4
- Report: content/reviews/learn7-tdg-2026-11-20.md
Textbook references
- NCERT Mathematics, Class 11 (reprint 2026-27), Chapter 11: Introduction to Three Dimensional Geometry, 11.4 Distance between Two Points (read 2026-11-22)
- NCERT Mathematics, Class 11 (reprint 2026-27), Chapter 11: Introduction to Three Dimensional Geometry, Summary Summary (read 2026-11-22)
- NCERT Mathematics Part 2, Class 12 (reprint 2026-27), Chapter 11: Three Dimensional Geometry, 11.2.1 Direction cosines of a line passing through two points (read from the page image, PDF page 4) (read 2026-11-22)
Sources used
- Syllabus: NTA JEE (Main) 2026 syllabus, Mathematics, Unit 11 (https://jeemain.nta.nic.in/document/syllabus-2026/), imported into syllabus/lines/jee-main/2026.json
- Standard results of analytic geometry in three dimensions (distance and section formula); no textbook section reference attached yet (to be sourced at verification). Content written fresh for this site.
How labels work: see how answers and lessons are verified. Found a mistake? Use Report an error on any question page.