FLXCode Law of Sines Calculator

FLXCode apps

Appearance

Law of Sines Calculator

Put in an angle and its opposite side, plus one more value. You get the other angles and sides, and in the ambiguous case both triangles.

Start from Example

Fill in any three values, at least one a side. Side a sits opposite angle A, b opposite B, c opposite C.

Two triangles fit. Both are shown.

Two different triangles fit these values. Side a is shorter than side b, and the angle A is small enough for B to be acute or obtuse.

Triangle 1 (B acute)

Scalene, obtuse triangle

A30°B45.58°C104.42°a = 7b = 10c = 13.559
Side a
7
Side b
10
Side c
13.559
Angle A
30°
Angle B
45.585°
Angle C
104.415°
Area
33.898
Perimeter
30.559
Height to side a
9.685
Height to side b
6.78
Height to side c
5
Inradius
2.219
Circumradius
7

The steps, with your numbers

  1. Law of sines: sin B = b × sin A / a = 10 × sin(30°) / 7 = 0.714
  2. B = arcsin(0.714) = 45.585°
  3. Third angle: C = 180° − A − B = 180° − 30° − 45.585° = 104.415°
  4. Law of sines: c = a × sin C / sin A = 7 × sin(104.415°) / sin(30°) = 13.559

Triangle 2 (B obtuse)

Scalene, obtuse triangle

A30°B134.42°C15.58°a = 7b = 10c = 3.761
Side a
7
Side b
10
Side c
3.761
Angle A
30°
Angle B
134.415°
Angle C
15.585°
Area
9.403
Perimeter
20.761
Height to side a
2.687
Height to side b
1.881
Height to side c
5
Inradius
0.906
Circumradius
7

The steps, with your numbers

  1. Second choice: B = 180° − 45.585° = 134.415°
  2. Third angle: C = 180° − A − B = 180° − 30° − 134.415° = 15.585°
  3. Law of sines: c = a × sin C / sin A = 7 × sin(15.585°) / sin(30°) = 3.761

No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it.

Problem or idea? Email us

The formula

a / sin A = b / sin B = c / sin C

Each side is paired with the angle across from it. Say you know a and A. Then the common ratio is a / sin A, and every other side is that ratio times the sine of its own angle: b = (a / sin A) × sin B. To find an angle instead, flip it: sin B = b × sin A / a, then take arcsin.

Step by step: the 7, 10, 30° triangle

Known: a = 7, b = 10, A = 30°. Find B, C and c.

  1. sin B = b × sin A / a = 10 × 0.5 / 7 = 0.7143.
  2. arcsin 0.7143 gives B = 45.58°. The other angle with that sine is 180° − 45.58° = 134.42°.
  3. Check each against the angle sum: 30° + 45.58° = 75.58°, under 180°, fine. 30° + 134.42° = 164.42°, also under 180°, so both are valid.
  4. C = 180° − A − B gives 104.42° and 15.58°.
  5. c = a × sin C / sin A gives 13.559 and 3.761.

The tool does exactly this, with your numbers, in the steps under the result.

Worked examples

CaseYou enterResult
ASAA = 35°, B = 70°, c = 10a = 5.938, b = 9.728, c = 10; A = 35°, B = 70°, C = 75°
AASA = 40°, B = 65°, a = 12a = 12, b = 16.92, c = 18.033; A = 40°, B = 65°, C = 75°
SSA, obtuse angle givena = 9, b = 5, A = 120°a = 9, b = 5, c = 5.39; A = 120°, B = 28.759°, C = 31.241°

In ASA and AAS the third angle is just 180° minus the other two, so there is always one answer.

The ambiguous case, in four rules

Given angle A (acute), the side a opposite it and the other side b:

ConditionTrianglesExampleWhat the tool gives
a < b × sin ANonea = 3, b = 10, A = 30° (b × sin A = 5)No triangle: sin B would be 1.667, and a sine can't be above 1. Side a is too short to reach the other side from this angle.
a = b × sin AOne, right-angled at Ba = 5, b = 10, A = 30°a = 5, b = 10, c = 8.66; A = 30°, B = 90°, C = 60°
b × sin A < a < bTwoa = 7, b = 10, A = 30°a = 7, b = 10, c = 13.559; A = 30°, B = 45.585°, C = 104.415° | a = 7, b = 10, c = 3.761; A = 30°, B = 134.415°, C = 15.585°
a ≥ bOnea = 10, b = 7, A = 30°a = 10, b = 7, c = 15.43; A = 30°, B = 20.487°, C = 129.513°

If A is 90° or more, only one triangle is possible, and only if a is the longest side. The example with a = 9, b = 5, A = 120° has one solution. Swap the sides to a = 5, b = 9 and there is none, since the side opposite an obtuse angle must be the longest.

Numbers this uses

  • Angles of a triangle add up to 180° (Euclid, Elements I.32).
  • sin of an angle is between 0 and 1 for angles inside a triangle, so a computed sine above 1 means no triangle.
  • Two sine values within one part in a billion of 1 count as exactly 1, so a right-angle result is not split into two near-identical triangles.
  • π is the double-precision value 3.141592653589793 that your browser has built in.
  • "Decimals" only rounds the display, the maths keeps full precision.

For three sides or two sides and the angle between them, use the law of cosines calculator. For any case with a drawing and area, see the triangle calculator. The sine of the 16 standard angles is on the unit circle.

Nothing you type is uploaded. We count events without cookies (details).

FAQ

What is the law of sines?

In any triangle, each side divided by the sine of its opposite angle gives the same number: a / sin A = b / sin B = c / sin C. If you know one side and its opposite angle, you can get any other side from another angle, or any other angle from another side.

When can I use the law of sines?

When you know an angle and the side opposite it, plus one more piece. That covers ASA (two angles and the side between them), AAS (two angles and another side) and SSA (two sides and an angle not between them). For SSS or SAS, start with the law of cosines instead.

What is the ambiguous case?

SSA can fit two different triangles. The angle you get from arcsin is always acute, but the obtuse angle 180° minus it has the same sine. If that obtuse angle still leaves room for the third angle, both triangles are real. The calculator shows both, labelled acute and obtuse.

How do I know if there are two solutions, one or none?

Take the angle A and the side a opposite it, and the other side b. If a is shorter than b × sin A, there is none. If it is equal, there is one right triangle. If a is between b × sin A and b, there are two. If a is at least b, there is one. The table above runs each rule through the tool.

Why does my calculator give only one angle for B?

Calculators and spreadsheets return the acute angle from arcsin, which is the first answer. The second one is 180° minus that. For B = 45.58° the other choice is 134.42°. Check whether A + B stays under 180°. If it does, that triangle exists too.

Can the law of sines be used for a right triangle?

Yes, with sin 90° = 1 it turns into the familiar a = c × sin A. But for a right triangle with two known sides, the Pythagorean theorem calculator is shorter.

Does it work in radians?

Yes. Switch "Angles in" to radians and type angles like 0.5236 for 30°. The sine of an angle is the same number either way, as long as the calculator knows the unit. To convert first, use degrees to radians.

Are my numbers uploaded or saved?

No. Everything runs in your browser. What you type is not put in the address bar, not stored and not counted. We only count which case was solved.

More from FLXCode

Share Law of Sines Calculator