Law of Sines Calculator — Solve Any Triangle
Side b
--
Side c
--
Angle C
--
Area
--
How the Law of Sines Works
The Law of Sines is a trigonometric theorem stating that in any triangle, the ratio of each side length to the sine of its opposite angle is constant. First described in its modern form by the Persian mathematician Nasir al-Din al-Tusi in the 13th century, it is one of the two fundamental laws for solving non-right triangles (the other being the Law of Cosines).
According to Wolfram MathWorld, the Law of Sines is most useful when you know two angles and one side (AAS or ASA). Once two angles are known, the third equals 180 minus their sum, and all sides can be found. The law has critical applications in triangulation -- the technique used by surveyors, navigators, and astronomers to determine distances that cannot be measured directly. The National Oceanic and Atmospheric Administration (NOAA) notes that triangulation using the Law of Sines has been fundamental to mapping coastlines and ocean floors since the 18th century. For right triangle problems, use our Right Triangle Calculator instead.
The Law of Sines Formula
The Law of Sines is expressed as:
a / sin(A) = b / sin(B) = c / sin(C) = 2R
Where a, b, c are side lengths, A, B, C are the opposite angles, and R is the circumradius (radius of the circumscribed circle). To solve for an unknown side:
- b = a x sin(B) / sin(A) -- finds side b when you know side a, angle A, and angle B
- sin(B) = b x sin(A) / a -- finds angle B when you know both sides and angle A (caution: ambiguous case)
Worked example (AAS): Given a = 7, A = 45 degrees, B = 60 degrees. First, C = 180 - 45 - 60 = 75 degrees. Then b = 7 x sin(60)/sin(45) = 7 x 0.8660/0.7071 = 8.573 units. And c = 7 x sin(75)/sin(45) = 7 x 0.9659/0.7071 = 9.562 units. Area = 0.5 x 7 x 8.573 x sin(75) = 28.99 sq units.
Key Terms You Should Know
- Ambiguous case (SSA) -- when you know two sides and a non-included angle, the Law of Sines may yield 0, 1, or 2 valid triangles. This occurs because sin(x) = sin(180 - x), so arcsin can return two possible angle values.
- Circumradius (R) -- the radius of the circle that passes through all three vertices of the triangle. The Law of Sines ratio a/sin(A) equals the diameter (2R) of this circumscribed circle.
- Triangulation -- a surveying and navigation technique that determines a position by forming triangles to it from known points, using the Law of Sines to compute distances.
- AAS vs. ASA -- AAS means two angles and a non-included side are known; ASA means two angles and the included side. Both are solved the same way: find the third angle, then use the Law of Sines for unknown sides.
- Circumscribed circle -- the unique circle passing through all three vertices of any triangle. Its center is the intersection of the perpendicular bisectors of the sides.
Understanding the Ambiguous Case (SSA)
The SSA (two sides and a non-included angle) case is the most important subtlety in using the Law of Sines. When you compute sin(B) = b x sin(A) / a, the result determines how many triangles exist.
| Condition | Number of Triangles | Explanation |
|---|---|---|
| sin(B) > 1 | 0 (no triangle) | The side opposite the known angle is too short |
| sin(B) = 1 | 1 (right triangle) | B = 90 degrees exactly |
| sin(B) < 1 and A is obtuse | 1 | Only one valid angle for B (must be acute) |
| sin(B) < 1 and A is acute | 1 or 2 | Check if B and (180 - B) both form valid triangles |
Practical Law of Sines Examples
Tower height measurement: From point A, you measure the angle of elevation to the top of a tower as 35 degrees. You walk 50 meters closer to point B and measure 55 degrees. The angle at the tower top is 180 - 55 - (180 - 35) = 55 - 145... Using the triangle formed: angle at A = 35 degrees, angle at B = 125 degrees (supplement of 55), angle at tower = 20 degrees. Distance from B to tower = 50 x sin(35)/sin(20) = 50 x 0.5736/0.3420 = 83.9 m. Tower height = 83.9 x sin(55) = 68.7 m.
Maritime navigation: A ship observes a lighthouse at bearing 040 degrees and a second lighthouse at bearing 100 degrees. The lighthouses are 5 nautical miles apart. The angle at the ship is 100 - 40 = 60 degrees. Using charted angles from the lighthouses, the Law of Sines determines the ship's distance to each. This is the basis of USCG visual navigation techniques still taught today.
Astronomy -- stellar parallax: Astronomers measure the apparent shift of nearby stars against background stars as Earth orbits the Sun. The baseline is Earth's orbital diameter (~2 AU), and the tiny parallax angles form extremely elongated triangles. The Law of Sines converts parallax angle to distance. The nearest star, Proxima Centauri, has a parallax of 0.77 arcseconds, yielding a distance of 4.24 light-years.
Tips for Solving Law of Sines Problems
- Find the third angle first: With AAS or ASA, immediately compute the missing angle (180 - A - B). This simplifies the remaining calculations to simple ratio problems.
- Watch for the ambiguous case: If you have SSA data, always check whether the computed sin(B) allows 0, 1, or 2 solutions. Test both B and (180 - B) to see if each produces a valid triangle.
- Use the circumradius for verification: a/sin(A) = 2R. If all three ratios are equal, your solution is consistent. If they differ, there is an error.
- Combine with the Law of Cosines: For SSA problems, it is often safer to use the Law of Cosines to find the third side, avoiding ambiguity entirely.
- Check units and mode: Ensure your calculator is in degree mode (not radians) when working with angles in degrees. A common error source is forgetting to switch modes between problems.
Frequently Asked Questions
What is the ambiguous case in the Law of Sines?
The ambiguous case occurs when you know two sides and a non-included angle (SSA). Because the sine function produces the same value for supplementary angles (sin(x) = sin(180 - x)), the computed angle B might have two valid values, producing two different triangles. For example, if sin(B) = 0.5, then B could be 30 degrees or 150 degrees. You must test both possibilities: if A + B < 180 degrees for both values, two triangles exist. If only one works, there is one triangle. If sin(B) > 1, no triangle exists because the given sides and angle are geometrically impossible.
How do I use the Law of Sines to find an unknown angle?
Rearrange the formula to: sin(B) = b x sin(A) / a, then B = arcsin(result). For example, if a = 10, b = 8, and A = 50 degrees: sin(B) = 8 x sin(50)/10 = 8 x 0.766/10 = 0.613, so B = arcsin(0.613) = 37.8 degrees. Remember to check the ambiguous case -- the supplement 180 - 37.8 = 142.2 degrees might also be valid if A + 142.2 < 180. In this case, 50 + 142.2 = 192.2 > 180, so only B = 37.8 degrees is valid.
What does the ratio a/sin(A) represent geometrically?
The ratio a/sin(A) equals exactly 2R, where R is the circumradius -- the radius of the unique circle that passes through all three vertices of the triangle (the circumscribed circle). For example, if a = 7, A = 45 degrees: 2R = 7/sin(45) = 7/0.7071 = 9.899, so R = 4.95 units. This means the triangle can be inscribed in a circle with radius 4.95 units. The circumscribed circle theorem, proven by Euclid, guarantees that every triangle has exactly one such circle. This geometric interpretation connects the Law of Sines to circle geometry and has applications in computer graphics.
Can I use the Law of Sines for right triangles?
Yes, the Law of Sines works for all triangles, including right triangles. However, for right triangles it simplifies significantly: since sin(90) = 1, the hypotenuse c = c/sin(90) = c/1 = c. The formula becomes a/sin(A) = b/sin(B) = c, which is equivalent to the standard SOH-CAH-TOA ratios: sin(A) = a/c and sin(B) = b/c. For right triangle problems, our dedicated Right Triangle Calculator or Pythagorean Theorem Calculator provide a more streamlined interface.
How is the Law of Sines used in real-world navigation?
Triangulation is the primary navigation application. A navigator measures the bearings (angles) to two known landmarks and uses the Law of Sines to compute distances. For example, if two lighthouses are 3 nautical miles apart, and a ship measures angles of 45 degrees and 70 degrees to them, the triangle's third angle is 65 degrees. The ship's distance to the first lighthouse = 3 x sin(70)/sin(65) = 3.11 nautical miles. This technique has been used since the 18th century and remains a backup method when GPS is unavailable. The US Coast Guard still requires proficiency in visual triangulation.