Law of Cosines Calculator - Free Online Calculator | yourcalculator.app
HomeTrigonometryLaw of Cosines Calculator
c² = a² + b² - 2ab cos(C)

Law of Cosines Calculator

Solve non-right triangles with SAS or SSS configurations and calculate triangle area.

Preparing calculator tool...
Formula & Mathematical Method

This calculator uses standard deterministic mathematical algorithms to process user inputs in real time. Calculations are performed client-side for maximum speed and privacy.

Reviewed by Trigonometry Panel
Checked for AccuracyLast Reviewed: August 2026

Law of Cosines & Generalized Pythagorean Theorem

Theoretical background and practical computational guidance

The Law of Cosines generalizes the Pythagorean theorem to any triangle, right or oblique.

Applicable Configurations: SAS (Side-Angle-Side) to find third side, and SSS (Side-Side-Side) to solve all interior angles.

Formulas:

• c² = a² + b² - 2ab cos(C)

• cos(C) = (a² + b² - c²) / (2ab)

Law of Cosines FormulaMathematical Standard
c^2 = a^2 + b^2 - 2ab \cos(C)

Calculates unknown side or angle in oblique triangles.

Worked Calculation Walkthrough & Analytical Steps

To evaluate a typical problem using the Law of Cosines Calculator, identify your known baseline inputs, convert all measurements to congruent units, and apply the governing formula sequentially. Below is a structured breakdown of the computational workflow:

  1. Data Ingestion & Unit Harmonization: Enter the primary parameters into the input fields. If working with mixed metric or imperial dimensions, use the unit selector above to align scales.
  2. Intermediate Term Evaluation: The algorithm evaluates inner parentheses, rate exponents, and coefficient ratios in strict compliance with mathematical precedence.
  3. Final Transformation & Precision Rounding: The final numerical figure is determined, formatted to user-selected decimal precision, and mapped against relevant diagnostic or diagnostic thresholds.

Key Insights & Operational Tips

  • When C = 90°, cos(90°) = 0, simplifying directly to the Pythagorean Theorem a² + b² = c².
  • SSS triangle inequality requires a + b > c for a valid triangle.

Frequently Asked Questions (FAQs)

Authoritative answers to common computational and formula questions

Rearrange the formula to cos(C) = (a² + b² - c²) / (2ab) and take arccos of the resulting ratio.

Authoritative Citations & Institutional References

Disclaimer & Methodological Transparency Notice

Trigonometry Notice: Handles metric/imperial units seamlessly.