BrightChamps Logo
Login
Creative Math Ideas Image
Live Math Learners Count Icon107 Learners

Last updated on June 24th, 2025

Math Whiteboard Illustration

Law Of Cosines Calculator

Professor Greenline Explaining Math Concepts

Calculators are reliable tools for solving simple mathematical problems and advanced calculations like trigonometry. Whether you’re cooking, tracking BMI, or planning a construction project, calculators will make your life easy. In this topic, we are going to talk about Law of Cosines calculators.

Law Of Cosines Calculator for Indian Students
Professor Greenline from BrightChamps

What is a Law Of Cosines Calculator?

A Law of Cosines calculator is a tool to determine the unknown side or angle of a triangle using the law of cosines. This law relates the lengths of the sides of a triangle to the cosine of one of its angles, making it a vital tool for solving triangles when you know two sides and the included angle or all three sides. The calculator simplifies these trigonometric calculations, making them quicker and more convenient.

Professor Greenline from BrightChamps

How to Use the Law Of Cosines Calculator?

Given below is a step-by-step process on how to use the calculator:

 

Step 1: Enter the known values: Input the known sides and/or angles into the given fields.

 

Step 2: Click on calculate: Click on the calculate button to solve for the unknown side or angle.

 

Step 3: View the result: The calculator will display the result instantly.

Professor Greenline from BrightChamps

How to Apply the Law of Cosines?

The law of cosines states that for any triangle with sides a, b, and c, and angle C opposite side c: c² = a² + b² - 2ab * cos(C)

 

This formula is used to solve for side c if you know sides a, b, and angle C.

 

Similarly, if you know all sides, you can solve for an angle using the rearranged formula: cos(C) = (a² + b² - c²) / (2ab) The calculator applies these formulas to find the unknown side or angle as needed.

Professor Greenline from BrightChamps

Tips and Tricks for Using the Law of Cosines Calculator

When using a Law of Cosines calculator, there are a few tips and tricks that can help you make the most of it:

 

Ensure your angle measurements are in the correct unit, either degrees or radians, as required by the calculator.

 

Double-check that you have the correct measurements for sides a, b, and c. Remember that the law of cosines is especially useful for non-right triangles.

 

Use the calculator to verify your manual calculations. Keep in mind that the law of cosines can also be used in reverse to find angles when all sides are known.

Max Pointing Out Common Math Mistakes

Common Mistakes and How to Avoid Them When Using the Law Of Cosines Calculator

We may think that when using a calculator, mistakes will not happen. But it is possible for errors to occur even when using a calculator.

Mistake 1

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Inputting incorrect side lengths or angles.

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Ensure all input values are accurate. For example, measure sides and angles carefully to avoid errors in calculations.

Mistake 2

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Using the wrong formula for the given situation.

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Use the appropriate law of cosines formula based on what information you have and what you need to find.

Mistake 3

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Forgetting to convert angle units.

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Make sure to convert angles to the correct units (degrees or radians) that the calculator requires.

Mistake 4

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Misinterpreting the results.

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Understand what the calculator output represents, whether it's a side length or an angle, and ensure it fits the context of your problem.

Mistake 5

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Confusing the triangle's sides and angles.

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Ensure that each side and angle corresponds correctly to its opposite in the triangle, as mismatches can lead to incorrect results.

arrow-right
Max from BrightChamps Saying "Hey"

Law Of Cosines Calculator Examples

Ray, the Character from BrightChamps Explaining Math Concepts
Max, the Girl Character from BrightChamps

Problem 1

Find the length of side c in a triangle with sides a = 5, b = 7, and angle C = 60 degrees.

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

Use the formula: c² = a² + b² - 2ab * cos(C)

 

c² = 5² + 7² - 2 * 5 * 7 * cos(60)

 

c² = 25 + 49 - 70 * 0.5

 

c² = 74 - 35

 

c² = 39

 

c = √39 ≈ 6.24

 

Therefore, side c is approximately 6.24 units.

Explanation

By applying the law of cosines formula to the given values, we solved for the unknown side c, using the cosine of 60 degrees which equals 0.5.

Max from BrightChamps Praising Clear Math Explanations
Max, the Girl Character from BrightChamps

Problem 2

Determine the angle C in a triangle with sides a = 8, b = 10, and c = 12.

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

Use the formula: cos(C) = (a² + b² - c²) / (2ab)

 

cos(C) = (8² + 10² - 12²) / (2 * 8 * 10)

 

cos(C) = (64 + 100 - 144) / 160

 

cos(C) = 20 / 160

 

cos(C) = 0.125

 

C = cos⁻¹(0.125) ≈ 82.82 degrees

 

Therefore, angle C is approximately 82.82 degrees.

Explanation

Using the rearranged law of cosines formula, we calculated angle C by finding the inverse cosine of 0.125.

Max from BrightChamps Praising Clear Math Explanations
Max, the Girl Character from BrightChamps

Problem 3

Calculate side a in a triangle with sides b = 9, c = 11, and angle A = 45 degrees.

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

Use the formula: a² = b² + c² - 2bc * cos(A)

 

a² = 9² + 11² - 2 * 9 * 11 * cos(45)

 

a² = 81 + 121 - 198 * 0.7071

 

a² = 202 - 139.8078

 

a² = 62.1922

 

a = √62.1922 ≈ 7.88

 

Therefore, side a is approximately 7.88 units.

Explanation

By applying the law of cosines formula with the given angle A and sides b and c, we solved for side a.

Max from BrightChamps Praising Clear Math Explanations
Max, the Girl Character from BrightChamps

Problem 4

Find the angle B in a triangle with sides a = 6, b = 8, and c = 10.

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

Use the formula: cos(B) = (a² + c² - b²) / (2ac)

 

cos(B) = (6² + 10² - 8²) / (2 * 6 * 10)

 

cos(B) = (36 + 100 - 64) / 120

 

cos(B) = 72 / 120

 

cos(B) = 0.6 B = cos⁻¹(0.6) ≈ 53.13 degrees

 

Therefore, angle B is approximately 53.13 degrees.

Explanation

Using the law of cosines, we calculated angle B by finding the inverse cosine of 0.6.

Max from BrightChamps Praising Clear Math Explanations
Max, the Girl Character from BrightChamps

Problem 5

Determine side b in a triangle with sides a = 7, c = 5, and angle B = 30 degrees.

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

Use the formula: b² = a² + c² - 2ac * cos(B)

 

b² = 7² + 5² - 2 * 7 * 5 * cos(30)

 

b² = 49 + 25 - 70 * 0.866

 

b² = 74 - 60.62

 

b² = 13.38 b = √13.38 ≈ 3.66

 

Therefore, side b is approximately 3.66 units.

Explanation

Applying the law of cosines with the given angle B and sides a and c, we solved for side b.

Max from BrightChamps Praising Clear Math Explanations
Ray Thinking Deeply About Math Problems

FAQs on Using the Law Of Cosines Calculator

1.How do you use the law of cosines to find a side?

Math FAQ Answers Dropdown Arrow

2.Can the law of cosines determine angles?

Math FAQ Answers Dropdown Arrow

3.Why is the law of cosines useful?

Math FAQ Answers Dropdown Arrow

4.What units should angles be in for calculations?

Math FAQ Answers Dropdown Arrow

5.Is the law of cosines calculator accurate?

Math FAQ Answers Dropdown Arrow
Professor Greenline from BrightChamps

Glossary of Terms for the Law Of Cosines Calculator

  • Law of Cosines: A formula that relates the lengths of the sides of a triangle to the cosine of one of its angles.

 

  • Cosine: A trigonometric function that represents the adjacent side over the hypotenuse in a right-angled triangle.

 

  • Inverse Cosine: A function used to determine the angle whose cosine value is known.

 

  • Radian: A unit of angle measurement where the angle is defined by the arc length on a unit circle.

 

  • Non-right Triangle: A triangle that does not have a 90-degree angle, often solved using the law of cosines.
Math Teacher Background Image
Math Teacher Image

Seyed Ali Fathima S

About the Author

Seyed Ali Fathima S a math expert with nearly 5 years of experience as a math teacher. From an engineer to a math teacher, shows her passion for math and teaching. She is a calculator queen, who loves tables and she turns tables to puzzles and songs.

Max, the Girl Character from BrightChamps

Fun Fact

: She has songs for each table which helps her to remember the tables

INDONESIA - Axa Tower 45th floor, JL prof. Dr Satrio Kav. 18, Kel. Karet Kuningan, Kec. Setiabudi, Kota Adm. Jakarta Selatan, Prov. DKI Jakarta
INDIA - H.No. 8-2-699/1, SyNo. 346, Rd No. 12, Banjara Hills, Hyderabad, Telangana - 500034
SINGAPORE - 60 Paya Lebar Road #05-16, Paya Lebar Square, Singapore (409051)
USA - 251, Little Falls Drive, Wilmington, Delaware 19808
VIETNAM (Office 1) - Hung Vuong Building, 670 Ba Thang Hai, ward 14, district 10, Ho Chi Minh City
VIETNAM (Office 2) - 143 Nguyễn Thị Thập, Khu đô thị Him Lam, Quận 7, Thành phố Hồ Chí Minh 700000, Vietnam
Dubai - BrightChamps, 8W building 5th Floor, DAFZ, Dubai, United Arab Emirates
UK - Ground floor, Redwood House, Brotherswood Court, Almondsbury Business Park, Bristol, BS32 4QW, United Kingdom