Law of cosines calculator
When do you use the law of cosines?
Use it when you know two sides and the angle between them (SAS) or all three sides (SSS). It becomes the Pythagorean theorem when C = 90°, because cos 90° = 0.
What is side c when a = 10, b = 14, C = 110°?
c = √(100 + 196 − 280 cos 110°) = 19.7931. The other angles are 28.34° and 41.66°, area 65.7785.
How does angle C change side c?
The table below gives ready answers for common values; the calculator above works for any value.
Third side by angle
| Angle C | Side c (a = 7, b = 9) |
|---|---|
| 30° | 4.5696 |
| 45° | 6.3957 |
| 60° | 8.1854 |
| 90° | 11.4018 |
| 120° | 13.8924 |
| 150° | 15.4635 |
How does this calculator work?
It uses c² = a² + b² − 2ab cos C and the cosine rule for angle A. Results update as you type and are rounded for display; the maths runs in your browser and nothing is stored.
For more, see the math, statistics and date calculators page, right triangle calculator (Pythagorean theorem), degrees to radians converter, area calculator for common shapes and volume calculator for common solids.
Related searches
People who use this page also search for the terms below; the calculator, tables and answers above cover each of them.
- law of cosines formula
- law of cosines calculator
- when to use law of sines vs law of cosines
- law of cosines vs law of sines
- law of sines and cosines formula
- law of sines area formula
Sources and further reading
Questions people ask
What is the law of sines?
Is the law of cosines for right triangles?
How do I find an angle from three sides?
What is the area formula used?
Can the angles exceed 180°?
What units are angles in?
Results are estimates for information only, not financial advice. Read the full disclaimer.