How it’s calculated
In any triangle, each side divided by the sine of its opposite angle gives the same number (it equals the diameter of the circumscribed circle):
Two angles and a side (AAS or ASA) always give exactly one triangle: find the third angle from the 180° rule, then each missing side from the common ratio.
Two sides and a non-included angle (SSA) is the ambiguous case. With angle A, its opposite side a and another side b, compare a with the height h = b sin A:
- A acute and a < h: no triangle (side a is too short to reach).
- A acute and a = h: one right triangle (B = 90°).
- A acute and h < a < b: two triangles, with B and 180° − B.
- A acute and a ≥ b: one triangle.
- A right or obtuse: one triangle if a > b, otherwise none.
Example (OpenStax Precalculus 2e, §8.1 Example 2): A = 35°, a = 6, b = 8. Then sin B = 8 × sin 35° ÷ 6 = 0.7648, so B ≈ 49.9° or 130.1°. Both fit (h = 4.589 < 6 < 8), giving C ≈ 95.1°, c ≈ 10.4 and C ≈ 14.9°, c ≈ 2.7.
Frequently asked questions
When should I use the law of sines instead of the law of cosines?
Use the law of sines when you know an angle and the side opposite it (AAS, ASA, or SSA). If you know three sides, or two sides and the angle between them, use the law of cosines.
What is the ambiguous case?
When you know two sides and an angle that is not between them (SSA), the data can fit no triangle, one triangle or two different triangles, because sin B = sin(180° − B). The calculator checks every possibility.
Why does the calculator say there is no triangle?
For an acute angle A, the side opposite it must be at least as long as the height b × sin A to reach the third side. For a right or obtuse angle A, the opposite side must be the longest side.
Does it matter which angle I call A?
Only that each side is opposite the angle with the same letter. Relabel your triangle so the known angle and its opposite side are A and a.
Embed this calculator
Add this free calculator to your own website. Copy the code below into your page’s HTML:
Need this calculator branded, changed or built around your own prices?See custom business solutions →
Sources
Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.
Added · Last updated · How we check our calculators
Spotted a mistake or missing option? Report a problem· Suggest a calculator