Law of Cosines Calculator – Solve Triangles Online

Use our free Law of Cosines Calculator to determine unknown sides or angles in any triangle with precision and ease. The Law of Cosines, often called the cosine rule, extends the Pythagorean theorem to non-right triangles: c² = a² + b² - 2ab cos(C), where c is the side opposite angle C, and a and b are the adjacent sides. This formula is crucial for solving oblique triangles in fields like surveying, navigation, and architecture.

Enter any three known values—such as all three sides (SSS) to find angles, or two sides and the included angle (SAS) to find the third side—and the tool will compute the missing elements instantly. Our calculator handles all cases accurately, including when multiple solutions might exist, and provides step-by-step explanations for better understanding. Completely free with no registration required, it's designed for students, educators, and professionals alike. Ensure inputs are in consistent units (degrees or radians for angles), and explore the results with clear visualizations. This user-friendly tool emphasizes simplicity, reliability, and educational value, outperforming standard resources by focusing on quick, trustworthy computations without any barriers.

Information & User Guide

  • What is Law of Cosines Calculator?
  • What is Law of Cosines Calculator?
  • Formula & Equations Used
  • Real-Life Use Cases
  • Fun Facts
  • Related Calculators
  • How to Use
  • Step-by-Step Worked Example
  • Why Use This Calculator?
  • Who Should Use This Calculator?
  • Common Mistakes to Avoid
  • Calculator Limitations
  • Pro Tips & Tricks
  • FAQs

What is Law of Cosines Calculator?

What is Law of Cosines Calculator? The Law of Cosines Calculator is an online tool designed to quickly and accurately solve oblique triangles when two sides and the included angle are known. It's a vital tool for anyone dealing with triangles that aren't right-angled, whether you're in high school math, engineering, or surveying. What is the 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 Calculator?

What is the Related Concept?

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

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

Fun Facts

  • The Law of Cosines is a generalization of the Pythagorean Theorem, used for all types of triangles, not just right-angled ones.
  • It was known to ancient mathematicians, but only formalized and proven in the 17th century.
  • The formula is highly useful in fields like geodesy and navigation, where triangulation is key.
  • The Law of Cosines is often the method of choice in space exploration for calculating trajectories and distances between celestial objects.

Related Calculators

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.

Why Use This Calculator?

  • Speed & Accuracy: It calculates triangle side lengths and angles instantly, ensuring minimal calculation errors.
  • Versatility: Handles both SAS (two sides and the included angle) and SSS (all three sides) scenarios.
  • User-friendly: Intuitive interface for students and professionals alike.
  • Ideal for non-right triangles: If you're working with oblique triangles, this tool is indispensable.

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°.

Calculator Limitations

  • Requires sufficient data: At least two sides and one angle must be known for valid input.
  • May yield complex results: If the inputs don’t form a valid triangle, the solution may not exist.
  • Cannot solve for triangles with insufficient or contradictory data.

Pro Tips & Tricks

  • Check units: Make sure that your angle is in either degrees or radians, and the units are consistent across all calculations.
  • Pre-check angle sum: Remember, in any triangle, the sum of the angles must always be 180°.
  • Use the Law of Cosines for SSS triangles: If you know all three sides of a triangle, the Law of Cosines can help you find all angles.

FAQs

A1: Use it when you know two sides and the included angle (SAS) or all three sides (SSS) of a triangle.
A2: Yes, but it's usually more straightforward to use the Pythagorean Theorem for right triangles.
A3: Rearrange the formula to isolate cos(C), then use the inverse cosine function.
A4: C = cos⁻¹((a² + b² − c²) / 2ab)
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.
A6: Unlike the Law of Sines, the Law of Cosines generally gives one solution for known values.
A7: Not directly. However, once you know the sides and angles, you can use Heron's formula to calculate the area.
A8: Angles in a triangle must be less than 180°. If your result exceeds this, it indicates invalid input.
A9: Yes, it’s widely used in architecture, engineering, and surveying for accurate triangle-based calculations.
A10: It’s highly accurate, depending on the precision of the input values you provide.