Math 3 • Geometry

Law of Sines & Cosines — I can use the Law of Sines or Law of Cosines at an introductory level to solve non-right triangles in supported contexts.

Unlock every triangle — not just right ones — with two powerful formulas.

Math 3 emblem with sigma notation, a function, and a line graph.
Inside this lesson 10 sections 5 questions 8 figures

SECTION 1

Historical Context & Motivation

For thousands of years, people needed to measure distances they couldn't physically reach — the width of a river, the height of a mountain, or the distance to a star. Right triangles and the Pythagorean theorem could handle some of these problems, but the real world is full of triangles that don't contain a 90° angle. Mathematicians across many cultures developed relationships between a triangle's sides and angles that work for any triangle at all, eventually giving us the Law of Sines and the Law of Cosines.

c. 300 BCE • Euclid's Elements

Euclid compiled geometric theorems including early triangle relationships. His work on the Pythagorean theorem laid the groundwork for extending formulas beyond right triangles.

c. 150 CE • Ptolemy's Almagest

The Greek astronomer Ptolemy used chord tables — predecessors of sine tables — to solve astronomical triangles, effectively applying early versions of the Law of Sines to map the sky.

c. 1000 CE • Islamic Golden Age

Scholars like al-Bīrūnī and Nasīr al-Dīn al-Tūsī formalized the Law of Sines for both flat and spherical triangles, enabling advances in navigation and geography.

15th–16th Century • European Trigonometry Textbooks

Regiomontanus and later François Viète published comprehensive trigonometry texts, presenting the Law of Cosines as a generalization of the Pythagorean theorem for oblique triangles.

The central question these mathematicians tackled was simple but powerful: If I know some sides and angles of a non-right triangle, how do I find the rest? The Law of Sines and the Law of Cosines are the two tools that answer that question completely.

SECTION 2

Core Principles & Definitions

Before diving into the formulas, you need a few key ideas. An oblique triangle is any triangle that does not have a right angle. Standard labeling places each angle with an uppercase letter (A, B, C) and the side directly across from it with the matching lowercase letter (a, b, c). This opposite-pair relationship is the backbone of both laws.

1

Opposite Pairs

Every angle in a triangle has an opposite side. Angle A sits across from side a, angle B across from side b, and angle C across from side c. Both laws rely on these pairings.
2

Law of Sines

In any triangle, the ratio of a side length to the sine of its opposite angle is the same for all three pairs: a/sin A = b/sin B = c/sin C.
3

Law of Cosines

A generalized version of the Pythagorean theorem: c² = a² + b² − 2ab cos C. It connects all three sides to one included angle and reduces to a² + b² = c² when C = 90°.
4

Choosing the Right Law

Use the Law of Sines when you know an angle and its opposite side plus one more measurement (AAS, ASA, or SSA). Use the Law of Cosines when you know two sides and their included angle (SAS) or all three sides (SSS).
✦

KEY TAKEAWAY

Think of the Law of Sines as a set of balanced scales — each side-to-sine ratio must match. The Law of Cosines is like an upgraded Pythagorean theorem with a correction term (−2ab cos C) that adjusts for the triangle not being a right triangle. When the angle is 90°, cos 90° = 0 and the correction disappears, giving you the classic a² + b² = c².

SECTION 3

Visual Explanation

Labeled Oblique Triangle with Opposite PairsABCa (opposite A)b (opposite B)c (opposite C)
Each angle is labeled with an uppercase letter and its opposite side with the matching lowercase letter. Side a is across from angle A, side b is across from angle B, and side c is across from angle C.

The diagram above shows the standard labeling convention you will use throughout this lesson. Notice that the triangle has no right angle — this is the type of triangle where the Pythagorean theorem alone cannot help you. The consistent naming of opposite pairs (A with a, B with b, C with c) is essential because both the Law of Sines and the Law of Cosines are built around these pairings. When you set up either formula, always double-check that your angle and its opposite side are correctly matched.

SECTION 4

Mathematical Framework

The Law of Sines

LAW OF SINES

a/sinA=b/sinB=c/sinCa / sin A = b / sin B = c / sin C

Where a, b, c are side lengths and A, B, C are the angles opposite those sides. All three ratios are equal, so you typically use just two at a time.

The Law of Sines tells you that the ratio of any side to the sine of its opposite angle is constant within a given triangle. You can use it whenever you know at least one complete opposite pair (a side and the angle across from it) plus one additional piece. This covers the AAS (angle-angle-side) and ASA (angle-side-angle) cases. The SSA (side-side-angle) case can also use it, though you should be cautious of the ambiguous case where two different triangles might be possible — but that detail goes beyond our introductory level.

The Law of Cosines

LAW OF COSINES

c2=a2+b2−2abcosCc² = a² + b² − 2ab cos C

Where a and b are two known sides, C is the included angle between them, and c is the side opposite angle C. The formula can be rearranged for any side or angle.

LAW OF COSINES — SOLVING FOR AN ANGLE

cosC=(a2+b2−c2)/(2ab)cos C = (a² + b² − c²) / (2ab)

Rearranged to isolate the cosine of angle C. Use this form when you know all three sides (SSS) and need to find an angle. Apply the inverse cosine function (cos⁻¹) to get the angle measure.

The Law of Cosines is perfect for the SAS (side-angle-side) case, where you know two sides and the angle between them, and the SSS (side-side-side) case, where all three sides are known but no angles are given. Notice that if C = 90°, then cos 90° = 0, and the formula simplifies to c² = a² + b², which is exactly the Pythagorean theorem. This shows that the Pythagorean theorem is just a special case of the Law of Cosines.

SECTION 5

Choosing the Right Law

One of the most common questions students ask is, "How do I know which law to use?" The answer depends on what information you are given. The decision flowchart below and the summary table will make this choice automatic.

Decision Flowchart: Law of Sines vs. Law of CosinesWhat info do you have?Do you know an opposite pair?Two sides + included angle(SAS) or three sides (SSS)?YESNOLAW OF SINES(AAS, ASA, or SSA)Check if you canfind a 3rd angle firstYESLAW OF COSINES(SAS or SSS)Quick Rule of ThumbHave an opposite pair → Law of SinesHave SAS or SSS → Law of Cosines
Start at the top and follow the branches. If you know a side and its opposite angle (an opposite pair), use the Law of Sines. If you know two sides and the angle between them (SAS) or all three sides (SSS), use the Law of Cosines.
Given InformationAbbreviationWhich Law?
Two angles and one sideAAS or ASALaw of Sines
Two sides and a non-included angleSSALaw of Sines
Two sides and the included angleSASLaw of Cosines
All three sidesSSSLaw of Cosines

Summary of when to use each law

SECTION 6

Worked Examples

Example 1: Using the Law of Sines (AAS)

In triangle ABC, angle A = 42°, angle B = 73°, and side a = 12 cm. Find side b.

Law of Sines — Finding a Missing Side

  1. 1

    Step 1 — Identify Given Values

    We know A = 42°, B = 73°, and a = 12 cm. We need to find b. Since we have an opposite pair (angle A and side a), this is a case for the Law of Sines.
  2. 2

    Step 2 — Set Up the Proportion

    Write the Law of Sines using the two pairs that involve our known and unknown values: a / sin A = b / sin B, which becomes 12 / sin 42° = b / sin 73°.
  3. 3

    Step 3 — Solve for b

    Cross-multiply: b = 12 × sin 73° / sin 42°. Calculate the sines: sin 73° ≈ 0.9563 and sin 42° ≈ 0.6691. So b = 12 × 0.9563 / 0.6691 ≈ 12 × 1.4293.
    b ≈ 17.15 cm

Example 2: Using the Law of Cosines (SAS)

In triangle ABC, a = 8, b = 11, and the included angle C = 37°. Find side c.

Law of Cosines — Finding a Missing Side

  1. 1

    Step 1 — Identify the Case

    We know two sides (a = 8 and b = 11) and the angle between them (C = 37°). This is the SAS case, so we use the Law of Cosines.
  2. 2

    Step 2 — Substitute into the Formula

    c² = a² + b² − 2ab cos C = 8² + 11² − 2(8)(11) cos 37°. That gives c² = 64 + 121 − 176 cos 37°.
  3. 3

    Step 3 — Evaluate

    cos 37° ≈ 0.7986, so 176 × 0.7986 ≈ 140.55. Then c² = 64 + 121 − 140.55 = 44.45.
  4. 4

    Step 4 — Take the Square Root

    c = √44.45 ≈ 6.67.
    c ≈ 6.67

SECTION 7

Strengths & Limitations

Both laws are powerful, but each has situations where it shines and situations where it can trip you up. Understanding these trade-offs will save you time on tests and real-world problems alike.

FeatureLaw of SinesLaw of Cosines
Ease of useSimple proportion — often faster to set upRequires more arithmetic — squaring, subtracting, then square-rooting
Best forAAS, ASA, and some SSA situationsSAS and SSS situations
Potential pitfallSSA can produce two valid triangles (ambiguous case)None — always gives a unique answer
Finding anglesUse inverse sine — but sin⁻¹ can give acute or obtuse confusionUse inverse cosine — cos⁻¹ uniquely determines angles 0°–180°
Reduces to familiar formulaNo direct connection to Pythagorean theoremBecomes a² + b² = c² when the angle is 90°

Comparing the Law of Sines and the Law of Cosines

✦

KEY TAKEAWAY

Think of these two laws like tools in a toolbox. The Law of Sines is like a wrench — quick and easy for the right bolts. The Law of Cosines is like an adjustable wrench — it takes a bit more effort to set up, but it works on any bolt size. Neither replaces the other; a smart problem-solver knows when to reach for each one.

SECTION 8

Connection to Advanced Topics

At this introductory level, you are solving straightforward triangles with given measurements. As you progress, these same two laws open the door to much more sophisticated mathematics and real-world applications.

What You're Learning NowWhere It Leads
Finding one missing side or angleSolving complete triangles and multi-step navigation problems
Using the formulas in flat (planar) geometrySpherical trigonometry — solving triangles on the surface of a sphere for GPS and astronomy
Recognizing SAS, SSS, AAS, ASA casesThe ambiguous case (SSA) in depth, including when zero, one, or two triangles exist
Law of Cosines as Pythagorean generalizationVector dot products in physics and computer graphics, which use the same cosine relationship

From introductory to advanced applications

These connections show that mastering the basics now sets you up for success in precalculus, physics, engineering, and even computer science. Every time you calculate a triangle, you're practicing the same thinking used by surveyors mapping land, pilots planning flight paths, and game designers building 3D worlds.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

You are given triangle DEF with D = 50°, E = 65°, and d = 10. A classmate says you should use the Law of Cosines. Explain why the Law of Sines is actually the better choice here, and identify the type of case (AAS, ASA, SAS, or SSS).
Show answer
This is an AAS case because you know two angles (D and E) and a side opposite one of them (d opposite D). Since you have a complete opposite pair — angle D = 50° with side d = 10 — the Law of Sines can be set up directly as d / sin D = e / sin E. The Law of Cosines is designed for SAS or SSS situations, and applying it here would require finding the third angle and extra steps first. The Law of Sines is simpler and more direct for this setup.

Question 2: BASIC CALCULATION

In triangle PQR, angle P = 38°, angle Q = 84°, and side p = 15. Use the Law of Sines to find side q. Round to two decimal places.
Show answer
Set up the proportion: p / sin P = q / sin Q, which gives 15 / sin 38° = q / sin 84°. Calculate the sines: sin 38° ≈ 0.6157 and sin 84° ≈ 0.9945. Cross-multiply to get q = 15 × 0.9945 / 0.6157 ≈ 15 × 1.6154 ≈ 24.23. The missing side q is approximately 24.23.

Question 3: INTERMEDIATE

In triangle XYZ, x = 14, y = 9, and the included angle Z = 62°. Use the Law of Cosines to find side z. Then use the Law of Sines to find angle X. Round all answers to one decimal place.
Show answer
First, apply the Law of Cosines: z² = x² + y² − 2xy cos Z = 14² + 9² − 2(14)(9) cos 62° = 196 + 81 − 252 × 0.4695 ≈ 277 − 118.31 = 158.69. Take the square root: z ≈ 12.6. Now use the Law of Sines to find angle X: sin X / x = sin Z / z, so sin X = 14 × sin 62° / 12.6 = 14 × 0.8829 / 12.6 ≈ 0.9808. Then X = sin⁻¹(0.9808) ≈ 78.8°. Side z ≈ 12.6 and angle X ≈ 78.8°.

Question 4: APPLIED

Two fire lookout towers are 30 km apart. Tower A spots a fire at a bearing that creates a 46° angle with the line between the towers, and Tower B spots the same fire at a 63° angle. How far is the fire from Tower A? (Hint: the triangle has angles 46°, 63°, and the third angle at the fire.)
Show answer
First find the angle at the fire: 180° − 46° − 63° = 71°. Let the distance from Tower A to the fire be side b (opposite the 63° angle at Tower B), and the distance between the towers is 30 km (opposite the 71° angle at the fire). By the Law of Sines: b / sin 63° = 30 / sin 71°. Calculate: b = 30 × sin 63° / sin 71° = 30 × 0.8910 / 0.9455 ≈ 30 × 0.9423 ≈ 28.3 km. The fire is approximately 28.3 km from Tower A.

Question 5: CRITICAL THINKING

A triangle has sides of length 7, 10, and 13. Use the Law of Cosines to find the largest angle. Then explain how you can verify that your answer is reasonable without a calculator by thinking about what type of triangle this is (acute, right, or obtuse).
Show answer
The largest angle is opposite the longest side (13). Using the Law of Cosines: cos C = (7² + 10² − 13²) / (2 × 7 × 10) = (49 + 100 − 169) / 140 = −20 / 140 ≈ −0.1429. So C = cos⁻¹(−0.1429) ≈ 98.2°. To check reasonableness without a calculator, notice that 7² + 10² = 149, which is less than 13² = 169. If this were a right triangle, we'd have a² + b² = c². Since a² + b² < c², the angle opposite c must be greater than 90°, confirming the triangle is obtuse. Our answer of 98.2° is just above 90°, which is consistent. The negative cosine value also confirms an obtuse angle, since cosine is negative for angles between 90° and 180°.

SUMMARY

Lesson Summary

Summary

The Law of Sines states that a / sin A = b / sin B = c / sin C and is ideal when you know at least one opposite pair (a side and the angle across from it), making it the go-to choice for AAS, ASA, and SSA cases. The Law of Cosines — c² = a² + b² − 2ab cos C — is a generalization of the Pythagorean theorem and works best for SAS and SSS cases.

To decide which law to use, ask yourself: Do I have a complete opposite pair? If yes, start with the Law of Sines. If you only have sides and an included angle (or all three sides), use the Law of Cosines. Together, these two formulas let you solve any triangle — not just right triangles — opening the door to real-world applications in navigation, surveying, engineering, and beyond.

Varsity Tutors • Math 3 • Law of Sines & Cosines