Instantly solve any triangle by finding missing sides or angles using the Law of Cosines. Perfect for trigonometry, physics, and engineering calculations.
Triangle Parameters
Select what you want to calculate and enter the known values
Choose whether you need to solve for a missing side length or an interior angle.
Length of the first known side
Length of the second known side
The angle between side a and side b
Triangle Solution
Law of Cosines breakdown
Enter the known triangle measurements, then click Solve Triangle to calculate the missing side or angle using the Cosine Rule.
A Closer Look at the Cosine Rule Calculator Detailed Guide
What this calculator does
Many visitors arrive wanting a quick answer about cosine rule, then stay to explore variations. The Cosine Rule Calculator makes that easy because you can change a single value and watch the outcome update straight away.
Who it helps
You may find it especially handy if you are among curious learners, professionals brushing up on skills and engineers. Having a dependable answer for cosine rule close at hand makes planning less stressful. Many people open this page while exploring how a formula behaves, revising before an exam and teaching a concept visually. Having the answer ready keeps the rest of the task on track.
Getting accurate results
Preparation pays off here. Try to use brackets to avoid ambiguity, then check whether angles use degrees or radians. After that, enter the numbers in the Cosine Rule Calculator, read the answer, and repeat with a variation to test how stable the outcome really is.
Mistakes to avoid
When results seem off, the cause is frequently skipping parentheses or mixing up signs. Re-reading your inputs line by line is the quickest way to find and fix either one.
Reading your result
After you calculate, look at the number in context. Rule and cosine are the kind of details that can shift the picture, so keep a note of the inputs you used and revisit them if anything changes. Because the calculation runs instantly in your browser, you can test as many scenarios as you like without any limit. Share the page with colleagues, friends or family if they are working through cosine rule as well. Clear inputs lead to clear answers, so take a few extra seconds to read each label on the calculator before typing. The layout is designed for readability, so you can use the Cosine Rule Calculator comfortably on a small screen while on the move.
A note on accuracy
The Cosine Rule Calculator is a practical guide for general information. Results depend entirely on the values you enter, so treat them as estimates and confirm anything important with a qualified professional or an official source.
Law of Cosines Variations
The Cosine Rule can be rearranged to solve for any side or angle in a triangle.
| Target | Formula | Known Values |
|---|---|---|
| Find Side c | c = √(a² + b² – 2ab cos(C)) | Sides a, b & Angle C |
| Find Side a | a = √(b² + c² – 2bc cos(A)) | Sides b, c & Angle A |
| Find Side b | b = √(a² + c² – 2ac cos(B)) | Sides a, c & Angle B |
| Find Angle C | C = acos((a² + b² – c²) / 2ab) | Sides a, b, c |
| Find Angle A | A = acos((b² + c² – a²) / 2bc) | Sides a, b, c |
Cosine Rule FAQ
Learn more about the Law of Cosines, triangle solving, and trigonometric applications.
The Cosine Rule (or Law of Cosines) is a fundamental formula in trigonometry that relates the lengths of the three sides of a triangle to the cosine of one of its angles. It is used to find missing sides or angles in any triangle, not just right-angled ones.
You should use the Law of Cosines when you know either two sides and the included angle (SAS) to find the third side, or when you know all three sides (SSS) to find any of the angles. It generalizes the Pythagorean theorem for non-right triangles.
To find a side, the formula is c² = a² + b² – 2ab cos(C). To find an angle, the formula is rearranged to cos(C) = (a² + b² – c²) / 2ab, where C is the angle opposite side c.
Yes, but it simplifies to the Pythagorean theorem (a² + b² = c²). Since the cosine of 90 degrees is 0, the term ‘2ab cos(C)’ becomes zero, leaving c² = a² + b². For right triangles, the Pythagorean theorem or basic trigonometry (SOH CAH TOA) is usually faster.
In the standard formula c² = a² + b² – 2ab cos(C), the angle C is always the angle opposite to the side c. Similarly, angle A is opposite side a, and angle B is opposite side b. The included angle between sides a and b is always angle C.
