Choose a mode and enter the known values to solve the triangle.
How to Solve Any Triangle
The three angles of any triangle add up to 180°, and three measurements that include at least one side are enough to solve it: the Law of Cosines for SSS and SAS, the Law of Sines for ASA, AAS and SSA. Pick a mode above, enter what you know, and the calculator returns every side and angle, the three heights, the area and the triangle type.
Every triangle has three sides (a, b, c) and three angles (A, B, C). The angles always sum to 180°. Given any three values (with at least one side), this calculator finds the rest using the Law of Sines or Law of Cosines.
Law of Cosines (SSS/SAS)
Law of Sines (ASA/AAS)
Heron's Formula (Area)
Triangle Inequality
Which Method for Which Case
| Case | You know | First step | Triangles |
|---|---|---|---|
| SSS | three sides | cos A = (b² + c² − a²) ÷ 2bc | one, if every pair of sides is longer than the third |
| SAS | two sides and the angle between them | c² = a² + b² − 2ab cos C | always one |
| ASA | two angles and the side between them | C = 180° − A − B, then Law of Sines | one, if A + B < 180° |
| AAS | two angles and a side not between them | same as ASA | one, if A + B < 180° |
| SSA | two sides and an angle not between them | sin B = b sin A ÷ a | none, one or two |
| AAA | three angles only | none | endless similar triangles, size unknown |
The SSA Ambiguous Case
With two sides and an angle that is not between them, side a can swing into place in two different spots, one spot, or not reach at all. The deciding length is the height h = b × sin A. The rows below all use b = 10 and A = 40°, so h = 6.428.
| Side a | Rule | Result |
|---|---|---|
| 5 | a < h | no triangle |
| 6.428 (exactly h) | a = h | one right triangle, B = 90° |
| 8 | h < a < b | two triangles: B = 53.46°, C = 86.54°, c = 12.42, or B = 126.54°, C = 13.46°, c = 2.90 |
| 12 | a ≥ b | one triangle: B = 32.39°, C = 107.61°, c = 17.79 |
When A is 90° or more, there is one triangle if a > b and none otherwise. In SSA mode the calculator shows the first triangle in full and lists the second one in the Method box whenever two exist.
Worked Examples
SSS: sides 7, 8 and 9
cos A = (64 + 81 − 49) ÷ (2 × 8 × 9) = 0.6667, so A = 48.19°. In the same way B = 58.41°, and C = 180° − 48.19° − 58.41° = 73.40°. Heron’s formula with s = 12 gives an area of √(12 × 5 × 4 × 3) = 26.83.
SAS: a = 10, b = 14, C = 60°
c² = 100 + 196 − 2 × 10 × 14 × 0.5 = 156, so c = 12.49. Area = ½ × 10 × 14 × sin 60° = 60.62.
ASA: A = 45°, B = 60°, c = 10
C = 75°. Then a = 10 × sin 45° ÷ sin 75° = 7.32 and b = 10 × sin 60° ÷ sin 75° = 8.97. Area = 31.70.
An obtuse triangle: sides 5, 6 and 10
5² + 6² = 61 is less than 10² = 100, so the angle opposite the 10 side is obtuse: C = 130.54°. The area is 11.40.
Special Triangles and Common Mistakes
| Triangle | Angles | Example sides | Area |
|---|---|---|---|
| Equilateral | 60°, 60°, 60° | 10, 10, 10 (height 8.66) | 43.30 |
| Right isosceles | 45°, 45°, 90° | 5, 5, 7.07 | 12.50 |
| Half equilateral | 30°, 60°, 90° | 5, 8.66, 10 | 21.65 |
- Calculator in radians. sin 30 in radian mode is −0.988, not 0.5. Angles here are always in degrees.
- Stopping at one SSA answer. The inverse sine only returns angles up to 90°. Always test 180° minus that angle too.
- Sides that cannot close. 1, 2 and 10 fail the triangle inequality because 1 + 2 is less than 10.
- Rounding too early. Carry full precision through the Law of Sines and round only the final answers.
- Using the Pythagorean theorem on a non-right triangle. It only holds when one angle is exactly 90°. For right triangles alone, the Pythagorean theorem calculator is quicker.