HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Sine and Cosine Rules in Heights and Distances
  1. 1The sine rule, the cosine rule and triangle area
  2. 2Two stations and the triangle at the top
  3. 3Navigation with the sine and cosine rules
  1. Mathematics
  2. /Sine and Cosine Rules in Heights and Distances
  3. /The sine rule, the cosine rule and triangle area

Course 35.2·Lesson 1 of 3

The sine rule, the cosine rule and triangle area

In any triangle the sides are in proportion to the sines of the opposite angles: asin⁡A=bsin⁡B=csin⁡C\dfrac{a}{\sin A} = \dfrac{b}{\sin B} = \dfrac{c}{\sin C}sinAa​=sinBb​=sinCc​

Lesson 1 of 3Show all lessonsHide
Sine and Cosine Rules in Heights and Distances
  1. 1The sine rule, the cosine rule and triangle area
  2. 2Two stations and the triangle at the top
  3. 3Navigation with the sine and cosine rules

Try the code and the simulations beside the lesson.

What you will be able to do

  • choose between the sine rule and the cosine rule from the data;
  • find the area of a triangle from two sides and the angle between them;
  • spot the ambiguous case and find every triangle that fits.

When the right angle is missing

A surveyor stands at a corner of a field. The other two corners are far apart, and the angle at her corner is 75∘75^\circ75∘. No right angle appears anywhere. The ratios sin⁡\sinsin, cos⁡\coscos and tan⁡\tantan of a right triangle do not apply directly. Two rules work in every triangle.

We name a triangle ABCABCABC and call the side opposite each corner by the small letter: aaa is opposite AAA, bbb opposite BBB and ccc opposite CCC.

A triangle ABC with no right angle. The corners are labelled A, B and C, and the side opposite each corner is labelled with the small letter: a opposite A, b opposite B and c opposite C.

The sine rule

asin⁡A=bsin⁡B\displaystyle \dfrac{a}{\sin A} = \dfrac{b}{\sin B}sinAa​=sinBb​
=csin⁡C.\displaystyle \qquad = \dfrac{c}{\sin C}.=sinCc​.

Each ratio also equals 2R2R2R, where RRR is the radius of the circle through the three corners. Use the sine rule when you know two angles and a side, or two sides and an angle opposite one of them.

Example. A=40∘A = 40^\circA=40∘, B=65∘B = 65^\circB=65∘ and a=10 ma = 10\ \text{m}a=10 m.

  1. The third angle. C=180∘−40∘−65∘=75∘C = 180^\circ - 40^\circ - 65^\circ = 75^\circC=180∘−40∘−65∘=75∘.
  2. Side bbb. b=10sin⁡65∘sin⁡40∘≈14.10 mb = \dfrac{10 \sin 65^\circ}{\sin 40^\circ} \approx 14.10\ \text{m}b=sin40∘10sin65∘​≈14.10 m.
  3. Side ccc. c=10sin⁡75∘sin⁡40∘≈15.03 mc = \dfrac{10 \sin 75^\circ}{\sin 40^\circ} \approx 15.03\ \text{m}c=sin40∘10sin75∘​≈15.03 m.

The cosine rule

c2=a2+b2−2abcos⁡C.\displaystyle c^2 = a^2 + b^2 - 2ab\cos C.c2=a2+b2−2abcosC.

Use it when you know two sides and the angle between them, or all three sides. For an angle, rearrange in the step where the angle is the unknown:

cos⁡C=a2+b2−c22ab.\displaystyle \cos C = \dfrac{a^2 + b^2 - c^2}{2ab}.cosC=2aba2+b2−c2​.

When C=90∘C = 90^\circC=90∘, cos⁡C=0\cos C = 0cosC=0 and the rule becomes Pythagoras. So the cosine rule is Pythagoras with a correction for the angle.

Example. a=7 ma = 7\ \text{m}a=7 m, b=8 mb = 8\ \text{m}b=8 m, C=60∘C = 60^\circC=60∘. Then c2=49+64−56=57c^2 = 49 + 64 - 56 = 57c2=49+64−56=57, so c=57 m≈7.55 mc = \sqrt{57}\ \text{m} \approx 7.55\ \text{m}c=57​ m≈7.55 m.

The area

The height of the triangle on the side aaa is bsin⁡Cb\sin CbsinC. So

Area=12absin⁡C.\displaystyle \text{Area} = \tfrac{1}{2}ab\sin C.Area=21​absinC.

In the last example the area is 12×7×8×sin⁡60∘=143 m2≈24.25 m2\tfrac{1}{2} \times 7 \times 8 \times \sin 60^\circ = 14\sqrt{3}\ \text{m}^2 \approx 24.25\ \text{m}^221​×7×8×sin60∘=143​ m2≈24.25 m2.

The ambiguous case

Suppose you know AAA, the side aaa opposite it, and another side bbb. Swing the side aaa from the end of bbb like a door. It may reach the base line twice, once or not at all.

A base line from A, with a side b = 8 rising from A at an angle of 40 degrees to a point C. From C, a circle arc of radius a = 6 cuts the base line at two points, B1 and B2. The two triangles A B1 C and A B2 C both have the angle 40 degrees at A, the side 8 and the side 6.

The sine rule gives sin⁡B=bsin⁡Aa\sin B = \dfrac{b\sin A}{a}sinB=absinA​. Then:

  • if a<bsin⁡Aa < b\sin Aa<bsinA, there is no triangle, because sin⁡B\sin BsinB would be more than 111;
  • if a=bsin⁡Aa = b\sin Aa=bsinA, there is one right-angled triangle;
  • if bsin⁡A<a<bb\sin A < a < bbsinA<a<b, there are two triangles, with BBB and 180∘−B180^\circ - B180∘−B;
  • if a≥ba \ge ba≥b, there is one triangle, because the obtuse BBB would leave no room.

Example. A=40∘A = 40^\circA=40∘, a=6 ma = 6\ \text{m}a=6 m, b=8 mb = 8\ \text{m}b=8 m. Here bsin⁡A≈5.14 mb\sin A \approx 5.14\ \text{m}bsinA≈5.14 m, which is less than 6 m6\ \text{m}6 m, and 6 m<8 m6\ \text{m} < 8\ \text{m}6 m<8 m. Two triangles fit. sin⁡B≈0.857\sin B \approx 0.857sinB≈0.857, so B≈58.99∘B \approx 58.99^\circB≈58.99∘ or B≈121.01∘B \approx 121.01^\circB≈121.01∘.

You prove both rules in the chapter on Euclidean geometry. Books in the United States call them the law of sines and the law of cosines.

Practise with new numbers

Try it in Python

The program solves a triangle from two sides and the angle between them. Then it lists every triangle that fits two sides and a non-included angle.

Read it first. Then run it. How many triangles does the second part find?

1. Change a = 6 to a = 9 in the second part. How many triangles fit now, and why?

2. Change a = 6 to a = 5. What does the program print, and which bullet of the lesson explains it?

Common mistakes

  • Pairing a side with the wrong angle. In the sine rule each side goes with the angle opposite it.
  • A plus sign in the cosine rule. It is −2abcos⁡C- 2ab\cos C−2abcosC. For an obtuse CCC, cos⁡C\cos CcosC is negative, so the side comes out longer, as it should.
  • Missing the second triangle. sin⁡B=0.857\sin B = 0.857sinB=0.857 has two answers between 0∘0^\circ0∘ and 180∘180^\circ180∘. Check whether the obtuse one fits.
  • Using the sine rule for an angle when the cosine rule is safer. For the largest angle, use the cosine rule. Its sign tells you at once whether the angle is obtuse.

Remember these

  • Sine rule: asin⁡A=bsin⁡B=csin⁡C=2R\dfrac{a}{\sin A} = \dfrac{b}{\sin B} = \dfrac{c}{\sin C} = 2RsinAa​=sinBb​=sinCc​=2R.
  • Cosine rule: c2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos Cc2=a2+b2−2abcosC.
  • Area: 12absin⁡C\tfrac{1}{2}ab\sin C21​absinC.
  • Two sides and a non-included angle may give two, one or no triangles.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. Which rule do you use first if you know the three sides of a triangle?
  1. In a triangle, a=5 ma = 5\ \text{m}a=5 m, b=5 mb = 5\ \text{m}b=5 m and C=90∘C = 90^\circC=90∘. Find ccc by the cosine rule.
  1. Find the area of a triangle with sides 6 m6\ \text{m}6 m and 10 m10\ \text{m}10 m and the angle 30∘30^\circ30∘ between them.
  1. With A=50∘A = 50^\circA=50∘, b=10 mb = 10\ \text{m}b=10 m and a=12 ma = 12\ \text{m}a=12 m, how many triangles fit?
  1. Why does the cosine rule give a longer side for an obtuse angle than Pythagoras would?

References

  • OpenStax, Precalculus 2e, Chapter 8, section 8.1 (the law of sines, the ambiguous case, area) and section 8.2 (the law of cosines).
  • Cambridge IGCSE Mathematics 0580 syllabus, topic E6.5 (the sine rule, the cosine rule and 12absin⁡C\tfrac{1}{2}ab\sin C21​absinC).

Enroll free in Sine and Cosine Rules in Heights and Distances

Every lesson is open to read. Enrolling also lets you:

  • Mark lessons done and carry on where you stopped.
  • Take the tests of this lesson and its course.
  • Count the course towards the certificate for its chapter.
No payment. You can leave at any time.

Problems (3)

A farmer's triangular plot has sides of 50 m, 70 m and 90 m, measured with a tape…Hard · High School (11–12) · by StemPy Lab
A surveyor marks two posts A and B that are 120 m apart…Advanced · High School (11–12) · by StemPy Lab
Two points A and B lie on opposite sides of a pond, so nobody can stretch a tape between them…Hard · High School (11–12) · by StemPy Lab
Next: lesson 2Two stations and the triangle at the top
← Sine and Cosine Rules in Heights and Distances
← PreviousTwo stations and the triangle at the top →

Discussion (0)

Log in to join the discussion.

Loading…

. The cosine rule
c2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos Cc2=a2+b2−2abcosC
joins three sides and one angle. The area is
12absin⁡C\tfrac{1}{2}ab\sin C21​absinC
. Two sides and a non-included angle may fit two triangles, one triangle or none.
about 25 min1 simulation1 practice question1 Python program5 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

Python Labs (1)

A triangle solverPython Lab · by StemPy Lab