Law of Sines Calculator
Solve any triangle with the Law of Sines. Enter two angles and a side, or two sides and an angle, for a complete solution.
What is the Law of Sines?
The Law of Sines (also called the Sine Rule) states that in any triangle, the ratio of each side length to the sine of its opposite angle is the same constant:
Here sides a, b, c are opposite to angles A, B, C respectively, and R is the circumradius (the radius of the circle passing through all three vertices).
Unlike the Pythagorean theorem (which only works for right triangles), the Law of Sines works for all triangles: acute, right, and obtuse. It allows you to solve a triangle whenever you know two angles and any one side (ASA or AAS), or two sides and the angle opposite one of them (SSA).
The law is essential in surveying (triangulation to measure inaccessible distances), navigation, astronomy, and engineering design. Whenever you have partial information about a triangle and need a complete solution, the Law of Sines is the first tool to reach for.
Formula and Cases
ASA (Angle-Side-Angle):
Known: A, a, B. Solve: C = 180 - A - B; b = a * sin(B) / sin(A); c = a * sin(C) / sin(A)
AAS (Angle-Angle-Side):
Known: A, B, b. Solve: C = 180 - A - B; a = b * sin(A) / sin(B); c = b * sin(C) / sin(B)
SSA (Ambiguous Case):
Known: a, b, A. Solve: sin(B) = b * sin(A) / a. If sin(B) greater than 1 then no triangle.
Area: Area = (1/2) * a * b * sin(C)
Variables:
- a, b, c — side lengths, each opposite its corresponding angle
- A, B, C — interior angles in degrees (must sum to 180°)
- R — circumradius of the triangle
- sin(X) — trigonometric sine of angle X
The SSA ambiguous case arises because arcsin is multi-valued: for a given sin(B) there may be two angles (B and 180°-B) that both produce valid triangles with different shapes.
📖 How to Use the Law of Sines Calculator
Steps to Solve
Example Calculations
Frequently Asked Questions
🔗 Related Calculators
What is the Law of Sines?
The Law of Sines states that in any triangle, the ratio of each side to the sine of its opposite angle is constant: a/sin(A) = b/sin(B) = c/sin(C). This ratio equals twice the circumradius. The law works for all triangles.
When do you use the Law of Sines?
Use it when you know two angles and any one side (AAS or ASA), or when you know two sides and the angle opposite one of them (SSA). For SAS or SSS cases, use the Law of Cosines.
What is the ambiguous SSA case in the Law of Sines?
The ambiguous case (SSA) occurs when you know two sides and an angle opposite one of them. Depending on the values, there may be zero, one, or two valid triangles. If the given side opposite the known angle is shorter than the other given side, two different triangles can satisfy the conditions. This calculator detects and reports both solutions when they exist.
How do you find all sides and angles of a triangle using the Law of Sines?
In ASA mode, enter the two known angles and the side between them. The third angle is found as 180 minus the sum of the two known angles. The remaining sides are then computed using the sine ratios. In AAS mode, enter two angles and a non-included side. In SSA mode, enter two sides and the angle opposite the first side, then use the sine ratio to find the second angle.
Can the Law of Sines be used for right triangles?
Yes. The Law of Sines works for any triangle, including right triangles. For a right triangle with the 90-degree angle at C, sin(C) = 1, so the ratio a/sin(A) = b/sin(B) = c. However, for right triangles it is usually simpler to use basic trigonometric ratios (sin, cos, tan) or the Pythagorean theorem directly.
What is the circumradius of a triangle and how does it relate to the Law of Sines?
The circumradius R is the radius of the circle that passes through all three vertices of a triangle. The Law of Sines states that a/sin(A) = b/sin(B) = c/sin(C) = 2R. Knowing any side and its opposite angle therefore lets you compute R directly. The circumradius appears in the output of this calculator.
What is the difference between ASA, AAS, and SSA triangle configurations?
ASA (Angle-Side-Angle) means you know two angles with the side between them. AAS (Angle-Angle-Side) means you know two angles and a side that is not between them. SSA (Side-Side-Angle) means you know two sides and the angle opposite one of them. ASA and AAS always produce a unique triangle; SSA may produce zero, one, or two triangles (the ambiguous case).
What triangle area formula does the Law of Sines give?
Once all three sides and angles are known, the area can be calculated as Area = (1/2) x a x b x sin(C), where a and b are any two sides and C is the included angle between them. This calculator shows the area after solving the triangle.
How accurate is this Law of Sines calculator?
Calculations use JavaScript double-precision floating point (IEEE 754), giving accuracy to about 15 significant digits. Results are rounded to 4 decimal places for display. Input angles must be in degrees and must sum to less than 180 for a valid triangle.
What happens if the angles entered do not form a valid triangle?
If the two known angles already sum to 180 degrees or more, the third angle would be zero or negative, which is impossible. The calculator detects this and displays an error. Similarly, if an SSA configuration produces no valid triangle (the given side is too short to reach the base), the calculator reports no solution.
How is the perimeter of a triangle calculated after using the Law of Sines?
Once all three sides are known, the perimeter is simply the sum of all three sides: P = a + b + c. This calculator displays the perimeter alongside the individual side lengths and angles after solving the triangle.