Law of Sines Calculator

Solve any triangle from two angles + one side, or two sides + an opposite angle.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

The law of sines is one of the two fundamental identities for solving oblique (non-right) triangles. Given any triangle with sides a, b, c opposite to angles A, B, C respectively, the ratio of each side to the sine of the angle across from it is the same:

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

where R is the circumradius of the triangle. This tool uses that identity to fill in every unknown side, angle, and the area — instantly, in your browser, with no server calls.

How it works

The calculator supports two input modes.

AAS / ASA — two angles plus one side. Because the three interior angles must sum to 180°, knowing two angles immediately gives the third: C = 180 − A − B. Once all angles are known, the common ratio k = (known side) / sin(known angle) is fixed, and every remaining side follows as k × sin(opposite angle).

SSA — two sides and the angle opposite one of them. Here sin(B) = b × sin(A) / a. Three outcomes are possible:

  • If b × sin(A) / a is greater than 1 — no triangle exists (the side is too short to reach).
  • If b × sin(A) / a equals 1 — exactly one right triangle (side a is the altitude).
  • Otherwise — two triangles share the same SSA data. One has the acute angle B, the other the supplementary angle 180° − B. The calculator detects this ambiguous case automatically and shows both solutions.

Worked example

Suppose you measure two angles A = 40° and B = 60° in a surveying triangle, and the side between those measured stations (side c, opposite C) is 8 m.

  1. C = 180 − 40 − 60 = 80°
  2. k = c / sin C = 8 / sin 80° ≈ 8.123
  3. a = k × sin 40° ≈ 8.123 × 0.6428 ≈ 5.22 m
  4. b = k × sin 60° ≈ 8.123 × 0.8660 ≈ 7.03 m
  5. Area = (1/2) × a × b × sin C ≈ (1/2) × 5.22 × 7.03 × sin 80° ≈ 18.1 m²

All of these appear in the result panel alongside the SVG diagram with labelled vertices.

Formula note

The identity a/sin(A) = 2R has an elegant geometric proof: draw the circumscribed circle of the triangle, then use the inscribed-angle theorem which says any inscribed angle is half the central angle subtending the same arc. The sine of the inscribed angle equals the half-chord divided by the radius, giving the relation directly.

For computation the key steps are:

  • k = knownSide / sin(knownAngle) — the constant ratio
  • unknownSide = k × sin(unknownAngle)
  • area = (1/2) × a × b × sin(C) — once all three sides are found

All trigonometric functions operate in degrees; internally the calculator converts to radians for Math.sin and Math.asin, then converts back to degrees for display.

Ad placeholder (rectangle)