Understand the method
What does the law of sines / cosines calculation mean?
The law of sines relates sides to their opposite angles; the law of cosines generalizes the Pythagorean theorem. Together they solve non-right triangles when enough independent measurements are known.
When to use it
Use cosine for SSS or SAS information and sine for a known opposite side-angle pair.
Formula
In plain text: c² = a² + b² − 2ab cos C
Variables and units
| Symbol | Meaning |
|---|---|
| a, b, c | side lengths opposite A, B, C |
| A, B, C | interior angles |
How to use the calculator
- Enter each known value in its labeled field.
- Select the answer precision you want.
- Choose Calculate answer to see the result and working.
Worked example
With sides a = 5, b = 7 and included angle C = 60°, c² = 25 + 49 − 70 cos 60° = 39, so c ≈ 6.245.
Common mistakes
- Match every side with its opposite angle.
- Use the included angle for SAS cosine calculations.
- Check whether the calculator expects degrees or radians.
Interpret the result
The side lengths must satisfy the triangle inequality and the angles must total 180°.