Triangle Calculator
Solve a triangle completely from three known values. The calculator uses the law of cosines, the law of sines and Heron's formula, and classifies the triangle.
How to use the triangle calculator
- Choose which values you know.
- Enter them (angles in degrees).
- Get all sides, angles, area and perimeter.
Examples
SSS 3, 4, 5
Answer: Right triangle, area 6
What the triangle calculator does
Enter any three facts about a triangle (at least one of them a side), and it finds all the missing sides and angles, plus the area and perimeter. It uses right-triangle trig, the law of sines or the law of cosines, depending on what you know, and flags the ambiguous SSA case where two triangles are possible.
Which rule to use
| You know | Use |
|---|---|
| Right triangle, 2 sides | Pythagorean theorem, then trig |
| Right triangle, side and angle | SOH-CAH-TOA |
| SSS (three sides) | Law of cosines for an angle |
| SAS (two sides and the angle between them) | Law of cosines for the third side |
| ASA or AAS | Law of sines |
| SSA | Law of sines (0, 1 or 2 triangles) |
Law of sines:
Law of cosines:
Worked example (SAS)
, , .
- Law of cosines: , so .
- Law of sines: , so .
- Angles add to 180°: .
- Area .
The ambiguous case (SSA)
Given , and angle (not between them), there may be no triangle, one, or two. If comes out above 1, there's none. If both and fit with , there are two. The calculator shows both.
Facts that always hold
- The angles add to .
- The longest side is opposite the largest angle.
- Triangle inequality: any two sides must add up to more than the third. Sides 3, 4 and 8 can't make a triangle.
Common mistakes
- Calculator in radians instead of degrees.
- Using the law of sines to find the largest angle first (it can give the acute angle when the real one is obtuse). Find the largest angle with the law of cosines.
- Rounding early and carrying the error forward.
Formulas
Practice problems
Try each one first, then open the answer to check your work.
1.Two angles are 48° and 67°. Find the third.
Show answer
65°.
2., , . Find .
Show answer
.
3.Sides 5, 7, 9: find the largest angle.
Show answer
, so .
4.Find the area with , , .
Show answer
12. .
5.Can sides 2, 3, 6 form a triangle?
Show answer
No. .
Key terms
- Law of sines
- .
- Law of cosines
- .
- Included angle
- The angle between two given sides.
- Obtuse angle
- An angle between 90° and 180°.
- Triangle inequality
- Any two sides add up to more than the third.