Triangle Calculator tool

Triangle Calculator

A triangle calculator computes the area, perimeter, and all three angles of a triangle from the three side lengths.

What is a triangle calculator?

A triangle calculator takes three side lengths and returns area, perimeter, all three angles, and triangle type (equilateral, isosceles, right, or scalene). Area uses Heron's formula with semi-perimeter s = (a+b+c)/2. Angles use the law of cosines. Invalid sides that break the triangle inequality show an error instead of results. Heron's formula avoids needing altitude length.

How to use the Triangle Calculator

  1. Enter side a, side b, and side c.
  2. Wait for the diagram if sides form a triangle.
  3. Read area and perimeter on the grid.
  4. Check all three angles in degrees.
  5. Note the type badge (right, equilateral, etc.).

About this calculator

A triangle calculator computes the area, perimeter, and all three angles of a triangle from the three side lengths. It uses Heron's formula for area (√(s(s−a)(s−b)(s−c)) where s is the semi-perimeter) and the law of cosines for angles.

Triangle calculations come up in geometry, construction, navigation, engineering, and physics. Any polygon can be divided into triangles, so triangle math ends up being widely applicable.

How the math works

A=s(s−a)(s−b)(s−c),s=a+b+c2A = \sqrt{s(s-a)(s-b)(s-c)}, \quad s = \frac{a+b+c}{2}
  • a,b,ca, b, c: The three side lengths
  • ss: Semi-perimeter = half the perimeter
  • AA: Area (Heron's formula)

Triangle calculator example: sides 3, 4, and 5

A triangle has sides a = 3, b = 4, and c = 5 units.

Semi-perimeter is s = (3 + 4 + 5)/2 = 6. Heron area is √(6 × 3 × 2 × 1) = √36 = 6 square units. Perimeter is 12 units.

Angles are about 36.87°, 53.13°, and 90°, so the badge shows Right triangle. Enter 3, 4, and 5 to see area 6.0000 and the same angles on the cards. Sides 1, 2, and 5 fail the triangle rule and show the red error message.

Heron's formula avoids needing altitude length. Very thin triangles can give small areas with long perimeters. Side lengths must satisfy a + b > c for every pair or the tool shows the inequality error instead of angles.

Common uses

  • Calculate the area of a triangular land plot
  • Find all angles of a triangle from three measured side lengths
  • Verify a triangle is right-angled (using the Pythagorean theorem)
  • Compute the perimeter for fencing or framing purposes

Frequently asked questions

What is Heron's formula for triangle area?

Heron's formula: Area = √(s(s−a)(s−b)(s−c)), where a, b, c are side lengths and s = (a+b+c)/2 is the semi-perimeter. It requires only the three side lengths and no angles or heights.

What is the area of a triangle with sides 5, 6, and 7?

Semi-perimeter s = 9. Heron gives area √(9 × 4 × 3 × 2) = √216 ≈ 14.6969 square units. Enter 5, 6, and 7 to see area, angles near 44.4°, 57.1°, and 78.5°, and perimeter 18 on the page.

How does the calculator know if a triangle is equilateral?

It compares the three inputs. Equal sides such as 6, 6, and 6 mark Equilateral and give 60° angles. Two equal sides mark Isosceles. If the largest angle is 90°, the badge reads Right.

Can I use this tool with only two sides known?

No. This page needs all three side lengths. For two sides and a right angle, use the right triangle calculator. For two angles and a side, use the law of sines calculator instead.

Related calculators

Maintained by J Jaya Prakash · Last updated: October 2026