When this page applies
The law of sines relates each side of a triangle to the sine of the angle opposite it. This page uses it for the case where you know two angles and one side, which surveyors and students call AAS or ASA. You give side a, the angle A opposite it and a second angle B. The page returns side b, opposite B, and side c, opposite the third angle C. A typical use is measuring across a gap you cannot cross. Sight the two ends of a baseline of known length from a third point, measure the angles at the ends, and the distances to that point follow. The calculator needs exactly one known side. The same arrangement appears in navigation, in measuring the height of a tall object from two angles of elevation, and in classroom problems where a diagram gives two angles and a labeled side.
Third angle first, then sides by sines
The third angle comes from the angle sum of a triangle: C = 180 − A − B. The law of sines says a / sin(A) = b / sin(B) = c / sin(C). Solving for the unknown sides gives b = a × sin(B) / sin(A) and c = a × sin(C) / sin(A), which is how the page computes them. The angles are entered in degrees and converted to radians inside the calculation. The required condition is that A and B add to less than 180 degrees, otherwise no triangle exists and C would be zero or negative. Side a must be the side opposite angle A, so keep each side paired with its own angle.
A 30-90-60 triangle with side a equal to 5
The page starts with a = 5, A = 30 degrees and B = 90 degrees. The third angle is C = 180 − 30 − 90 = 60 degrees. Then b = 5 × sin(90) / sin(30) = 5 × 1 / 0.5 = 10, and c = 5 × sin(60) / sin(30) = 5 × 0.866025 / 0.5, which is about 8.6603. This is the familiar 30-60-90 right triangle, with the hypotenuse b equal to twice the short leg a. The ratio a / sin(A) equals 10 here, and it is also the diameter of the circle through all three corners, so that circle has a radius of 5. The result makes a handy check on any use of the page: the side opposite the largest angle must be the longest, and here the 90-degree angle B faces side b = 10, the longest side.
A scalene triangle
Take a = 12 with A = 40 degrees and B = 65 degrees. Then C = 75 degrees. Side b is 12 × sin(65) / sin(40) = 12 × 0.906308 / 0.642788, about 16.9196. Side c is 12 × sin(75) / sin(40) = 12 × 0.965926 / 0.642788, about 18.0326. The largest angle is C at 75 degrees and its side c is the longest, consistent with the rule that larger angles face longer sides. Another example: a = 8, A = 50, B = 60 gives C = 70, b of about 9.0441 and c of about 9.8135. Notice that c is longer than b because 70 degrees is greater than 60.
A baseline across a river
Suppose two posts are 100 meters apart along one bank, and you want the distance from each to a tree on the far bank. Standing at the first post, you sight the tree and the second post and measure an angle of 35 degrees. At the second post the angle to the tree is 80 degrees. Using the posts as the opposite side of the angle at the tree, enter a = 100, A = 35 and B = 80. The third angle is 65 degrees, and the page gives b of about 171.70 and c of about 158.01 meters. The tree is therefore a little over 158 meters from one post and about 172 from the other. This is the idea behind triangulation.
Pairing sides with angles
The most common error is a mismatched pair. Side a must lie opposite angle A, and the page assumes that b is opposite B. If your sketch labels the sides differently, relabel the triangle before entering numbers. A drawing makes this easy: write each angle at its vertex, label the side across from it with the matching lowercase letter, and enter the known side and its opposite angle as a and A. The second known angle goes into B. If you know the angle at the end of the known side instead, find its partner by subtracting the other two angles from 180 degrees first, then enter the values that match.
Why this mode avoids the ambiguous case
The law of sines is also used when you know two sides and an angle that is not between them, called SSA. That case can have two valid triangles, one, or none, because the sine of an angle equals the sine of its supplement. The page avoids that problem by taking two angles and one side. Once two angles are known, the third is fixed and the triangle has one shape and size. There is only one answer, so no choice between an acute and an obtuse solution is needed. An angle B above 90 degrees is still allowed here, as long as A plus B stays below 180, and the sine of an obtuse angle is positive, so the formulas hold without change. If your data is SSA, a different method is required before you can use this page.
Accuracy and angle measurement
Small errors in the angles can grow into large errors in the sides, especially when the angle opposite the known side is small. The sine of a small angle changes slowly, so dividing by sin(A) magnifies measurement error. With A = 5 degrees, a one-degree uncertainty changes sin(A) by about 20 percent. A thin triangle with a short baseline and a long reach is a poor design for field measurement. Wider angles at the baseline end give steadier results. The page reports many digits, but the true precision is set by how well you measured the angles and the baseline, so round the answer to match.
Angle sums that must stay below 180 degrees
The page needs finite positive inputs and A plus B below 180 degrees. It returns sides b and c but not the area or the angle C, though C follows from the sum. It does not handle SSA data, or three-sides problems, which need the law of cosines. The results are mathematical and do not substitute for surveying standards or building codes. Keep all lengths in one unit, and the result will have that unit. Retain intermediate digits when checking by hand, as rounded sine values can shift the third significant figure.