Law of Sines Calculator

Enter any three values of a triangle, including at least one side. The calculator finds the missing sides and angles, draws the triangle to scale, and shows every step. It also catches the ambiguous case (SSA), when two different triangles fit your numbers.

Your triangle

0 of 3 values
°
°
°

Each row is a side and the angle opposite it. Try an example:

Solution

Step-by-step working

Enter three values and the working appears here.

How to use the law of sines calculator

  1. Label your triangle so that side \(a\) is opposite angle \(A\), side \(b\) is opposite angle \(B\), and side \(c\) is opposite angle \(C\). Each row of the calculator is one of these pairs.
  2. Type the three values you know. At least one of them must be a side. Leave the other three boxes empty.
  3. The answer appears as soon as the third value is in: the missing sides and angles, the area, the perimeter, and a drawing of the triangle to scale.
  4. Read the step-by-step working to see how each value was found. If two triangles fit your numbers, switch between Triangle 1 and Triangle 2.

Angles can be in degrees or radians. Use the rounding menu to match what your teacher or textbook asks for.

The law of sines formula

In any triangle, each side divided by the sine of the angle opposite it gives the same number:

\[ \frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C} \]

You can also flip every fraction, which is easier when you are finding an angle:

\[ \frac{\sin A}{a} = \frac{\sin B}{b} = \frac{\sin C}{c} \]

The common value is the diameter of the circle that passes through all three corners of the triangle: \(\dfrac{a}{\sin A} = 2R\), where \(R\) is the circumradius. The calculator shows this number as “a / sin A” so you can check your own working.

Worked example (AAS): \(A = 40^\circ\), \(B = 60^\circ\) and \(a = 10\). First \(C = 180^\circ – 40^\circ – 60^\circ = 80^\circ\). Then \(b = \dfrac{a\sin B}{\sin A} = \dfrac{10\sin 60^\circ}{\sin 40^\circ} \approx 13.47\) and \(c = \dfrac{10\sin 80^\circ}{\sin 40^\circ} \approx 15.32\).

When to use the law of sines

The law of sines needs one complete pair: a side and the angle opposite it. Whether you have a pair depends on which three values you know.

You knowNameMethod
Two angles and the side between themASAFind the third angle, then the law of sines
Two angles and a side not between themAASLaw of sines (find the third angle too)
Two sides and an angle not between themSSALaw of sines, but check for 0, 1 or 2 triangles
Two sides and the angle between themSASLaw of cosines first, then the law of sines
Three sidesSSSLaw of cosines first, then the law of sines

For SAS and SSS this calculator still gives the full answer. It uses the law of cosines for the first step and shows that step clearly, then finishes with the law of sines.

The ambiguous case (SSA): zero, one or two triangles

When you know two sides and an angle that is not between them, the numbers may fit no triangle, exactly one, or two different triangles. The reason is that \(\sin\theta\) has the same value for \(\theta\) and \(180^\circ – \theta\), so the law of sines can give two possible angles.

Suppose you know angle \(A\), the side \(a\) opposite it, and another side \(b\). Work out the height \(h = b\sin A\). Then:

Angle \(A\)ConditionNumber of triangles
Acute\(a < h\)None
Acute\(a = h\)One (a right triangle)
Acute\(h < a < b\)Two
Acute\(a \ge b\)One
Right or obtuse\(a \le b\)None
Right or obtuse\(a > b\)One

Worked example (two triangles): \(A = 30^\circ\), \(a = 6\), \(b = 10\). Here \(h = 10\sin 30^\circ = 5\), and \(5 < 6 < 10\), so two triangles fit. The law of sines gives \(\sin B = \dfrac{10\sin 30^\circ}{6} \approx 0.8333\), so \(B \approx 56.44^\circ\) or \(B \approx 123.56^\circ\). The first gives \(C \approx 93.56^\circ\) and \(c \approx 11.98\). The second gives \(C \approx 26.44^\circ\) and \(c \approx 5.34\). Load the “SSA (2 triangles)” example in the calculator to see both drawn.

Frequently asked questions

What is the law of sines?

It is a rule that works in every triangle: each side divided by the sine of its opposite angle gives the same value, \(\dfrac{a}{\sin A} = \dfrac{b}{\sin B} = \dfrac{c}{\sin C}\). It lets you find missing sides and angles in triangles that are not right triangles.

When can you use the law of sines?

When you know a side and the angle opposite it, plus one more side or angle. That covers ASA, AAS and SSA. For SAS and SSS, start with the law of cosines.

Why does the law of sines sometimes give two answers?

Because an angle and its supplement have the same sine, for example \(\sin 50^\circ = \sin 130^\circ\). In the SSA case both angles can sometimes fit, which makes two different triangles. The calculator checks both and shows every triangle that works.

Does the law of sines work for right triangles?

Yes. Since \(\sin 90^\circ = 1\), it reduces to the usual SOH CAH TOA ratios. For right triangles the right triangle calculator is usually quicker.

How do you find an angle with the law of sines?

Use the flipped form, \(\sin B = \dfrac{b\sin A}{a}\), then take the inverse sine. Remember to check whether \(180^\circ\) minus that angle also gives a valid triangle.

Related tools and practice