Law of Cosines Calculator

 

When you have a triangle where the Law of Sines cannot be applied immediately (like knowing all 3 sides, or 2 sides and a contained angle), you need the Law of Cosines Calculator. This tool is the heavy lifter of trigonometry, allowing you to solve for any side or angle in any triangle, regardless of its shape.

Features

Solves SSS and SAS: The two classic cases where Law of Cosines is mandatory.

Equation Breakdown: Displays the specific values substituted into the $c^2 = a^2 + b^2 – 2ab\cos(C)$ formula.

Angle Finding: In SSS mode, calculates angles by rearranging the formula to solve for the cosine term.

Robust Validation: Checks for Impossible Triangles (Triangle Inequality) before computing.

How to Use This Calculator

Choose Case: Select SAS if you have an included angle, or SSS if you only have sides.

Input: Key in the values. For Angle C in SAS, ensure it is the angle *between* sides a and b.

Calculate: Get precise lengths and angles instantly.

Learn: Read the steps to understand the algebraic manipulation.

Formulas

The calculator uses the following mathematical principles:

Standard Form (Finding Side): $$ c^2 = a^2 + b^2 – 2ab \cos(C) $$

Related Calculator:  Triangular Prism Surface Area Calculator

Alternate Form (Finding Angle): $$ \cos(C) = \frac{a^2 + b^2 – c^2}{2ab} $$

Area: $$ Area = \frac{1}{2}ab \sin(C) $$

Practical Applications

Robotics: Inverse kinematics (calculating joint angles to reach a coordinate).

Surveying: Determining the distance between two landmarks by measuring distance to each from a third point.

Structural Engineering: Analyzing forces in truss members types.

Tips for Success

Generalized Pythagoras: Notice that if Angle C is 90°, cos(90)=0, and the formula becomes $c^2=a^2+b^2$.

SSS Order: In SSS mode, it calculates the largest angle first using the longest side to avoid ambiguity involved with Law of Sines later.

Degrees: Input angles are always in degrees.

Frequently Asked Questions (FAQ)

Why use Law of Cosines over Sines?

Law of Cosines is necessary when you don’t have a matching Side/Angle pair property to start with (i.e., SAS and SSS cases).

Is the formula different for finding side a or b?

The structure is identical. $$ a^2 = b^2 + c^2 – 2bc \cos(A) $$

Final Words

For the toughest triangle problems, the Law of Cosines Calculator is the definitive solution, bridging the gap between simple geometry and complex trigonometry.

Similar Posts

  • Law of Sines Calculator

      The Law of Sines Calculator is a powerful tool for solving oblique (non-right) triangles. It excels in scenarios where you know a matching pair of angle and opposite side. Crucially, this calculator also handles the “Ambiguous Case” (SSA), detecting whether zero, one, or two possible triangles exist. Features Ambiguous Case Detection: Automatically analyzes SSA…

  • SSA Triangle Calculator

    The SSA (Side-Side-Angle) case is notorious in geometry as the “Ambiguous Case.” Depending on the values, you might get zero, one, or two possible triangles. The SSA Triangle Calculator is an advanced tool specifically built to analyze these possibilities, warn you of ambiguity, and calculate every valid solution. Features Ambiguity Detection: Smart logic checks if…

  • Acute Triangle Calculator

      An Acute Triangle is one where *every* internal angle is less than 90 degrees. The Acute Triangle Calculator is designed to verify and solve these specific shapes. Whether you have three sides (SSS) or other combinations, this tool ensures your triangle is truly acute while calculating all its properties. Features Acute Verification: Automatically checks…

  • Vector Triangle Calculator

    Vectors are the language of physics, representing quantities with both magnitude and direction. The Vector Triangle Calculator uses the ‘Triangle Law of Vector Addition’ to combine two vectors placed head-to-tail and find the resultant vector—the direct path from the start to the finish. Features Component Resolution: Breaks down Vectors A and B into their X…

  • Equilateral Triangle Calculator

      The Equilateral Triangle Calculator is the ultimate tool for the most symmetrical shape in geometry. Because all three sides and all three angles (60°) are identical, knowing just one property—Side, Height, or Perimeter—allows you to instantly calculate every other dimension, including the Area. Features Single-Input Solving: Enter just ONE value (Side, Height, or Perimeter)…