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.

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.

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².

Visual Explanation

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.

Mathematical Framework

The Law of Sines

LAW OF SINES
a / 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
c² = 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
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.

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.

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.
Summary of when to use each law
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

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
Step 1 — Identify Given ValuesWe 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
Step 2 — Set Up the ProportionWrite 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
Step 3 — Solve for bCross-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
Step 1 — Identify the CaseWe 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
Step 2 — Substitute into the Formulac² = a² + b² − 2ab cos C = 8² + 11² − 2(8)(11) cos 37°. That gives c² = 64 + 121 − 176 cos 37°.
3
Step 3 — Evaluatecos 37° ≈ 0.7986, so 176 × 0.7986 ≈ 140.55. Then c² = 64 + 121 − 140.55 = 44.45.
4
Step 4 — Take the Square Rootc = √44.45 ≈ 6.67.
c ≈ 6.67

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.

Comparing the Law of Sines and the Law of Cosines
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°
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.

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.

From introductory to advanced 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

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.

Practice Problems

PROBLEM 1CONCEPTUAL
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).
PROBLEM 2BASIC 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.
PROBLEM 3INTERMEDIATE
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.
PROBLEM 4APPLIED
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.)
PROBLEM 5CRITICAL 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).

Lesson 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 Cosinesc² = 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