FINAL TOOLBOX
03 // Bidirectional STEM Calculators // MATHc = √(a² + b² - 2ab cos(C))

Law of Cosines Triangle Side & Angle Calculator

The Law of Cosines generalizes the Pythagorean Theorem to all oblique triangles, relating side c to sides a and b and their included angle C via c² = a² + b² - 2ab cos(C).

c = √(a² + b² - 2ab cos(C))
Pick which value you want to calculate (or type into any field):Solving for: c — Opposite Side c
Calculated

Side opposite angle C

0.110,000.00

First side flanking angle C

0.110,000.00

Second side flanking angle C

0.110,000.00

Interior angle opposite side c in degrees

1179
deg
Calculated Result · Opposite Side c (c)
7m
Converted units:

Step-by-Step Calculation

01Canonical Law: c = √(a² + b² - 2ab cos(C))
02Given Inputs (Base Units): a = 5 m, b = 8 m, C (°) = 60
03Solve for c (Opposite Side c): c = 7 m

The Law of Cosines generalizes the Pythagorean Theorem to all oblique triangles, relating side c to sides a and b and their included angle C via c² = a² + b² - 2ab cos(C).

Real-World Reference Values

5-8-7 Eisenstein 60° Triangle5² + 8² - 2(5)(8)(0.5) = 49 → c = 7

Exact integer triangle with a 60° angle

Right Angle Limit (C = 90°)cos(90°) = 0 → c² = a² + b²

Reduces identically to the Pythagorean Theorem

Obtuse Triangle (C > 90°)cos(C) < 0 → c² > a² + b²

Term -2ab cos(C) becomes positive

20-Row Comparison Table

Opposite Side c (c) · Adjacent Side a (a)

Law of Cosines Triangle Side & Angle Calculator — Adjacent Side a → Opposite Side c
#Adjacent Side a (m)Opposite Side c (m)Δ %
015 mCurrent7 m0.00%
0272.7256 m69.0739 m+886.77%
03145.3512 m141.5209 m+1921.73%
04217.9768 m214.0889 m+2958.41%
05290.6024 m286.6861 m+3995.52%
06363.228 m359.2948 m+5032.78%
07435.8536 m431.9091 m+6070.13%
08508.4791 m504.5267 m+7107.52%
09581.1047 m577.1463 m+8144.95%
10653.7303 m649.7673 m+9182.39%
11726.3559 m722.3891 m+10219.84%
12798.9815 m795.0117 m+11257.31%
13871.6071 m867.6348 m+12294.78%
14944.2327 m940.2582 m+13332.26%
151,016.86 m1,012.88 m+14369.74%
161,089.48 m1,085.51 m+15407.23%
171,162.11 m1,158.13 m+16444.72%
181,234.74 m1,230.75 m+17482.21%
191,307.36 m1,303.38 m+18519.70%
201,379.99 m1,376.00 m+19557.20%
Was this tool helpful?

Frequently Asked Questions

How do I find an unknown angle when all three sides (SSS) are known?+

Click SOLVE FOR on C (°) and enter sides a, b, and c. The engine applies C = arccos((a² + b² - c²) / (2ab)).

When should I use Law of Cosines vs Law of Sines?+

Use Law of Cosines for SAS (two sides and included angle) or SSS (all three sides); use Law of Sines when you have a known angle-side opposite pair.

Why does the Law of Cosines never suffer from the obtuse-angle ambiguity of arcsin?+

Because arccos(x) is strictly one-to-one across the entire triangle angle domain 0° < C < 180°, it uniquely distinguishes acute from obtuse angles.