📏 Algebra & Geometry

Law of Cosines Calculator

Solve triangles using the law of cosines.

Law of Cosines Calculator

Side c
9.11
Overview

What Is the Law of Cosines?

The Law of Cosines relates a triangle's sides and angles, useful for solving any triangle (not just right triangles) when you know two sides and the included angle.

Who It's For

For Trigonometry Students

Useful for solving oblique (non-right) triangles that the standard Pythagorean theorem can't handle.

Walkthrough

How to Use This Calculator

01

Enter two known sides

Input sides a and b.

02

Enter the included angle

Input the angle C between those two sides.

03

Read the third side instantly

Side c updates automatically.

Tips

Tips & Tricks

FAQ

Frequently Asked Questions

What's the formula for the Law of Cosines?

c² = a² + b² - 2ab×cos(C), where C is the angle between sides a and b.

How is this different from the Pythagorean theorem?

The Pythagorean theorem only works for right triangles; the Law of Cosines works for any triangle.

What happens when the angle is 90 degrees?

cos(90°) = 0, so the formula reduces to the standard Pythagorean theorem.

Can this solve for angles too?

This calculator solves for the third side - rearranging the formula can also solve for angles given three sides.

Is my data saved?

No, calculations happen entirely in your browser.

What's a real-world use?

Navigation, surveying, and engineering all use the Law of Cosines to solve non-right triangle problems.

Does angle need to be in degrees?

Yes, this calculator expects the angle in degrees.

Can side lengths be decimals?

Yes, decimal measurements are fully supported.

Is this related to the Law of Sines?

Yes, both are tools for solving oblique triangles, used in different scenarios depending on known information.

Is this tool free?

Yes, completely free with no sign-up required.

Related

More Calculators