Triangle Calculator · Tutorial
How to find a missing side with the law of cosines
5 min readintermediateUpdated
Two straight paths leave a gate at 60° to each other, one 5 m long and one 7 m long. How far apart are their ends? You will use the law of cosines, then confirm the answer.
What you need
- The Triangle Calculator
- Two sides and the angle between them
Steps
Label the triangle
Call the angle at the gate A = 60°. The paths are sides b = 5 and c = 7, and the unknown distance between their ends is side a, opposite angle A.
Apply the law of cosines
a² = b² + c² − 2bc cos A = 25 + 49 − 2 × 5 × 7 × 0.5 = 39, so a = √39 ≈ 6.245 m.
a² = 5² + 7² − 2 × 5 × 7 × cos 60° = 39Enter the values
Type 5 for side b, 7 for side c and 60 for angle A, leaving the rest empty. The calculator confirms a ≈ 6.245 and names the method SAS.
Read the rest of the triangle
The other angles are about 43.9° and 76.1°, and the area is about 15.16 m².
Try it yourself
Opens the Triangle Calculator with this tutorial's sample loaded.
Common mistakes
- Using an angle that isn't between the two sides
- The law of cosines needs the angle between the known sides. Otherwise it's the SSA case, which uses the law of sines.
- Calculator in radians
- If you work it out by hand, make sure your calculator uses degrees for cos 60°.
Next steps
Go back to the Triangle Calculator, or keep going with one of these: