Not every pair of lines in space intersects, and not every pair is parallel either. Some lines simply pass by each other in different planes without ever meeting — these are called skew lines, and finding the shortest distance between them is one of the most important (and most exam-favoured) results in Three Dimensional Geometry. This post explains the concept clearly and works through the full vector and Cartesian formulas.
What Are Skew Lines?
Two lines in three-dimensional space fall into exactly one of three categories:
-
Intersecting lines — they meet at a point, so the shortest distance between them is zero.
-
Parallel lines — they never meet and maintain a constant perpendicular distance.
-
Skew lines — they are neither parallel nor intersecting; they simply lie in different planes and never touch.
A classic way to visualise skew lines is inside a rectangular room: the diagonal line across the ceiling and a diagonal line running down one of the walls are skew — they don’t run in the same direction, and they never cross.
Why “Shortest Distance” Needs Its Own Formula
For skew lines, infinitely many line segments can be drawn connecting a point on one line to a point on the other — but only one of them is perpendicular to both lines simultaneously. That unique segment gives the minimum possible length, and it’s this length we call the shortest distance between the two skew lines.
Vector Form Formula
Let the two skew lines be:
l₁: r = a₁ + λb₁ l₂: r = a₂ + μb₂
The shortest distance d between them is given by:
d = |(b₁ × b₂) · (a₂ − a₁)| / |b₁ × b₂|
Here’s how to apply it step by step:
-
Compute the cross product b₁ × b₂.
-
Compute the vector (a₂ − a₁).
-
Take the dot product of the two results, and its absolute value.
-
Divide by the magnitude of b₁ × b₂.
If b₁ × b₂ = 0 (i.e., the direction vectors are parallel), the lines are not skew — use the parallel-lines distance formula instead.
Cartesian Form Formula
For lines given as (x−x₁)/a₁ = (y−y₁)/b₁ = (z−z₁)/c₁ and (x−x₂)/a₂ = (y−y₂)/b₂ = (z−z₂)/c₂, the shortest distance is:
d = | Δ | / √[(b₁c₂ − b₂c₁)² + (c₁a₂ − c₂a₁)² + (a₁b₂ − a₂b₁)²]
where Δ is the 3×3 determinant with rows (x₂−x₁, y₂−y₁, z₂−z₁), (a₁, b₁, c₁), and (a₂, b₂, c₂). This determinant form is essentially the Cartesian version of the scalar triple product used in the vector formula.
Distance Between Parallel Lines (A Related Case)
If the two lines are parallel (b₁ = b₂ = b), a simpler formula applies:
d = |b × (a₂ − a₁)| / |b|
This is covered in more depth in our dedicated post on parallel lines, linked below.
Solved Example
Example: Find the shortest distance between the lines:
r = î + ĵ + λ(2î − ĵ + k̂) and r = 2î + ĵ − k̂ + μ(3î − 5ĵ + 2k̂)
Solution: a₁ = î + ĵ, b₁ = 2î − ĵ + k̂, a₂ = 2î + ĵ − k̂, b₂ = 3î − 5ĵ + 2k̂
a₂ − a₁ = î − k̂
b₁ × b₂ = determinant of rows (î, ĵ, k̂), (2, −1, 1), (3, −5, 2) = î[(−1)(2) − (1)(−5)] − ĵ[(2)(2) − (1)(3)] + k̂[(2)(−5) − (−1)(3)] = î(−2+5) − ĵ(4−3) + k̂(−10+3) = 3î − ĵ − 7k̂
| b₁ × b₂ | = √(9 + 1 + 49) = √59 |
|---|
(b₁ × b₂) · (a₂ − a₁) = (3)(1) + (−1)(0) + (−7)(−1) = 3 + 0 + 7 = 10
d = |10| / √59 = 10/√59
Key Exam Tips
-
Always double-check whether the two lines are actually skew before applying this formula — if the direction ratios are proportional, use the parallel-lines formula instead.
-
The scalar triple product (b₁ × b₂) · (a₂ − a₁) can also be written directly as a 3×3 determinant, which is often faster in Cartesian-form questions.
-
This topic frequently appears as a 5-mark question in CBSE board exams, so practising the determinant/cross-product computation quickly and accurately is essential.
Study Smarter with ChampionsPrep
Skew-line distance problems reward speed and formula fluency — exactly what repeated, focused practice builds. ChampionsPrep offers AI-powered, chapter-wise practice sessions for CBSE and Maharashtra Board Class XI–XII Commerce students with PrepCoin packs from ₹59, with dedicated coverage for CUET, IPMAT, JIPMAT, NPAT, and SET aspirants too. Practise Three Dimensional Geometry until it clicks — visit app.championsprep.in today.

Shortest Distance Between Two Skew Lines – Class 12 Solved Examples
Frequently Asked Questions
What is the shortest distance between two intersecting lines? +
Zero, since intersecting lines share a common point, there is no positive minimum distance between them.
How do I know if two lines are skew rather than parallel or intersecting? +
Check the direction ratios first; if they are not proportional the lines are not parallel. Then check whether the lines meet by solving their equations simultaneously; if no common point exists, the lines are skew.
What does it mean if the cross product of the direction vectors is zero in the shortest distance formula? +
It means the two direction vectors are parallel, so the lines cannot be skew, and the parallel-lines shortest distance formula should be used instead.
Is the shortest distance formula the same for vector and Cartesian equations? +
Conceptually yes, both use the same scalar triple product idea; the Cartesian version simply expresses this using a determinant instead of vector notation.
Why is the shortest distance segment perpendicular to both lines? +
Because any segment that is not perpendicular to both lines can be shortened further by sliding its endpoints along the two lines, so the minimum-length segment must be perpendicular to both.
AI-powered practice — free to start