Triangle calculator
Choose what you know about a triangle, three sides, two sides and the angle between them, two angles and the side between them, or the base and height, and this tool finds the rest.
Results
Enter your values to see the result.
About this tool
It shows the sides, the three angles, the area, the perimeter and the type of the triangle by its sides and by its angles.
- How it is calculated
- three sides: Heron's formula with s = (a+b+c)÷2, area = √(s(s−a)(s−b)(s−c)); two sides and the angle between: c² = a² + b² − 2ab·cos C; two angles and the side between: law of sines; base and height: area = ½ × base × height
- Worked example
- With I know: three sides; Side a: 3; Side b: 4; Side c: 5, the result is: Side a: 3; Side b: 4; Side c: 5; Angle A (opposite a): 36.87 °; Angle B (opposite b): 53.13 °; Angle C (opposite c): 90 °; Area: 6; Perimeter: 12; Type by sides: scalene; Type by angles: right.
- Good to know
- Three sides use Heron's formula for the area and the law of cosines for the angles. Two sides and the angle between them use the law of cosines for the third side, and two angles and the side between them use the law of sines. Three sides must satisfy the triangle rule, where each side is shorter than the sum of the other two.
Frequently asked questions
Why does the tool say my triangle is not possible?
The two shorter sides must add up to more than the longest side. If they do not, the sides cannot meet to form a triangle.
What is Heron's formula?
It gives the area of a triangle from its three sides, without needing the height. It uses half the perimeter and the differences between that and each side.
How are the triangle types decided?
By sides, a triangle is equilateral, isosceles or scalene, and by angles, it is acute, right or obtuse. The tool states both.