Finding Direction Cosines
What they are
The direction cosines of a line are the cosines of the angles it makes with the -, - and -axes. Any multiples of them are direction ratios; divide by the magnitude to get back to cosines:
Worked example: a coordinate axis
The -axis has no or component, so its direction cosines are .
Worked example: a line through two points
The line joining and has direction ratios and magnitude , so its direction cosines are .
Worked example: from direction ratios
For direction ratios , the magnitude is , so the direction cosines are . Check: .
Worked example: from given angles
A line makes , and with the axes, so its direction cosines are .
If a line makes with the -axis and with the -axis, the third cosine comes from the identity: , so and the angle with the -axis is or .
Worked example: the angle between two lines
For lines with direction cosines and :
Direction cosines and unit vectors
The direction cosines of a line are exactly the components of a unit vector along it: has length . So finding direction cosines is the same calculation as normalising a vector, and the identity is just the statement that this vector has length 1.
Common mistakes
- Using direction ratios as cosines. Divide by the magnitude first.
- Accepting impossible angles. Angles of , and can't all describe one line: .
- Forgetting the sign choice. and describe the same line in opposite directions.
Where this comes up in exams
The 2025-26 CBSE Class XII syllabus lists direction cosines and direction ratios of a line joining two points and the angle between two lines. JEE Main 2026 lists direction ratios and direction cosines and the angle between two intersecting lines, and JEE Advanced 2026 lists direction cosines and direction ratios.
Checked against CBSE Mathematics curriculum, Classes XI-XII (2025-26), JEE (Main) 2026 syllabus (NTA) and JEE (Advanced) 2026 syllabus. Syllabi can change from year to year, so confirm with the latest official notification for your exam.
- Fit it into your week with the free timetable generator.
- Mark it off as you revise in the syllabus tracker.
- See how long you have left: JEE Main 2027 (Session 1) countdown and JEE Advanced 2027 countdown.