Cosine rule calculator with working
Free TutorAura tool · no sign-up · Updated
The cosine rule works in any triangle. Use it to find a side when you know the other two sides and the angle between them, or to find an angle when you know all three sides:
Side is opposite angle ; sides and are the two that meet at .
Worked examples
- Missing side: , , . , so .
- Missing angle: , , . , so .
Order of operations matters
Work out as one product and subtract it from . A common error is calculating , which gives a completely different number. Type it carefully into your calculator, or use brackets.
Obtuse angles
If comes out negative, the angle is obtuse (more than 90°): handles that automatically. Unlike the sine rule, the cosine rule never gives an ambiguous answer, so it's the safer choice for finding the largest angle of a triangle.
Area of a triangle
Once you have two sides and the angle between them, the area is . For the first example, the area is square units.
Common mistakes
- Using an angle that isn't between the two known sides.
- Forgetting to square-root at the end when finding a side.
- Calculator in radians.
Practise with our cosine rule questions, and use the sine rule calculator when you have a side-angle pair.
Exam tips
- Label the triangle so the angle you know (or want) is .
- Write with the numbers in, then the value of , then .
- The cosine rule is Higher tier at GCSE and Extended tier at IGCSE.
Worked example: a triangle of paths
Two paths leave a gate at an angle of 110°. One is 300 m long and the other 450 m. How far apart are their ends?
, so m.
Because the angle is obtuse, is negative, so the last term is added. That's why the distance is longer than you might expect: an obtuse angle pushes the ends further apart.
Choosing the rule: if you can see a side with its opposite angle, use the sine rule; if the known angle is between the two known sides, or you know all three sides, use the cosine rule.
Frequently asked questions
What is the cosine rule?
a² = b² + c² − 2bc cos A, linking three sides of a triangle and the angle opposite one of them.
When do you use the cosine rule?
When you know two sides and the angle between them (to find the third side), or all three sides (to find an angle).
How do you find an angle with the cosine rule?
Rearrange to cos A = (b² + c² − a²) ÷ 2bc, then use cos⁻¹.
Is anything I type sent to a server?
No. The calculation runs in your browser and nothing is stored.
Sources
- GCSE mathematics: subject content and assessment objectives. Department for Education.
- Cambridge IGCSE Mathematics 0580 syllabus. Cambridge International.
Keep reading
Cosine rule questions and answers
8 GCSE and IGCSE questions with worked answers, checked as you type.
Sine rule calculator with working
Missing sides and angles in any triangle with the sine rule, including the ambiguous case.
Trigonometry calculator for right-angled triangles (SOHCAHTOA)
Missing sides and angles in right-angled triangles, choosing SOH, CAH or TOA for you.
Trigonometry (SOH CAH TOA) questions and answers
8 GCSE and IGCSE questions with worked answers, checked as you type.