Law of Sines Calculator: Your Guide to Solving Triangles
ByMuhammad Ali•Founder of KruskalCode
22:05
6 min read

The Law of Sines is a powerful tool in trigonometry that helps you solve for unknown sides or angles in any triangle, not just right-angled ones. Whether you're tackling homework or just curious about triangle properties, understanding this rule can make complex problems much simpler. Our Law of Sines calculator is designed to quickly provide the missing values you need, making geometry a breeze.
Explanation
The Law of Sines, also known as the Sine Rule, establishes a relationship between the sides of a triangle and the sines of its opposite angles. It states that for any triangle with sides a, b, and c, and angles A, B, and C (where A is opposite a, B is opposite b, and C is opposite c), the following ratio holds true: a / sin(A) = b / sin(B) = c / sin(C) This means that if you know a side and its opposite angle, along with one other side or angle, you can find the remaining unknown values. This rule is particularly useful for solving triangles when you have Angle-Angle-Side (AAS), Angle-Side-Angle (ASA), or Side-Side-Angle (SSA) information. The SSA case is famously known as the 'ambiguous case' because sometimes two different triangles can be formed with the same given measurements.
Formula
The Law of Sines formula is: a / sin(A) = b / sin(B) = c / sin(C) To use it, you typically set up a proportion with two parts of the equation. For example, if you know side 'a', angle 'A', and angle 'B', you can find side 'b' using: a / sin(A) = b / sin(B)
Example
Let's walk through an example. Suppose you have a triangle where Angle A = 40°, Side a = 8 units, and Side b = 10 units. You want to find Angle B. This is an SSA case, so we need to be mindful of potential ambiguity. Using the Law of Sines: a / sin(A) = b / sin(B) 8 / sin(40°) = 10 / sin(B) 8 / 0.6428 = 10 / sin(B) 12.445 ≈ 10 / sin(B) sin(B) = 10 / 12.445 sin(B) ≈ 0.8035 Now, to find Angle B, we take the inverse sine (arcsin) of 0.8035: B = arcsin(0.8035) ≈ 53.46° Since this is an SSA case, there might be a second possible angle for B: 180° - 53.46° = 126.54°. We check if A + B < 180° for both: For B ≈ 53.46°: 40° + 53.46° = 93.46° < 180° (Valid) For B ≈ 126.54°: 40° + 126.54° = 166.54° < 180° (Valid) So, in this example, there are two possible triangles, giving two possible values for Angle B. Our calculator will show both if they exist.
How to use the related calculator
Using the ProMathTools Law of Sines Calculator is straightforward. You'll see four input fields: 'Side 'a'', 'Angle 'A' (degrees)', 'Side 'b'', and 'Angle 'B' (degrees)'. To get a result, you need to enter exactly three of these values. For instance, if you know Side 'a', Angle 'A', and Side 'b', enter those three numbers into their respective fields and leave 'Angle 'B'' blank. The calculator will then compute the missing value. If there's an ambiguous case (SSA) when solving for an angle, it will display both possible solutions. Always ensure your angles are in degrees and your side lengths are positive for accurate results.
Try the related calculator
Open toolFAQ
What is the Law of Sines used for?
The Law of Sines is a fundamental trigonometric rule used to find unknown side lengths or angles in any triangle (not just right-angled ones) when you know certain combinations of sides and angles, such as Angle-Angle-Side (AAS), Angle-Side-Angle (ASA), or Side-Side-Angle (SSA).
What is the ambiguous case (SSA)?
The ambiguous case (Side-Side-Angle, SSA) occurs when you are given two sides and a non-included angle. In some situations, these measurements can form two different valid triangles, one triangle, or no triangle at all. Our calculator will show both possible solutions if they exist.
Can I use this calculator for right triangles?
Yes, absolutely! The Law of Sines applies to all triangles, including right triangles. However, for right triangles, you can often use simpler trigonometric ratios (SOH CAH TOA) or the Pythagorean theorem.
What units should I use for side lengths?
You can use any consistent unit for side lengths (e.g., centimeters, inches, meters). The calculator will provide the missing side length in the same unit you used for the known sides. Angles must always be in degrees for this calculator.
Related articles

About the author
Muhammad Ali. Muhammad Ali is a full-stack developer and founder of KruskalCode. He builds SaaS platforms and automation systems with React and Laravel, and helps teams ship fast, scalable tools.
Need a custom calculator, dashboard, or automation workflow? Reach out to KruskalCode.