Law of Sines Calculator
Type two angles and a side, or two sides and an angle opposite one of them.
Type two angles and a side, or two sides and an angle opposite one of them. When two triangles fit (the ambiguous case), both are drawn and solved.
Two sides and an angle not between them (SSA). Each angle sits opposite the side with its letter.
More optionsNo length unit
Length unit
A label for the answers; the maths is the same in any unit.
ExampleSide c, triangle 1
9.2198
Two triangles fit these values; this is the one with B ≈ 59°.
Type your own values, or drag a corner.
Drag the round handles on the corners. The dotted arc is everywhere side a can reach from C: it crosses the base twice, so two triangles fit.
| Side | Opposite angle |
|---|---|
| a = 6given | A = 40°given |
| b = 8given | B = 58.987° |
| c = 9.2198 | C = 81.013° |
Area 23.7054Perimeter 23.2198
Area, perimeter, heights and circlesEvery other measurement of this triangle
| Area | 23.7054 square units |
|---|---|
| Perimeter | 23.2198 |
| Height to side a | 7.9018 |
| Height to side b | 5.9263 |
| Height to side c | 5.1423 |
| Inradius (inscribed circle) | 2.0418 |
| Circumradius (circle through the corners) | 4.6672 |
| Angles in radians | A 0.6981, B 1.0295, C 1.4139 |
How this works: 5 sources,
How this works
Method
In any triangle, each side divided by the sine of the angle opposite it gives the same number: a/sin A = b/sin B = c/sin C. (That number is the diameter of the circle through the three corners.) Once you know one side and the angle opposite it, every other side or angle follows from one division. Full method
Sources
How it’s tested
3 worked examples for this page are checked by automated tests before every release: given the inputs, the tool must show the expected answer.
Privacy
On your device. Nothing you enter or open leaves this browser. About privacy labels
Changes
- First published: any three values, both triangles in the ambiguous case, exact answers, worked steps, a drawing you can drag and seven focused pages.
How the law of sines works
In any triangle, each side divided by the sine of the angle opposite it gives the same number: a/sin A = b/sin B = c/sin C. (That number is the diameter of the circle through the three corners.) Once you know one side and the angle opposite it, every other side or angle follows from one division.
With two angles and a side, find the third angle first, since the angles add up to 180°. For A = 50°, B = 70° and c = 12: C = 60°, then a = 12 × sin 50° ÷ sin 60° ≈ 10.6146 and b = 12 × sin 70° ÷ sin 60° ≈ 13.0208. These are the ASA and AAS cases, and they always give exactly one triangle.
Two sides and an angle opposite one of them (SSA) is the ambiguous case. The law of sines gives the sine of a second angle, and two angles under 180° share every sine below 1: B and 180° − B. If both leave room for the third angle, two different triangles fit; if the side opposite the known angle is too short to reach, none does. The drawing above shows why: the free side swings like a compass and can cross the base twice.
a / sin A = b / sin B = c / sin C
- In the 13th century, Nasir al-Din al-Tusi set out the law of sines for plane triangles and used it to solve them. Source: Wikipedia, Law of sines.
- Each ratio a/sin A equals 2R, the diameter of the triangle’s circumscribed circle. Source: Wikipedia, Law of sines.
- US high school standards list the law of sines and the law of cosines for finding unknown measurements in non-right triangles (HSG-SRT.D.11). Source: Common Core State Standards, High School Geometry, Similarity, Right Triangles and Trigonometry (G-SRT).
The ambiguous case: b = 10, A = 30°, and side a growing
How many triangles fit when b = 10 and A = 30° as side a changes. The height b × sin A = 5 is the shortest a that reaches.
| Side a | Triangles | Angle B | Side c |
|---|---|---|---|
| 3 | None | a is shorter than 5 | — |
| 4 | None | a is shorter than 5 | — |
| 5 | One | 90° | 5√3 |
| 6 | Two | 56.44° or 123.56° | 5√3 + √11 or 5√3 − √11 |
| 7 | Two | 45.58° or 134.42° | 5√3 + 2√6 or 5√3 − 2√6 |
| 8 | Two | 38.68° or 141.32° | 5√3 + √39 or 5√3 − √39 |
| 9 | Two | 33.75° or 146.25° | 5√3 + 2√14 or 5√3 − 2√14 |
| 10 | One | 30° | 10√3 |
| 11 | One | 27.04° | 5√3 + 4√6 |
| 12 | One | 24.62° | 5√3 + √119 |
Show all 11 rowsShow fewer
| 15 | One | 19.47° | 10√2 + 5√3 |
Common questions
When does SSA give two triangles?
When the side opposite the known angle is longer than the height it has to reach (b × sin A) but shorter than the other known side b, and the known angle is acute. For b = 10 and A = 30° that means 5 < a < 10. The calculator shows both and lets you pick.
When should I use the law of sines instead of the law of cosines?
Use sines when you know an angle and the side opposite it, which is every ASA, AAS and SSA problem. Use cosines when you know two sides and the angle between them (SAS) or all three sides (SSS), because then no angle has its opposite side known.
Why does my textbook say “no solution”?
In the SSA case, if a is shorter than b × sin A, the side can’t reach the base at all. With b = 10 and A = 30°, a side of 3 or 4 is too short. The calculator says how long the side would have to be.