Skip to content
MathsCBSE Class 12 · Three Dimensional Geometry

Shortest Distance Between Two Lines: Skew, Parallel and Intersecting (Class 12)

Updated 15 October 2026 · Fact-checked

For lines r = a₁ + λb₁ and r = a₂ + μb₂ that are not parallel, the shortest distance is |(a₂ − a₁) · (b₁ × b₂)| / |b₁ × b₂|. If it is zero, the lines intersect; otherwise they are skew. For parallel lines with direction b, it is |(a₂ − a₁) × b| / |b|.

Understand Shortest Distance Between Two Lines

Two lines in space can be parallel, intersecting, or skew (neither parallel nor meeting, like a road and an overpass going in different directions). The shortest distance between two lines is the length of the segment perpendicular to both.

Skew (non-parallel) lines. For and with , the common perpendicular has direction . The shortest distance is the projection of (any segment joining the lines) on that direction:
.
In Cartesian form, with points , and direction ratios , , the numerator is the determinant
.

Intersecting lines. If , the (non-parallel) lines meet. To find the point, equate the general points , solve two of the component equations for and , and check the third. If the third fails, the lines do not meet (and would not have been 0).

Parallel lines. If (take the common direction ), the cross product is zero and the formula above breaks down. Use
,
which is the distance from any point of one line to the other line. If this is 0, the lines coincide.

Order of work. Always check the directions first: parallel or not? This decides the formula. Then compute , the cross product and its magnitude, and the dot product. Keep the answer as a surd fraction like (rationalising is optional).

Shortest distance is one of the most-asked 5-mark 3D questions: it appeared in the 2023, 2024, 2025 and 2026 board papers and in the sample papers (NCERT Section 11.5).

Shortest Distance Between Two Lines: formulas to remember

Skew lines (vector form)
Valid when and are not parallel.
Skew lines (Cartesian numerator)
Divide its absolute value by .
Parallel lines
is the common direction.
Intersection test
For non-parallel lines, they then intersect.
Cross product magnitude
Compute the components carefully.
Meeting point
Solve two components, check the third.

How to solve Shortest Distance Between Two Lines questions

The 5-mark routine for shortest-distance and intersection questions.

  1. 1Write each line in vector form; read (clean the Cartesian forms first).
  2. 2Check whether and are parallel (proportional components).
  3. 3If not parallel: find , and ; compute .
  4. 4If parallel: compute .
  5. 5If for non-parallel lines, find the intersection by equating general points.
  6. 6Conclude: 'the lines are skew', 'intersect at ...' or 'are parallel at distance ...'.

Shortest Distance Between Two Lines in real life

Each concept, met in an everyday situation. Read the situation, try the problem, then check the solution. The one-line hook is what to remember.

Clearance between skew lines

Suppose a straight road runs along the x-axis at ground level, and a straight flyover passes above it along the line through in the direction (in metres).

Find the shortest distance between the road and the flyover (the vertical clearance).

Try it first, then show the solutionSolution
  1. , ; , .
  2. , magnitude 1.
  3. m.

Answer: 6 m

Memory hook: The common perpendicular of skew lines is the shortest gap, like the clearance under a flyover.

Do two paths meet?

Imagine two drones moving along and (in metres).

Do their paths cross? If so, where?

Try it first, then show the solutionSolution
  1. ; .
  2. Dot product , so the shortest distance is 0 and the paths intersect.
  3. , , give : the point .

Answer: Yes; the paths cross at (a collision is possible if both drones arrive there together).

Memory hook: Zero shortest distance means the paths meet.

Tricks to remember Shortest Distance Between Two Lines

Short memory aids. Say each one aloud once, then use it on a question the same day.

  • Join, cross, dot, divide

    Join the points (), cross the directions, dot the two, divide by the cross's length.

    Use it when: Skew-line formula.

  • Parallel? Cross the join with b

    For parallel lines, the cross product of directions is zero; use instead.

    Use it when: Choosing the right formula.

  • Zero means meet

    Non-parallel lines with shortest distance 0 intersect; find the point by equating general points.

    Use it when: Intersection questions.

  • Two equations, then check the third

    Solve for λ and μ from two components and verify with the third.

    Use it when: Avoiding false intersection points.

Shortest Distance Between Two Lines: solved examples

Ordered from board level to HOTS. Try each one before you open the solution.

Example 1: Shortest distance between skew lines · 3 marks · Short answerBoard level

Find the shortest distance between and .

Try it first, then show the solutionSolution
  1. . (½ mark)
  2. , magnitude . (1 mark)
  3. . (1 mark)
  4. units. (½ mark)

Answer:

Example 2: Distance between parallel lines · 3 marks · Short answerBoard level

Find the distance between the parallel lines and .

Try it first, then show the solutionSolution
  1. Common direction , ; . (1 mark)
  2. , magnitude . (1 mark)
  3. units. (1 mark)

Answer:

Example 3: Cartesian lines that are skew · 5 marks · Long answerHarder board level

Find the shortest distance between the lines and .

Try it first, then show the solutionSolution
  1. , ; , . Directions are not proportional, so the lines are not parallel. (1 mark)
  2. . (½ mark)
  3. , magnitude . (1½ marks)
  4. Dot product . (1 mark)
  5. units; non-zero, so the lines are skew. (1 mark)

Answer: ; the lines are skew.

Example 4: Lines that intersect · 5 marks · Long answerHarder board level

Show that the lines and intersect, and find the point of intersection.

Try it first, then show the solutionSolution
  1. . (1 mark)
  2. ; dot product . (1 mark)
  3. The lines are not parallel and the shortest distance is 0, so they intersect. (½ mark)
  4. Equate: , , . The third gives , then ; the second: ✓. (1½ marks)
  5. Point: . (1 mark)

Answer: They intersect at .

Example 5: Finding k so that lines meet · 5 marks · Long answerHOTS / competency

Find so that the lines and intersect, and find their point of intersection.

Try it first, then show the solutionSolution
  1. , ; , ; . (1½ marks)
  2. ; dot product . (1 mark)
  3. Intersect when : . (½ mark)
  4. Equate general points: , , . From the first and third: , ; second: ✓. (1½ marks)
  5. Point: . (½ mark)

Answer: ; point

Example 6: Case study: two flight paths · 4 marks · Case-basedHOTS / competency

Suppose two small aircraft fly along straight paths and (in km). Air-traffic rules need paths to stay at least 1 km apart.
(i) Show that the paths are not parallel. (1 mark)
(ii) Find . (1 mark)
(iii) Find the shortest distance between the paths. (1 mark)
(iv) Do the paths satisfy the rule? (1 mark)

Try it first, then show the solutionSolution
  1. (i) Directions and are not proportional. (1 mark)
  2. (ii) , magnitude . (1 mark)
  3. (iii) ; dot product ; km. (1 mark)
  4. (iv) , so yes, the paths are always at least 1.73 km apart. (1 mark)

Answer: (ii) (iii) km (iv) yes.

Where students lose marks in Shortest Distance Between Two Lines

The slips examiners see most often, and what to write instead.

  • Mistake: Using the skew formula for parallel lines

    For parallel lines , so the formula divides by zero.

    Wrong working

    Parallel lines: , 'distance 0'.

    Right working

    .

    Do this: Check for parallel directions first.

    Usually costs: The whole question.

  • Mistake: Cross-product sign errors

    The middle component of the cross product carries a minus sign.

    Wrong working

    .

    Right working

    (since ).

    Do this: Check that is perpendicular to both and .

    Usually costs: The numerator, and the answer.

  • Mistake: Reading points from unclean Cartesian forms

    means the point has and the ratio is .

    Wrong working

    : point .

    Right working

    Point , direction .

    Do this: Write each numerator as first.

    Usually costs: Most marks.

  • Mistake: Not checking the third equation for intersection

    Two equations always give some λ and μ; only the third confirms the meeting.

    Wrong working

    Solved two equations, declared the point.

    Right working

    Substitute into the third equation; if it fails, the lines do not meet.

    Do this: Always write 'check in the third equation'.

    Usually costs: 1 mark.

Exam tips

  • Shortest-distance questions were 5-mark questions in the 2023, 2024 and 2026 board papers (3-mark questions in 2025); lay out , , its magnitude and the dot product on separate lines.
  • State whether the lines are skew, parallel or intersecting in your conclusion.
  • Keep the absolute value in the formula; a negative dot product still gives a positive distance.
  • If your distance is 0, find the intersection point; examiners often ask for it next.
  • Leave answers like ; rationalising is not required.

Practice questions on Shortest Distance Between Two Lines

Write each answer on paper first. Open the hint only if you are stuck, and the answer only when you have finished.

  1. Q1 · 1 mark · MCQBoard level

    The shortest distance between two intersecting lines is:
    (a) 1
    (b) 0
    (c) undefined
    (d) the distance between their given points

    Hint

    They share a point.

    Answer

    (b) 0.

  2. Q2 · 2 marks · Very short answerBoard level

    Find the shortest distance between the x-axis and the line through parallel to the y-axis.

    Hint

    .

    Answer

    , : .

  3. Q3 · 3 marks · Short answerBoard level

    Find the distance between the parallel lines and .

    Hint

    .

    Answer

    , magnitude 3; .

  4. Q4 · 3 marks · Short answerHarder board level

    Find the shortest distance between and . What does your answer tell you?

    Hint

    Compute the dot product carefully.

    Answer

    ; ; dot product . So : the lines intersect, at (λ = 1, μ = 1).

  5. Q5 · 1 mark · Assertion-reasonHarder board level

    Assertion (A): The lines and are the same line.
    Reason (R): Two parallel lines that have a common point coincide.
    (a) Both A and R are true and R is the correct explanation of A.
    (b) Both A and R are true but R is not the correct explanation of A.
    (c) A is true but R is false.
    (d) A is false but R is true.

    Hint

    Is on the first line?

    Answer

    (a). The directions and are parallel, and lies on both lines, so by R they coincide.

  6. Q6 · 5 marks · Long answerHarder board level

    Find the shortest distance between and .

    Hint

    .

    Answer

    ; , magnitude ; dot product ; .

  7. Q7 · 5 marks · Long answerHOTS / competency

    Find so that the lines and intersect, and find the point of intersection.

    Hint

    .

    Answer

    ; dot with : . Equating: , , ; the first two give , , and the third checks (). Point: .

Test your recall

Answer in your head or on paper first, then open the card. Pulling an answer out of memory makes it stick far better than re-reading.

  1. 1.Shortest distance formula for skew lines?Show answer

    .

  2. 2.Formula for parallel lines?Show answer

    .

  3. 3.What are skew lines?Show answer

    Lines that are neither parallel nor intersecting.

  4. 4.What does a shortest distance of 0 mean for non-parallel lines?Show answer

    They intersect.

  5. 5.Direction of the common perpendicular?Show answer

    .

  6. 6.Shortest distance between the x-axis and the line through parallel to the x-axis?Show answer

    5 units (they are parallel lines).

Shortest Distance Between Two Lines: frequently asked questions

What are skew lines?

Lines in space that are not parallel and do not intersect. They lie in different planes, like a road and a flyover crossing it at an angle.

How do I know which shortest-distance formula to use?

First compare the direction ratios. If they are proportional, the lines are parallel and you use |(a₂ − a₁) × b|/|b|. Otherwise use the skew-line formula with b₁ × b₂.

How do I find where two lines intersect?

Equate their general points, a₁ + λb₁ = a₂ + μb₂, solve two of the component equations for λ and μ, and check that the third equation is satisfied. Substitute λ back to get the point.

Which NCERT section covers shortest distance?

Section 11.5 (Shortest Distance between Two Lines), including 11.5.1 for skew lines and 11.5.2 for parallel lines, in Chapter 11 of NCERT Mathematics Part II for Class 12.

Is the Cartesian determinant formula needed?

It is the same calculation written as a determinant. You may use either the vector form or the determinant form; both earn full marks if worked correctly.