a2=b2+c2−2bccosA. The 'no opposite pair' rule. Use for SAS to find the third side, or SSS to find an angle.
What you’ll learn
Mapped to the Cambridge IGCSE 0580 syllabus (2025-2027).
E8.5 — Use the cosine rule to solve problems involving the lengths and angles of any triangle.
The cosine rule
a2=b2+c2−2bccosA. The angle A is opposite the side a.
For any triangle with sides a,b,c opposite angles A,B,C:
a2=b2+c2−2bccosA.
The same rule cycles round the labels:
b2=a2+c2−2accosB,c2=a2+b2−2abcosC.
When to use.
SAS (two sides + the included angle): find the third side.
SSS (three sides): find an angle (rearrange the rule for cos).
Each side is named with the lower-case letter of the angle directly opposite it.
Worked (SAS). Triangle with b=7cm, c=9cm, included angle A=50°. Find a.
a2=49+81−2(7)(9)cos50°.
a2=130−126cos50°.
a2≈130−81.0=49.0.
a≈7.00cm.
a2=b2+c2−2bccosA.
A opposite a.
Use SAS to find the missing third side.
Calculator in DEG mode.
Finding an angle (SSS)
Rearrange the cosine rule: cosA=2bcb2+c2−a2.
When all three sides are known, you can find any angle. Rearrange the cosine rule to isolate cosA:
cosA=2bcb2+c2−a2.
Worked. Triangle with a=5cm, b=7cm, c=8cm. Find angle A.
cosA=2×7×849+64−25=11288=0.7857.
A=cos−1(0.7857)≈38.2°.
No ambiguous case. Unlike the sine rule, the cosine rule has NO ambiguity — cos−1 returns a unique angle in (0°,180°). If cosA<0, the angle is OBTUSE; if cosA>0, it's ACUTE; if cosA=0, it's exactly 90°.
With all three sides known, rearrange the cosine rule to isolate the angle.
cosA=2bcb2+c2−a2.
Negative cosine ⇒ obtuse angle.
No ambiguous case.
Sine rule vs cosine rule — quick decision
Opposite angle-side pair? Sine rule. SAS or SSS? Cosine rule.
Decision flow.
What's given
Tool
Right angle + 2 sides
Pythagoras / SOH CAH TOA
Angle and OPPOSITE side, plus one more
Sine rule
Two sides + INCLUDED angle (SAS)
Cosine rule (for third side)
Three sides (SSS)
Cosine rule (for any angle)
Worked combined example. Triangle has A=65°, b=12cm, c=9cm.
A is the included angle between b and c → cosine rule.
a2=144+81−2(12)(9)cos65°=225−91.27≈133.73.
a≈11.6cm.
Now to find B, use the sine rule: sin65°11.6=sinB12.
sinB=11.612sin65°≈0.9376⇒B≈69.7°.
Then C=180°−65°−69.7°=45.3°.
Right-angled? Pythagoras / SOH CAH TOA.
Opposite pair? Sine rule.
SAS or SSS? Cosine rule.
Cosine first, then sine for the next angle is a common one-two.
How it’s examined
Cosine rule appears every Paper 4 (4-6 marks), often combined with sine rule and bearings in a multi-part question. Examiner reports flag wrong-angle-side pairing as the recurring error: students apply a2=b2+c2−2bccosA but use the WRONG angle (not opposite a).
Worked examples, formulae, definitions and the mistakes examiners flag — everything you need to push from a pass to an A*.
Take this whole topic with you
Download a branded revision sheet — worked examples, formulae, definitions and common mistakes for Cosine Rule, ready to print or save as PDF.
Step-by-step worked examples — Cosine Rule
Step-by-step solutions to past-paper-style questions on cosine rule, written exactly the way a tutor would explain them at the board.
1Find a side using the cosine rule
Extended• Adapted from 0580/42 May/Jun 2024 Q16• find side
▼
Question
In triangle ABC, b=8 cm, c=10 cm, ∠A=50°. Find a.
Step-by-step solution
Step 1
a2=b2+c2−2bccosA.
a2=64+100−160cos50°≈164−102.85
Step 2
Compute and square-root.
a≈61.15≈7.82cm
Answer
a≈7.82cm
2Find an angle using the cosine rule
Extended• find angle
▼
Question
In triangle ABC, a=6, b=7, c=9. Find ∠C.
Step-by-step solution
Step 1
Rearrange: cosC=2aba2+b2−c2.
cosC=2(6)(7)36+49−81=844≈0.0476
Step 2
Apply cos−1.
C=cos−1(0.0476)≈87.3°
Answer
∠C≈87.3°
3Use cosine rule then sine rule
Extended• mixed
▼
Question
In triangle XYZ, x=5, y=7, ∠Z=65°. Find z and ∠X.
Step-by-step solution
Step 1
Cosine rule for z.
z2=25+49−70cos65°≈74−29.58
Step 2
Compute.
z≈44.42≈6.66
Step 3
Sine rule for ∠X.
sinX=zxsinZ=6.665sin65°≈0.680
Step 4
Apply sin−1.
∠X≈42.8°
Answer
z≈6.66,∠X≈42.8°
4Find the largest angle from three sides
Core• Adapted from 0580/22 Oct/Nov 2023 Q17• SSS, find angle
▼
Question
Triangle ABC has sides a=5 cm, b=7 cm, c=9 cm. Find the largest angle.
Step-by-step solution
Step 1
The largest angle is opposite the longest side, c=9. Apply the cosine rule for ∠C.
cosC=2aba2+b2−c2=2(5)(7)25+49−81=70−7=−0.1
Step 2
Apply cos−1. A negative cosine signals an obtuse angle.
C=cos−1(−0.1)≈95.7°
Answer
∠C≈95.7°
Examiner tip
0580 examiner reports flag candidates who switch the sign of the numerator. Use the formula in its exact form; the negative value of cosC is what tells you the angle is obtuse.
5Decide which rule to use
Extended• Adapted from 0580/42 Feb/Mar 2024 Q14• mixed, strategy
▼
Question
In triangle DEF, DE=8 cm, ∠D=55° and ∠E=67°. Find EF.
Step-by-step solution
Step 1
We have two angles and the included side (ASA). Find the third angle first: ∠F=180°−55°−67°=58°.
Step 2
Now we have a side (DE) with its opposite angle (∠F). That is the sine-rule signal, not cosine.
sin55°EF=sin58°8
Step 3
Solve.
EF=sin58°8sin55°≈7.73cm
Answer
EF≈7.73 cm
Examiner tip
Although this is a cosine-rule subtopic, real exam papers test strategy. Cosine rule is unnecessary when a side and its opposite angle are already paired — picking it wastes time and introduces calculation errors.
6Cosine rule on a coordinate plane
Extended• coordinates
▼
Question
Points A(1,2), B(7,4) and C(3,8) form a triangle. Find ∠BAC.
Step-by-step solution
Step 1
Find the three side lengths using the distance formula.
Extended• Adapted from 0580/42 May/Jun 2023 Q15• real-world
▼
Question
Two roads leave a junction J. Town A is 4.5 km along one road and town B is 6.2 km along the other. The angle between the roads at J is 112°. Find the straight-line distance from A to B.
Step-by-step solution
Step 1
Apply the cosine rule with the included angle.
AB2=4.52+6.22−2(4.5)(6.2)cos112°
Step 2
Compute. Note cos112°≈−0.3746, so the third term becomes positive.
AB2=20.25+38.44−55.8(−0.3746)≈58.69+20.90=79.59
Step 3
Square root.
AB≈79.59≈8.92km
Answer
AB≈8.92 km
Examiner tip
When the included angle is obtuse, cos is negative — the subtraction in the formula becomes an addition. Many candidates mis-handle the sign here and lose two marks.
8A* combine cosine rule with area
Challenge• Adapted from 0580/42 Oct/Nov 2024 Q22• multi-step, area
▼
Question
Triangle PQR has PQ=10 cm, QR=14 cm and area 52 cm2. Find the length of PR, given that ∠PQR is obtuse.
Step-by-step solution
Step 1
Use the area rule to find ∠Q.
52=21(10)(14)sinQ⇒sinQ=7052≈0.7429
Step 2
Principal value is 48.0° but the obtuse alternative is required.
A* candidates must use the obtuse value of ∠Q when the question specifies it. Failure to spot the constraint costs the final accuracy mark.
9Bearings application
Challenge• Adapted from 0580/42 May/Jun 2024 Q19• bearings, challenge
▼
Question
A ship leaves port P and sails 35 km on a bearing of 048° to Q. From Q it sails 52 km on a bearing of 147° to R. Find PR.
Step-by-step solution
Step 1
Find the angle at Q inside the triangle. The back-bearing of P from Q is 228°. The angle from north at Q to R is 147°. So ∠PQR=228°−147°=81°.
Step 2
Apply the cosine rule with the included angle at Q.
PR2=352+522−2(35)(52)cos81°
Step 3
Compute. cos81°≈0.1564.
PR2≈1225+2704−3640(0.1564)≈3929−569.30=3359.70
Step 4
Square root.
PR≈3359.70≈57.96km
Answer
PR≈58.0 km
Examiner tip
The hardest step is correctly identifying ∠PQR inside the triangle from the two bearings. Sketch the north line at Q and mark both bearings clearly before subtracting.
10Find a side with an acute included angle
Core• SAS, find side
▼
Question
Triangle PQR has PQ=9 cm, PR=11 cm and ∠QPR=35°. Find QR.
Step-by-step solution
Step 1
Apply the cosine rule.
QR2=92+112−2(9)(11)cos35°
Step 2
Compute.
QR2=81+121−198cos35°≈202−162.22=39.78
Step 3
Square root.
QR≈39.78≈6.31cm
Answer
QR≈6.31 cm
Examiner tip
For an acute included angle the third term is positive, so a2 is smaller than b2+c2. Sanity-check by comparing QR with the longer of the two given sides.
Key Formulae — Cosine Rule
The formulae you need to memorise for cosine rule on the Cambridge IGCSE 0580 paper, with every variable defined in plain English and a note on when to use it.
Cosine rule (side)
a2=b2+c2−2bccosA
a
side opposite angle A
b,c
the other two sides
A
angle opposite side a
When to use
When you know two sides and the included angle (SAS).
Cosine rule (angle)
cosA=2bcb2+c2−a2
When to use
When you know all three sides (SSS) and want an angle.
Key Definitions and Keywords — Cosine Rule
Definitions to memorise and the exact keywords mark schemes credit for cosine rule answers — sharpened from recent examiner reports for the 2026 0580 sitting.
Cosine rule
Examiner keyword
A generalisation of Pythagoras to non-right-angled triangles.
SAS configuration
Examiner keyword
Two sides plus the angle between them — a use-cosine-rule signal.
SSS configuration
Examiner keyword
All three sides known — a use-cosine-rule-for-angle signal.
Common Mistakes and Misconceptions — Cosine Rule
The traps other students keep falling into on cosine rule questions — taken from recent Cambridge IGCSE 0580 examiner reports and mark schemes — and how to avoid them.
✕Subtracting instead of adding b2+c2
▼
Why it happens
Misremembering the sign pattern.
How to avoid it
Cosine rule is Pythagoras + correction: a2=b2+c2−2bccosA. The two sides are added; the correction is subtracted.
✕Rearranging incorrectly to find cosA
0580/42 — recurring
▼
Why it happens
Confusing which terms move.
How to avoid it
Memorise the rearranged form: cosA=2bcb2+c2−a2. Notice the side opposite A goes on top with a MINUS.
✕Using cosine rule when sine rule is faster
▼
Why it happens
Defaulting to one rule.
How to avoid it
Have a side + its opposite angle? → sine rule. Have SAS or SSS? → cosine rule.
✕Forgetting to square-root after computing a2
▼
Why it happens
Stopping a step too early.
How to avoid it
If you computed a2, your final step is a=a2.
Practice questions
Exam-style questions with step-by-step worked solutions. Try one before checking the method.
Past paper style quiz
Get a report showing which sub-topics you've nailed and which ones still need work.
4. Exam Quiz
Assess your understanding
Attempt a past paper style quiz for this sub-topic and get instant feedback to identify your strengths and weaknesses.
Instant AI marking SchemeExaminer's feedbackAI Detailed report
Video lesson
Short walkthrough of the concepts students most often get stuck on.
Cosine Rule — frequently asked questions
The things students keep getting wrong in this sub-topic, answered.