This Law of Cosines Calculator can help you calculate the unknown angles or sides of a triangle if you know any 3 dimensions.

## How does this law of cosines calculator work?

Together with the law of sines, the law of cosines can help in solving from simple to complex trigonometric problems by using the formulas provided below. These calculations can be either made by hand or by using this law of cosines calculator.

**A = cos ^{-1}[(b^{2}+c^{2}-a^{2})/2bc]**

Considering that a, b and c are the 3 sides of the triangle opposite to the angles A, B and C as presented within the following figure, the law of cosines states that:

### ■ In order to solve for the three sides (a, b and c) you should be using these equations:

a^{2} = b^{2} + c^{2} - 2bc*cos(A)

a = √[b^{2} + c^{2} - 2bc*cos(A)]

b^{2} = a^{2} + c^{2} - 2ac*cos(B)

b = √[a^{2} + c^{2} - 2ac*cos(B)]

c^{2} = a^{2} + b^{2} - 2ac*cos(C)

c = √[a^{2} + b^{2} - 2ac*cos(C)]

### ■ In order to determine the three angles (A, B and C) you should be applying these formulas:

A = cos^{-1} [(b^{2} + c^{2} - a^{2})/2bc]

B = cos^{-1} [(a^{2} + c^{2} - b^{2})/2ac]

C = cos^{-1} [(a^{2} + b^{2} - c^{2})/2ab]

## Triangle formulas

In trigonometry the most often used triangle formulas are:

Triangle perimeter (P) = a + b + c

Triangle semi-perimeter (s) = 0.5 * (a + b + c)

Triangle area by Heron formula (A_{S}) = √[ s*(s - a)*(s - b)*(s - c)]

Radius of inscribed circle in the triangle (r) = √[ (s - a)*(s - b)*(s - c) / s ]

Radius of circumscribed circle around triangle (R) = (abc) / (4A_{S})

Where:

a = Side a

b = Side b

c = Side c

A = Angle A

B = Angle B

C = Angle C

P = Perimeter

s = Semi-perimeter

S_{A} = Area

r = radius of inscribed circle

R = radius of circumscribed circle

10 Aug, 2015