Law of Sines Calculator

Solve any triangle from ASA, AAS or SSA using a/sin A = b/sin B = c/sin C — with the ambiguous case handled explicitly and every solution drawn to scale.

Uses a / sin A = b / sin B = c / sin C.

What is the law of sines?

The law of sines — sometimes called the sine rule — says that in any triangle, the ratio of a side to the sine of its opposite angle is the same for all three sides:

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

That shared value equals 2R, the diameter of the triangle's circumscribed circle. The rule is the natural tool for the three cases where you already know a side paired with its opposite angle: ASA (two angles and the side between them), AAS (two angles and a side not between them), and the famous SSA ambiguous case (two sides and a non-included angle). For SAS or SSS — where no side is paired with its opposite angle — use the full Triangle Calculator, which applies the law of cosines to handle those cases.

Law of sines, case by case

ASA — two angles and the side between them

You know both angles at the ends of a side. Find the third angle by C = 180° − A − B, then read every other side off the shared ratio c / sin C = a / sin A = b / sin B.

c / sin C = a / sin A
= b / sin B
A, Bthe two known angles·cthe side between A and B·C= 180° − A − B
ABCcab
Example
Given
A = 45°
B = 60°
c = 10
Substitute
C = 180° − 45° − 60°
= 75°
a = 10 · sin 45° / sin 75°
Answer
a ≈ 7.321
b ≈ 8.966
C = 75°

AAS — two angles and a non-included side

Same idea as ASA, but the known side is opposite one of the angles instead of between them. Find the third angle first, then use the pair that includes your known side to build the common ratio.

a / sin A = b / sin B
= c / sin C
A, Bthe two known angles·athe side opposite A
ABCcab
Example
Given
A = 45°
B = 75°
a = 7
Substitute
C = 180° − 45° − 75°
= 60°
b = 7 · sin 75° / sin 45°
Answer
b ≈ 9.562
c ≈ 8.573
C = 60°

SSA — two triangles (the classic ambiguous case)

You know two sides and an angle opposite one of them. When the given angle is acute and the opposite side is shorter than the adjacent one but longer than the altitude, sin B has two valid angles — the acute solution and its 180° − B supplement — so two real triangles fit.

sin B = b · sin A / a  ⇒  B
or 180° − B
a, bthe two known sides·Aangle opposite side a
B'ABCcab
Example
Given
a = 7
b = 9
A = 35°
Substitute
sin B = 9 · sin 35° / 7 ≈ 0.7374 ⇒ B ≈ 47.52° or 132.48°
Answer
Two triangles: C ≈ 97.48°
c ≈ 12.10  or  C ≈ 12.52°
c ≈ 2.65

SSA — exactly one triangle

When the supplement of B would push A + B past 180°, the obtuse companion is discarded and only the acute solution survives. This also happens when sin B works out to exactly 1, giving a right angle at B.

A + (180° − B) < 180°  must hold  for B' to be valid
Bacute solution from arcsin·B'= 180° − B, the supplement
ABCcab
Example
Given
a = 12
b = 8
A = 65°
Substitute
sin B = 8 · sin 65° / 12 ≈ 0.6041 ⇒ B ≈ 37.16° (supplement rejected)
Answer
Unique triangle: C ≈ 77.84°
c ≈ 12.94

SSA — no triangle at all

If the computed sin B is greater than 1, no angle can satisfy it — side b is simply too long to close on side a at angle A. The calculator flags this instead of silently returning NaN.

sin B = b · sin A / a > 1  ⇒  no triangle
a, b, Agiven values
ABCcab
Example
Given
a = 3
b = 8
A = 60°
Substitute
sin B = 8 · sin 60° / 3 ≈ 2.309
Answer
Impossible — no triangle exists.

Why the law works — a quick altitude proof

Drop the altitude h from vertex C to side AB. In the right triangle on the left, sin A = h / b, so h = b · sin A. On the right, sin B = h / a, so h = a · sin B. Equating the two expressions for h gives a · sin B = b · sin A, i.e. a / sin A = b / sin B. Repeat with a different altitude to include c / sin C.

h = b · sin A
= a · sin B  ⇒  a / sin A
= b / sin B
haltitude from C onto AB
ABCcab
Example
Given
Any triangle ABC
altitude h from C
Substitute
b · sin A = a · sin B
Answer
a / sin A = b / sin B
= c / sin C
= 2R

Law of sines vs. law of cosines — when to use which

You know…UseWhy
Two angles + included side (ASA)Law of sinesYou already have a matched side–angle pair after finding the third angle.
Two angles + non-included side (AAS)Law of sinesThe known side is opposite one of the known angles.
Two sides + non-included angle (SSA)Law of sines (ambiguous)Handled here; the angle is opposite one of the sides.
Two sides + included angle (SAS)Law of cosinesNo matched side–angle pair to anchor the ratio.
Three sides (SSS)Law of cosinesYou need cosines to recover the angles first.
One angle = 90°Right-triangle trigFaster with the Right Triangle Calculator.

What this tool does for you

  • Solves ASA, AAS and SSA using the law of sines — every side, every angle, area, perimeter, semiperimeter, inradius and circumradius returned in one go.
  • Handles the SSA ambiguous case explicitly: classifies no-triangle, one-triangle and two-triangle inputs, then shows both valid triangles side-by-side with their own diagrams.
  • Draws each solution to scale from the solved side lengths, so the geometry — not just the numbers — makes the ambiguity obvious.
  • Accepts input in degrees or radians with a one-click unit toggle.
  • Prints personalised step-by-step working with your own numbers substituted into a / sin A = b / sin B = c / sin C.
  • Skips SAS and SSS on purpose — those need the law of cosines and are handled by the full Triangle Calculator we link to.
  • Copy result / download PNG / download PDF / print, matching the shared result-actions used across the site.

Frequently asked questions

+What is the law of sines in simple terms?

In any triangle, each side divided by the sine of its opposite angle gives the same number: a/sin A = b/sin B = c/sin C. That shared ratio equals 2R, the diameter of the circumscribed circle. Because the ratio is fixed for a given triangle, knowing any matched side–angle pair lets you solve for the other sides once you know their opposite angles.

+When should I use the law of sines instead of the law of cosines?

Use the law of sines when the values you know pair sides with their opposite angles — that's the ASA, AAS and SSA cases. Reach for the law of cosines when you know two sides and the angle between them (SAS) or all three sides (SSS): those have no matched side–angle pair, so the sine ratio has no starting point.

+What is the ambiguous case?

The ambiguous case is SSA: you know two sides and an angle that is not between them. Depending on the numbers, the given angle can produce no triangle at all, exactly one triangle, or two different triangles that both fit. This calculator classifies which of the three you have and shows both triangles side by side when there are two.

+Why do some SSA inputs give two answers?

Because arcsin(x) can return two valid angles between 0° and 180° — an acute angle B and its supplement B' = 180° − B. Both produce a real triangle as long as A + B' is still less than 180°. If the supplement pushes the angle sum past 180°, the second triangle is discarded and only the acute solution survives.

+Can I use this calculator for right triangles?

Yes — the law of sines works for right triangles too, and this tool will solve them. If you already know the triangle is right, the dedicated Right Triangle Calculator is faster because it uses sine, cosine, tangent and the Pythagorean theorem directly instead of the full ratio.

+What if my inputs describe an SAS or SSS triangle?

The law of sines can't start those — there is no side–angle pair to anchor the ratio. Use the full Triangle Calculator instead: it applies the law of cosines to SAS and SSS and returns the same full set of derived values (sides, angles, area, perimeter, R and r).

Related calculators