- Home
- Math
- Triangle Calculator
Triangle Calculator
A triangle is fixed by three values with at least one side. Sides 7, 8 and 9 give angles of 48.19°, 58.41° and 73.40° and an area of 26.83.
Two sides and an angle that is not between them (SSA) can make two different triangles. This calculator shows both when that happens, which most tools skip.
Three sides
Two sides and the angle between them
Two angles and the side between them
Two angles and a side that is not between them
Two sides and an angle that is not between them
How we got this
Compare options
Row 1 follows the calculator above. Edit any cell.Bulk mode
My saved calculations
Stored only in this browser. Nothing is sent to our servers.Country & format
Change the country edition from the menu at the top.Your next step
Your answer carries over, so you don’t have to type it again.
How the triangle is labelled
Corners are A, B and C. Each side has the same letter as the corner opposite it: side a is opposite angle A, and so on. The angles always add up to 180°.
Law of sines and law of cosines
| Rule | Formula | Use it for |
|---|---|---|
| Law of cosines | c² = a² + b² − 2ab·cos C | SSS and SAS |
| Law of sines | a ÷ sin A = b ÷ sin B = c ÷ sin C | ASA, AAS and SSA |
| Angle sum | A + B + C = 180° | The third angle |
The ambiguous case (SSA)
With sides a, b and angle A (opposite a), compute sin B = b·sin A ÷ a. If sin B > 1 there is no triangle. If B and 180° − B both leave room for a third angle, there are two valid triangles; otherwise one.
Example
a = 7, b = 8, A = 48°: sin B = 8 × 0.7431 ÷ 7 = 0.8493, so B = 58.14° or 121.86°. Both work, giving C = 73.86° or 10.14°.
Area formulas
- Base and height: ½ × b × h.
- Two sides and the angle between: ½ × a × b × sin C.
- Three sides (Heron’s formula): √(s(s − a)(s − b)(s − c)), where s is half the perimeter.
Frequently asked questions
What do SSS, SAS, ASA, AAS and SSA mean?
They list what you know in order around the triangle: S is a side and A is an angle. SAS means two sides with the angle between them.
Can three angles solve a triangle?
No. AAA fixes the shape but not the size; similar triangles of any size share the same angles.
Why can SSA give two triangles?
The side opposite the known angle can swing to meet the base at two points. Both make valid triangles.
How do I know if three sides make a triangle?
Each pair of sides must add up to more than the third side (the triangle inequality).