Give every value except the one you want, or write the letter with a question mark, for example b=5, c=8, A=60 or a=7, b=5, c=8. Every answer is checked by putting it back into the formula.
a 2 = b 2 + c 2 − 2 b c cos A ∘
a : side opposite angle A b : second side c : third side A : angle opposite side a (° )
On this page
Before you start
This page is easier if you are comfortable with:
What Cosine rule means
The cosine rule works for any triangle, not just right-angled ones. When A = 9 0 ∘ , cos A = 0 and it becomes Pythagoras’ theorem.
Use it when you know two sides and the angle between them (SAS), or all three sides (SSS).
Here a is the side opposite angle A , and b and c are the other two sides. Rearranged it gives the cosine rule for an angle , it pairs with the sine rule , and the area follows from the area of a triangle .
This page is part of Sine rule and cosine rule in Trigonometry . Topics that work alongside it: Cosine rule for an angle , Sine rule , Area of a triangle (½ab sin C) , Finding a side with trigonometry , Cosine in a right-angled triangle and Finding an angle with inverse trigonometry .
What is it used for? The cosine rule, a² = b² + c² − 2bc cos A, finds a side of any triangle when you know two sides and the angle between them.
Finding the third side of a triangle from two sides and the included angle. Navigation and surveying problems. Triangles that are not right-angled.
How to use the cosine rule formula
Label the triangle: a is opposite A . Substitute the known values. Calculate a 2 , then take the square root. To find an angle, rearrange to make cos A the subject.
Diagram B C A The side a is opposite angle A. The rule is a generalisation of Pythagoras: if A = 90°, cos A = 0.
Worked examples
Each example below was worked out by the solver on this page and checked by substituting the answer back into the formula.
Example 1: find a side (SAS) In a triangle, b = 5 cm, c = 8 cm and the angle between them is 60°. Find a .
Try this in the solver: b=5, c=8, A=60
Cosine rule Answer checked
The formula
Cosine rule. In this formula a is the side opposite angle A, b is the second side, c is the third side, A is the angle opposite side a.
a 2 = b 2 + c 2 − 2 b c cos A ∘
What we know and what we want
We know b = 5 , c = 8 , A = 60 and we want to find a , the side opposite angle A.
Substitute the numbers
Calculate
a = 7
Check by substituting back
Put all the values back into the original formula: both sides should match.
7 2 = 5 2 + 8 2 − 258 cos 6 0 ∘ ✓
Example 2: find an angle (SSS) A triangle has sides 7 cm, 5 cm and 8 cm. Find the angle opposite the 7 cm side.
Try this in the solver: a=7, b=5, c=8
Cosine rule Answer checked
Answer
A = 60 ° A=60\ \text{°} A = 60 ° The formula
Cosine rule. In this formula a is the side opposite angle A, b is the second side, c is the third side, A is the angle opposite side a.
a 2 = b 2 + c 2 − 2 b c cos A ∘
What we know and what we want
We know a = 7 , b = 5 , c = 8 and we want to find A , the angle opposite side a.
Rearrange for A
Rearrange to make cos A the subject, then use the inverse cosine.
A = cos − 1 ( 2 b c b 2 + c 2 − a 2 )
Substitute the numbers
A = cos − 1 ( 258 5 2 + 8 2 − 7 2 )
Calculate
A = 60 °
Check by substituting back
Put all the values back into the original formula: both sides should match.
7 2 = 5 2 + 8 2 − 258 cos 6 0 ∘ ✓
Example 3: an isosceles case Two sides of length 10 cm meet at 60°. Find the third side.
Try this in the solver: b=10, c=10, A=60
Cosine rule Answer checked
The formula
Cosine rule. In this formula a is the side opposite angle A, b is the second side, c is the third side, A is the angle opposite side a.
a 2 = b 2 + c 2 − 2 b c cos A ∘
What we know and what we want
We know b = 10 , c = 10 , A = 60 and we want to find a , the side opposite angle A.
Substitute the numbers
Calculate
a = 10
Check by substituting back
Put all the values back into the original formula: both sides should match.
1 0 2 = 1 0 2 + 1 0 2 − 21010 cos 6 0 ∘ ✓
Special cases
A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.
Finding a side (SAS) b = 5, c = 8, A = 60°: a = 7
a² = b² + c² − 2bc cos A.
An isosceles case b = c = 10, A = 60°: a = 10
An equilateral triangle.
An obtuse angle b = 6, c = 9, A = 110°: a ≈ 12.41
cos of an obtuse angle is negative.
A right angle A = 90°: a² = b² + c²
The cosine rule reduces to Pythagoras.
Word problems
Use a² = b² + c² − 2bc cos A to find a side when you know two sides and the angle between them.
Finding a side In a triangle b = 5, c = 8 and A = 60°. Find a.
Substitute a² = 25 + 64 − 2 × 5 × 8 × cos 60° Calculate a² = 89 − 40 = 49 Root a = 7 Check: a is between 3 and 13 ✓ a = 7.
An isosceles case b = c = 10 and A = 60°. Find a.
Substitute a² = 100 + 100 − 200 × 0.5 Calculate a² = 100 Root a = 10 Check: equilateral ✓ a = 10.
An obtuse angle Higher b = 6, c = 9 and A = 110°. Find a to 2 decimal places.
Substitute a² = 36 + 81 − 108 × cos 110° cos 110° −0.3420 Calculate a² = 117 + 36.94 = 153.94 Root a = 12.41 Check: longer than b and c ✓ a = 12.41.
Using the answer Higher In a triangle b = 5, c = 8, a = 7. Show that A = 60°.
Rearrange cos A = (b² + c² − a²) ÷ 2bc Substitute (25 + 64 − 49) ÷ 80 = 0.5 Inverse A = 60° Check: cos 60° = 0.5 ✓ A = 60°.
Common mistakes
Forgetting the 2 a² = 25 + 64 − 5 × 8 × cos 60° = 69 ✗
a² = 25 + 64 − 2 × 5 × 8 × cos 60° = 49 ✓
The formula has 2bc.
Not taking the square root a = 49 ✗
a = √49 = 7 ✓
The formula gives a².
Using Pythagoras only a = √(25 + 64) = 9.43 ✗
subtract 2bc cos A ✓
The triangle is not right-angled.
Wrong order of operations (25 + 64 − 80) × cos 60° ✗
25 + 64 − (80 × cos 60°) ✓
Multiply 2bc by cos A first.
Exam tips
a² = b² + c² − 2bc cos A.
A is opposite a, between b and c.
Degree mode.
Multiply 2bc cos A before subtracting.
Square root at the end.
Practice questions
Try each one on paper, then open the answer. Use the solver above to see the full working.
1. b = 3, c = 4, A = 90°. Find a Foundation 5
2. b = 6, c = 6, A = 60°. Find a Foundation 6
3. b = 5, c = 12, A = 90°. Find a Foundation 13
4. b = 7, c = 10, A = 50°. Find a to 2 decimal places Higher 7.68
5. b = 8, c = 11, A = 120°. Find a to 2 decimal places Higher 16.52
6. b = 9, c = 4, A = 35°. Find a to 2 decimal places Higher 6.17
Practice generator Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.
Foundation Higher Mixed New question
Solve: …
The practice generator needs JavaScript.
Key terms
Cosine rule a² = b² + c² − 2bc cos A. SAS Two sides and the included angle. SSS All three sides. Included angle The angle between the two known sides. Obtuse An angle between 90° and 180°. Pythagoras The special case at 90°.
Frequently asked questions
When do I use the cosine rule? With SAS or SSS.
What is the formula? a² = b² + c² − 2bc cos A.
What happens at 90°? cos 90° = 0 so it becomes Pythagoras.
Can the angle be obtuse? Yes, cos A is then negative.
Which page finds the angle? cosine rule for an angle.
Which page covers the sine rule? sine rule.