Solve a triangle for its missing angles, area, and perimeter — either from three known sides, or from two sides and the angle between them.
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.
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.
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.
| Situation | What happens |
|---|---|
| Three sides don't satisfy the triangle inequality | Calculator shows an error — no such triangle exists |
| Angles should always sum to 180° | Used as an internal check on every result |
| Units | Any consistent unit works for sides — the angles and ratios stay the same |