Calculators4All
Home / Math / Triangle calculator
Math calculator

Triangle calculator

Solve a triangle for its missing angles, area, and perimeter — either from three known sides, or from two sides and the angle between them.

0
Area
Side a
Side b
Side c
Angle A
Angle B
Angle C
Perimeter

Two ways to solve a triangle

Any triangle is fully determined once you know enough of its sides and angles, and there are several classic combinations that pin it down completely. This calculator covers the two most common starting points: knowing all three side lengths (SSS, "side-side-side"), or knowing two sides plus the angle trapped between them (SAS, "side-angle-side"). Both cases always describe exactly one possible triangle, which is what makes them reliable to calculate from.

Solving from three sides (SSS)

When all three sides are known, the area comes from Heron's formula, and each angle is found using the law of cosines rearranged to solve for the angle opposite a given side. Before calculating anything, the triangle inequality is checked — the sum of any two sides must be greater than the third side, or no such triangle can physically exist.

Solving from two sides and the included angle (SAS)

When you know two sides and the angle between them, the law of cosines finds the third side directly, and the area comes from a simpler formula using the two known sides and the sine of the angle between them. The remaining two angles are then found using the law of cosines again, which avoids the ambiguity that can come from using the law of sines on its own.

Good to know

SituationWhat happens
Three sides don't satisfy the triangle inequalityCalculator shows an error — no such triangle exists
Angles should always sum to 180°Used as an internal check on every result
UnitsAny consistent unit works for sides — the angles and ratios stay the same