Home › Math & Study › Triangle Calculator

Triangle Calculator

This triangle calculator solves a triangle from its three side lengths. It gives every angle, the area, the perimeter and the type of triangle.

Formulas

Law of cosines: cos A = (b² + c² − a²) ÷ 2bc
Heron's formula: Area = √(s(s − a)(s − b)(s − c)), where s = (a + b + c) ÷ 2

The angles of any triangle add up to 180°.

Example

A triangle with sides 5, 6 and 7 has s = 9, so its area is √(9 × 4 × 3 × 2) = √216 = 14.70. Its angles are 44.42°, 57.12° and 78.46°, so it's a scalene, acute triangle.

Tips

Frequently asked questions

Can any three lengths make a triangle?

No. Each pair of sides must add up to more than the third side (the triangle inequality).

How do I tell if a triangle is right-angled?

If a² + b² = c² for the longest side c, it has a right angle.

What is an isosceles triangle?

A triangle with at least two equal sides (and two equal angles).

Written and checked by Vijay. Last updated .