The Ultimate Law of Cosines Calculator
Instantly solve any triangle with our futuristic, hyper-responsive calculator. Whether you have Side-Side-Side (SSS) or Side-Angle-Side (SAS), get all missing sides, angles, area, and detailed step-by-step solutions in a flash.
🚀 Launch Calculator📐 Triangle Solver
✨ Results & Visualization
Enter values and click Calculate to see results.
Mastering the Law of Cosines: Your Complete Guide 🚀
Welcome to the definitive resource for understanding and applying the Law of Cosines. This powerful theorem is a fundamental concept in trigonometry, extending the Pythagorean theorem to all triangles, not just right-angled ones. Our law of cosines calculator is designed to make these calculations effortless, but a true mastery comes from understanding the principles behind it.
What is the Law of Cosines? 🤔
The Law of Cosines (also known as the cosine rule or cosine formula) is a vital equation in geometry that relates the lengths of the sides of a triangle to the cosine of one of its angles. For any given triangle with sides of length `a`, `b`, and `c`, and angles `A`, `B`, and `C` opposite those sides respectively, the law can be stated in three forms:
- ✅ `c² = a² + b² - 2ab cos(C)`
- ✅ `b² = a² + c² - 2ac cos(B)`
- ✅ `a² = b² + c² - 2bc cos(A)`
Essentially, it's a generalized version of the Pythagorean theorem. If angle `C` is a right angle (90 degrees), then `cos(C) = 0`, and the formula simplifies to `c² = a² + b²`. This connection makes it a cornerstone of triangle geometry.
When to Use the Law of Cosines 💡
Deciding between the Law of Sines and the Law of Cosines can be tricky. Here’s a simple guide on when to use the Law of Cosines:
- Case 1: SSS (Side-Side-Side): When you know the lengths of all three sides of a triangle and you need to find the measure of its angles. Our SSS law of cosines calculator is perfect for this scenario.
- Case 2: SAS (Side-Angle-Side): When you know the lengths of two sides and the measure of the included angle (the angle between those two sides), and you need to find the length of the third side and the other two angles. The SAS law of cosines calculator automates this process.
For other cases, like ASA (Angle-Side-Angle) or AAS (Angle-Angle-Side), the Law of Sines is typically more direct. Our combined law of sines law of cosines calculator tools help navigate these choices seamlessly.
Law of Cosines Formula for Finding Angles 📐
To find an angle using the Law of Cosines calculator, you simply rearrange the standard formula to solve for the cosine of the angle. This is the core logic behind our SSS law of cosines calculator.
The rearranged formulas are:
- ✅ `cos(A) = (b² + c² - a²) / 2bc`
- ✅ `cos(B) = (a² + c² - b²) / 2ac`
- ✅ `cos(C) = (a² + b² - c²) / 2ab`
After calculating the cosine value, you use the inverse cosine function (arccos or cos⁻¹) to find the angle in degrees or radians. Our tool provides a law of cosines calculator with steps to show this exact process.
Law of Cosines Example (SAS) ✍️
Let's solve a triangle using the law of cosines. Imagine a triangle where side `a = 10`, side `b = 12`, and the included angle `C = 35°`.
- Find side 'c': We use the formula `c² = a² + b² - 2ab cos(C)`.
`c² = 10² + 12² - 2(10)(12)cos(35°)`
`c² = 100 + 144 - 240(0.819)`
`c² = 244 - 196.59 = 47.41`
`c = √47.41 ≈ 6.88` - Find angle 'A': Now we can use the law of cosines again (or the Law of Sines). Let's stick with cosines: `cos(A) = (b² + c² - a²) / 2bc`.
`cos(A) = (12² + 6.88² - 10²) / (2 * 12 * 6.88)`
`cos(A) = (144 + 47.33 - 100) / 165.12 = 91.33 / 165.12 ≈ 0.553`
`A = arccos(0.553) ≈ 56.4°` - Find angle 'B': The angles in a triangle sum to 180°.
`B = 180° - 35° - 56.4° ≈ 88.6°`
This kind of problem is what our solve the triangle using the law of cosines calculator was built for, providing instant, accurate results.
A Glimpse into the Law of Cosines Proof 🔍
The proof of the Law of Cosines elegantly demonstrates its connection to the Pythagorean theorem and basic trigonometry. One common proof involves dropping an altitude from one vertex to the opposite side, creating two right-angled triangles. By applying the Pythagorean theorem to both right triangles and using trigonometric definitions (like `cos(C) = adjacent/hypotenuse`), the terms can be combined and simplified to derive the final law of cosines formula. This proof solidifies why the theorem works for any triangle, making it a powerful tool in fields from engineering to astronomy.
Frequently Asked Questions (FAQ) ❓
What is the difference between the Law of Sines vs Law of Cosines?
The key difference lies in the information you have. Use the Law of Cosines for SSS and SAS cases. Use the Law of Sines for ASA, AAS cases. For the SSA case (the ambiguous case), the Law of Sines is used, but requires careful analysis, whereas the Law of Cosines can also be applied to avoid ambiguity.
Can this calculator solve for all sides and angles?
Yes! Our law of cosines calculator all sides and angles feature is standard. Once you provide the initial SSS or SAS information, the tool calculates every missing side, angle, and even the triangle's area and perimeter.
Is this a law of cosines calculator with steps?
Absolutely. We believe in learning, not just getting answers. After each calculation, you'll see a detailed breakdown of the formulas used and the values substituted, making it an excellent learning tool for students and professionals.
Can I use this as a law of cosine calculator for angles only?
Yes. Simply use the SSS (Side-Side-Side) mode. By inputting the three side lengths, the primary output will be the three corresponding angles, calculated using the rearranged cosine formula.
Explore Our Universe of Tools 🌌
🔗 ValidatorTools Hub
Validate code, YAML, and APIs effortlessly with online tools to ensure accuracy and compliance.
Open Tool📈 TrackerTools Hub
Track time, expenses, and projects seamlessly with intuitive online tools for better productivity.
Open Tool🧪 TesterTools Hub
Test APIs, websites, and code performance with reliable online tools for accurate results.
Open Tool✂️ SplitterTools Hub
Split PDFs and files easily with online tools for quick and precise document management.
Open Tool🧩 SolverTools Hub
Solve equations and puzzles instantly with powerful online tools for math and programming challenges.
Open Tool🔄 RotatorTools Hub
Rotate images effortlessly with user-friendly online tools for precise adjustments and alignments.
Open Tool💖 Support Our Work
This tool is offered for free. If you find it useful, please consider supporting its development and maintenance. Your contribution helps us create more high-quality, free tools for everyone!
Donate via UPI
Scan the QR code for a quick and easy UPI payment in India.

Support via PayPal
For international support, you can contribute securely via PayPal.
