Triangle calculator (SSS)
This calculator solves a triangle from its three side lengths (the SSS case), returning the area, perimeter, all three interior angles, and the triangle’s type. It suits geometry homework, trigonometry practice, and practical layout or surveying checks.
How it works
First it checks the triangle inequality — every pair of sides must sum to more than the third — and flags impossible inputs. Then, with the semi-perimeter s = (a + b + c) / 2, it applies Heron’s formula for the area and the law of cosines for each angle:
Area = √(s(s − a)(s − b)(s − c))
angle A = arccos((b² + c² − a²) / (2bc)) (degrees)
It classifies the triangle by sides (equilateral, isosceles, scalene) and by its largest angle (acute, right, obtuse).
Example
For sides a = 3, b = 4, c = 5: s = 6, so area = √(6·3·2·1) = √36 = 6, and the perimeter is 12. The angle opposite the longest side is arccos((9 + 16 − 25)/(2·3·4)) = arccos(0) = 90°, so it is a right scalene triangle.
| Property | Value |
|---|---|
| Area | 6 |
| Perimeter | 12 |
| Angles | 36.87°, 53.13°, 90° |
| Type | Scalene · right |
Everything runs in your browser — nothing is uploaded.