Precalculus (Common Core) • 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.

Precalculus subject emblem with a curved function graph, function notation, and pi.
Inside this lesson 10 sections 5 questions 8 figures

SECTION 1

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.

SECTION 2

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.

SECTION 3

Visual Explanation — The Triangle and Its Circumcircle

Circumscribed Circle (radius R)BCAabcORBCALaw of Sines: a/sin A = b/sin B = c/sin C = 2R
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.

SECTION 4

Mathematical Framework

The Law of Sines

LAW OF SINES

a/sinA=b/sinB=c/sinC=2Ra / 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

c2=a2+b2−2abcosCc² = 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

cosC=(a2+b2−c2)/(2ab)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.

SECTION 5

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.

Decision Flowchart: Law of Sines vs. Law of CosinesWhat information do you have?Have angle–oppositeside pair?No angle–oppositeside pair?LAW OF SINESLAW OF COSINESAAS / ASA2 angles + 1 sideUnique solution ✓SSA2 sides + opp. angleAmbiguous case ⚠SAS2 sides + incl. angleUnique solution ✓SSS3 sides knownUnique solution ✓SSA Ambiguous Case DetailIf a < b sin A →No solutionIf a = b sin A →1 solution (right △)If b sin A < a < b →2 solutionsIf a ≥ b → 1 unique solution
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.
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

Summary of triangle-solving configurations

SECTION 6

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

    Step 1 — Identify the Configuration

    We 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. 2

    Step 2 — Set Up the Proportion

    Using the Law of Sines: a / sin A = b / sin B. Substitute the known values: 18 / sin 42° = b / sin 73°.
  3. 3

    Step 3 — Evaluate the Sines

    Calculate: sin 42° ≈ 0.6691 and sin 73° ≈ 0.9563.
  4. 4

    Step 4 — Solve for b

    Cross-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. 1

    Step 1 — Model as a Triangle

    To 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. 2

    Step 2 — Apply the Formula

    Let 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. 3

    Step 3 — Compute

    c² = 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. 4

    Step 4 — Find c

    c = √12900 ≈ 113.58.
    Resultant force ≈ 113.58 N

SECTION 7

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.

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

Comparison of the Law of Sines and the Law of Cosines

✦

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.

SECTION 8

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.

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 eiθe^{iθ} = cos θ + i sin θ
Solving triangles in surveyingTriangulation in GPS, robotics, and computer vision

How the Law of Sines and Cosines connect to advanced topics

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.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

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?
Show answer
The Law of Cosines states c² = a² + b² − 2ab cos C. When C = 90°, cos 90° = 0, so the entire correction term −2ab cos C becomes −2ab(0) = 0. This leaves c² = a² + b², which is exactly the Pythagorean theorem. The cosine term acts as an adjustment for non-right angles: it subtracts area when the angle is acute (cos C > 0) and adds when the angle is obtuse (cos C < 0). At 90°, no adjustment is needed.

Question 2: BASIC 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).
Show answer
By the Law of Sines: p / sin P = q / sin Q. Substituting: 12 / sin 35° = q / sin 58°. We compute sin 35° ≈ 0.5736 and sin 58° ≈ 0.8480. Then q = 12 × 0.8480 / 0.5736 ≈ 10.176 / 0.5736 ≈ 17.74 cm. The third angle R = 180° − 35° − 58° = 87°, and we could also find side r using the same proportion if needed.

Question 3: INTERMEDIATE

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.
Show answer
Using cos C = (a² + b² − c²) / (2ab): cos C = (49 + 100 − 169) / (2 × 7 × 10) = (−20) / 140 = −1/7 ≈ −0.1429. Taking the inverse cosine: C = cos⁻¹(−0.1429) ≈ 98.2°. Since angle C is greater than 90°, the triangle is obtuse. Notice that cos C is negative, which always indicates an obtuse angle. You can verify by checking that 7² + 10² = 149 < 169 = 13², confirming the triangle fails the Pythagorean inequality for a right or acute triangle.

Question 4: APPLIED

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?
Show answer
This is an SAS problem, so use the Law of Cosines with the angle at A between sides AB = 240 m and AC = 180 m. Let a = BC (the side opposite angle A). Then a² = 240² + 180² − 2(240)(180) cos 68°. Calculate: a² = 57600 + 32400 − 86400 × 0.3746 ≈ 90000 − 32365 ≈ 57635. Therefore a = √57635 ≈ 240.1 m. The distance across the lake is approximately 240.1 meters. Note that this is very close to the length AB, which makes geometric sense given the angle and side lengths involved.

Question 5: CRITICAL 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.'
Show answer
Using the Law of Sines: sin E / e = sin D / d, so sin E = e × sin D / d = 12 × sin 30° / 8 = 12 × 0.5 / 8 = 0.75. Now, sin E = 0.75 has two solutions between 0° and 180°: E₁ = sin⁻¹(0.75) ≈ 48.59° and E₂ = 180° − 48.59° ≈ 131.41°. We check both: For E₁ ≈ 48.59°, angle F = 180° − 30° − 48.59° = 101.41° (valid, positive angle). For E₂ ≈ 131.41°, angle F = 180° − 30° − 131.41° = 18.59° (also valid). Since both yield positive angles summing to 180°, two distinct triangles satisfy the given measurements. This is the ambiguous case because the sine function produces the same value for an acute angle and its obtuse supplement, and when the given side opposite the known angle is shorter than the other given side (d < e), both geometric configurations may be valid.

SUMMARY

Lesson Summary

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