The law of sines says that in any triangle, each side divided by the sine of the opposite angle gives the same number:
where 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 , 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
- Pick what you know: ASA, AAS or SSA. Side always faces angle , faces and faces .
- Choose degrees or radians, then type the two angles (ASA, AAS) or the angle (SSA).
- Enter the known side(s) in any unit.
- Read the result. For ASA it leads with side , for AAS with side , and for SSA with the number of triangles. In the two-triangle case, the second solution appears as , and .
- The notes explain why the SSA case has zero, one or two answers, and the steps show the ratio that drives every calculation.
The formula
Law of sines. For any triangle with circumradius :
ASA and AAS. First . Then, with the known side, for example :
SSA. From , and : . Because , two angles can share this sine. With the height and an acute angle :
| Condition | Triangles |
|---|---|
| none () | |
| one, right-angled at | |
| two: and | |
| one |
If is right or obtuse, there is one triangle when and none otherwise. The area of each solution is .
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 , and the common ratio is km. Distances to the buoy: km from the second observer and km from the first.
SSA — two triangles. Take , and . The height is , shorter than , and : two triangles. , so
- triangle 1: , , ;
- triangle 2: , , .
Both share the circumradius .
Why the ambiguous case happens
Draw angle and lay side along one of its arms. Side must now reach from the end of to the other arm, like a hinged rod. If it is shorter than the perpendicular distance , it never touches; if it equals , it touches at a single point and makes a right angle; if it is longer than but shorter than , it can meet the arm in two places — one triangle with an acute and another with an obtuse . Once is at least , the second meeting point falls behind the vertex and only one triangle remains.
A pocket calculator returns only 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 .
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
- OpenStax, Precalculus 2e, §8.1 Non-right Triangles: Law of Sines
- Weisstein, E. W., “Law of Sines”, MathWorld (Wolfram Research)
Last updated: