Triangle Calculator

Enter three sides to get a triangle’s area (Heron’s formula), perimeter, all three angles and its type.

Results

Area
14.697
Perimeter
18
Angle A (opposite a)
44.42
Angle B (opposite b)
57.12
Angle C (opposite c)
78.46
Triangle type
Scalene, acute

How it’s calculated

With all three sides known (SSS), Heron's formula gives the area directly from the semi-perimeter s, and the law of cosines gives each angle.

s = (a + b + c) ÷ 2 Area = √( s(s − a)(s − b)(s − c) ) cos A = (b² + c² − a²) ÷ (2bc) A + B + C = 180°

The sides must satisfy the triangle inequality: each side shorter than the sum of the other two.

Example: sides 5, 6 and 7 ft give s = 9, so Area = √(9 × 4 × 3 × 2) = √216 ≈ 14.70 ft². Angle A = arccos((36 + 49 − 25) ÷ 84) = arccos(0.7143) ≈ 44.42°.

Frequently asked questions

What is Heron’s formula?

Area = √(s(s−a)(s−b)(s−c)), where s is half the perimeter. It finds a triangle’s area from its three sides without needing the height.

Why do I get an error for some side lengths?

Three lengths only form a triangle if each one is shorter than the other two added together. For example 2, 3 and 6 cannot close up into a triangle.

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 (a² + b² = c²), it has a 90° angle, like 3-4-5.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Spotted a mistake or missing option? Report a problem · GitHub issue· Suggest a calculator