Law of Sines Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter sides a and b and angle A opposite side a. The calculator finds how many triangles fit and solves each one.
Result
Number of triangles
Common ratio a ÷ sin A (= diameter of the circumscribed circle)
- Triangle 1: angle B (degrees)
- Triangle 1: angle C (degrees)
- Triangle 1: side c (length units)
- Triangle 2: angle B (degrees)
- Triangle 2: angle C (degrees)
- Triangle 2: side c (length units)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Side a (length units, opposite angle A): enter 0 or more.
- Side b (length units): enter 0 or more.
- Angle A, in °: enter a number from 0 to 180.
- Read the result: Number of triangles; the panel also shows Common ratio a ÷ sin A (= diameter of the circumscribed circle), Triangle 1: angle B (degrees), Triangle 1: angle C (degrees), Triangle 1: side c (length units), Triangle 2: angle B (degrees), Triangle 2: angle C (degrees) and Triangle 2: side c (length units).
How this calculator works
The law of sines states a ÷ sin A = b ÷ sin B = c ÷ sin C, and the common ratio equals the diameter of the circle through the three vertices. From two sides and the angle opposite one of them, sin B = b × sin A ÷ a.
If that value is over 1, no triangle exists. Otherwise B can be the acute angle arcsin(b sin A ÷ a) or its supplement 180° − B. Both work only when A is acute, b > a and sin B < 1 (the ambiguous SSA case); then C = 180° − A − B and c = a × sin C ÷ sin A.
To solve from three sides, two sides and the included angle, or two angles and a side, use the triangle calculator, which applies the law of cosines and the law of sines.
Worked example
| Side a (length units, opposite angle A) | 7 |
|---|---|
| Side b (length units) | 10 |
| Angle A | 30 ° |
| Number of triangles | Two triangles (the ambiguous case) |
|---|---|
| Common ratio a ÷ sin A (= diameter of the circumscribed circle) | 14 |
| Triangle 1: angle B (degrees) | 45.5847 |
| Triangle 1: angle C (degrees) | 104.4153 |
| Triangle 1: side c (length units) | 13.5592 |
| Triangle 2: angle B (degrees) | 134.4153 |
| Triangle 2: angle C (degrees) | 15.5847 |
| Triangle 2: side c (length units) | 3.7613 |
Frequently asked questions
When does SSA give two triangles?
When angle A is acute and b × sin A < a < b. With a = 7, b = 10 and A = 30°, angle B can be about 45.5847° or 134.4153°, giving c ≈ 13.5592 or c ≈ 3.7613.
Why does the calculator say no triangle?
Side a is shorter than the height b × sin A, so it cannot reach the third side. With a = 3, b = 10 and A = 30°, the height is 5.