Law of Cosines Calculator

Find a side or an angle of a triangle with the law of cosines.

Leave empty if unknown

Leave empty if unknown

Leave empty if unknown

Leave empty if unknown

Try

Result

You enteredb=10, c=10, A=90∘b = 10,\ c = 10,\ A = 90^\circ

14.142136\displaystyle 14.142136
Show the work
  1. Law of cosines

    The law of cosines extends Pythagoras' theorem to any triangle: it gives the side opposite a known angle from the two sides beside it. Here b=10b = 10, c=10c = 10 and the angle between them is A=90∘A = 90^\circ.

    a2=b2+c2−2bccos⁡A=102+102−2×10×10×cos⁡90∘=100+100−0=200\begin{aligned} a^2 &= b^2 + c^2 - 2bc\cos A \\ &= 10^2 + 10^2 - 2 \times 10 \times 10 \times \cos 90^\circ \\ &= 100 + 100 - 0 \\ &= 200 \end{aligned}
  2. Take the square root

    The side is a length, so take the positive square root of a2a^2.

    a=200=14.142136\begin{aligned} a &= \sqrt{200} \\ &= 14.142136 \end{aligned}
  3. Result

    So the side aa is 14.14213614.142136.

Worked examples