StringMash.com

Law of sines calculator

a/sin A = b/sin B = c/sin C, worked step by step, with both answers when SSA allows two triangles.

Solve with the law of sines

Type any three values, at least one a side, and leave the rest empty. Side a faces angle A. Roots like 5√2 work, and so does π/3 in radians.

Solved from two angles and a side that isn’t between them (AAS).

Triangle with a = 10, b = 13.47, c = 15.32, drawn to scaleA 40°B 60°C 80°a = 10b = 13.47c = 15.32
Scalene acute triangle. Drawn to scale; the dashed line is the height from C.
PartValueExact
Side a given10
Side b13.473
Side c15.3209
Angle A given40°
Angle B given60°
Angle C80°
Area66.3414
Perimeter38.7939
Semiperimeter s19.3969
Height to a (h_a)13.2683
Height to b (h_b)9.8481
Height to c (h_c)8.6603
Inradius r3.4202
Circumradius R7.7786
Working
  1. Angle sum. C = 180° − A − B = 180° − 40° − 60° = 80°
  2. Law of sines. b = a sin B / sin A = 10 × sin 60° / sin 40° = 13.473
  3. Law of sines. c = a sin C / sin A = 10 × sin 80° / sin 40° = 15.3209
  4. Perimeter. a + b + c = 10 + 13.473 + 15.3209 = 38.7939
  5. Heron's formula. s = (a + b + c)/2 = 19.3969; area = √(s(s − a)(s − b)(s − c)) = √(19.3969 × 9.3969 × 5.924 × 4.076) = 66.3414
  6. Area from two sides. ½ab sin C = ½ × 10 × 13.473 × sin 80° = 66.3414, the same area
  7. Heights. h = 2 × area / base: h_a = 13.2683, h_b = 9.8481, h_c = 8.6603
  8. Inradius and circumradius. r = area / s = 3.4202; R = a / (2 sin A) = 7.7786

The law of sines

In any triangle, each side divided by the sine of the angle facing it gives the same number. Written out, a/sin A = b/sin B = c/sin C.

That shared number is the diameter of the circle through the three corners, 2R. So the rule also gives the circumradius, and the calculator lists it as R.

It needs a matched pair. That means a side and the angle facing it, and once you have one pair, any other side or angle you know gives you its partner straight away, because the ratio is shared.

When it applies

You knowCaseUse
Two angles and the side between themASALaw of sines, after the angle sum gives the third angle
Two angles and another sideAASLaw of sines, after the angle sum
Two sides and an angle not between themSSALaw of sines, checking for a second triangle
Two sides and the angle between themSASThe law of cosines instead
Three sidesSSSThe law of cosines instead

Worked example: two angles and a side

A = 40°, B = 60° and a = 10. Third angle first. C = 180° − 40° − 60° = 80°.

The matched pair is a and A, so 10/sin 40° = 15.5572 is the shared ratio. Then b = 15.5572 × sin 60° = 13.473 and c = 15.5572 × sin 80° = 15.3209.

The area is ½ab sin C = ½ × 10 × 13.473 × sin 80° = 66.3414.

Worked example: two sides and an angle

Wikipedia's article on the rule uses a = 20, c = 24 and C = 40°. Here the pair is c and C, and sin A = 20 sin 40° / 24 = 0.5357, so A = 32.39°.

Could A be 180° − 32.39° = 147.61° instead? No. With C = 40° already in the triangle, the three angles would add up to more than 180° and leave nothing, in fact less than nothing, for B. Side a is shorter than c, so its angle has to be smaller than 40° anyway. Type a = 20, c = 24 and C = 40 above to see the rest.

The ambiguous case

SSA is called the ambiguous case because the answer can be two triangles, one or none. It comes down to how long the side facing the known angle is.

Take A = 35° and b = 8. The height from the top of b down to the base is h = b sin A = 4.5886. Side a has to reach that far.

With a = 3, it can't, and there's no triangle. With a = 6, between h and b, it reaches the base in two places, giving B = 49.8864° or B = 130.1136°. With a = 9, longer than b, it reaches in only one place that makes a triangle, and B = 30.6536°.

When A is 90° or more there's at most one triangle, and only if a is longer than b.

How many triangles in SSA

Angle A, side a facing it, and side b next to it. h = b sin A.
Angle ASide aTriangles
Under 90°Shorter than hNone
Under 90°Equal to hOne, with a right angle at B
Under 90°Between h and bTwo
Under 90°b or longerOne
90° or moreb or shorterNone
90° or moreLonger than bOne

Why it works

Drop the height from C to side c. It's a leg of two right triangles, so it equals b sin A and also a sin B. Set them equal and divide, and a/sin A = b/sin B. Dropping a height from another corner brings in c the same way.

In an obtuse triangle the height lands outside, on c extended, but sin(180° − B) = sin B, so the rule still holds.

Questions

What is the law of sines formula?

a/sin A = b/sin B = c/sin C, where each side faces the angle with the same letter. Flipped, sin A/a = sin B/b = sin C/c, which is handier for finding an angle.

When should I use the law of sines?

When you know a side and the angle facing it, plus one more side or angle. That covers ASA, AAS and SSA.

Why are there two answers for an angle?

Sine is the same for an angle and its supplement, so sin 30° = sin 150°. The law of sines gives a sine, and both angles may fit.

Can the law of sines find an obtuse angle?

Yes, as the second of the two angles, 180° minus the first. In SAS or SSS, use the law of cosines for the largest angle instead, since cosine tells obtuse from acute.

What does the ratio a/sin A mean?

It's the diameter of the circumcircle, the circle through all three corners. In the 40°, 60°, 10 example it's 15.5572, so R = 7.7786.

Sources

Added and reviewed . What's new