Active experiment

Law of Sines / Cosines Calculator

Solve standard triangle cases.

Step 01 · Set up

Fill in the mathematics

Replace the highlighted values below. Tab moves naturally through the equation.

Step 03 · Answer

Ready when you are

Substitution & process

Enter the known values, then select Calculate. Your working steps will appear here.

Understand the method

What does the law of sines / cosines calculation mean?

The law of sines relates sides to their opposite angles; the law of cosines generalizes the Pythagorean theorem. Together they solve non-right triangles when enough independent measurements are known.

When to use it

Use cosine for SSS or SAS information and sine for a known opposite side-angle pair.

Formula

c2=a2+b2−2abcosC

In plain text: c² = a² + b² − 2ab cos C

Variables and units

SymbolMeaning
a, b, cside lengths opposite A, B, C
A, B, Cinterior angles

How to use the calculator

  1. Enter each known value in its labeled field.
  2. Select the answer precision you want.
  3. Choose Calculate answer to see the result and working.

Worked example

With sides a = 5, b = 7 and included angle C = 60°, c² = 25 + 49 − 70 cos 60° = 39, so c ≈ 6.245.

Common mistakes

  • Match every side with its opposite angle.
  • Use the included angle for SAS cosine calculations.
  • Check whether the calculator expects degrees or radians.

Interpret the result

The side lengths must satisfy the triangle inequality and the angles must total 180°.