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 entereda=6, b=7, c=8a = 6,\ b = 7,\ c = 8

46.567463∘\displaystyle 46.567463^\circ
Show the work
  1. Law of cosines

    The law of cosines, rearranged, gives the angle AA opposite side aa from all three sides. Here a=6a = 6, b=7b = 7 and c=8c = 8.

    cos⁡A=b2+c2−a22bc=72+82−622×7×8=77112=0.6875\begin{aligned} \cos A &= \frac{b^2 + c^2 - a^2}{2bc} \\ &= \frac{7^2 + 8^2 - 6^2}{2 \times 7 \times 8} \\ &= \frac{77}{112} \\ &= 0.6875 \end{aligned}
  2. Inverse cosine

    The inverse cosine finds the angle, between 0∘0^\circ and 180∘180^\circ, that has this cosine.

    A=cos⁡−1(0.6875)=46.567463∘\begin{aligned} A &= \cos^{-1}\left(0.6875\right) \\ &= 46.567463^\circ \end{aligned}
  3. Result

    So the angle AA is 46.567463∘46.567463^\circ.

Worked examples