Skip to content

Law of Sines Calculator

Solve a triangle from two angles and a side (ASA, AAS) or two sides and a non-included angle (SSA, ambiguous case).

Your details

Unit system
Angle unit
°
°

Results update as you type

Side a

6.527 in

Side b
8.7939 in
Angle C
80 °
Area
28.2629 in²
Circumradius R
5.0771 in

Step-by-step solution
  1. C = 180° − A − B = 180° − 40° − 60° = 80°
  2. a / sin A = b / sin B = c / sin C = 10 in / sin 80° = 10.1543 in
  3. a = c·sin A / sin C = 6.527 in
  4. b = c·sin B / sin C = 8.7939 in
  5. R = a / (2 sin A) = 5.0771 in

The law of sines says that in any triangle, each side divided by the sine of the opposite angle gives the same number:

asin⁡A=bsin⁡B=csin⁡C=2R\frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C} = 2R

where RR is the radius of the circle passing through the three vertices. Whenever you know one side and the angle facing it, that common ratio is known, and every other side or angle follows.

This calculator handles the three situations the rule is made for:

  • ASA — two angles and the side between them;
  • AAS — two angles and a side that is not between them;
  • SSA — two sides and an angle opposite one of them. This is the famous ambiguous case: depending on the lengths, there may be no triangle, exactly one, or two different triangles. When two exist, the calculator shows both.

For every solution you get the missing angles and sides, the area and the circumradius RR, with steps that substitute your own numbers. Angles can be entered in degrees or radians and sides in any length unit. If what you know is three sides, or two sides with the angle between them, switch to the law of cosines calculator.

How to use this calculator

  1. Pick what you know: ASA, AAS or SSA. Side aa always faces angle AA, bb faces BB and cc faces CC.
  2. Choose degrees or radians, then type the two angles (ASA, AAS) or the angle AA (SSA).
  3. Enter the known side(s) in any unit.
  4. Read the result. For ASA it leads with side aa, for AAS with side bb, and for SSA with the number of triangles. In the two-triangle case, the second solution appears as B′B', C′C' and c′c'.
  5. The notes explain why the SSA case has zero, one or two answers, and the steps show the ratio a/sin⁡Aa/\sin A that drives every calculation.

The formula

Law of sines. For any triangle with circumradius RR:

asin⁡A=bsin⁡B=csin⁡C=2R\frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C} = 2R

ASA and AAS. First C=180∘−A−BC = 180^\circ - A - B. Then, with the known side, for example cc:

a=c sin⁡Asin⁡Cb=c sin⁡Bsin⁡Ca = \frac{c\,\sin A}{\sin C} \qquad b = \frac{c\,\sin B}{\sin C}

SSA. From aa, bb and AA: sin⁡B=bsin⁡Aa\sin B = \dfrac{b\sin A}{a}. Because sin⁡B=sin⁡(180∘−B)\sin B = \sin(180^\circ - B), two angles can share this sine. With the height h=bsin⁡Ah = b\sin A and an acute angle AA:

Condition Triangles
a<ha < h none (sin⁡B>1\sin B > 1)
a=ha = h one, right-angled at BB
h<a<bh < a < b two: BB and B′=180∘−BB' = 180^\circ - B
a≥ba \ge b one

If AA is right or obtuse, there is one triangle when a>ba > b and none otherwise. The area of each solution is K=12absin⁡CK = \tfrac12 ab\sin C.

Worked example

ASA — locating a buoy. Two observers stand 2 km apart on a straight shore. One sees a buoy at 52° from the shoreline, the other at 71°. The angle at the buoy is C=180−52−71=57°C = 180 - 52 - 71 = 57°, and the common ratio is 2/sin⁡57∘≈2.3852 / \sin 57^\circ \approx 2.385 km. Distances to the buoy: a=2.385×sin⁡52∘≈1.879a = 2.385 \times \sin 52^\circ \approx 1.879 km from the second observer and b≈2.255b \approx 2.255 km from the first.

SSA — two triangles. Take a=8a = 8, b=10b = 10 and A=40°A = 40°. The height is h=10sin⁡40∘≈6.43h = 10\sin 40^\circ \approx 6.43, shorter than aa, and a<ba < b: two triangles. sin⁡B=10sin⁡40∘/8≈0.8035\sin B = 10 \sin 40^\circ / 8 \approx 0.8035, so

  • triangle 1: B≈53.46°B \approx 53.46°, C≈86.54°C \approx 86.54°, c≈12.42c \approx 12.42;
  • triangle 2: B′≈126.54°B' \approx 126.54°, C′≈13.46°C' \approx 13.46°, c′≈2.90c' \approx 2.90.

Both share the circumradius R=8/(2sin⁡40∘)≈6.22R = 8 / (2\sin 40^\circ) \approx 6.22.

Why the ambiguous case happens

Draw angle AA and lay side bb along one of its arms. Side aa must now reach from the end of bb to the other arm, like a hinged rod. If it is shorter than the perpendicular distance hh, it never touches; if it equals hh, it touches at a single point and makes a right angle; if it is longer than hh but shorter than bb, it can meet the arm in two places — one triangle with an acute BB and another with an obtuse B′B'. Once aa is at least bb, the second meeting point falls behind the vertex and only one triangle remains.

A pocket calculator returns only sin⁡−1\sin^{-1} between −90° and 90°, so it silently drops the obtuse answer. That is the most common error in SSA problems, and the reason this calculator always checks 180∘−B180^\circ - B.

Law of sines or law of cosines?

Use the law of sines when a known angle faces a known side (ASA, AAS, SSA). Use the law of cosines for three sides (SSS) or two sides with the included angle (SAS), where no such pair exists. For the angles alone, the triangle angle calculator applies the 180° rule, and the triangle area calculator offers more area formulas.

Frequently asked questions

When can I use the law of sines?

Whenever you know a side and the angle opposite it, plus one more side or angle. That covers ASA, AAS and SSA. With three sides or two sides and the angle between them, use the law of cosines instead.

What is the ambiguous case?

It is the SSA situation: two sides and an angle that is not between them. The data can describe no triangle, one triangle or two different triangles, because two angles (B and 180° − B) have the same sine.

How do I know whether SSA gives two triangles?

With angle A acute, compute the height h = b·sin A. If h < a < b there are two triangles; if a = h or a ≥ b there is one; if a < h there is none. With A obtuse or right, there is one triangle only when a > b.

What does the ratio a / sin A represent?

It equals the diameter 2R of the circumscribed circle, the circle through all three vertices. That is why the calculator also gives the circumradius R.

Does the law of sines work for right triangles?

Yes. With C = 90°, sin C = 1 and the rule reduces to sin A = a / c, the usual definition of the sine as opposite over hypotenuse.

Sources

Last updated:

More Math calculators

People also use