If you know the three sides of a triangle, everything else about it is fixed: its angles, its area and its shape. Our triangle calculator works all of this out from the three side lengths. This guide shows the methods behind it, the law of cosines and Heron's formula, so you can follow the working or check homework.
How to use the calculator
Enter the lengths of side a, side b and side c in any unit. The results show the area, the three angles, the perimeter and whether the triangle is acute, right or obtuse.
For sides 5, 6 and 7:
- Area: 14.6969
- Angles A, B, C: 44.42°, 57.12°, 78.46°
- Perimeter: 18
- Type: acute
Angle A is opposite side a, angle B opposite side b, and angle C opposite side c.
Checking the sides make a triangle
Three lengths only form a triangle if each side is shorter than the other two added together. This is the triangle inequality. Sides 3, 4 and 8 cannot form a triangle, because 3 + 4 = 7, which is less than 8.
Finding the angles: the law of cosines
For sides 5, 6, 7, angle C (opposite the 7):
- a² + b² − c² = 25 + 36 − 49 = 12.
- 2ab = 2 × 5 × 6 = 60.
- cos C = 12 ÷ 60 = 0.2.
- C = cos⁻¹(0.2) = 78.46°.
The same formula, rearranged for each side, gives angles A and B. As a check, the three angles always add up to 180°: 44.42 + 57.12 + 78.46 = 180.
Finding the area: Heron's formula
Heron's formula gives the area from the sides alone.
For 5, 6, 7:
- s = 18 ÷ 2 = 9 (half the perimeter).
- s − a = 4, s − b = 3, s − c = 2.
- Area = √(9 × 4 × 3 × 2) = √216 = 14.6969.
Acute, right or obtuse?
The longest side tells you the type. Compare its square with the sum of the squares of the other two:
| Comparison | Type |
|---|---|
| c² < a² + b² | Acute (all angles under 90°) |
| c² = a² + b² | Right (one angle exactly 90°) |
| c² > a² + b² | Obtuse (one angle over 90°) |
For 5, 6, 7: 49 < 61, so it is acute. For 3, 4, 6: 36 > 25, so it is obtuse, with an angle of 117.28°, and an area of about 5.33.
Classifying by sides
- Equilateral: all three sides equal, all angles 60°.
- Isosceles: two sides equal, and the two angles opposite them are equal.
- Scalene: all sides different, as in 5, 6, 7.
Other triangle tools
If one angle is a right angle, the right triangle calculator works from the two legs, and the Pythagorean theorem calculator finds a missing side. For the area of other shapes, try the area calculator.
Where triangle calculations are used
- Construction and carpentry: checking that corners are square and calculating roof pitches. The roofing calculator builds on this.
- Navigation and surveying: triangulation finds distances that cannot be measured directly.
- Land area: splitting an irregular plot into triangles and adding their areas.
- Graphics and games: 3D models are built from triangles.
Tips for accurate results
Measure every side in the same unit, and convert first if one length is in feet and another in inches. Keep a few more decimal places than you need while working, then round at the end, because angles calculated from rounded sides can drift by a tenth of a degree or more. If two sides are almost as long as the third combined, the triangle is very flat and small measuring errors change the angles a lot, so double check those lengths. Finally, use the angle sum of 180 degrees as a quick check on any answer you work out by hand.
Frequently asked questions
Can I find the angles if I only know the sides?
Yes. The law of cosines gives each angle from the three sides, and the angles always add up to 180°.
What is Heron's formula?
A way to find a triangle's area from its three sides, using the semi-perimeter s: area = √(s(s − a)(s − b)(s − c)).
Why does the calculator say my sides do not form a triangle?
Each side must be shorter than the sum of the other two. If not, the sides cannot meet to form a triangle.
What units should I use?
Any unit, as long as all three sides use the same one. The area comes out in that unit squared.
Try it yourself
Run your own numbers with our free tool: Triangle calculator. No sign-up, and it works on any device.