The Law of Cosines
The law of cosines relates all three sides of a triangle to one angle, and it works where the law of sines cannot: when you know three sides, or two sides and the angle between them. With a right angle it reduces to the Pythagorean theorem.
Type the problems from this lesson and check each step.
The Law of Cosines, Example 2:

(b=20, a=8, c=14)
The Law of Cosines: what to notice and how to work it
What to notice first
Common student mistake
Key formulas and cues
A reliable path
- Choose the modelUse a right triangle, the unit circle, or a transformed graph.
- Track unitsConvert degrees and radians when needed.
- Use identitiesReplace complicated trig expressions with equivalent simpler ones.
Worked examples
Right-triangle sine
- Sine is opposite over hypotenuse.
- Substitute 5 and 13.
- Leave the ratio simplified.
Unit-circle cosine
- At angle 0, the point is (1, 0).
- Cosine is the x-coordinate.
- Read the x-value.
Try one before moving on
The Law of Cosines: pop-up practice
(cos B= frac {14^2+8^2-20^2}{2(14)(8)} =frac {196+ 64 to 400}{176}=frac{-140}{224}=-0.625)
Since (cosB) is negative, (B) is an obtuse angle.
(B≅128.69 ^circ )
Exercises for The Law of Cosines
Try these 10 questions one at a time. After each answer you will see a step-by-step explanation, so you can learn from every question, right or wrong.
Question 1 of 10
1. Which formula is the Law of Cosines?
- c² = a² + b² − 2ab cos C
- a/sin A = b/sin B
- c² = a² + b²
- c = a + b − cos C
Show the answer and explanation
Answer: A. c² = a² + b² − 2ab cos C
The Law of Cosines is c² = a² + b² − 2ab cos C.
It works for every triangle, not just right triangles.
When C = 90°, cos C = 0 and it becomes the Pythagorean theorem.
2. In triangle ABC, a = 3, b = 4 and C = 90°. What is c?
Type your answer.
Show the answer and explanation
Answer: 5
cos 90° = 0, so c² = 9 + 16 − 0 = 25.
c = 5.
This is the Pythagorean theorem as a special case.
3. In triangle ABC, a = 5, b = 5 and C = 60°. What is c?
- 5
- 10
- 5√3
- √50
Show the answer and explanation
Answer: A. 5
c² = 25 + 25 − 2(5)(5)(0.5).
= 50 − 25 = 25.
c = 5. The triangle is equilateral.
4. In triangle ABC, a = 7, b = 8 and C = 60°. What is c? (cos 60° = 0.5) Give the exact value or round to the nearest hundredth.
Type your answer.
Show the answer and explanation
Answer: √57 ≈ 7.55
c² = 49 + 64 − 2(7)(8)(0.5).
= 113 − 56 = 57.
c = √57, about 7.55. Since 60° is acute, c is shorter than it would be for a right angle (√113 ≈ 10.6).
5. When should you use the Law of Cosines instead of the Law of Sines?
- When you know all three sides, or two sides and the included angle
- When you know two angles and a side
- Only for right triangles
- Never
Show the answer and explanation
Answer: A. When you know all three sides, or two sides and the included angle
The Law of Cosines handles SSS and SAS cases.
The Law of Sines needs a side paired with its opposite angle.
With SSS or SAS, no such pair is known at the start.
6. A triangle has sides 5, 7 and 8. What is cos of the angle opposite the side 7? Give a decimal.
Type your answer.
Show the answer and explanation
Answer: 0.5
Rearrange: cos C = (a² + b² − c²) ÷ (2ab), with c = 7, a = 5, b = 8.
(25 + 64 − 49) ÷ 80 = 40 ÷ 80 = 0.5.
So that angle is 60°.
7. In triangle ABC, a = 6, b = 10 and C = 120°. What is c? (cos 120° = −0.5)
- 14
- √76
- 16
- 8
Show the answer and explanation
Answer: A. 14
c² = 36 + 100 − 2(6)(10)(−0.5).
= 136 + 60 = 196.
c = 14. A negative cosine makes the opposite side longer.
8. A triangle has sides 2, 3 and 4. Is the angle opposite the side 4 acute or obtuse? Type acute or obtuse.
Type your answer.
Show the answer and explanation
Answer: obtuse
cos C = (4 + 9 − 16) ÷ (2 × 2 × 3) = −3 ÷ 12 = −0.25.
A negative cosine means the angle is greater than 90°.
So the angle is obtuse (about 104.5°).
9. What happens to the Law of Cosines when C = 90°?
- It becomes the Pythagorean theorem
- It becomes the Law of Sines
- It no longer works
- c becomes 0
Show the answer and explanation
Answer: A. It becomes the Pythagorean theorem
cos 90° = 0, so the term −2ab cos C disappears.
What remains is c² = a² + b².
That is the Pythagorean theorem.
10. Two sides of a triangle are 8 and 15 with a 90° angle between them. What is the third side?
Type your answer.
Show the answer and explanation
Answer: 17
The included angle is 90°, so c² = 64 + 225 − 0.
c² = 289.
c = 17. Then 8-15-17 is a Pythagorean triple.
Related to This Article
More math articles
- Merton’s Strain Theory and Adaptations
- How to Graph the Secant Function?
- Chapter 29: Interest-Group Strategies
- The Best Grade 8 Math Book for Minnesota Students
- Free Grade 4 English Worksheets for Iowa Students
- ISEE Upper Level Math Practice Test Questions
- Completing a Table and Make a Graph of Ratios and Rates
- Top 10 TASC Math Practice Questions
- The Best Grade 3 Math Book for Vermont Students
- How to Improve Your SAT Math Score by 100+ Points (2027)







What people say about "The Law of Cosines"?
No one replied yet.