Triangle Calculator
Solve any triangle given sides and angles. Supports SSS, SAS, AAS, and ASA configurations.
| Property | Value |
|---|
Solve any triangle — find every missing side, angle, and the area — starting from three sides (SSS), two sides and the angle between them (SAS), or two angles and a side (AAS).
How Triangle Calculator Works
Given three sides (SSS), the calculator applies the Law of Cosines twice — cos(A) = (b² + c² − a²) / (2bc) and the equivalent formula for angle B — to find two angles directly, then subtracts both from 180° to get the third.
Given two sides and the included angle (SAS), it first uses the Law of Cosines to find the unknown third side, then applies the Law of Cosines again to recover one of the missing angles.
Given two angles and a side (AAS), the third angle follows immediately since a triangle's angles always sum to 180°, and the Law of Sines (a/sin A = b/sin B = c/sin C) finds the remaining sides. Regardless of which mode was used, the area is always computed from the three final side lengths using Heron's formula: Area = √(s(s−a)(s−b)(s−c)), where s is the semi-perimeter.
See It In Action
Who Uses Triangle Calculator and Why
- Solving a triangle from three field-measured side lengths (SSS), such as verifying a surveyed plot's angles.
- Finding a triangle's remaining side and angles from two known sides and the angle between them (SAS), common in roof pitch or bracket design.
- Computing a triangle's dimensions from two known angles and one side (AAS), as in navigation or bearing problems.
- Getting the area of an irregular triangular plot or panel once its three side lengths are known.
Mistakes to Avoid
- Entering side lengths that violate the triangle inequality (one side longer than the sum of the other two) — the calculator returns no result because no such triangle can physically exist.
- Picking the wrong input mode for the values actually known — SSS, SAS, and AAS each expect a specific combination, and mismatching them will produce an invalid or nonsensical solve.
- In SAS mode, entering an angle that puts the Law of Cosines calculation outside the valid −1 to 1 cosine range, which also produces no result.
Tips for Best Results
- Before entering SSS values, do a quick check that no one side is longer than the sum of the other two — it takes a few seconds and avoids a wasted calculation.
- Once you have a result, the three angles should sum to 180° — use that as a fast sanity check on the output.
Fixing Common Problems
I get no result at all after entering my values. — Check that your sides satisfy the triangle inequality (no side longer than the sum of the other two), or in SAS mode that the entered angle doesn't push the cosine calculation out of its valid range.
Terms Explained
Law of Cosines: A formula relating a triangle's three sides and one angle — cos(A) = (b² + c² − a²) / (2bc) — used to solve triangles from SSS or SAS input.
Heron's formula: A method for finding a triangle's area directly from its three side lengths, using the semi-perimeter s: Area = √(s(s−a)(s−b)(s−c)).