Triangle Calculator

Enter the lengths of three sides to find every angle, the area, perimeter and the type of triangle.

Updated . Free, no sign-up, calculated in your browser.

Area
6
Scalene, right
Angle A36.8699°
Angle B53.1301°
Angle C90°
Perimeter12
Height to side a4
Height to side b3
Height to side c2.4
Inradius1
Circumradius2.5

Angles from three sides

When all three sides are known, the law of cosines gives each angle. Angle A sits opposite side a, and so on.

cos A = (b² + c² − a²) ÷ (2bc)

Area with Heron’s formula

Heron’s formula finds the area from the sides alone, with no height needed. First find the semi-perimeter s.

s = (a + b + c) ÷ 2 Area = √( s(s − a)(s − b)(s − c) )

The triangle inequality

Any two sides must add up to more than the third. Sides of 2, 3 and 6 can’t meet to form a triangle, so the calculator will tell you when the lengths are impossible.

Example calculation

Example: with side a 3, side b 4, side c 5, the result is Area: 6 (Scalene, right).

Angle A36.8699°
Angle B53.1301°
Angle C90°
Perimeter12
Height to side a4
Height to side b3
Height to side c2.4
Inradius1

Frequently asked questions

How do I find the angles of a triangle from its sides?

Use the law of cosines: cos A = (b² + c² − a²) ÷ 2bc, and the same pattern for the other angles.

What is Heron’s formula?

It finds the area from the three sides. With s = (a + b + c) ÷ 2, the area is √(s(s − a)(s − b)(s − c)).

Why can’t some side lengths make a triangle?

Any two sides must add up to more than the third. Sides of 2, 3 and 6 can’t meet.

How do I know if a triangle is a right triangle?

If the squares of the two shorter sides add up to the square of the longest side, as with 3, 4 and 5, it’s a right triangle.

Results are calculated in your browser for general and educational use. Double-check figures before relying on them for graded work or important decisions.