Maths doubt, JEE

What are direction cosines and direction ratios of a line?

Answer: Direction cosines , , are the cosines of the angles a line makes with the positive x, y and z axes; they satisfy . Direction ratios , , are any three numbers proportional to them: , and similarly for and .

By Sunil Kumar. Updated 26 November 2026.

Why

For the line through and the direction ratios are , , .

Angle between two lines: . Perpendicular when ; parallel when the ratios are proportional.

If a line makes angles , , with the axes, and .

A line equally inclined to the three axes has direction cosines each.

Exam tip

A line has two sets of direction cosines, and , one for each sense. Direction ratios are not unique; direction cosines are fixed up to this sign.

Previous year questions on this

More maths doubts