Law of Sines Calculator

Solve a triangle with the law of sines from two angles and a side, or two sides and an angle (SSA), showing whether 0, 1 or 2 triangles fit.

Side a is opposite angle A, side b opposite angle B, side c opposite angle C.

Results

Number of triangles
Two triangles (the ambiguous case)
Why
The height h = b × sin A = 4.58861149081 is less than a = 6, which is less than b = 8, so side a can swing to meet the third side in two places.
Angle A (triangle 1)
35.00
Angle B (triangle 1)
49.8864
Angle C (triangle 1)
95.1136
Side a (triangle 1)
6.00
Side b (triangle 1)
8.00
Side c (triangle 1)
10.419
Area = ½ab sin C (triangle 1)
23.9045
Angle A (triangle 2)
35.00
Angle B (triangle 2)
130.1136
Angle C (triangle 2)
14.8864
Side a (triangle 2)
6.00
Side b (triangle 2)
8.00
Side c (triangle 2)
2.6874
Area = ½ab sin C (triangle 2)
6.1657
Working (law of sines)
sin B = b × sin A ÷ a = 8 × sin 35° ÷ 6 = 0.7647686 B = sin⁻¹(0.7647686) = 49.88641°, or B = 180° − 49.88641° = 130.1136° (sine is positive in both quadrants I and II) Triangle 1: C = 180° − 35° − 49.88641° = 95.11359°; c = a × sin C ÷ sin A = 6 × sin 95.11359° ÷ sin 35° = 10.41905 Triangle 2: C = 180° − 35° − 130.1136° = 14.88641°; c = a × sin C ÷ sin A = 6 × sin 14.88641° ÷ sin 35° = 2.687386

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):

a ÷ sin A = b ÷ sin B = c ÷ sin C A + B + C = 180°

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:

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