Beginner

Triangle Side Calculator — Find Missing Side or Angle

Enter two sides and the included angle (SAS) to find the missing third side, or enter all three sides (SSS) to find every angle — powered by the Law of Cosines.

Given information

First known side length
Second known side length

°

Angle between sides a and b
Missing side c
6.2450

Side opposite to the included angle C, by the Law of Cosines

Side a
5
Side b
7
Side c
6.245
Angle A
43.898°
Angle B
76.102°
Angle C
60°
Area
15.1554
Perimeter
18.245
a = 5b = 7c = 6.24
c² = a² + b² − 2ab·cos(C) (Law of Cosines)
Step by step
  1. 1

    a² + b²

    5² + 7² = 74
  2. 2

    2ab · cos(C)

    2 × 5 × 7 × cos(60°) = 35
  3. 3

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

    74 − 35 = 39
  4. 4

    Side c = √(c²)

    √39 = 6.2450
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

SAS: two sides a, b and included angle C → missing side c = √(a² + b² − 2ab·cos C). SSS: three sides → angle C = arccos((a²+b²−c²)/(2ab)). The Law of Cosines works for any triangle — enter the known values to get every side, angle, area and perimeter instantly.

Formula
c² = a² + b² − 2ab·cos(C) • cos(C) = (a² + b² − c²) / (2ab)
How this is calculated

The Law of Cosines generalises the Pythagorean theorem to any triangle: c² = a² + b² − 2ab·cos(C), where C is the angle between sides a and b (the included angle) and c is the opposite side. When C = 90° the term −2ab·cos(C) vanishes and the formula reduces to the familiar a² + b² = c².

In SAS mode you supply the two known sides and the angle between them. The calculator evaluates the square root of a² + b² − 2ab·cos(C) to obtain c, then derives the other two angles by re-applying the Law of Cosines. It also computes the area as ½ab·sin(C) and the perimeter.

In SSS mode you supply all three sides and the calculator inverts the formula: cos(C) = (a² + b² − c²) / (2ab), then takes the arc-cosine to find C. The other angles follow by applying the same inversion to the other pairs. The triangle inequality is checked first — if any side equals or exceeds the sum of the other two, no real triangle exists and the result is blank.

Frequently asked questions

The Law of Cosines states that for any triangle with sides a, b, c and angle C opposite to side c: c² = a² + b² − 2ab·cos(C). It generalises the Pythagorean theorem (which applies only when C = 90°) to all triangles.

The included angle in SAS must be the angle sandwiched between the two known sides. If you know two sides and an angle that is NOT between them, use the Law of Sines calculator instead (SSA case), which can have two solutions.

All three angles are computed independently via arc-cosine operations on floating-point numbers, so rounding at the last displayed digit is expected. The true mathematical sum is always exactly 180°.

Also known as

triangle side calculator
find missing side of triangle
law of cosines side calculator
SAS triangle missing side
SSS find triangle angle
cosine rule triangle solver
third side of triangle formula

APA

TG we-Calculate Editorial Team. (2026). Triangle Side Calculator — Find Missing Side or Angle [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/triangle-side-calculator

Chicago

TG we-Calculate Editorial Team. "Triangle Side Calculator — Find Missing Side or Angle." TG we-Calculate. 2026. https://we-calculate.com/calculator/triangle-side-calculator.

IEEE

TG we-Calculate Editorial Team, "Triangle Side Calculator — Find Missing Side or Angle," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/triangle-side-calculator

BibTeX

@misc{wecalculate_triangle_side_calculator, title = {Triangle Side Calculator — Find Missing Side or Angle}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/triangle-side-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?