This triangle calculator solves a triangle from its three sides (the SSS case). Enter sides a, b and c and it returns all three angles, the area by Heron’s formula, the perimeter, the three heights, the inradius and circumradius, and classifies the triangle as acute, right or obtuse and as scalene, isosceles or equilateral.
How the triangle is solved
Each angle is named after the side opposite it: angle A faces side a, B faces b, C faces c. Three sides fix a triangle completely, so every other property follows from them.
Angles: the law of cosines
cos A = (b² + c² − a²) ÷ 2bc cos B = (a² + c² − b²) ÷ 2ac C = 180° − A − B
Area: Heron’s formula
s = (a + b + c) ÷ 2 (semi-perimeter) area = √(s(s − a)(s − b)(s − c))
Heron’s formula needs no height and no angle, which makes it ideal for land plots and other shapes where only the side lengths can be measured.
Heights and circles
height to side a h_a = 2 × area ÷ a inradius r = area ÷ s circumradius R = abc ÷ (4 × area)
For the 5-6-7 triangle the height to side a is 5.8788, the inradius (the largest circle that fits inside) is 1.633, and the circumradius (the circle through all three corners) is 3.5722.
The triangle inequality
Three lengths form a triangle only if the longest is shorter than the other two combined. Sides 1, 2 and 3 fail because 1 + 2 is not greater than 3; the two short sides would lie flat along the long one. Sides 3, 4 and 6 pass because 3 + 4 = 7 > 6.
Worked examples
- 5, 6, 7: s = 9, area = √(9 × 4 × 3 × 2) = √216 = 14.6969. cos A = 60 ÷ 84, so A = 44.4153°; B = 57.1217°; C = 78.463°. Acute scalene, perimeter 18.
- 3, 4, 5: 3² + 4² = 5², so C = 90°. Area = 6, angles 36.8699° and 53.1301°. Right scalene.
- 2, 2, 2: equilateral, every angle 60°, area √3 = 1.7321.
- 3, 4, 6: 6² = 36 is greater than 3² + 4² = 25, so the triangle is obtuse, with C = 117.2796° and area 5.3327.
- 10, 10, 12: isosceles; s = 16, area = √(16 × 6 × 6 × 4) = √2,304 = 48.
Types of triangles
| Type | Test with sides (c = longest) | Example |
|---|---|---|
| Equilateral | a = b = c | 2, 2, 2 |
| Isosceles | exactly two sides equal | 10, 10, 12 |
| Scalene | all sides different | 5, 6, 7 |
| Right | a² + b² = c² | 3, 4, 5 |
| Acute | a² + b² > c² | 5, 6, 7 |
| Obtuse | a² + b² < c² | 3, 4, 6 |
Every triangle has one label from each group, such as right isosceles (1, 1, 1.4142) or obtuse scalene (3, 4, 6). An equilateral triangle is always acute.
Where SSS solving is useful
- Land and garden plots: measure the three boundary lengths with a tape and get the area directly from Heron’s formula. A lot with sides 120, 150 and 200 ft covers 8,966.57 ft², about 0.206 acres.
- Carpentry and framing: check a brace or gusset: if the three cut lengths give a 90° angle where you need one, the joint will be square.
- Surveying and navigation: triangulation fixes a point from three measured distances.
- Splitting irregular areas: any polygon can be split into triangles. Measure the sides and diagonals, solve each triangle here and add the areas.
Tips and common mistakes
- Use one unit for all three sides. The angles do not depend on the unit, but the area comes out in that unit squared and the perimeter in that unit.
- Do not use the Pythagorean theorem on a non-right triangle. Use the law of cosines instead; it reduces to a² + b² = c² only when C = 90°.
- Expect rounding in the last digit. Angles are rounded to 4 decimals, so they may add to 179.9999° or 180.0001° when shown separately.
- Know a right triangle’s two legs? The Pythagorean theorem calculator finds the third side first.
Related calculators
- Pythagorean Theorem Calculator
- Area Calculator
- Circle Calculator
- Square Root Calculator
- Rafter Length Calculator
- Roof Pitch Calculator
Frequently Asked Questions
Can you find the angles of a triangle from its sides?
Yes. The law of cosines gives each angle: cos A = (b² + c² − a²) ÷ 2bc. Three sides determine exactly one triangle, so all three angles are fixed.
What is Heron's formula?
It gives a triangle’s area from its sides alone: area = √(s(s − a)(s − b)(s − c)), where s is half the perimeter. For sides 5, 6 and 7, s = 9 and the area is √216 ≈ 14.6969.
How do I know if three sides make a right triangle?
Square all three sides. If the two smaller squares add up to the largest one, as 9 + 16 = 25 does for 3, 4 and 5, the triangle has a 90° angle.
Why does the calculator say my sides do not form a triangle?
The longest side must be shorter than the sum of the other two. If it is equal or longer, the sides cannot meet to close a triangle.
What units does the triangle calculator use?
Any unit you like, as long as all three sides use the same one. Angles are in degrees, the area is in your unit squared and the perimeter in your unit.