Skip to the formula

Cosine rule formula: a² = b² + c² − 2bc cos A

The cosine rule formula is a² = b² + c² − 2bc cos A, or cos A = (b² + c² − a²) / 2bc.

What each letter means

When to use it

In IB Maths, for non-right-angled triangles in navigation and bearings, in 3D problems once you have drawn the triangle, and in AI questions where the sides are distances in context. With three sides, use the cos A form for an angle.

Worked example

In triangle \(ABC\), \(b=7.2\) m, \(c=5.5\) m and \(A=118^\circ\). Find \(a\).

  1. \(a^2=7.2^2+5.5^2-2(7.2)(5.5)\cos118^\circ\)
  2. \(a^2=82.09+37.18\ldots=119.27\ldots\)

Answer: \(a=10.9\) m (3 s.f.)

Common mistake

Rounding the angle from cos⁻¹ and then using it in the next part. Store the full value on the GDC and round only what you write down.

Fix it with practice: Skill Builder: Non right angled trigonometry (free account).

Try one yourself

One quick IB Maths question on the cosine rule. No sign-in needed.

In triangle \(ABC\), \(b = 8\) cm, \(c = 8\) cm and \(A = 75^\circ\). Find \(a\).
Choose your answer · keys 1–4

On your IB Maths course

CourseIn the exam
AA SL
All IB AA SL formulas by topic
In the IB formula booklet
AI SL
All IB AI SL formulas by topic
In the IB formula booklet
AA HL
All IB AA HL formulas by topic
In the IB formula booklet
AI HL
All IB AI HL formulas by topic
In the IB formula booklet

From our own IB Maths formula sheets, in our words. The IB gives its booklet to schools, so we checked against our own copy: your teacher has the official one. Official: IB DP Mathematics page.

Practise and revise

Cosine rule formula card: a² = b² + c² − 2bc cos A, or cos A = (b² + c² − a²) / 2bc. IB Math Revision
Cosine rule card for IB Maths: download (PNG).

IB Maths FAQ

Is the cosine rule in the IB formula booklet?

AA SL: in the IB formula booklet. AI SL: in the IB formula booklet. AA HL: in the IB formula booklet. AI HL: in the IB formula booklet.

Can the cosine rule give an obtuse angle?

Yes. If cos A works out negative, A is obtuse, and cos⁻¹ gives it directly, so there is no ambiguous case.

Our own wording, examples and card, checked by IB Math Revision. Not produced or endorsed by the International Baccalaureate Organization.