Skip to content
DoItJag

Triangle Calculator

Find the area of a triangle from its base and height, or from all three sides with Heron's formula, which also gives the perimeter and the three angles. For a right triangle, enter two sides to find the third.

What do you know?

Measured at a right angle to the base

About Triangle Calculator

Triangle Calculator answers three common questions: the area from a base and its height, the area from three sides, and the missing side of a right-angled triangle. Each answer comes with its formula and the numbers plugged in.

Base and height

Area is half the base times the height. The height must be measured at a right angle to the base, not along a sloping side. A gable wall 8 m wide and 3 m tall at the peak has an area of ½ × 8 × 3 = 12 m².

Three sides (Heron’s formula)

When the height is unknown, enter all three sides. The page first checks that they can form a triangle: each side has to be shorter than the other two combined. Sides of 2, 3 and 6 fail, because 2 + 3 is only 5. If they pass, it finds the semi-perimeter s and the area √(s(s − a)(s − b)(s − c)). It also gives the perimeter, the three angles from the law of cosines, and whether the triangle is equilateral, isosceles or scalene.

Example: sides of 7, 8 and 9 give s = 12 and an area of √(12 × 5 × 4 × 3) = √720 ≈ 26.832816.

A rearranged form of the formula keeps long, thin triangles accurate.

Right triangle (Pythagoras)

Fill in any two of leg a, leg b and hypotenuse c and leave the third blank. The hypotenuse is c = √(a² + b²); a missing leg is √(c² − b²). A ladder 5 m long with its foot 3 m from a wall reaches 4 m up. The hypotenuse must be the longest side, and the page warns you if it is not.

Units and rounding

Pick mm, cm, m, km, in, ft, yd or mi as a label. Lengths use that unit and areas its square; nothing is converted, so keep inputs consistent. Results show up to 6 decimal places, angles in degrees. For rectangles and circles see the Rectangle & Square Area Calculator and the Circle Calculator.

How to use Triangle Calculator

  1. Choose base and height, three sides, or right triangle.
  2. Enter the measurements and pick the length unit.
  3. Read the area, perimeter, angles or missing side, with the working.

Privacy: how it works

Calculations run in your browser. Nothing you type is sent anywhere.

Frequently asked questions

What is Heron's formula?

It gives the area from the three sides. Work out s, half the perimeter, then area = √(s(s − a)(s − b)(s − c)). For sides 3, 4 and 5, s = 6 and the area is √(6 × 3 × 2 × 1) = 6.

Why does it say my sides cannot make a triangle?

Every side must be shorter than the other two added together. Sides of 2, 3 and 6 fail because 2 + 3 = 5 is less than 6; the two short sides cannot meet.

How do I find the missing side of a right triangle?

Choose right triangle and leave the unknown side empty. For the hypotenuse it uses c = √(a² + b²); for a leg, a = √(c² − b²). The hypotenuse must be the longest side.