Law of sines calculator

Solve triangle sides and angles with the sine rule. Explore AAS, ASA, and SSA cases with live geometry, formulas, worked examples, and ambiguous-case analysis.

Report error
Missing side b
9.436
from a = 7, A = 40°, B = 60°
Area
—
K = ½ab sin C
Circumradius
—
2R = a / sin A

Live triangle geometry

The triangle redraws from the current sides and angles. The labels and highlighted angles follow the calculation.
LIVE
Angle sum 180°Current target b = 9.436
current triangleDashed circle = circumcircle

Sine-rule balance

Each side divided by the sine of its opposite angle approaches the same constant, 2R.
LIVE
a / sin A —b / sin B —c / sin C —

Angle → side relationship

For a fixed circumradius, side length follows 2R sin(angle). The current three triangle angles are highlighted.
LIVE
2R —Largest side —
Live intelligence

What the current triangle tells you

LIVE
Side a7
Angle A40°
Angle B60°
Side b9.436
The side opposite the larger angle is longer. Here B is larger than A, so b is larger than a.

Triangle values

QuantityValueRelationship
a / sin A = b / sin B = c / sin C = 2R.

Triangle inputs

units
°
°
Core idea

What is the law of sines?

The law of sines connects each side of a triangle with the sine of its opposite angle. For every valid triangle, the three side-to-sine ratios are equal.

a / sin A = b / sin B = c / sin C = 2R

Here, a, b, and c are opposite angles A, B, and C. The common value is the diameter of the triangle's circumcircle, where R is the circumradius.

a b c A BC O R = circumradius

The law works for acute, right, and obtuse triangles. A right triangle is not a special exception; it is simply one of the valid shapes for which the same ratio remains true.

Formula system

Law of sines formulas

Solving for a side

a = b · sin A / sin B
b = a · sin B / sin A
c = a · sin C / sin A

Solving for an angle

A = arcsin(a · sin B / b)
B = arcsin(b · sin A / a)
C = 180° − A − B

CalculatorSoup lists the cyclic versions of these equations for all three sides and all three angles. The exact form you use depends on which known side-angle pair is opposite each other.

Geometric meaning

Why does the sine rule work?

Draw the circumcircle through the three vertices of a triangle. Each side is a chord of that circle. A chord's length is related to the sine of the central angle it subtends, which leads to the common relationship a = 2R sin A, and similarly for b and c.

O R a = 2R sin A circumcircle

This interpretation explains why the ratio is constant: all three sides are chords of the same circumcircle. Omni Calculator likewise describes the common ratio as the diameter of the circumcircle.

Choosing the right data

AAS, ASA, and SSA: when the law of sines applies

AAS — angle, angle, side

Know two angles and a side opposite one of them. Find the third angle from A + B + C = 180°, then use the sine rule for the remaining sides.

ASA — angle, side, angle

Know two angles and the side between them. Find the third angle first, then use the sine rule to determine the other sides.

SSA — side, side, angle

Know two sides and an angle opposite one of them. The inverse sine can create an ambiguous case, so the data may describe zero, one, or two triangles.

When cosine is better

For SSS or SAS data, the law of cosines is usually the direct relationship: three sides, or two sides with their included angle.

The AAS and SSA distinctions, including the possible two-solution SSA case, are emphasized by Omni Calculator and CalculatorSoup.

Worked examples

Step-by-step examples

Example 1 — AAS: find two missing sides

Suppose a = 7, A = 40°, and B = 60°.

C = 180° − 40° − 60° = 80°
b = 7 · sin60° / sin40° ≈ 9.436
c = 7 · sin80° / sin40° ≈ 10.716

The triangle is now completely determined: all three angles and all three sides are known.

Example 2 — SSA: an ambiguous case

Take a = 8, b = 10, and A = 40°. First calculate:

sin B = b · sin A / a
sin B = 10 · sin40° / 8 ≈ 0.803
B₁ ≈ 53.4°

Because sine has the same value at an angle and its supplement, a second candidate is B₂ = 180° − B₁ ≈ 126.6°. Since A + B₂ < 180°, both configurations are geometrically possible. This is the classic ambiguous case.

The ambiguous case

Why SSA can produce two triangles

In an SSA problem, you know an angle and its opposite side plus another side. If the known angle is acute, the second side can sometimes intersect the ray in two different positions. Algebraically, this happens because sin θ = sin(180° − θ).

1

Compute sine

Use sin B = b sin A / a.

2

Find B₁

Take arcsin of the valid ratio.

3

Test B₂

Try 180° − B₁.

4

Check the sum

Keep a solution only when A + B < 180°.

For an acute A, let h = b sin A. If h < a < b, two triangles may exist; if a = b, one limiting triangle exists; if a < h, no triangle exists.
Useful special cases

Right triangles and the 30°–60°–90° triangle

Right triangle

The law of sines still works. If C = 90°, then c is the hypotenuse and c / sin90° = c = 2R.

30°–60°–90°

If a is opposite 30°, b opposite 60°, and c opposite 90°, then a / ½ = b / (√3/2) = c. Therefore c = 2a and b = √3a.

Omni Calculator uses the 30°–60°–90° triangle to illustrate how the sine rule turns known side lengths into exact relationships.

Validity & checks

How to check a sine-rule solution

A valid triangle must satisfy the angle sum and positive side conditions:

A + B + C = 180°    and    a,b,c > 0

For an inverse-sine calculation, the ratio passed to arcsin must lie in the interval −1 ≤ x ≤ 1. For a triangle, the resulting angles must also leave a positive third angle.

CheckMeaningExpected
A+B+CTriangle angle sum180°
sin targetInverse-sine input−1 to 1
a,b,cSide lengthsPositive
a / sin ACommon sine ratio= b/sin B = c/sin C
Questions

Law of sines FAQ

When should I use the law of sines?
Use it when you know two angles and one side, or when you know two sides and an angle opposite one of those sides. The second pattern is the SSA case and may be ambiguous.
Does the law of sines work for right triangles?
Yes. It works for every valid triangle. A right triangle is simply a special case with one angle equal to 90°.
Why can SSA have two answers?
Because arcsin returns a principal angle, while sin θ also equals sin(180° − θ). If the supplementary angle still leaves a positive third angle, it represents a second triangle.
What is 2R in the formula?
R is the circumradius, the radius of the circle passing through the triangle's three vertices. Thus 2R is its diameter.
How is the law of sines different from the law of cosines?
The sine rule naturally handles AAS, ASA, and SSA data. The cosine rule is the direct choice for SSS and SAS data.