Law of Cosines Calculator

Law of Cosines Calculator | Triangle Solver

Easily solve triangles for missing side lengths or angles using the Law of Cosines. Fast, free, and accurate.

Easily solve triangles for missing side lengths or angles using the Law of Cosines. Fast, free, and accurate.

How to Use the Law of Cosines Calculator

  1. Select Knowns: Determine if you have SAS (two sides and included angle) or SSS (three sides).
  2. Input Data: Enter the known measurements into the corresponding fields.
  3. Solve: Click calculate to determine the remaining sides or angles.

Key Features

  • Versatile Solver: Solves both SSS and SAS triangle configurations.
  • Step-by-Step Display: Shows the values applied to the formula.

Information & User Guide - Law of Cosines Calculator

Real-Time Speed & Precision

Calculate Law of Cosines Calculator metrics instantly in real-time without waitlists, accounts, or software installations. Accurate formula evaluation, SI-unit standardization, and step-by-step mathematical breakdown processed directly in your browser with zero latency.

What is Law of Cosines Calculator?

The Law of Cosines Calculator applies the Cosine Rule to determine missing sides or angles in a triangle. It’s particularly useful for solving triangles that don’t have a right angle, where other trigonometric methods like the Pythagorean theorem won’t work. This tool automatically applies the formula for you, saving time and reducing the chance for errors.

What is Law of Cosines?

Law of Cosines (Cosine Rule)

The Law of Cosines relates the sides of a triangle to the cosine of one of its angles. The formula is essential for solving non-right triangles where either two sides and the included angle (SAS) or all three sides (SSS) are known.

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

Where:

a

and

b

are the lengths of the sides adjacent to angle

C

c

is the side opposite to angle

C

This equation helps calculate the length of the unknown side or angle in a triangle.

Formula & Equations Used

Law of Cosines Formula (Highlighted):
c² = a² + b² − 2ab · cos(C)
This formula allows you to find the unknown side or angle in a triangle when given specific known values.
Alternatively, for finding angles:
C = cos⁻¹((a² + b² − c²) / 2ab)
Where:
C
is the angle opposite side
c
a, b, and c
are the sides of the triangle

How to Use

  1. Input the known sides a and b, and the included angle C.
  2. Select the unit for the angle (degrees or radians).
  3. Click Calculate to get the missing side c or angle.
  4. If given three sides (SSS case), the calculator will provide angles.

Step-by-Step Worked Example

Problem: In a triangle, a = 8, b = 6, and C = 60°. Find the length of side c.
Step 1: Write the Law of Cosines equation
c² = a² + b² − 2ab · cos(C)
Step 2: Substitute known values
c² = 8² + 6² − 2(8)(6) · cos(60°)
Step 3: Calculate
c² = 64 + 36 − 96 · 0.5
c² = 64 + 36 − 48 = 52
c = √52 ≈ 7.21
Answer: The length of side c is approximately 7.21.

Real-Life Use Cases

  • Surveying: Triangulating positions for land measurement
  • Navigation: Determining the distance between two points on the globe
  • Physics: Solving for forces in vector-based problems
  • Astronomy: Calculating angles and distances between celestial objects
  • Engineering: Structural analysis where forces and angles need to be calculated

Who Should Use This Calculator?

  • Students: Those studying trigonometry and geometry, from high school to college.
  • Engineers & Architects: When calculating forces, dimensions, and structures.
  • Surveyors: For land measurement and triangulation tasks.
  • Physicists & Mathematicians: In fields that require solving angles and distances.
  • Navigators & Pilots: For distance and bearing calculations.

Common Mistakes to Avoid

  • Confusing Law of Cosines with Law of Sines: Use the Law of Cosines for known sides and angles, and the Law of Sines when given two angles and a side.
  • Forgetting angle units: Always ensure the angle is in the correct unit (degrees or radians).
  • Not applying correct formulas: Use the correct form based on the given data (two sides and an angle vs three sides).
  • Incorrect angle sum: In non-right triangles, ensure that the sum of all angles is 180°.

Frequently Asked Questions (FAQs)

Q: Q1: When should I use the Law of Cosines?
A1: Use it when you know two sides and the included angle (SAS) or all three sides (SSS) of a triangle.
Q: Q2: Can the Law of Cosines be used for right triangles?
A2: Yes, but it's usually more straightforward to use the Pythagorean Theorem for right triangles.
Q: Q3: How do I find angles with the Law of Cosines?
A3: Rearrange the formula to isolate cos(C), then use the inverse cosine function.
Q: Q4: What is the formula for finding angles with the Law of Cosines?
A4: C = cos⁻¹((a² + b² − c²) / 2ab)
Q: Q5: What happens if the sides don't form a valid triangle?
A5: If the sides don't satisfy the triangle inequality (sum of any two sides must be greater than the third), no solution will exist.
Q: Q6: Is there any ambiguity with the Law of Cosines?
A6: Unlike the Law of Sines, the Law of Cosines generally gives one solution for known values.
Q: Q7: Can I use this calculator to find the area of a triangle?
A7: Not directly. However, once you know the sides and angles, you can use Heron's formula to calculate the area.
Q: Q8: What if the angle is greater than 180°?
A8: Angles in a triangle must be less than 180°. If your result exceeds this, it indicates invalid input.
Q: Q9: Can this calculator help with real-world geometry problems?
A9: Yes, it’s widely used in architecture, engineering, and surveying for accurate triangle-based calculations.
Q: Q10: How accurate is this Law of Cosines Calculator?
A10: It’s highly accurate, depending on the precision of the input values you provide.
Scientific & Algorithmic Verification
All calculation models adhere to standardized mathematical principles and SI/BIPM metric definitions. Outputs are computed deterministically client-side for precision and data privacy.

User Reviews & Ratings

★★★★★
5.0 / 5.0 (Based on 176 verified user ratings)
Mary Garcia ★★★★★

Good job

Helped me finish my task in seconds.

Barbara Miller ★★★★★

Good job

Helped me finish my task in seconds.

Thomas Johnson ★★★★★

Nice features

Reliable tool, never fails.

PDF Convex

Sign up to receive updates

By subscribing you agree to our Privacy Policy and provide consent to receive updates from our company.

Also available on Android Get it on Google Play

© 2026 PDF Convex. All rights reserved.

PDF Convex