StatisticsCALCULATOR LAB
Mathematics

Law of Sines Calculator

Use the law of sines to find missing angles and side lengths in a triangle. Enter two angles and one side, or use the SSA case to check whether there are zero, one or two valid triangles.

01 / YOUR INPUTSIEEE 754 Double Precision

Solve a triangle using the law of sines

Try an example:

Side a is opposite angle A; b is opposite B; c is opposite C. Enter all lengths in the same unit. Angles are in degrees.

02 / YOUR RESULT

Your triangle solution

Enter known angles and sides, or choose an example, then select Calculate.

How to use this calculator

  1. Select the two-angle case or the SSA case.
  2. Enter the known measurements, keeping the side and its opposite angle correctly paired.
  3. Select Calculate to view the valid triangle solutions, missing measurements and calculation steps.

Law of sines formula

For a triangle with sides a, b and c opposite angles A, B and C, the law of sines is a/sin(A) = b/sin(B) = c/sin(C). Angles must be measured consistently. The sum of the interior angles is 180°.

Why SSA can have two answers

With two sides and a non-included angle, the same measurements can describe two different triangles. The calculator checks both possible angles, rejects configurations that do not form a triangle and displays every valid solution. A single inverse-sine result is not always the complete answer.

Worked example — two angles and one side

This example uses sample values, not your current inputs.

Suppose A = 30°, B = 60° and a = 5. Then C = 90°. Using b = 5 sin(60°)/sin(30°) gives b ≈ 8.660254, and c = 5 sin(90°)/sin(30°) = 10. The values describe a 30°–60°–90° triangle.

Frequently asked questions

What is the law of sines used for?

It relates side lengths to their opposite angles. It is especially useful when you know two angles and one side, or two sides and an angle opposite one of them.

Can the law of sines give two triangles?

Yes. The SSA case can have two valid solutions because an acute angle and its supplementary angle have the same sine. Both must pass the triangle angle-sum test.

Why does the calculator say no triangle exists?

The measurements may be inconsistent: an angle sum can reach or exceed 180°, or the SSA side–angle relationship may not permit a valid remaining angle.

Does this work for a right triangle?

Yes. The law of sines applies to right and non-right triangles. When the known information is two legs of a right triangle, the Pythagorean theorem may be simpler.

Are the answers exact?

The identities are exact, but displayed decimal lengths and angles use finite-precision arithmetic and rounding. Use the Precision control to change displayed significant digits.

Scientific foundations and academic references

The mathematical foundations, computational method and limitations of this tool.

Foundational research

Euclid

Euclid, Elements, Book III, Proposition 20

Euclid's Elements, Book III, Proposition 20 establishes the central-angle and inscribed-angle relationship that underlies the circumcircle derivation of the law of sines. It is a geometric foundation, not a claim that Euclid first wrote the modern sine formula.

Read source (opens in a new tab)

Theoretical development · 1967

H. S. M. Coxeter & S. L. Greitzer

H. S. M. Coxeter & S. L. Greitzer, Geometry Revisited (1967), Mathematical Association of America

Coxeter and Greitzer's Geometry Revisited (1967) develops classical triangle and circle geometry in a modern setting, supporting the relationships between chords, angles and circumcircles used in trigonometric triangle solving.

Read source (opens in a new tab)

Authoritative technical references

Eric W. Weisstein, Law of Sines, Wolfram MathWorld

Eric W. Weisstein, Law of Sines, Wolfram MathWorld

Wolfram MathWorld states a/sin A = b/sin B = c/sin C = 2R and gives the circumradius interpretation. The implemented SSA branch checks the supplementary-angle solution rather than treating inverse sine as unique.

Read source (opens in a new tab)

Computational method and verification

Numerical computation

Angles are converted between degrees and radians, and missing side lengths are obtained from the law of sines using IEEE 754 double-precision arithmetic. Both possible SSA branches are evaluated and checked for positive angles and a total of 180°. Decimal output is rounded only for display; results are not independently certified.

A = 30°, B = 60°, a = 5
C = 90°, b ≈ 8.660254, c = 10
A = 30°, a = 7, b = 10
Two valid solutions: B ≈ 45.584691° or 134.415309°
A = 30°, a = 4, b = 10
No valid triangle

Scope and limitations

This tool applies a/sin A = b/sin B = c/sin C to Euclidean triangles. The two-angle mode calculates the third angle from the 180° angle sum. The SSA mode checks both inverse-sine branches and reports zero, one or two valid triangles. Angles are displayed in degrees, and numerical outputs use double-precision arithmetic. Near-degenerate triangles may be sensitive to floating-point rounding.

Read full methodology

Cite this tool

Use the following citation when referencing this calculator.

APA 7th edition

Statistics Calculator Lab. (2026). Law of Sines Calculator [Online calculator]. https://statscalculator.org/law-of-sines-calculator/

Show BibTeX
@misc{statscalculator_law_of_sines_2026,
  author = {{Statistics Calculator Lab}},
  title = {Law of Sines Calculator},
  year = {2026},
  howpublished = {Online calculator},
  url = {https://statscalculator.org/law-of-sines-calculator/}
}