Skip to content
spmaddmath.com.my
Tuition

Study

SyllabusFormulasMethodsExam & PapersTools
LocationsPricingBlogOur TeachersContact
EN

Method · Solution of Triangles

Choosing between the sine rule and the cosine rule

Use the cosine rule when you know two sides and the included angle (SAS) or all three sides (SSS); use the sine rule when you have an angle opposite a known side.

What this method is for

These two rules let you find the missing sides and angles of any triangle, not just right-angled ones. The sine rule, asinA=bsinB=csinC\frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C}, links each side to the sine of the angle opposite it, so it works when you can pair a known side with its opposite angle.

The cosine rule, a2=b2+c22bccosAa^{2} = b^{2} + c^{2} - 2bc\cos A, links three sides and one angle, so it works when the sine rule cannot even get started. Between them they solve triangles from the standard data sets: two angles and a side, two sides and the included angle, or all three sides.

Choosing the right rule is the whole skill, the arithmetic afterwards is short. It also underpins area, bearings and 3-D problems later in the syllabus.

sine rule
asinA=bsinB=csinC\frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C}
cosine rule (for a side)
a2=b2+c22bccosAa^{2} = b^{2} + c^{2} - 2bc\cos A
cosine rule (for an angle)
cosA=b2+c2a22bc\cos A = \frac{b^{2} + c^{2} - a^{2}}{2bc}

When to reach for it

Look at what the triangle gives you. If you have two sides and the angle between them (SAS), or all three sides (SSS), start with the cosine rule, the sine rule has no complete side–angle pair to begin from.

If instead you have a side together with the angle opposite it, two angles and any side (AAS/ASA), or two sides and a non-included angle (SSA), use the sine rule.

A quick test settles it: can you name a side and the angle directly opposite it, both known? If yes, the sine rule is available; if no, reach for the cosine rule first, find one more part, and the sine rule usually opens up for the rest.

Keep the calculator in degree mode, and remember that with two sides and a non-included angle the sine rule can give two possible answers, the ambiguous case.

The steps

  1. 1

    Label the triangle

    Mark sides a,b,ca, b, c opposite angles A,B,CA, B, C; a side and its opposite angle share the letter.

  2. 2

    List what you know

    Write down the given sides and angles and mark clearly what you must find.

  3. 3

    Choose the rule

    SAS or SSS \rightarrow cosine rule; a side with its opposite angle \rightarrow sine rule.

  4. 4

    Write the rule with your letters

    For an angle by the cosine rule use cosA=b2+c2a22bc\cos A = \frac{b^{2} + c^{2} - a^{2}}{2bc}; for a side use a2=b2+c22bccosAa^{2} = b^{2} + c^{2} - 2bc\cos A.

  5. 5

    Substitute and solve

    Put in the numbers, keep the calculator in degree mode, and solve for the unknown.

  6. 6

    Check it is reasonable

    The largest angle faces the longest side, and the three angles add to 180180^{\circ}.

Worked example

Q1[6 marks]

In triangle ABCABC, b=5b = 5 cm, c=8c = 8 cm and the included angle A=60A = 60^{\circ}. (a) Find the length of side aa.

(b) Hence find angle BB, giving your answer to the nearest 0.10.1^{\circ}.

Show worked solution

Part (a). Two sides and the angle between them are given (SAS), so start with the cosine rule for the side opposite the known angle.

a2=b2+c22bccosA=52+822(5)(8)cos60a^{2} = b^{2} + c^{2} - 2bc\cos A = 5^{2} + 8^{2} - 2(5)(8)\cos 60^{\circ}

Since cos60=12\cos 60^{\circ} = \frac{1}{2}:

a2=25+6480×12=8940=49a=7 cma^{2} = 25 + 64 - 80 \times \tfrac{1}{2} = 89 - 40 = 49 \quad\Rightarrow\quad a = 7 \text{ cm}

Part (b). Now a side (a=7a = 7) and its opposite angle (A=60A = 60^{\circ}) are both known, so the sine rule can find angle BB, which faces side b=5b = 5.

sinBb=sinAasinB=bsinAa=5sin607\frac{\sin B}{b} = \frac{\sin A}{a} \quad\Rightarrow\quad \sin B = \frac{b\sin A}{a} = \frac{5\sin 60^{\circ}}{7}

Evaluating with sin60=0.8660\sin 60^{\circ} = 0.8660:

sinB=5×0.86607=4.3307=0.6186B=38.2\sin B = \frac{5 \times 0.8660}{7} = \frac{4.330}{7} = 0.6186 \quad\Rightarrow\quad B = 38.2^{\circ}

So a=7a = 7 cm and B38.2B \approx 38.2^{\circ}. The reasonableness check holds: side b=5b = 5 is the shortest side, and B38.2B \approx 38.2^{\circ} is the smallest angle, exactly as it should be.

Common pitfalls

  • Trying the sine rule on SAS or SSS data, where there is no complete side–angle pair to start from, use the cosine rule first.
  • The ambiguous case (SSA): when the sine rule gives an angle, a second, obtuse angle 180θ180^{\circ} - \theta may also fit, check whether it is possible.
  • A sign slip in the cosine rule, it is 2bccosA-\,2bc\cos A; when AA is obtuse, cosA\cos A is negative and that term becomes an addition.
  • Pairing a side with the wrong angle, side aa must go with angle AA, the one opposite it.
  • Leaving the calculator in radian mode, so cos60\cos 60^{\circ} or sin60\sin 60^{\circ} is evaluated wrongly.

How a teacher helps

The step that decides the whole question is the choice of rule, and the classic slip is forcing the sine rule onto two sides and their included angle, where it cannot even start. In one-to-one lessons our teachers give you one quick test,'can I name a side and the angle opposite it, both known?', and you write the answer down before choosing: yes means sine rule, no means cosine rule.

We drill the cosine-rule sign, 2bccosA-\,2bc\cos A, and flag the ambiguous SSA case so a second obtuse angle is never quietly missed. Because SPM Add Math is marked analytically, quoting the correct rule and substituting properly already earns method marks even if a rounding step slips.

Lessons are taught in English, while the SPM paper is set bilingually. Every teacher on spmaddmath.com.my is experienced, with lessons online at your own pace.

Get 1-to-1 help.

Book a Trial Class

Frequently asked questions

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

Use the cosine rule when you know two sides and the included angle (SAS) or all three sides (SSS). In those cases the sine rule has no complete side–angle pair to begin from.

What is the ambiguous case?

When the sine rule finds an angle from two sides and a non-included angle (SSA), both an acute angle θ\theta and its obtuse partner 180θ180^{\circ} - \theta share the same sine, so two triangles may be possible. Check which one fits the given sides.

How do I find an angle with the cosine rule?

Rearrange to cosA=b2+c2a22bc\cos A = \frac{b^{2} + c^{2} - a^{2}}{2bc}, then take the inverse cosine. This is the safe choice when all three sides are known.

Does the largest angle always face the longest side?

Yes. In any triangle the biggest angle is opposite the longest side, and the smallest angle opposite the shortest.

It is a quick way to sanity-check your answer.

Source:SRC-DSKP-EN

Written by the spmaddmath.com.my editorial team.· Last updated 5 September 2026

Ready to get started?

Book a Trial Classfrom RM50/hr · One-hour paid trial · Same-day reply
Book a Trial ClassOne-hour paid trial · Same-day reply