The section formula in 3D geometry is an important concept used to determine the coordinates of a point that divides a line segment joining two points in three-dimensional space in a given ratio. It extends the section formula from coordinate geometry to three dimensions and plays a crucial role in vectors, analytical geometry, engineering mathematics, and computer graphics. Understanding the 3D section formula helps students solve problems involving distance, midpoint, ratio division, and spatial coordinates. This topic is frequently covered in Class 12 Mathematics, JEE, CUET, engineering entrance examinations, and higher mathematics courses. In this article, we will explore the definition of the section formula in 3D, derivations, formulas, proofs, solved examples, and practical applications.
This Story also Contains
The section formula in 3D geometry is a mathematical formula used to determine the coordinates of a point that divides a line segment joining two points in three-dimensional space in a given ratio. It is one of the most important concepts in coordinate geometry, vector algebra, and analytical geometry. The 3D section formula helps solve problems involving line segments, ratios, distances, midpoints, and spatial coordinates.
In simple words, the section formula helps find the exact coordinates of a point lying between or outside two points in three-dimensional space.
For example, if a point divides the line joining two points in the ratio $2:3$, the section formula can be used to determine its coordinates directly without plotting the points.
The section formula in three-dimensional geometry is used to find the coordinates of a point that divides the line segment joining two given points in a specified ratio.
Suppose: $A(x_1,y_1,z_1)$ and $B(x_2,y_2,z_2)$ are two points in space.
If a point $P$ divides the line segment $AB$ in the ratio $m:n$, then the coordinates of $P$ can be calculated using the section formula.
Now:
If the point $R(x, y, z)$ divides the line joining the points $P\left(x_1, y_1, z_1\right)$ and $Q\left(x_2, y_2, z_2\right)$ internally in the ratio $m: n$, then the coordinate of $R(x, y, z)$ is given by :
$\mathrm{R}(\mathrm{x}, \mathrm{y} . \mathrm{z})=\left(\frac{m x_2+n x_1}{m+n}, \frac{m y_2+n y_1}{m+n}, \frac{m z_2+n z_1}{m+n}\right)$

If the point $R$ divides $P Q$ externally in the ratio $m$ : $n$, then its coordinates are obtained by replacing $n$ with $(-n)$, so that the coordinates of point R will be
$\mathrm{R}(\mathrm{x}, \mathrm{y}, \mathrm{z})=\left(\frac{m x_2-n x_1}{m-n}, \frac{m y_2-n y_1}{m-n}, \frac{m z_2-n z_1}{m-n}\right)$
NOTE:
The coordinates of the midpoint ( $\mathrm{m}: \mathrm{n}=1: 1$ ) of the line joining the points $P\left(x_1, y_1, z_1\right)$ and $Q\left(x_2, y_2\right.$, $z_2$ ) are as:
$\mathrm{R}(\mathrm{x}, \mathrm{y}, \mathrm{z})=\left(\frac{x_2+x_1}{2}, \frac{y_2+y_1}{2}, \frac{z_2+z_1}{2}\right)$
The coordinates of the point $R$ which divides $PQ$ in the ratio $k : 1$ are obtained by taking $\mathrm{k}=\mathrm{m} / \mathrm{n}$ which are as given below:
$\mathrm{R}(\mathrm{x}, \mathrm{y}, \mathrm{z})=\left(\frac{k x_2+x_1}{1+k}, \frac{k y_2+y_1}{1+k}, \frac{k z_2+z_1}{1+k}\right)$
The coordinates of the centroid of a triangle $R$ with vertices $A\left(x_1, y_1, z_1\right) B\left(x_2, y_2, z_2\right)$, and $C\left(x_3, y_3, z_3\right)$ are
$\mathrm{R}(\mathrm{x}, \mathrm{y}, \mathrm{z})=\left(\frac{x_1+x_2+x_3}{3}, \frac{y_1+y_2+y_3}{3}, \frac{z_1+z_2+z_3}{3}\right)$
The section formula plays a significant role in coordinate geometry because it simplifies calculations involving points, distances, and ratios.
The concept of dividing a line segment in a given ratio appears in several real-world situations.
| Field | Application |
|---|---|
| Engineering | Structural modelling and design |
| Architecture | Positioning and measurement |
| Computer Graphics | Object rendering and animation |
| Navigation | Route and coordinate tracking |
| Physics | Motion and vector calculations |
Before learning the section formula, it is important to understand the basics of three-dimensional geometry.
A three-dimensional coordinate system consists of three mutually perpendicular axes:
These axes intersect at the origin whose coordinates are $(0,0,0)$.
Unlike two-dimensional geometry, which uses only two coordinates, three-dimensional geometry uses three coordinates to represent a point.
Any point in space is represented by an ordered triplet $(x,y,z)$.
Here:
For example, the point $(3,4,5)$ represents a point located 3 units along the X-axis, 4 units along the Y-axis, and 5 units along the Z-axis.
The distance between two points $A(x_1,y_1,z_1)$ and $B(x_2,y_2,z_2)$ is given by the formula $d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}$.
This formula is an extension of the Pythagorean theorem to three dimensions.
A point can divide a line segment in two different ways:
The section formula is used to find the coordinates of the dividing point in both cases.
The section formula provides a direct method for calculating the coordinates of a point dividing a line segment in a given ratio.
Let $A(x_1,y_1,z_1)$ and $B(x_2,y_2,z_2)$ be two points. If point $P$ divides the line segment internally in the ratio $m:n$, then the coordinates of $P$ are given by $\left(\frac{mx_2+nx_1}{m+n},\frac{my_2+ny_1}{m+n},\frac{mz_2+nz_1}{m+n}\right)$.
This is the most commonly used form of the section formula.
If point $P$ divides the line segment externally in the ratio $m:n$, then its coordinates are given by $\left(\frac{mx_2-nx_1}{m-n},\frac{my_2-ny_1}{m-n},\frac{mz_2-nz_1}{m-n}\right)$.
This formula is used when the dividing point lies outside the line segment.
The midpoint occurs when the ratio is $1:1$.
Substituting $m=n=1$ in the internal division formula gives the midpoint formula:
$M\left(\frac{x_1+x_2}{2},\frac{y_1+y_2}{2},\frac{z_1+z_2}{2}\right)$
Thus, the midpoint formula is a special case of the section formula.
The ratio determines the position of the dividing point.
For ratio $1:1$, the point is the midpoint of the segment.
For ratio $2:1$, the point lies closer to the second endpoint.
For ratio $1:3$, the point lies closer to the first endpoint.
The larger the ratio associated with an endpoint, the closer the dividing point lies to that endpoint.
The section formula is derived using the principle of proportional division of coordinates.
Let $A(x_1,y_1,z_1)$ and $B(x_2,y_2,z_2)$ be two points and let point $P(x,y,z)$ divide the line segment internally in the ratio $m:n$.
Then,
$\frac{AP}{PB}=\frac{m}{n}$
Using proportional division of coordinates,
$x=\frac{mx_2+nx_1}{m+n}$
$y=\frac{my_2+ny_1}{m+n}$
$z=\frac{mz_2+nz_1}{m+n}$
Therefore, the coordinates of the dividing point become $\left(\frac{mx_2+nx_1}{m+n},\frac{my_2+ny_1}{m+n},\frac{mz_2+nz_1}{m+n}\right)$.
Suppose point $P(x,y,z)$ divides the line joining $A(x_1,y_1,z_1)$ and $B(x_2,y_2,z_2)$ externally in the ratio $m:n$.
Applying proportional division,
$x=\frac{mx_2-nx_1}{m-n}$
$y=\frac{my_2-ny_1}{m-n}$
$z=\frac{mz_2-nz_1}{m-n}$
Hence, the coordinates of the dividing point are $\left(\frac{mx_2-nx_1}{m-n},\frac{my_2-ny_1}{m-n},\frac{mz_2-nz_1}{m-n}\right)$.
The section formula can be viewed as a weighted average of the coordinates of the endpoints.
The ratio acts as a weight and determines how close the dividing point lies to either endpoint.
The larger the weight associated with a point, the closer the dividing point lies to that point.
The section formula can be applied systematically using a few simple steps.
Write the coordinates of the two endpoints.
Identify the ratio in which the point divides the line segment.
Determine whether the division is internal or external.
Choose the appropriate section formula.
Substitute the coordinates and ratio into the formula.
Simplify the expression to obtain the required coordinates.
Suppose the points are $A(1,2,3)$ and $B(4,5,6)$, and the point divides the line segment internally in the ratio $1:2$.
Using the internal section formula:
$x=\frac{1(4)+2(1)}{3}=2$
$y=\frac{1(5)+2(2)}{3}=3$
$z=\frac{1(6)+2(3)}{3}=4$
Therefore, the coordinates of the dividing point are $(2,3,4)$.
Find the midpoint of $A(2,4,6)$ and $B(8,10,12)$.
Using the midpoint formula:
$M=\left(\frac{2+8}{2},\frac{4+10}{2},\frac{6+12}{2}\right)$
$M=(5,7,9)$
Thus, the midpoint is $(5,7,9)$.
The section formula has numerous practical applications in mathematics and applied sciences.
The section formula is used for:
Engineers use the section formula for:
Computer graphics uses the section formula for:
The section formula is useful in:
Understanding the section formula in 3D geometry provides a strong foundation for coordinate geometry, vector algebra, engineering mathematics, computer graphics, and advanced analytical geometry.
A strong understanding of three-dimensional geometry and coordinate geometry is essential for mastering the section formula in 3D. The following books provide detailed explanations, derivations, and exam-oriented problems.
| Book Name | Best For | Why It Helps |
|---|---|---|
| NCERT Mathematics Class 12 | Board Exams | Covers 3D geometry fundamentals clearly |
| Mathematics for IIT-JEE – R.D. Sharma | JEE Preparation | Extensive coordinate geometry questions |
| Objective Mathematics – R.D. Sharma | Competitive Exams | Conceptual and application-based problems |
| Coordinate Geometry – S.L. Loney | Advanced Learning | Detailed theory and proofs |
| Arihant Skills in Mathematics Coordinate Geometry | Entrance Exams | Exam-focused practice questions |
Understanding a few key shortcuts can help solve section formula questions quickly without lengthy calculations.
| Trick | Explanation |
|---|---|
| Memorize the Internal Division Formula | Most exam questions use internal division |
| Midpoint is a Special Case | Use ratio $1:1$ |
| Check Ratio Carefully | Interchanging ratios gives incorrect answers |
| Apply Formula Coordinate-Wise | Calculate x, y, and z separately |
| Use Symmetry | Equal ratios simplify calculations |
| Verify Coordinates | Point should lie between endpoints for internal division |
| Simplify Fractions Early | Reduces calculation errors |
This formula table summarizes the most important formulas related to the section formula in three-dimensional geometry.
| Concept | Formula |
|---|---|
| Internal Division | $\left(\frac{mx_2+nx_1}{m+n},\frac{my_2+ny_1}{m+n},\frac{mz_2+nz_1}{m+n}\right)$ |
| External Division | $\left(\frac{mx_2-nx_1}{m-n},\frac{my_2-ny_1}{m-n},\frac{mz_2-nz_1}{m-n}\right)$ |
| Midpoint Formula | $\left(\frac{x_1+x_2}{2},\frac{y_1+y_2}{2},\frac{z_1+z_2}{2}\right)$ |
| Distance Formula in 3D | $\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}$ |
Example 1: Let the position vectors of two points $P$ and $Q$ be $3\hat{i}-\hat{j}+2\hat{k}$ and $\hat{i}+2\hat{j}-4\hat{k}$, respectively. Let $R$ and $S$ be two points such that the direction ratios of lines $PR$ and $QS$ are $(4,-1,2)$ and $(-2,1,-2)$, respectively. Let lines $PR$ and $QS$ intersect at $T$. If the vector $\overrightarrow{TA}$ is perpendicular to both $\overrightarrow{PR}$ and $\overrightarrow{QS}$ and the length of $\overrightarrow{TA}$ is $\sqrt{5}$ units, then find the modulus of the position vector of $A$.
Solution:
$P=(3,-1,2)$
$Q=(1,2,-4)$
$\overrightarrow{PR}\parallel(4\hat{i}-\hat{j}+2\hat{k})$
$\overrightarrow{QS}\parallel(-2\hat{i}+\hat{j}-2\hat{k})$
The direction ratios of the normal to the plane containing $P$, $T$, and $Q$ are proportional to
$\frac{l}{0}=\frac{m}{4}=\frac{n}{2}$
For point $T$,
$\frac{x-3}{4}=\frac{y+1}{-1}=\frac{z-2}{2}=\lambda$
and
$\frac{x-1}{-2}=\frac{y-2}{1}=\frac{z+4}{-2}=\mu$
Therefore,
$(4\lambda+3,,-\lambda-1,,2\lambda+2)\equiv(-2\mu+1,,\mu+2,,-2\mu-4)$
From the coordinates,
$4\lambda+3=-2\mu+1$
$\Rightarrow 2\lambda+\mu=-1$
and
$-\lambda-1=\mu+2$
$\Rightarrow \lambda+\mu=-3$
Solving,
$\lambda=2,\quad \mu=-5$
Hence,
$T=(11,-3,6)$
Now,
$\overrightarrow{OA}=(11\hat{i}-3\hat{j}+6\hat{k})\pm\left(\frac{2\hat{j}+\hat{k}}{\sqrt{5}}\right)\sqrt{5}$
$\overrightarrow{OA}=(11\hat{i}-3\hat{j}+6\hat{k})\pm(2\hat{j}+\hat{k})$
Thus,
$\overrightarrow{OA}=11\hat{i}-\hat{j}+7\hat{k}$
or
$\overrightarrow{OA}=11\hat{i}-5\hat{j}+5\hat{k}$
Therefore,
$|\overrightarrow{OA}|=\sqrt{11^2+(-1)^2+7^2}$
$=\sqrt{121+1+49}$
$=\sqrt{171}$
Hence, the answer is $\sqrt{171}$.
Example 2: If a unit vector $\vec{a}$ makes angles $\frac{\pi}{3}$ with $\hat{i}$, $\frac{\pi}{4}$ with $\hat{j}$ and $\theta \in (0,\pi)$ with $\hat{k}$, then a value of $\theta$ is:
[JEE Main 2019]
Solution:
For a unit vector, the direction cosines satisfy:
$l=\cos\alpha,\quad m=\cos\beta,\quad n=\cos\gamma$
and
$\cos^2\alpha+\cos^2\beta+\cos^2\gamma=1$

Substituting the given values:
$\cos^2\frac{\pi}{3}+\cos^2\frac{\pi}{4}+\cos^2\theta=1$
$\left(\frac{1}{2}\right)^2+\left(\frac{1}{\sqrt{2}}\right)^2+\cos^2\theta=1$
$\frac{1}{4}+\frac{1}{2}+\cos^2\theta=1$
$\cos^2\theta=\frac{1}{4}$
$\cos\theta=\pm\frac{1}{2}$
Therefore,
$\theta=\frac{\pi}{3}$
or
$\theta=\pi-\frac{\pi}{3}=\frac{2\pi}{3}$
Hence, the answer is $\frac{\pi}{3}$ or $\frac{2\pi}{3}$.
Example 3: Let $A(3,0,-1)$, $B(2,10,6)$ and $C(1,2,1)$ be the vertices of a triangle and $M$ be the midpoint of $AC$. If $G$ divides $BM$ in the ratio $2:1$, then $\cos(\angle GOA)$ (where $O$ is the origin) is equal to:
[JEE Main 2019]
Solution:
Since $M$ is the midpoint of $AC$ and $G$ divides $BM$ in the ratio $2:1$, point $G$ is the centroid of triangle $ABC$.
The coordinates of the centroid are:
$G=\left(\frac{x_1+x_2+x_3}{3},\frac{y_1+y_2+y_3}{3},\frac{z_1+z_2+z_3}{3}\right)$


Substituting the coordinates:
$G=\left(\frac{3+2+1}{3},\frac{0+10+2}{3},\frac{-1+6+1}{3}\right)$
$G=(2,4,2)$
Position vectors:
$\overrightarrow{OA}=3\hat{i}+0\hat{j}-\hat{k}$
$\overrightarrow{OG}=2\hat{i}+4\hat{j}+2\hat{k}$
Using the angle formula:
$\cos\theta=\frac{\overrightarrow{OG}\cdot\overrightarrow{OA}}{|\overrightarrow{OG}|,|\overrightarrow{OA}|}$
$\cos(\angle GOA)=\frac{(2)(3)+(4)(0)+(2)(-1)}{\sqrt{2^2+4^2+2^2}\sqrt{3^2+0^2+(-1)^2}}$
$=\frac{6-2}{\sqrt{24}\sqrt{10}}$
$=\frac{4}{2\sqrt{6}\sqrt{10}}$
$=\frac{1}{\sqrt{15}}$
Hence, the answer is $\frac{1}{\sqrt{15}}$
Example 4: An angle between the lines whose direction cosines are given by the equations $l+3m+5n=0$ and $5lm-2mn+6nl=0$ is:
[JEE Main 2018]
Solution:
The direction cosines satisfy:
$l^2+m^2+n^2=1$
Given:
$l+3m+5n=0$

$\Rightarrow l=-(3m+5n)$
Substituting into
$5lm-2mn+6nl=0$
we get:
$5(-(3m+5n))m-2mn+6n(-(3m+5n))=0$
$-15m^2-25mn-2mn-18mn-30n^2=0$
$15m^2+45mn+30n^2=0$
$m^2+3mn+2n^2=0$
$(m+n)(m+2n)=0$
Therefore,
$m=-n$
or
$m=-2n$
Taking $m=-n$,
$l=-(3(-n)+5n)=-2n$
Using
$l^2+m^2+n^2=1$
$(-2n)^2+(-n)^2+n^2=1$
$6n^2=1$
$n=\pm\frac{1}{\sqrt6}$
One set of direction cosines becomes
$\left(\frac{2}{\sqrt6},\frac{1}{\sqrt6},-\frac{1}{\sqrt6}\right)$
and the other becomes
$\left(\frac{1}{\sqrt6},-\frac{2}{\sqrt6},\frac{1}{\sqrt6}\right)$
Using the angle formula:
$\cos\theta=\frac{2}{6}-\frac{2}{6}-\frac{1}{6}$
$\cos\theta=-\frac{1}{6}$
Hence, the acute angle between the lines is
$\theta=\cos^{-1}\left(\frac{1}{6}\right)$
Hence, the answer is $\cos^{-1}\left(\frac{1}{6}\right)$.
Example 5: If the position vectors of the vertices $A$, $B$, and $C$ of a triangle $ABC$ are respectively $4\hat{i}+7\hat{j}+8\hat{k}$, $2\hat{i}+3\hat{j}+4\hat{k}$ and $2\hat{i}+5\hat{j}+7\hat{k}$, then find the position vector of the point where the bisector of $\angle A$ meets $BC$.
[JEE Main 2018]
Solution:
Let the angle bisector of $\angle A$ meet side $BC$ at point $P(x,y,z)$.
Using the Angle Bisector Theorem,
$\frac{BP}{PC}=\frac{AB}{AC}$
Calculating lengths:
$AB=\sqrt{(4-2)^2+(7-3)^2+(8-4)^2}$
$=\sqrt{4+16+16}$
$=6$
$AC=\sqrt{(4-2)^2+(7-5)^2+(8-7)^2}$
$=\sqrt{4+4+1}$
$=3$
Therefore,
$AB:AC=6:3=2:1$
Hence,
$BP:PC=2:1$
Point $B=(2,3,4)$ and point $C=(2,5,7)$.
Using the section formula,
$P=\left(\frac{2(2)+1(2)}{3},\frac{2(5)+1(3)}{3},\frac{2(7)+1(4)}{3}\right)$
$=\left(\frac{6}{3},\frac{13}{3},\frac{18}{3}\right)$
$=\left(2,\frac{13}{3},6\right)$
Therefore, the position vector of $P$ is
$\frac{1}{3}(6\hat{i}+13\hat{j}+18\hat{k})$
Hence, the answer is $\frac{1}{3}(6\hat{i}+13\hat{j}+18\hat{k})$.
Understanding the section formula in 3D becomes much easier when studied alongside other coordinate geometry concepts such as distance formula, midpoint formula, direction ratios, vectors, and three-dimensional geometry. Exploring these related topics helps build a strong foundation for solving advanced geometry and analytical mathematics problems in board exams and competitive examinations.
Frequently Asked Questions (FAQs)
If a directed line $L$, passing through the origin, makes angles $\alpha, \beta$, and $\gamma_{\text {with }}$ the $\mathrm{x}-\mathrm{y}$ - and $z$-axes, respectively, called direction angles, then the cosines of these angles, namely, $\cos (\alpha), \cos \left({ }^\beta\right) \cos (\gamma)$, are called the direction cosines of the directed line $L$.
Direction Ratios are any set of three numbers that are proportional to the Direction cosines. If $\mathrm{l}, \mathrm{m}, \mathrm{n}$ are DCs of a vector then $\lambda l, \lambda m, \lambda n$ are DRs of this vector, where a can take any real value.
A vector has only one set of direction cosines, but infinite sets of direction ratios.
A given line in space can be extended in two opposite directions, and so it has two sets of direction cosines. In order to have a unique set of direction cosines for a given line in space, we must take the given line as a directed line.
The point $R(x, y, z)$ divides the line joining the points $P\left(x_1, y_1, z_1\right)$ and $Q\left(x_2, y_2, z_2\right)$ internally in the ratio $m: n$, then the coordinate of $R(x, y, z)$ is given by
$
\mathrm{R}(\mathrm{x}, \mathrm{y} . \mathrm{z})=\left(\frac{m x_2+n x_1}{m+n}, \frac{m y_2+n y_1}{m+n}, \frac{m z_2+n z_1}{m+n}\right)
$