Law of Sines Calculator

Solve triangles using the law of sines (a/sinA = b/sinB = c/sinC). Handles the ambiguous SSA case with step-by-step solutions for each possibility.

Ad
Ad

About Law of Sines Calculator

Solve any triangle using the law of sines: a/sin(A) = b/sin(B) = c/sin(C). Enter known sides and angles to find all missing values. Handles the ambiguous SSA case by checking for zero, one, or two valid solutions.

The Law of Sines Formula

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) = 2R

where R is the circumradius (radius of the circumscribed circle). This relationship lets you find unknown sides and angles when you have enough information.

When to Use the Law of Sines

Known InformationCase NameUse Law of Sines?
Two angles + any sideAAS or ASAYes - straightforward, one solution
Two sides + non-included angleSSAYes - but check for ambiguous case
Two sides + included angleSASNo - use law of cosines
Three sidesSSSNo - use law of cosines

Worked Example: AAS Case

Given: A = 40°, B = 60°, a = 10

  1. Find angle C: C = 180° - 40° - 60° = 80°
  2. Set up the ratio: 10/sin(40°) = b/sin(60°) = c/sin(80°)
  3. Calculate the common ratio: 10/sin(40°) = 10/0.6428 = 15.557
  4. Find b: b = 15.557 × sin(60°) = 15.557 × 0.8660 = 13.47
  5. Find c: c = 15.557 × sin(80°) = 15.557 × 0.9848 = 15.32

Verify: 10/sin(40°) = 13.47/sin(60°) = 15.32/sin(80°) ≈ 15.557 ✓

The Ambiguous Case (SSA)

When you know two sides and a non-included angle, there may be zero, one, or two valid triangles. This is the trickiest scenario in triangle solving.

How to determine the number of solutions:

Given: side a, side b, and angle A (where A is opposite side a):

ConditionSolutionsExplanation
a < b × sin(A)0Side a is too short to form any triangle
a = b × sin(A)1Side a exactly reaches - creates a right triangle
b × sin(A) < a < b2Side a can swing to two valid positions
a ≥ b1Only one triangle is possible

Worked example (two solutions): Given a = 8, b = 12, A = 30°

  1. sin(B) = b × sin(A) / a = 12 × sin(30°) / 8 = 12 × 0.5 / 8 = 0.75
  2. B could be arcsin(0.75) = 48.59° (acute) or 180° - 48.59° = 131.41° (obtuse)
  3. Solution 1: B = 48.59°, C = 180° - 30° - 48.59° = 101.41°, c = 8 × sin(101.41°)/sin(30°) = 15.68
  4. Solution 2: B = 131.41°, C = 180° - 30° - 131.41° = 18.59°, c = 8 × sin(18.59°)/sin(30°) = 5.10

Law of Sines vs Law of Cosines

Law of SinesLaw of Cosines
Formulaa/sin(A) = b/sin(B)c² = a² + b² - 2ab cos(C)
Best forAAS, ASA, SSASAS, SSS
ComplexitySimpler algebraMore computation
Ambiguity riskYes (SSA case)No ambiguity
Special case-Reduces to Pythagorean theorem when C = 90°

Finding Triangle Area with the Law of Sines

Once you have two sides and the included angle, the area is:

Area = (1/2) × a × b × sin(C)

This formula works for any triangle and is a direct consequence of the law of sines relationship.

For SAS and SSS cases, the law of cosines calculator handles those directly. For general triangle properties including area by multiple methods, the triangle calculator covers all the basics.

All calculations run in your browser. No data is sent to any server.

Frequently Asked Questions

What is the law of sines?

The law of sines states that in any triangle, each side divided by the sine of its opposite angle gives the same ratio: a/sin(A) = b/sin(B) = c/sin(C). It is used to solve triangles when you know some sides and angles.

When can I use the law of sines?

Use it when you have AAS (two angles and a non-included side), ASA (two angles and the included side), or SSA (two sides and a non-included angle). For SSS or SAS problems, the law of cosines is usually better.

What is the ambiguous case?

The ambiguous case occurs with SSA (two sides and an angle not between them). There may be zero, one, or two valid triangles. This calculator checks both possibilities and shows all valid solutions.

How do I know which angle is opposite which side?

Angle A is opposite side a, angle B is opposite side b, and angle C is opposite side c. The angle and its opposite side are always across the triangle from each other.

Can the law of sines give no solution?

Yes. If the sine value you compute is greater than 1, no valid triangle exists. This typically happens in SSA cases where the given side is too short to reach the other side at the given angle.

Link to this tool

Copy this HTML to link to this tool from your website or blog.

<a href="https://toolboxkit.io/tools/law-of-sines-calculator/" title="Law of Sines Calculator - Free Online Tool">Try Law of Sines Calculator on ToolboxKit.io</a>