PRECALCULUS • TRIGONOMETRY IN GENERAL TRIANGLES

Law of Sines and Law of Cosines

Extend trigonometry beyond right triangles to solve any triangle using the Law of Sines and the Law of Cosines.

Historical Context & Motivation

For centuries, mathematicians and navigators faced a persistent problem: how do you find unknown distances or angles in a triangle that does not contain a right angle? The familiar SOH-CAH-TOA ratios from basic trigonometry work beautifully for right triangles, but the real world rarely hands you a perfect 90° angle. Ancient astronomers tracking star positions, surveyors measuring vast stretches of land, and sailors charting courses across open water all needed tools that went further. The Law of Sines and the Law of Cosines emerged as the essential formulas that unlock every triangle, whether acute, obtuse, or right.

These laws also rest on a beautiful geometric insight: all circles are similar. Because every circle is just a scaled version of every other circle, the ratio of a triangle's side to the sine of its opposite angle is always the same — and it equals the diameter of the triangle's circumscribed circle. This connection between circle similarity and triangle measurement is at the heart of CCSS standards G-SRT.D.10 and G-SRT.D.11, which are designated '+' standards — advanced topics intended for students who have completed the standard high school mathematics curriculum and are pursuing a fourth-year course such as Precalculus.

~150 CE
Ptolemy's Chord Tables
Claudius Ptolemy created extensive tables of chord lengths in circles, effectively encoding sine values. His work in the Almagest laid the groundwork for relating circles to triangles.
~1000 CE
Al-Tusi Formalizes the Law of Sines
Persian mathematician Nasir al-Din al-Tusi provided the first explicit statement of the Law of Sines for plane and spherical triangles, enabling precise astronomical calculations.
~1400s
European Navigation and Triangulation
During the Age of Exploration, European mathematicians adopted and refined the Law of Cosines (generalizing the Pythagorean theorem) to solve surveying and navigation problems across non-right triangles.
1800s
Modern Formulation
The laws were codified in their modern algebraic form and became standard tools in physics, engineering, and applied mathematics. Today they are foundational in any precalculus or trigonometry course.

The central question this lesson addresses is: how can we find any unknown side or angle in any triangle, not just a right triangle? The Law of Sines and the Law of Cosines provide the complete answer, and the geometric similarity of all circles is the reason they work.

Core Principles & Definitions

Before diving into the formulas, you need to understand four foundational ideas that make the Law of Sines and the Law of Cosines possible. These principles connect the geometry of circles to the measurement of general triangles.

1

All Circles Are Similar

Any circle can be mapped onto any other circle by a combination of translation and dilation. Because similarity preserves angle measures, the ratio of a chord to the sine of its inscribed angle is always proportional to the diameter — regardless of the circle's size.
2

Circumscribed Circle (Circumcircle)

Every triangle has a unique circle that passes through all three vertices, called the circumcircle. Its diameter, 2R, directly connects to the Law of Sines: a/sin A = 2R. This relationship exists because inscribed angles that subtend the same arc produce a constant ratio.
3

Opposite Side–Angle Pairing

In any triangle, each side is paired with its opposite angle. Side a is opposite angle A, side b is opposite angle B, and side c is opposite angle C. The Law of Sines uses these pairings. Keeping them straight is essential to setting up your equations correctly.
4

Generalization of the Pythagorean Theorem

The Law of Cosines extends a² + b² = c² to non-right triangles by adding a correction term: c² = a² + b² − 2ab cos C. When C = 90°, cos 90° = 0 and the formula reduces to the classic Pythagorean theorem.
KEY TAKEAWAY
Think of the Law of Sines and Law of Cosines as your GPS for any triangle. If SOH-CAH-TOA only works on the straight, flat roads of right triangles, then the Law of Sines and Law of Cosines are the all-terrain vehicles that handle every possible triangle shape. When you know the right combination of sides and angles (like having the right coordinates), these laws always guide you to the missing measurement.

Visual Explanation — The Triangle and Its Circumcircle

Triangle ABC is inscribed in its circumscribed circle with center O and radius R. Side a (cyan) is opposite angle A, side b (pink) is opposite angle B, and side c (amber) is opposite angle C. The dashed purple circle is the circumcircle, and R is the circumradius. The Law of Sines equates each side-to-sine ratio to the diameter 2R.

This diagram illustrates the geometric foundation of the Law of Sines. Every triangle can be inscribed in exactly one circle — the circumcircle. Because all circles are similar, the relationship between an inscribed angle and the chord it subtends is universal. Angle A "sees" side a from the circumference, and the ratio a / sin A always equals the diameter 2R. This is not a coincidence — it is a direct consequence of the inscribed angle theorem, which states that an inscribed angle is half the central angle that subtends the same arc.

The practical takeaway is simple: if you know any side and its opposite angle, you immediately know the circumradius R. From there, you can find any other side or angle in the triangle.

Mathematical Framework

The Law of Sines

LAW OF SINES
a / sin A = b / sin B = c / sin C = 2R
Where a, b, c are the side lengths opposite angles A, B, C respectively, and R is the circumradius. Use this law when you have an angle–side pair (ASA, AAS, or SSA configurations).

The Law of Sines is especially useful in two situations. First, when you know two angles and one side (AAS or ASA), you can find the remaining sides. Second, when you know two sides and an angle opposite one of them (SSA), you can find the remaining angle — though you must watch out for the ambiguous case, where two different triangles may satisfy the given information.

The Law of Cosines

LAW OF COSINES
c² = a² + b² − 2ab cos C
Where c is the side opposite angle C, and a and b are the other two sides. The formula can be rearranged for any side or solved for an angle: cos C = (a² + b² − c²) / (2ab).

Use the Law of Cosines when you know two sides and the included angle (SAS), or when you know all three sides (SSS) and need to find an angle. Notice that when angle C is 90°, cos 90° = 0, and the formula simplifies to c² = a² + b² — the Pythagorean theorem. The Law of Cosines is therefore a generalization that works for every triangle.

SOLVING FOR AN ANGLE
cos C = (a² + b² − c²) / (2ab)
Rearranged to find angle C when all three sides are known. Take the inverse cosine (cos⁻¹) of the result to get the angle in degrees or radians.
💡 When to Use Which Law
Use the Law of Sines for AAS, ASA, or SSA configurations (when you have an angle–opposite-side pair). Use the Law of Cosines for SAS or SSS configurations (when you do not have a complete angle–opposite-side pair). When in doubt, the Law of Cosines always works but may require more computation.

Choosing the Right Law — A Decision Guide

One of the biggest challenges students face is deciding which law to apply. The choice depends entirely on what information you are given. The diagram and table below organize every possible combination of known sides and angles so you can quickly identify which law to reach for.

This flowchart guides you through selecting the correct law based on the given information. The Law of Sines (cyan) applies when you have an angle–opposite-side pair. The Law of Cosines (amber) applies when you do not. The SSA case requires extra attention because it can yield zero, one, or two valid triangles.
Summary of triangle-solving configurations
Given InfoConfigurationWhich Law?Solutions
2 angles, 1 sideAAS or ASALaw of SinesExactly 1
2 sides, opposite angleSSALaw of Sines0, 1, or 2 (ambiguous)
2 sides, included angleSASLaw of CosinesExactly 1
3 sidesSSSLaw of CosinesExactly 1

Worked Examples

Example 1 — Law of Sines (AAS)

A surveyor stands at point A and measures angle A = 42°, angle B = 73°, and the side opposite angle A is a = 18 meters. Find side b (the side opposite angle B).

Law of Sines — Finding a Missing Side
1
Step 1 — Identify the ConfigurationWe know two angles (A = 42° and B = 73°) and a side opposite one of them (a = 18 m). This is an AAS configuration, so the Law of Sines is the correct choice.
2
Step 2 — Set Up the ProportionUsing the Law of Sines: a / sin A = b / sin B. Substitute the known values: 18 / sin 42° = b / sin 73°.
3
Step 3 — Evaluate the SinesCalculate: sin 42° ≈ 0.6691 and sin 73° ≈ 0.9563.
4
Step 4 — Solve for bCross-multiply: b = 18 × sin 73° / sin 42° = 18 × 0.9563 / 0.6691 ≈ 17.2134 / 0.6691.
b ≈ 25.73 meters

Example 2 — Law of Cosines (SAS)

Two forces act on an object. Force 1 has magnitude 50 N, Force 2 has magnitude 80 N, and the angle between them (measured tail-to-tail) is 60°. Find the magnitude of the resultant force.

Law of Cosines — Resultant Force Problem
1
Step 1 — Model as a TriangleTo find the resultant of two forces using the triangle method, place the vectors tip-to-tail. When the two force vectors are placed tail-to-tail at 60° apart, the triangle formed by the tip-to-tail arrangement has an interior angle of 180° − 60° = 120° between the two known sides. Equivalently, using the parallelogram rule, the diagonal of the parallelogram (the resultant) is opposite the interior angle of 120° formed between the two sides in the triangle. We therefore have an SAS configuration with sides 50 and 80 and included angle C = 120°, so we use the Law of Cosines.
2
Step 2 — Apply the FormulaLet c be the resultant. Using c² = a² + b² − 2ab cos C with a = 50, b = 80, and C = 120°: c² = 50² + 80² − 2(50)(80) cos 120°.
3
Step 3 — Computec² = 2500 + 6400 − 2(50)(80)(−0.5) = 2500 + 6400 + 4000 = 12900. Note that cos 120° = −0.5, so the subtraction of a negative becomes addition.
4
Step 4 — Find cc = √12900 ≈ 113.58.
Resultant force ≈ 113.58 N

Strengths & Limitations of Each Law

Both laws are powerful, but each has distinct strengths and limitations. Understanding these helps you avoid common mistakes and choose the most efficient path to a solution.

Comparison of the Law of Sines and the Law of Cosines
FeatureLaw of SinesLaw of Cosines
Best forAAS, ASA, SSA configurationsSAS, SSS configurations
Ease of useSimple proportions — easy to set upRequires squaring and square roots — more arithmetic
Ambiguity riskSSA case can produce 0, 1, or 2 solutionsAlways produces a unique result
Connection to Pythagorean theoremNo direct connectionReduces to a² + b² = c² when C = 90°
Finding anglesReturns sin⁻¹ — must check for obtuse anglesReturns cos⁻¹ — unambiguously gives acute or obtuse
KEY TAKEAWAY
Think of the Law of Sines as a quick shortcut that works when you have a matching angle–side pair, but watch out for ambiguity. The Law of Cosines is the heavy-duty tool — it is never ambiguous and always produces a definite answer, but it involves more computation. In practice, many problems benefit from using both: start with the Law of Cosines to find one element, then switch to the Law of Sines for the rest.

Connection to Advanced Topics

The Law of Sines and the Law of Cosines are not endpoints — they are gateways to more advanced mathematics and real-world applications. Once you master these tools for plane triangles, you can extend them in several directions.

How the Law of Sines and Cosines connect to advanced topics
This LessonWhere It Leads
Law of Sines for plane trianglesSpherical Law of Sines for triangles on a sphere (navigation, astronomy)
Law of Cosines for plane trianglesDot product formula in linear algebra: a · b = |a||b| cos θ
Triangle area via ½ab sin CCross product magnitude: |a × b| = |a||b| sin θ (physics, 3D geometry)
Circumscribed circle and 2RComplex analysis: the unit circle and Euler's formula e^(iθ) = cos θ + i sin θ
Solving triangles in surveyingTriangulation in GPS, robotics, and computer vision

If you continue into calculus, you will see the Law of Cosines reappear as the dot product of vectors, and the area formula ½ab sin C will become the cross product. The idea that all circles are similar — the very reason the Law of Sines works — also underpins the unit circle approach to trigonometric functions that you use throughout calculus. Mastering these laws now builds a strong foundation for everything that follows.

Practice Problems

PROBLEM 1CONCEPTUAL
Explain why the Law of Cosines reduces to the Pythagorean theorem when the included angle is 90°. What role does cos 90° play in making this simplification possible?
PROBLEM 2BASIC CALCULATION
In triangle PQR, angle P = 35°, angle Q = 58°, and side p (opposite angle P) = 12 cm. Use the Law of Sines to find side q (opposite angle Q).
PROBLEM 3INTERMEDIATE
A triangle has sides a = 7, b = 10, and c = 13. Use the Law of Cosines to find angle C (the angle opposite the longest side). Then determine whether the triangle is acute, right, or obtuse.
PROBLEM 4APPLIED
A surveyor needs to find the distance across a lake between points B and C. She stands at point A, which is 240 m from B and 180 m from C. She measures angle A (the angle at her position between her lines of sight to B and C) to be 68°. What is the distance BC across the lake?
PROBLEM 5CRITICAL THINKING
In triangle DEF, angle D = 30°, side d (opposite D) = 8, and side e (opposite E) = 12. Show that this SSA configuration produces two valid triangles. Find both possible values of angle E and describe what makes this the 'ambiguous case.'

Lesson Summary

The Law of Sines (a / sin A = b / sin B = c / sin C = 2R) and the Law of Cosines (c² = a² + b² − 2ab cos C) extend trigonometry to all triangles, not just right triangles. These topics are addressed by CCSS standards G-SRT.D.10 and G-SRT.D.11, which are '+' standards — advanced content beyond the standard high school curriculum, appropriate for a fourth-year course such as Precalculus. The Law of Sines rests on the geometric fact that all circles are similar, connecting every triangle to its circumscribed circle with circumradius R. The Law of Cosines generalizes the Pythagorean theorem by adding a cosine correction term for non-right angles.

To choose the right tool, remember: use the Law of Sines for AAS, ASA, or SSA (when you have an angle–opposite-side pair), and use the Law of Cosines for SAS or SSS (when you do not). Be cautious with the SSA ambiguous case, which can produce zero, one, or two valid triangles. Together, these two laws allow you to solve any triangle in applications ranging from surveying and navigation to resultant force calculations in physics.

Varsity Tutors • Precalculus • Law of Sines and Law of Cosines in General Triangles