Law of Sines Calculator
Solve a triangle from one side and two angles using the sine rule, with the remaining sides and area.
What it does
The law of sines relates each side of a triangle to the sine of the angle opposite it. The ratio is the same for all three pairs, so knowing one complete pair and one other angle is enough to solve for the remaining sides.
This page handles the common case where you know side a, angle A, and angle B. It returns side b, angle C, side c, the shared ratio, and the area. The default values are a side of 7 with angles of 35 and 105 degrees.
The third angle comes from the angle sum of a triangle, which is 180 degrees. Once angle C is known, each missing side is the shared ratio multiplied by the sine of its own opposite angle. The ratio itself is side a divided by the sine of angle A.
Area uses the familiar sine area rule. Half of side a times side b times the sine of the included angle C gives the same result whichever pair of sides you choose. The tool uses the pair it has already computed.
The sine rule also has an ambiguous case when two sides and a non included angle are given. That situation can produce two valid triangles. By asking for two angles and a side, this tool avoids the ambiguity and returns a single answer.
How to use
- Enter the length of side a, opposite angle A.
- Enter angle A in degrees.
- Enter a second known angle B in degrees.
- Read side b, the first main result, and angle C beside it.
- Check side c and the common ratio to verify the proportions by hand.
- Use the area result when you need the triangle's enclosed space.
Formula
- a, b, c
- Side lengths, each opposite the angle with the same capital letter.
- A, B, C
- Interior angles in degrees; A and B are inputs and C is computed.
- ratio
- The shared value a divided by the sine of A.
Angles are converted from degrees to radians before the sine is taken. The common ratio a over sin A is also twice the circumradius of the triangle. If A plus B reaches or exceeds 180 degrees, no triangle exists and the tool reports an error.
Worked example
Example: side 7 with angles 35 and 105 degrees
The page opens with a = 7, A = 35 degrees, and B = 105 degrees.
- Find the third angle: C = 180 minus 35 minus 105, which is 40 degrees.
- Compute the common ratio: 7 divided by sine of 35 degrees, about 12.204.
- Side b is the ratio times sine of 105 degrees, which is 11.79.
- Side c is the ratio times sine of 40 degrees, which is 7.84.
- Check the area: half times 7 times 11.79 times sine of 40 degrees, which is 26.52.
- The tool reports b = 11.79, C = 40.0 degrees, c = 7.84, ratio 12.204, and area 26.52.
Reference table
| Input a, A, B | Side b | Angle C | Side c | Area |
|---|---|---|---|---|
| 7, 35°, 105° | 11.79 | 40.0 ° | 7.84 | 26.52 |
| 10, 50°, 30° | 6.53 | 100.0 ° | 12.86 | 32.14 |
| 9, 60°, 45° | 7.35 | 75.0 ° | 10.04 | 31.94 |
Limits
- Only the two angle case is solved, not the ambiguous two side case.
- Side lengths must be above zero and at most 1,000,000.
- The two known angles must add to less than 180 degrees.
- Lengths and area use the same arbitrary unit as the input side.
Common mistakes
- Forgetting to subtract both known angles from 180 to find C.
- Using degrees directly in a calculator set to radians.
- Pairing a side with the sine of a non opposite angle.
- Assuming two sides and one angle always give a unique triangle.
- Rounding the shared ratio too early and losing precision in the second side.
Try it yourself
Quick checks. Answers sit tucked under each question.
With a = 10, A = 50 degrees, and B = 30 degrees, find b and C.
C is 100.0 degrees and b is 6.53. The common ratio is 13.054.
With a = 9, A = 60 degrees, and B = 45 degrees, find c.
C is 75.0 degrees, so c is 10.04.
With a = 7, A = 35 degrees, and B = 105 degrees, find the area.
26.52 square units, from half of 7 times 11.79 times the sine of 40 degrees.
Questions
When can I use the law of sines?
Use it when you know a side with its opposite angle and one other angle or side, and the triangle is not ambiguous.
Why do I need two angles here?
With two angles you get the third from the angle sum, so the triangle is fixed and there is only one answer.
What is the common ratio?
It is a side divided by the sine of its opposite angle. It is the same for all three sides and equals twice the circumradius.
Does the unit of side a matter?
No. Any consistent length unit works, and the other sides and the area follow that choice.
What is the ambiguous case?
When two sides and a non included angle are known, the sine rule can give two possible angles. This tool avoids that setup.
How is the area computed?
Half of side a times side b times the sine of the included angle C.
Sources
- OpenStax Precalculus 2e, section 8.1: non right triangles and the law of sines
- Monash University, sine and cosine rules
- University of Oklahoma, law of sines and cosines notes