How is the cosine rule used to find missing sides and angles in non-right-angled triangles?
Use the cosine rule to find a side given two sides and the included angle, or an angle given three sides
A focused answer to the HSC Maths Standard 2 dot point on the cosine rule. Both forms of the rule, when to use it (SAS or SSS), a stage-by-stage SAS solve, exam wording, the link to Pythagoras, and worked navigation and paddock examples.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
What this dot point is asking
NESA wants you to apply the cosine rule in the two situations the sine rule cannot handle. The first is finding the third side when you know two sides and the angle between them (SAS). The second is finding an angle when you know all three sides (SSS). The rule is printed on the NESA reference sheet, so you do not need to memorise it. The marks come from choosing it correctly, substituting accurately, and rounding sensibly.
The deciding question is always the same: can I pair a side with the angle opposite it? In SAS the given angle sits between the two given sides, so it has no opposite side among the ones you know. In SSS there are no angles at all. Either way there is no usable pair, so the sine rule cannot start and the cosine rule takes over.
The answer
The cosine rule for a side (SAS)
For any triangle with sides , , opposite angles , , :
Here is the side opposite the known angle , and , are the two sides that enclose . By symmetry the same pattern rotates around the triangle:
The pattern in words: the unknown side squared equals the sum of the squares of the other two sides, minus twice their product times the cosine of the angle between them.
The cosine rule for an angle (SSS)
Rearranging the same equation to make the angle the subject:
The angle is opposite the side . To find a specific angle, put its opposite side as in this formula. A neat feature: the sign of the top tells you the angle's type. If is negative, is negative and the angle is obtuse; if it is zero the angle is exactly ; if positive, acute.
When to use it (and when not to)
- SAS (two sides and the included angle): use the side form to get the third side.
- SSS (three sides, no angle): use the angle form to get one angle. After that you can use the cosine rule again, or switch to the (quicker) sine rule for the remaining angles.
For AAS / ASA or SSA, there is a complete side-angle pair, so use the sine rule instead.
Identifying the included angle
The included angle is the one between the two given sides. In worded problems it shows up as "the angle at between and ", "an angle of between the two roads", or as the bend in a journey. If the angle you are given is not enclosed by your two sides, you do not have a clean SAS setup, so re-read or redraw before substituting.
The cosine rule, stage by stage (SAS)
Two roads leave a town at an angle of . A car drives km along one and km along the other. How far apart are the two endpoints?
Stage 1, label the SAS triangle. Put the town at vertex . The two roads are the sides and , and the angle between them is . The distance we want, , is the side opposite .
Stage 2, confirm the angle is included. The sits between the two known sides, so this is genuinely SAS and the cosine rule applies directly. If the angle had been at one of the far ends instead, this would not be SAS.
Stage 3, substitute and solve. , so km. Sense-check: should be shorter than the two roads added end to end ( km) but longer than their difference ( km), and sits comfortably between.
The link to Pythagoras
Suppose the included angle is a right angle. Then , the term becomes zero, and the rule reduces to . So Pythagoras is just the special case of the cosine rule for right-angled triangles. Put the other way round, the cosine rule is Pythagoras plus a correction term, , that adjusts for the angle not being . When is acute the correction is negative, so the opposite side is shorter than Pythagoras would predict. When is obtuse, , so the correction is positive and the opposite side is longer.
Watch the sign when the angle is obtuse
For an obtuse included angle, is negative, so becomes a positive number you add. Forgetting this is a frequent error. For example with , , and . The opposite side comes out longer than either enclosing side, which matches the geometry of a wide-open triangle.
How exam questions ask about the cosine rule
- "Find the length of ... / how far apart ..." with two sides and the angle between them. SAS: use the side form.
- "Find the size of the largest / smallest angle" with three sides given. SSS: use the angle form. The largest angle faces the longest side and the smallest faces the shortest, so you can target the one asked for directly.
- "A ship sails ... then changes course ..." Convert the change of bearing into the interior angle at the bend (often the supplement of the turn), then it is SAS.
- "Show that the angle is obtuse / acute." Use the angle form and read the sign of : negative means obtuse, zero means right, positive means acute.
- "Hence find the area / the remaining angles." A multi-part question: use the cosine rule first, then feed the result into the area formula or the sine rule.
Exam-style practice questions
Practice questions written in the style of NESA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
2022 HSC-style3 marksIn triangle , cm, cm and . Find side correct to one decimal place.Show worked answer →
Use .
.
.
.
.
Rounded to one decimal place: cm.
Markers reward the cosine rule stated, correct substitution, intermediate computation kept to at least four decimal places, and final answer at the requested precision.
2023 HSC-style4 marksA triangular paddock has sides m, m and m. Find the largest angle of the paddock correct to the nearest degree.Show worked answer →
The largest angle is opposite the longest side ( m). Use the cosine rule rearranged:
.
Let , , .
.
, round to .
Markers reward identifying the largest angle as opposite the longest side, the rearranged cosine rule, and the angle rounded as requested. Half a mark if you find but do not justify which side it sits opposite.
Practice questions
Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.
foundation1 marksIn triangle , the sides cm and cm meet at an included angle . Find the length of the third side , correct to one decimal place.
Show worked solution →
State the rule (SAS). The angle lies between the two known sides, so use the side form:
Substitute the given values. With , and :
Take the square root.
Answer: cm.
foundation2 marksA triangle has sides of length cm, cm and cm. Find the size of the angle opposite the cm side, correct to the nearest degree.
Show worked solution →
State the rule (SSS). Three sides and no angle means use the angle form, with the wanted angle's opposite side as and the enclosing sides as and :
Substitute the given values.
Invert to find the angle.
Answer: the angle opposite the cm side is about .
foundation2 marksIn triangle , the side cm and the side cm meet at an included angle . Find the length of the third side , correct to two decimal places.Show worked solution →
State the rule (SAS). The angle sits between the two known sides, so use the side form of the cosine rule:
Substitute the given values. With , and , and using :
Take the square root.
Check. The included angle is acute, so should be shorter than the Pythagoras value cm, and it should sit between the difference of the sides ( cm) and their sum ( cm). Since cm satisfies both, the answer is reasonable.
foundation3 marksA triangular garden bed has sides of length m, m and m. Find the size of the largest angle, correct to the nearest degree.Show worked solution →
Identify the largest angle. The largest angle lies opposite the longest side, which is the m side. Put that side as and the two enclosing sides as and .
State the rule (SSS). Three sides and no angle means use the angle form:
Substitute the given values.
Invert to find the angle.
Check. The numerator is negative, which predicts an obtuse angle, and is indeed obtuse. The largest angle of the garden bed is about .
core3 marksIn triangle , the side cm and the side cm meet at an included angle . Find the length of the third side , correct to two decimal places.
Show worked solution →
Label the SAS triangle. The angle sits between the two known sides and , so the side opposite comes from the side form.
Mind the obtuse angle. Because is obtuse, is negative, so the last term is added rather than subtracted:
Take the square root.
Check. The angle is just past a right angle, so should be a little longer than the Pythagoras value cm, and cm is, as expected. The third side is about cm.
core3 marksTwo straight fences meet at a corner post at an angle of . One fence runs m and the other runs m from the post. Find the distance between the two far ends of the fences, correct to two decimal places.Show worked solution →
Label the SAS triangle. Put the corner post at vertex . The two fences are the sides and , and the angle between them is the included angle . The distance we want, , is opposite that angle.
State and substitute the side form. Because is obtuse, is negative, so the last term is added:
Take the square root.
Check. With a wide obtuse angle the far ends should be well separated, close to the sum of the fences ( m) rather than their difference ( m), and m sits sensibly in that range. The ends are about m apart.
core3 marksA triangle has sides of length cm, cm and cm. Find the size of the smallest angle, correct to the nearest degree.Show worked solution →
Identify the smallest angle. The smallest angle lies opposite the shortest side, which is the cm side. Put that side as and the enclosing sides as and .
State the rule (SSS).
Substitute the given values.
Invert to find the angle.
Check. The numerator is positive, so the angle is acute, and is the smallest of the three angles because it faces the shortest side. The smallest angle is about .
core4 marksA bushwalker leaves a campsite on a bearing of and walks km, then changes course to a bearing of and walks a further km. Find the straight-line distance from the campsite to the walker's finishing point, correct to two decimal places.Show worked solution →
- Find the interior angle at the bend
- The bearing turns by . The interior angle of the triangle at the turning point is the supplement, , because the new leg makes an angle with the straight-ahead direction.
- Set up the SAS triangle
- The two legs km and km enclose the angle, and the unknown is the distance from the campsite.
- State and substitute the side form
- Since , the last term is added:
Take the square root.
Check. The result lies between the difference of the legs ( km) and their sum ( km), as it must, so the walker finishes about km from the campsite.
exam5 marksA triangular paddock has two sides meeting at corner : the side m and the side m, with an included angle of at . (a) Find the length of the remaining side , correct to two decimal places. (b) Hence find the area of the paddock, correct to the nearest square metre.Show worked solution →
Part (a), label the SAS triangle. The included angle sits between the two known sides and , so the side opposite comes straight from the side form.
Substitute and solve for . Using :
Part (b), choose the area formula. We already know two sides and the angle between them, so the included-angle area formula is the quickest route:
Substitute. Using :
Check. The third side m is longer than each given side, which fits an angle near opening the triangle wide, and the area is a little under the right-angled maximum of m, exactly as expected when the angle is just under .
exam5 marksA ship sails from port to port on a bearing of , a distance of km. At it changes course to a bearing of and sails km to port . Find the direct distance from to , correct to two decimal places.Show worked solution →
- Find the interior angle at
- The bearing changes by , so the interior angle of triangle at the bend is the supplement, .
- Set up the SAS triangle
- The two legs km and km enclose the angle at , and the unknown is the side opposite .
- State and substitute the side form
- Because is obtuse, is negative and the final term is added:
Take the square root.
Check. The distance lies between the difference of the legs ( km) and their sum ( km), and the obtuse turn pushes it towards the upper end, so km is sensible.
exam4 marksA triangle has sides of length m, m and m. (a) Show that the angle opposite the m side is obtuse. (b) Find that angle, correct to the nearest minute.Show worked solution →
Part (a), set up the angle form. Put the side opposite the wanted angle as , and the two enclosing sides as and :
Read the sign. The numerator is negative, so is negative and the angle must lie between and . The angle opposite the m side is therefore obtuse.
Part (b), invert to find the angle.
Convert the decimal part to minutes. The whole-degree part is , and , so
Check. The angle is obtuse as shown in part (a), and is the largest angle of the triangle because it faces the longest side, which is consistent. The angle is about .
exam6 marksA surveyor standing at station sights two boundary markers and . The distance m, the distance m, and the angle between the two lines of sight is . (a) Find the direct distance between the two markers, correct to two decimal places. (b) Hence find the size of the angle at marker , correct to the nearest degree.
Show worked solution →
Part (a), label the SAS triangle. The angle sits between the two known sides and , so the side opposite comes from the side form.
Substitute and solve for . Using :
Part (b), set up the angle form at . Now all three sides are known, so use the angle form with the wanted angle's opposite side as , and the enclosing sides and :
Invert to find the angle.
Check. The three angles should sum to . With and , the angle at would be about , and , so the working is consistent. The angle is about .
