IP331.com | Online Tools
HomeGeometry ToolsLaw of Cosines Calculator

Law of Cosines Calculator

Find a missing triangle side from two sides and the included angle

Law of Cosines Formula

c² = a² + b² - 2ab cos(C)

The law of cosines extends the Pythagorean theorem to any triangle. It uses two known sides and the included angle to calculate the opposite side, so it is useful when a triangle is not right-angled.

Enter the included angle in degrees. The angle must be greater than 0 and less than 180, and both side lengths must be positive.

How the Law of Cosines Works

The cosine term adjusts the side length based on the angle between the known sides. When the angle is 90 degrees, cos(C) is zero and the formula becomes the Pythagorean theorem.

Included Angle

C is the angle between sides a and b.

Opposite Side

The result c is across from angle C.

Right Triangle Case

At 90 degrees, the cosine term disappears.

Triangle Solving

Useful for SAS and SSS triangle problems.

💡 Example: For a=7, b=9, and C=60°, c²=49+81-126cos(60°)=67, so c=8.185.

Applications of Law of Cosines

Triangle Solving Surveying Navigation Geometry Homework

Frequently Asked Questions

What is a law of cosines calculator?
It finds a missing triangle side when two sides and the included angle are known.
What is the law of cosines formula?
The formula is c² = a² + b² - 2ab cos(C), where C is the included angle between sides a and b.
How do I use this calculator?
Enter side a, side b, and the included angle C in degrees, then click Calculate.
When should I use the law of cosines?
Use it for SAS triangles or SSS triangles when the Pythagorean theorem is not enough.
Does the angle need to be between the two sides?
Yes. For this calculator, C must be the included angle between the entered sides a and b.

More Geometry Tools

Free online calculators and tools covering mathematics, unit conversion, text processing, and daily life. Accurate, fast, mobile-friendly, and completely free to use.

© 2026 IP331.com — Free Online Tools. All rights reserved.

About · Contact · Privacy Policy · Cookie Policy · Terms of Use · Disclaimer · Sitemap