Skip to the page
Home Campus
Start free

The Cosine Rule: Finding an Angle

When all three sides of a triangle are known, the cosine rule rearranged gives any angle, and the sign of its cosine says whether the angle is acute or obtuse.

Before you start

  • The cosine rule (lesson 6.5): c2=a2+b2−2abcos⁡C.c^2 = a^2 + b^2 - 2ab\cos C\text{.} The side on the left faces the angle on the right, and the two sides on the right make that angle.
  • Between 0∘0^{\circ} and 180∘180^{\circ}, cos⁡x=k\cos x = k has exactly one answer, cos⁡−1k\cos^{-1} k: acute if k>0k > 0, 90∘90^{\circ} if k=0k = 0, obtuse if k<0k < 0 (lesson 6.1). For example, cos⁡−1(−0.6)=126.9∘.\cos^{-1}(-0.6) = 126.9^{\circ}\text{.}

The Cosine Rule Rearranged

When the three sides are known and no angle is, the sine rule cannot start: no pair is complete. The cosine rule holds all three sides and one angle, so it can be turned round to give the angle.

Start from c2=a2+b2−2abcos⁡C.c^2 = a^2 + b^2 - 2ab\cos C\text{.} Add 2abcos⁡C2ab\cos C to both sides and take c2c^2 from both sides:

2abcos⁡C=a2+b2−c22ab\cos C = a^2 + b^2 - c^2

Divide both sides by 2ab2ab.

The cosine rule for an angle

In any triangle ABCABC,

cos⁡C=a2+b2−c22ab\cos C = \dfrac{a^2 + b^2 - c^2}{2ab}

and in the same way

cos⁡A=b2+c2−a22bc\cos A = \dfrac{b^2 + c^2 - a^2}{2bc}

cos⁡B=a2+c2−b22ac\cos B = \dfrac{a^2 + c^2 - b^2}{2ac}

The side taken away on top faces the angle wanted. The two sides added on top, and multiplied below, are the two that make the angle.

Finding an angle by the cosine rule

1. Name the angle wanted and the side facing it.

2. Write the form with that angle: the side facing it is the one taken away on top.

3. Work out the top and the bottom, and keep the fraction (or the calculator's value) as it is.

4. Press cos⁡−1\cos^{-1}. The answer is the angle: acute if the cosine is positive, obtuse if it is negative.

Example 1: An angle from three sides

In △ABC\triangle ABC, a=8a = 8 cm, b=11b = 11 cm and c=13c = 13 cm. Find ∠C\angle C, marked θ\theta.

Triangle ABC with BC = 8 cm, AC = 11 cm and AB = 13 cm; the angle C, θ, is to be foundCBA13 cm11 cm8 cmθ

Solution

The angle wanted is CC, and c=13c = 13 cm faces it.

cos⁡C=82+112−1322×8×11=64+121−169176=16176\cos C = \dfrac{8^2 + 11^2 - 13^2}{2 \times 8 \times 11} = \dfrac{64 + 121 - 169}{176} = \dfrac{16}{176}

C=cos⁡−116176=84.784…∘C = \cos^{-1}\dfrac{16}{176} = 84.784\ldots^{\circ}

The cosine is positive, so the angle is acute, as 84.8∘84.8^{\circ} is. The fraction went into cos⁡−1\cos^{-1} as it was, not rounded to 0.090.09.

Triangle ABC with BC = 8 cm, AC = 11 cm, AB = 13 cm and the angle C about 84.8°CBA13 cm11 cm8 cm≈ 84.8°

θ=∠C=84.8∘\theta = \angle C = 84.8^{\circ} (1 d.p.).

Example 2: Other letters

In △XYZ\triangle XYZ, XY=9XY = 9 cm, XZ=10XZ = 10 cm and YZ=7YZ = 7 cm. Find ∠YXZ\angle YXZ.

Solution

The angle is at XX, between XYXY and XZXZ. The side facing it is YZ=7YZ = 7 cm, the one that does not touch XX.

cos⁡X=XY2+XZ2−YZ22×XY×XZ=81+100−492×9×10=132180\cos X = \dfrac{XY^2 + XZ^2 - YZ^2}{2 \times XY \times XZ} = \dfrac{81 + 100 - 49}{2 \times 9 \times 10} = \dfrac{132}{180}

X=cos⁡−1132180=42.833…∘X = \cos^{-1}\dfrac{132}{180} = 42.833\ldots^{\circ}

Check: YZYZ is the shortest side, so ∠X\angle X is the smallest angle, and well under 60∘60^{\circ}.

∠YXZ=42.8∘\angle YXZ = 42.8^{\circ} (1 d.p.).

A Negative Cosine: An Obtuse Angle

If the side taken away on top is long enough, the top is negative, so the cosine is negative and the angle is obtuse. cos⁡−1\cos^{-1} gives the obtuse angle directly: there is nothing to take from 180∘180^{\circ}.

Example 3: An obtuse angle

In △PQR\triangle PQR, PQ=10PQ = 10 cm, QR=7QR = 7 cm and PR=5PR = 5 cm. Find ∠PRQ\angle PRQ, marked θ\theta.

Triangle PQR with PQ = 10 cm, QR = 7 cm and PR = 5 cm; the angle R facing the longest side, θ, is to be foundPQR7 cm5 cm10 cmθ

Solution

The angle is at RR, between QRQR and PRPR; PQ=10PQ = 10 cm faces it.

cos⁡R=72+52−1022×7×5=49+25−10070=−2670\cos R = \dfrac{7^2 + 5^2 - 10^2}{2 \times 7 \times 5} = \dfrac{49 + 25 - 100}{70} = \dfrac{-26}{70}

R=cos⁡−1−2670=111.80…∘R = \cos^{-1}\dfrac{-26}{70} = 111.80\ldots^{\circ}

The cosine is negative, so the angle is obtuse: the calculator gives 111.8∘111.8^{\circ} straight away.

θ=∠PRQ=111.8∘\theta = \angle PRQ = 111.8^{\circ} (1 d.p.).

No two possible triangles here

Three sides fix one triangle, as constructing a triangle from three sides in Secondary 1 showed. And cos⁡x=k\cos x = k has only one answer between 0∘0^{\circ} and 180∘180^{\circ}. So the cosine rule never gives two possible angles, unlike the sine rule in lesson 6.4.

The Largest Angle Faces the Longest Side

A triangle has at most one obtuse angle, and if it has one, it is the largest angle, facing the longest side. So the angle facing the longest side is the only one that can be obtuse. Find it first; the other two angles are acute whatever it turns out to be.

To find all three angles, use the cosine rule for two of them and the angle sum for the third. Check at the end that the largest angle faces the longest side.

Example 4: All three angles

A triangle ABCABC has AB=13AB = 13 cm, BC=6BC = 6 cm and AC=9AC = 9 cm. Find all three of its angles.

Solution

The longest side is AB=13AB = 13 cm, facing CC. Start there:

cos⁡C=62+92−1322×6×9=36+81−169108=−52108,\cos C = \dfrac{6^2 + 9^2 - 13^2}{2 \times 6 \times 9} = \dfrac{36 + 81 - 169}{108} = \dfrac{-52}{108}\text{,} so C=118.78…∘C = 118.78\ldots^{\circ}, obtuse.

AC=9AC = 9 cm faces BB: cos⁡B=62+132−922×6×13=124156,\cos B = \dfrac{6^2 + 13^2 - 9^2}{2 \times 6 \times 13} = \dfrac{124}{156}\text{,} so B=37.356…∘B = 37.356\ldots^{\circ}.

The angle sum: A=180∘−118.78…∘−37.356…∘=23.860…∘,A = 180^{\circ} - 118.78\ldots^{\circ} - 37.356\ldots^{\circ} = 23.860\ldots^{\circ}\text{,} from the unrounded values.

Check: the smallest angle, AA, faces the shortest side, BC=6BC = 6 cm. The rounded answers add to 180.1∘180.1^{\circ} only because each is rounded; the unrounded ones add to 180∘180^{\circ} exactly.

Triangle ABC with AB = 13 cm, BC = 6 cm, AC = 9 cm, and its angles: C about 118.8°, B about 37.4° and A about 23.9°ABC6 cm9 cm13 cm≈ 23.9°≈ 37.4°≈ 118.8°

∠C=118.8∘\angle C = 118.8^{\circ}, ∠B=37.4∘\angle B = 37.4^{\circ}, ∠A=23.9∘\angle A = 23.9^{\circ} (1 d.p.).

Acute, Right or Obtuse?

The bottom of the fraction is always positive, so the sign of the cosine is the sign of the top. To tell what kind of triangle three sides make, look at the largest angle (if it is acute, all three are): let aa be the longest side, and work out b2+c2−a2b^2 + c^2 - a^2.

b2+c2−a2b^2 + c^2 - a^2The angle facing aaThe triangle
positiveacuteacute-angled
0090∘90^{\circ}right-angled
negativeobtuseobtuse-angled

The middle row is the test of Secondary 2's lesson "Is the Triangle Right-Angled?": the square of the longest side equals the sum of the squares of the other two.

Example 5: What kind of triangle?

Is each triangle acute-angled, right-angled or obtuse-angled? (a) 55 cm, 66 cm, 77 cm (b) 99 cm, 4040 cm, 4141 cm (c) 44 cm, 55 cm, 77 cm

Solution

(a) The longest side is 77 cm: 52+62−72=25+36−49=12,5^2 + 6^2 - 7^2 = 25 + 36 - 49 = 12\text{,} positive.

(b) The longest side is 4141 cm: 92+402−412=81+1600−1681=0.9^2 + 40^2 - 41^2 = 81 + 1600 - 1681 = 0\text{.}

(c) The longest side is 77 cm: 42+52−72=16+25−49=−8,4^2 + 5^2 - 7^2 = 16 + 25 - 49 = -8\text{,} negative.

(a) acute-angled (b) right-angled (c) obtuse-angled

Common Mistakes

  • Taking away the wrong side. For ∠A\angle A the side taken away on top is aa, the side facing AA: cos⁡A=b2+c2−a22bc.\cos A = \dfrac{b^2 + c^2 - a^2}{2bc}\text{.}
  • Taking a negative cosine as a mistake. A negative cosine is an obtuse angle, and cos⁡−1\cos^{-1} gives it directly.
  • Giving two answers, cos⁡−1k\cos^{-1} k and 180∘180^{\circ} minus it. cos⁡x=k\cos x = k has one answer; 180∘180^{\circ} minus it has the opposite cosine.
  • Writing the fraction in a line as b2+c2−a2÷2bcb^2 + c^2 - a^2 \div 2bc, or keying it without brackets. The whole top is divided by the whole bottom.
  • Rounding the cosine before pressing cos⁡−1\cos^{-1}. Keep the fraction or the calculator's value.

Practice Questions

Give angles correct to 1 decimal place and lengths and areas to 3 significant figures unless a question says otherwise. Name the side facing the angle first. Try each question before opening its solution.

Question 1

A triangle has sides 55 cm, 77 cm and 88 cm. Find the angle facing the 77 cm side.

ShowHide solution

The angle is between the 55 cm and 88 cm sides.

cos⁡θ=52+82−722×5×8=25+64−4980=4080=0.5,\cos \theta = \dfrac{5^2 + 8^2 - 7^2}{2 \times 5 \times 8} = \dfrac{25 + 64 - 49}{80} = \dfrac{40}{80} = 0.5\text{,} so θ=60∘\theta = 60^{\circ}.

60∘60^{\circ} exactly

Question 2

Find θ\theta.

Triangle DEF with DE = 9 cm, EF = 12 cm and DF = 14 cm; the angle E, θ, is to be foundDFE12 cm9 cm14 cmθ
ShowHide solution

θ\theta is at EE, between DEDE and EFEF; DF=14DF = 14 cm faces it.

cos⁡θ=92+122−1422×9×12=81+144−196216=29216,\cos \theta = \dfrac{9^2 + 12^2 - 14^2}{2 \times 9 \times 12} = \dfrac{81 + 144 - 196}{216} = \dfrac{29}{216}\text{,} so θ=82.284…∘\theta = 82.284\ldots^{\circ}.

θ=82.3∘\theta = 82.3^{\circ}

Question 3

A triangle has sides 44 cm, 66 cm and 99 cm. Find its largest angle.

ShowHide solution

The largest angle faces the longest side, 99 cm.

cos⁡θ=42+62−922×4×6=16+36−8148=−2948,\cos \theta = \dfrac{4^2 + 6^2 - 9^2}{2 \times 4 \times 6} = \dfrac{16 + 36 - 81}{48} = \dfrac{-29}{48}\text{,} so θ=127.16…∘\theta = 127.16\ldots^{\circ}, obtuse.

127.2∘127.2^{\circ}

Question 4

In △LMN\triangle LMN, LM=11LM = 11 cm, MN=6MN = 6 cm and LN=8LN = 8 cm. Name the largest angle, and find it.

ShowHide solution

The longest side is LM=11LM = 11 cm. It does not touch NN, so the largest angle is ∠LNM\angle LNM.

cos⁡N=62+82−1122×6×8=36+64−12196=−2196,\cos N = \dfrac{6^2 + 8^2 - 11^2}{2 \times 6 \times 8} = \dfrac{36 + 64 - 121}{96} = \dfrac{-21}{96}\text{,} so N=102.63…∘N = 102.63\ldots^{\circ}.

∠LNM=102.6∘\angle LNM = 102.6^{\circ}

Question 5

Find all three angles of a triangle with sides 77 cm, 88 cm and 1212 cm.

ShowHide solution

Facing 1212 cm: cos⁡θ=49+64−1442×7×8=−31112,\cos \theta = \dfrac{49 + 64 - 144}{2 \times 7 \times 8} = \dfrac{-31}{112}\text{,} so θ=106.06…∘\theta = 106.06\ldots^{\circ}.

Facing 88 cm: cos⁡θ=49+144−642×7×12=129168,\cos \theta = \dfrac{49 + 144 - 64}{2 \times 7 \times 12} = \dfrac{129}{168}\text{,} so θ=39.838…∘\theta = 39.838\ldots^{\circ}.

Facing 77 cm: 180∘−106.06…∘−39.838…∘=34.093…∘.180^{\circ} - 106.06\ldots^{\circ} - 39.838\ldots^{\circ} = 34.093\ldots^{\circ}\text{.}

106.1∘106.1^{\circ}, 39.8∘39.8^{\circ} and 34.1∘34.1^{\circ}

Question 6

Is each triangle acute-angled, right-angled or obtuse-angled? (a) 66 cm, 88 cm, 99 cm (b) 77 cm, 2424 cm, 2525 cm (c) 55 cm, 66 cm, 99 cm

ShowHide solution

(a) 62+82−92=36+64−81=19,6^2 + 8^2 - 9^2 = 36 + 64 - 81 = 19\text{,} positive.

(b) 72+242−252=49+576−625=0.7^2 + 24^2 - 25^2 = 49 + 576 - 625 = 0\text{.}

(c) 52+62−92=25+36−81=−20,5^2 + 6^2 - 9^2 = 25 + 36 - 81 = -20\text{,} negative.

(a) acute-angled (b) right-angled (c) obtuse-angled

Question 7

In △ABC\triangle ABC, a=8a = 8 cm, b=6b = 6 cm and c=7c = 7 cm. To find ∠A\angle A, Hui Min writes cos⁡A=82+62−722×8×6.\cos A = \dfrac{8^2 + 6^2 - 7^2}{2 \times 8 \times 6}\text{.} Find her mistake, and find ∠A\angle A.

ShowHide solution

She took away c2c^2, so she found ∠C\angle C. For ∠A\angle A, take away a2a^2, the side facing AA, and multiply bb and cc below.

cos⁡A=62+72−822×6×7=36+49−6484=2184=0.25,\cos A = \dfrac{6^2 + 7^2 - 8^2}{2 \times 6 \times 7} = \dfrac{36 + 49 - 64}{84} = \dfrac{21}{84} = 0.25\text{,} so A=75.522…∘A = 75.522\ldots^{\circ}.

∠A=75.5∘\angle A = 75.5^{\circ}

Question 8

A triangle has sides 33 cm, 66 cm and 77 cm. Arjun finds that the cosine of its largest angle is negative and says that such a triangle cannot exist. Is he right? Find the angle.

ShowHide solution

cos⁡θ=32+62−722×3×6=−436=−0.1111…\cos \theta = \dfrac{3^2 + 6^2 - 7^2}{2 \times 3 \times 6} = \dfrac{-4}{36} = -0.1111\ldots

He is not right. A negative cosine means an obtuse angle: θ=cos⁡−1(−0.1111…)=96.379…∘.\theta = \cos^{-1}(-0.1111\ldots) = 96.379\ldots^{\circ}\text{.}

No: the angle is obtuse, 96.4∘96.4^{\circ}.

Question 9

A triangular plot of land has sides 4040 m, 5555 m and 7070 m. Find (a) its largest angle, (b) its area, to the nearest square metre.

ShowHide solution

(a) The largest angle faces the 7070 m side: cos⁡θ=402+552−7022×40×55=1600+3025−49004400=−2754400,\cos \theta = \dfrac{40^2 + 55^2 - 70^2}{2 \times 40 \times 55} = \dfrac{1600 + 3025 - 4900}{4400} = \dfrac{-275}{4400}\text{,} so θ=93.583…∘\theta = 93.583\ldots^{\circ}.

(b) The angle found lies between the 4040 m and 5555 m sides (lesson 6.2): area =12×40×55×sin⁡93.583…∘=1097.8… m2,= \frac{1}{2} \times 40 \times 55 \times \sin 93.583\ldots^{\circ} = 1097.8\ldots\text{ m}^{2}\text{,} using the unrounded angle.

(a) 93.6∘93.6^{\circ} (b) 1098 m21098\text{ m}^{2}

Question 10

The end of a tent is a triangle. Its two sloping sides are each 2.42.4 m long, and its base is 33 m wide. Find the angle at the top of the tent.

ShowHide solution

The angle at the top is between the two 2.42.4 m sides, and the 33 m base faces it.

cos⁡θ=2.42+2.42−322×2.4×2.4=5.76+5.76−911.52=2.5211.52,\cos \theta = \dfrac{2.4^2 + 2.4^2 - 3^2}{2 \times 2.4 \times 2.4} = \dfrac{5.76 + 5.76 - 9}{11.52} = \dfrac{2.52}{11.52}\text{,} so θ=77.364…∘\theta = 77.364\ldots^{\circ}.

77.4∘77.4^{\circ}

Question 11

A boat sails 55 km from AA to BB, then 77 km from BB to CC. It is then 99 km from AA. Find ∠ABC\angle ABC, the angle between the two parts of its journey at BB.

Triangle ABC with AB = 5 km, BC = 7 km and AC = 9 km; the angle ABC, θ, is to be foundACB7 km5 km9 kmθ
ShowHide solution

∠ABC\angle ABC is between ABAB and BCBC; AC=9AC = 9 km faces it.

cos⁡B=52+72−922×5×7=25+49−8170=−770=−0.1,\cos B = \dfrac{5^2 + 7^2 - 9^2}{2 \times 5 \times 7} = \dfrac{25 + 49 - 81}{70} = \dfrac{-7}{70} = -0.1\text{,} so B=95.739…∘B = 95.739\ldots^{\circ}.

∠ABC=95.7∘\angle ABC = 95.7^{\circ}

Question 12

Show that the largest angle of a triangle with sides 33 cm, 55 cm and 77 cm is exactly 120∘120^{\circ}.

ShowHide solution

The largest angle faces the 77 cm side: cos⁡θ=32+52−722×3×5=9+25−4930=−1530=−0.5.\cos \theta = \dfrac{3^2 + 5^2 - 7^2}{2 \times 3 \times 5} = \dfrac{9 + 25 - 49}{30} = \dfrac{-15}{30} = -0.5\text{.}

cos⁡120∘=−cos⁡60∘=−0.5\cos 120^{\circ} = -\cos 60^{\circ} = -0.5 (lesson 6.1), and cos⁡x=−0.5\cos x = -0.5 has only this answer, so θ=120∘\theta = 120^{\circ}.

The angle is exactly 120∘120^{\circ}.

Key Points

  • With three sides known, the cosine rule rearranged gives any angle: cos⁡C=a2+b2−c22ab.\cos C = \dfrac{a^2 + b^2 - c^2}{2ab}\text{.}
  • The side taken away on top faces the angle wanted; the other two sides make the angle.
  • A negative cosine means an obtuse angle, and cos⁡−1\cos^{-1} gives it directly. There is never a second, two-triangle answer.
  • Only the angle facing the longest side can be obtuse: find it first, and the angle sum gives the last angle.
  • With aa the longest side, b2+c2−a2b^2 + c^2 - a^2 positive, zero or negative means an acute-angled, right-angled or obtuse-angled triangle.

Previous lesson6.5 The Cosine Rule: Finding a Side Next lesson6.7 Choosing the Rule to Solve a Triangle

All Secondary 3 (Grade 9) lessons

Home Campus has lessons for Primary 3 to Secondary 4, and practice questions with worked solutions and worksheets for Primary 3 to Secondary 2. Register free to practise and keep track of progress.

This lesson follows the Singapore Secondary 3 syllabus and was checked question by question before it was published. Spotted a mistake? Tell us.