Britannica
Sources used in this answer
How can the law of cosines be used when all three side lengths of a triangle are known?
Created from Britannica articles
using AI.
AI can make mistakes, so verify using Britannica articles.
trigonometry
Based on the definitions, various simple relationships exist among the functions. For example, csc A = 1/sin A, sec A = 1/cos A, cot A = 1/tan A, and tan A = sin A/cos A.
When all three side lengths of a triangle are known (the SSS case), the law of cosines is used to calculate the measure of any of the triangle's interior angles.12
The law is expressed by the following formulas, where a, b, and c are the side lengths and A, B, and C are the angles opposite those sides, respectively:3
To find an unknown angle, such as angle C, you rearrange the formula to solve for the cosine of that angle:
By substituting the known lengths of sides a, b, and c into this equation, you can determine the value of and subsequently find the angle C using the inverse cosine function. This process can be repeated for the other angles as needed to fully solve the triangle.4