Resources For Teachers For Tutors For Students & Parents AI New Books Pricing
Year 11 (2026) Maths Advanced (2026) Trigonometry and Measure of Angles

Cosine Rule

20 practice questions 1 video lesson Theory + worked examples
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

The cosine rule \(a^2=b^2+c^2-2bc\cos A\) works in any triangle, not just a right-angled one. This Year 11 Mathematics Advanced page shows how to find a side from two sides and the included angle, find an angle from three sides, recognise an obtuse angle from a negative cosine, give exact answers, and apply the rule to parallelograms, quadrilaterals and bearings.

In \(\triangle ABC\) the side opposite each angle has the matching small letter: \(a=BC\) is opposite \(A\), \(b=CA\) is opposite \(B\), and \(c=AB\) is opposite \(C\). The included angle between two sides is the angle where they meet; for sides \(b\) and \(c\) it is \(A\).

The cosine rule \(a^2=b^2+c^2-2bc\cos A\) links the three sides with one angle. The side on the left is always the side opposite the angle in the cosine. When \(A=90^\circ\), \(\cos A=0\) and the rule becomes Pythagoras' theorem, so the cosine rule is Pythagoras' theorem with a correction term for a non-right angle.

Use it in two situations. Given two sides and the included angle, it gives the third side. Given all three sides, the rearranged form \(\cos A=\dfrac{b^2+c^2-a^2}{2bc}\) gives any angle. The largest angle is opposite the longest side and the smallest angle is opposite the shortest side.

The cosine of an obtuse angle is negative (\(\cos(180^\circ-\theta)=-\cos\theta\)). So if \(\cos A\lt 0\) the angle is obtuse, and \(\cos^{-1}\) on the calculator gives it directly, for example \(\cos 120^\circ=-\cos 60^\circ=-\dfrac{1}{2}\). If \(\cos A=0\) the angle is a right angle.

If the known angle is not between the two known sides, the cosine rule still works but gives a quadratic in the unknown side. Solve it and reject any negative (or impossible) length. In parallelograms and quadrilaterals, find the angle you need first (co-interior angles add to \(180^\circ\), opposite sides are equal), then use the rule in a triangle formed by a diagonal.

Triangle ABC with sides a, b and cTriangle ABC. Side a is opposite angle A, side b is opposite angle B and side c is opposite angle C. The angle C, between sides a and b, is marked. C a b c A B C
Each side is named by the angle opposite it. The cosine rule for angle \(C\) is \(c^2=a^2+b^2-2ab\cos C\).
Proof of the cosine rule with an altitudeTriangle ABC with BC equal to a, CA equal to b and AB equal to c. The altitude AD from A meets BC at D. AD is b sin C, CD is b cos C and BD is a minus b cos C. C b c b sin C b cos C a − b cos C BC = a A B C D
Proof: in \(\triangle ADC\), \(AD=b\sin C\) and \(CD=b\cos C\), so \(BD=a-b\cos C\). Pythagoras in \(\triangle ADB\) and \(\sin^2 C+\cos^2 C=1\) give \(c^2=a^2+b^2-2ab\cos C\).

The cosine rule for a side (the angle is between the other two sides):

\[a^2=b^2+c^2-2bc\cos A \qquad b^2=a^2+c^2-2ac\cos B \qquad c^2=a^2+b^2-2ab\cos C\]
a squared = b squared + c squared minus 2 b c cos A; similarly for b and c

Rearranged for an angle when all three sides are known:

\[\cos A=\dfrac{b^2+c^2-a^2}{2bc} \qquad \cos B=\dfrac{a^2+c^2-b^2}{2ac} \qquad \cos C=\dfrac{a^2+b^2-c^2}{2ab}\]
cos A = (b squared + c squared minus a squared) over 2 b c; similarly for B and C

Exact cosines of obtuse angles that appear in exact questions:

\[\cos 120^\circ=-\dfrac{1}{2} \qquad \cos 135^\circ=-\dfrac{1}{\sqrt2} \qquad \cos 150^\circ=-\dfrac{\sqrt3}{2}\]
cos 120 = minus one half; cos 135 = minus 1 over root 2; cos 150 = minus root 3 over 2
Sign of \(\cos\theta\)Angle \(\theta\)
positiveacute (\(0^\circ\lt \theta\lt 90^\circ\))
zeroright angle (\(\theta=90^\circ\))
negativeobtuse (\(90^\circ\lt \theta\lt 180^\circ\))
Which side is subtracted? In \(\cos C=\dfrac{a^2+b^2-c^2}{2ab}\) the two sides that form angle \(C\) are added on top and multiplied underneath; the side opposite \(C\) is the one subtracted.

Finding a side (two sides and the included angle)

  1. Sketch the triangle and check the angle is between the two known sides.
  2. Substitute into \(a^2=b^2+c^2-2bc\cos A\), with \(a\) the side opposite the known angle, and evaluate.
  3. Square root and round at the end; for an exact answer use exact values and simplify the surd.

Finding an angle (three sides)

  1. Identify the angle: the largest angle is opposite the longest side, the smallest opposite the shortest.
  2. Substitute into \(\cos A=\dfrac{b^2+c^2-a^2}{2bc}\), subtracting the square of the side opposite the angle.
  3. Use \(\cos^{-1}\) and round as asked. A negative cosine means an obtuse angle.

Harder problems

  1. Find the angle you need from the given facts: back bearings (add or subtract \(180^\circ\)), co-interior angles, or opposite sides of a parallelogram.
  2. Apply the cosine rule; if the unknown side is next to the known angle, solve the quadratic and keep the positive root.
  3. Continue with the unrounded value if another step is needed, such as a second angle or a bearing.
Example 1 — Find a side
In \(\triangle ABC\), \(AC=9.3\text{ cm}\), \(AB=6.8\text{ cm}\) and \(\angle BAC=47^\circ\). Find the length of \(BC\), correct to 1 decimal place.
Solution

The \(47^\circ\) angle is between the two known sides, so use the cosine rule for \(a=BC\).

Triangle ABC with two sides and the included angleTriangle ABC with AB equal to 6.8 cm, AC equal to 9.3 cm and the included angle A equal to 47 degrees. The side BC, labelled a, is opposite A. 47° 6.8 cm 9.3 cm A B C
\(a^2\)\(=\)\(b^2+c^2-2bc\cos A\)
\(\)\(=\)\(9.3^2+6.8^2-2\times9.3\times6.8\times\cos 47^\circ\)
\(\)\(=\)\(132.73-126.48\cos 47^\circ\)
\(\)\(=\)\(46.470\ldots\)
\(a\)\(=\)\(6.816\ldots\)
a squared = 9.3 squared + 6.8 squared minus 2 times 9.3 times 6.8 times cos 47 = 132.73 minus 126.48 cos 47 = 46.470, a = 6.816

\(\therefore BC=6.8\text{ cm}\) (1 d.p.)

Example 2 — The largest angle
A triangle has sides \(7\text{ cm}\), \(9\text{ cm}\) and \(13\text{ cm}\). Find the size of its largest angle, correct to the nearest minute.
Solution

The largest angle \(\theta\) is opposite the longest side, \(13\text{ cm}\), so \(13^2\) is subtracted.

Triangle with sides 7 cm, 9 cm and 13 cmA triangle with sides 7 cm, 9 cm and 13 cm. The largest angle, theta, is opposite the 13 cm side. θ 13 cm 9 cm 7 cm
\(\cos\theta\)\(=\)\(\dfrac{7^2+9^2-13^2}{2\times7\times9}\)
\(\)\(=\)\(\dfrac{49+81-169}{126}\)
\(\)\(=\)\(-\dfrac{39}{126}=-\dfrac{13}{42}\)
\(\theta\)\(=\)\(108.030\ldots^\circ\)
\(\)\(\approx\)\(108^\circ 2'\)
cos theta = (49 + 81 minus 169) over 126 = minus 13 over 42, theta = 108.030 degrees, about 108 degrees 2 minutes

The cosine is negative, so the angle is obtuse. \(\therefore\) the largest angle is \(108^\circ 2'\) (nearest minute).

Example 3 — Exact, with a quadratic
In \(\triangle ABC\), \(AB=7\), \(AC=13\), \(BC=x\) and \(\angle ABC=120^\circ\). Find the exact value of \(x\).
Solution

The \(120^\circ\) angle is opposite \(AC=13\), so write the rule for \(AC^2\). The unknown \(x\) is next to the angle, so a quadratic results. Use \(\cos 120^\circ=-\cos 60^\circ=-\dfrac{1}{2}\).

Triangle ABC with angle B of 120 degreesTriangle ABC with AB equal to 7, AC equal to 13, BC equal to x and the obtuse angle ABC equal to 120 degrees. 120° 7 13 x A B C
\(AC^2\)\(=\)\(AB^2+BC^2-2(AB)(BC)\cos B\)
\(169\)\(=\)\(49+x^2-2\times7\times x\times\left(-\dfrac{1}{2}\right)\)
\(169\)\(=\)\(49+x^2+7x\)
\(0\)\(=\)\(x^2+7x-120\)
\(0\)\(=\)\((x+15)(x-8)\)
169 = 49 + x squared + 7x, so x squared + 7x minus 120 = 0, (x + 15)(x minus 8) = 0

\(x=-15\) or \(x=8\). \(x\) is a length, so \(x\gt 0\) and \(x=-15\) is rejected.

\(\therefore x=8\)

Example 4 — Bearings, then a second angle
A ship sails \(12\text{ km}\) from port \(P\) on a bearing of \(035^\circ\) to \(A\), then \(20\text{ km}\) on a bearing of \(150^\circ\) to \(B\).
(i) Find the distance \(PB\), correct to 1 decimal place.
(ii) Find the bearing of \(B\) from \(P\), correct to the nearest degree.
Solution

(i) Find the angle at \(A\) first. The bearing of \(P\) from \(A\) is \(035^\circ+180^\circ=215^\circ\), so \(\angle PAB=215^\circ-150^\circ=65^\circ\).

Ship sailing from P to A to BFrom port P the ship sails 12 km on a bearing of 035 degrees to A, then 20 km on a bearing of 150 degrees to B. North lines are drawn at P and A. The angle PAB is 65 degrees and PB is the unknown distance. N N 65° 12 km 20 km ? 035° 150° P A B
\(PB^2\)\(=\)\(12^2+20^2-2\times12\times20\times\cos 65^\circ\)
\(\)\(=\)\(544-480\cos 65^\circ\)
\(\)\(=\)\(341.143\ldots\)
\(PB\)\(=\)\(18.470\ldots\)
PB squared = 12 squared + 20 squared minus 2 times 12 times 20 cos 65 = 544 minus 480 cos 65 = 341.143, PB = 18.470

\(\therefore PB=18.5\text{ km}\) (1 d.p.)

(ii) Find \(\angle APB\) with the three sides, using the unrounded \(PB\):

\(\cos\angle APB\)\(=\)\(\dfrac{12^2+18.470\ldots^2-20^2}{2\times12\times18.470\ldots}\)
\(\)\(=\)\(0.192\ldots\)
\(\angle APB\)\(=\)\(78.926\ldots^\circ\)
cos of angle APB = (12 squared + 18.470 squared minus 20 squared) over (2 times 12 times 18.470) = 0.192, angle APB = 78.926 degrees

At \(A\) the path turns clockwise from \(035^\circ\) to \(150^\circ\), so from \(P\), \(B\) is clockwise of \(A\):

\(\text{Bearing of }B\)\(=\)\(035^\circ+78.926\ldots^\circ\)
\(\)\(=\)\(113.926\ldots^\circ\)
bearing of B from P = 35 + 78.926 = 113.926 degrees

\(\therefore\) the bearing of \(B\) from \(P\) is \(114^\circ\) (nearest degree).

Common pitfalls

Match the side to its opposite angle. In \(a^2=b^2+c^2-2bc\cos A\), \(a\) must be the side opposite \(A\), and \(A\) must be the angle between \(b\) and \(c\). Using an angle that is not between the two sides gives a wrong answer.
Do the subtraction after the multiplication. \(132.73-126.48\cos 47^\circ\) is not \((132.73-126.48)\cos 47^\circ\). Enter the whole expression in one go, or work out \(126.48\cos 47^\circ\) first.
A negative cosine is not an error. If \(\cos\theta=-\dfrac{13}{42}\), the angle is obtuse: \(\cos^{-1}\) gives \(108.03\ldots^\circ\) directly. Do not drop the negative sign.
Keep unrounded values for the next step. When a side found with the cosine rule is used again (for an angle or a bearing), use the full calculator value, not the rounded answer.

Frequently asked questions

What is the cosine rule?

In any triangle ABC, a squared equals b squared plus c squared minus 2bc cos A, where a is the side opposite angle A. Rearranged, cos A equals b squared plus c squared minus a squared, all over 2bc.

When do you use the cosine rule instead of the sine rule?

Use the cosine rule when you know two sides and the included angle (to find the third side), or all three sides (to find an angle). Use the sine rule when you know a side and its opposite angle.

How do you find an angle using the cosine rule?

Put the three sides into cos A equals b squared plus c squared minus a squared over 2bc, where a is the side opposite the angle you want. Then take inverse cos. A negative answer for cos A means the angle is obtuse.

Which angle is the largest in a triangle?

The largest angle is opposite the longest side, and the smallest angle is opposite the shortest side. So to find the largest angle, subtract the square of the longest side.

Why is the cosine rule like Pythagoras' theorem?

If angle A is 90 degrees then cos A is 0, the term 2bc cos A disappears, and the rule becomes a squared equals b squared plus c squared, which is Pythagoras' theorem.

What if the given angle is not between the two given sides?

Write the cosine rule for the side opposite the given angle. The unknown side then appears squared and to the first power, so you get a quadratic equation. Solve it and reject any negative length.