Triangle area formula and perimeter

How triangle area formula and perimeter calculator works?

The triangle area formula and perimeter calculator works in 4 steps: it adds the 3 sides for the perimeter, halves the perimeter for the semiperimeter, applies Heron's formula for the area, and compares the area with the equilateral triangle of the same perimeter.

You enter

  • Side a (BC)
  • Side b (CA)
  • Side c (AB)
  • Length unit: mm, cm, m, km, in, ft, or yd

The calculator applies

P = a + b + c, A = √(s(s−a)(s−b)(s−c))

The perimeter is a length. The area is a squared unit.

You get

  • Area in square units
  • Perimeter in length units
  • Semiperimeter and area ÷ perimeter
  • Largest possible area for that perimeter
  1. Enter the 3 sides. Type sides a, b, and c, or drag corners B and C. The 2 shorter sides must add up to more than the longest side.
  2. Add the sides for the perimeter. P = a + b + c. The colored strip unrolls the 3 sides into 1 line.
  3. Halve the perimeter and apply Heron's formula. s = P ÷ 2, then A = √(s(s−a)(s−b)(s−c)).
  4. Compare with the equilateral triangle. The dashed triangle has the same perimeter and the largest possible area, (√3 ÷ 36) P².

Triangle area formula and perimeter formula

The triangle area and perimeter formulas are P = a + b + c for the perimeter and A = √(s(s−a)(s−b)(s−c)) for the area, where s = P ÷ 2.

Triangle with sides 5, 6 and 7 and its perimeter unrolled into a straight strip of length 18.a = 5b = 6c = 7perimeter unrolled: 5 + 6 + 7 = 18A = 14.70
The perimeter is the length of the 3 sides laid end to end: 5 + 6 + 7 = 18. The area is the space inside: 14.70 square units.

Triangle area and perimeter formulas: key facts

Perimeter
P = a + b + c
Semiperimeter
s = P ÷ 2
Area
A = √(s(s−a)(s−b)(s−c))
Inradius link
A = r × s
Max area for P
(√3 ÷ 36) P², equilateral
Units
P in cm, m, in, ft; A in cm², m², in², ft²

How the perimeter connects to the area in 3 steps

  1. Halve the perimeter to get the semiperimeter s. Heron's formula uses s and the 3 sides.
  2. The incircle of radius r splits the triangle into 3 triangles with heights r and bases a, b, c, so A = ½r(a + b + c) = r × s.
  3. For a fixed perimeter, the equilateral triangle has the largest area: each side is P ÷ 3, so the maximum area is (√3 ÷ 4)(P ÷ 3)² = (√3 ÷ 36) P².

Triangle area and perimeter example

A triangle has sides of 5 cm, 6 cm, and 7 cm (1.97 in, 2.36 in, 2.76 in).

P = 5 + 6 + 7 = 18 cm (7.09 in)
s = 9, A = √(9 × 4 × 3 × 2) = 14.7 cm² (2.28 in²)

An equilateral triangle with the same 18 cm perimeter has sides of 6 cm and an area of 15.59 cm², the largest area for an 18 cm perimeter.

Triangle area and perimeter formulas in Excel, Python, and Desmos

Microsoft Excel

Perimeter: =A2+B2+C2 Area: =SQRT(D2/2*(D2/2-A2)*(D2/2-B2)*(D2/2-C2))

Python (math module)

P = a + b + c s = P / 2 area = math.sqrt(s*(s-a)*(s-b)*(s-c))

Desmos / GeoGebra

P = a+b+c A = sqrt(P/2 (P/2-a)(P/2-b)(P/2-c))

Triangle area formula and perimeter conversion chart

The triangle area formula and perimeter conversion chart lists the perimeter, area, and maximum area for 10 side sets. The last column shows how close each triangle comes to the equilateral area for the same perimeter.

Perimeter, area, and efficiency for 10 side sets
Sides a-b-cPerimeter PArea AMax area (√3⁄36)P²Efficiency
3-4-51266.9386.6%
5-5-51510.8310.83100%
5-6-71814.715.5994.3%
4-7-71813.4215.5986.1%
6-6-61815.5915.59100%
6-8-10242427.7186.6%
2-8-8187.9415.5950.9%
7-8-92426.8327.7196.8%
4-9-112416.9727.7161.2%
13-14-15428484.8799%
Efficiency: area as a % of the largest area for the same perimeter3-4-586.6%5-5-5100%5-6-794.28%4-7-786.07%6-6-6100%6-8-1086.6%2-8-850.92%7-8-996.82%4-9-1161.24%13-14-1598.97%
Efficiency: area as a % of the largest area for the same perimeter

Convert the triangle area and perimeter to other units

The perimeter takes a length unit and the area takes a squared unit. 18 cm equals 180 mm, 0.18 m, 7.09 in, and 0.59 ft. The table converts the 14.70 cm² area.

Triangle area for sides 5, 6, 7 cm = 14.7 cm², converted to 6 area units
Area unitValueFrom cm²
Square millimetres (mm²)1,469.69× 100
Square centimetres (cm²)14.7× 1
Square metres (m²)0.00147÷ 10,000
Square inches (in²)2.28÷ 6.4516
Square feet (ft²)0.0158÷ 929.03
Square yards (yd²)0.001758÷ 8,361.27

Triangle area formula and perimeter FAQs

What is the formula for the area and perimeter of a triangle?

The formulas are P = a + b + c for the perimeter and A = √(s(s−a)(s−b)(s−c)) for the area, where s = P ÷ 2. Sides of 5, 6, and 7 cm give P = 18 cm (7.09 in) and A = 14.70 cm² (2.28 in²).

Can you find the area of a triangle from the perimeter alone?

No, the perimeter alone does not fix the area, except for an equilateral triangle. A perimeter of 12 fits a 3-4-5 triangle with area 6 and a 4-4-4 triangle with area 6.93. The 3 side lengths are needed.

What is the largest area for a given triangle perimeter?

The largest area for a given perimeter is (√3 ÷ 36) × P², from the equilateral triangle. A perimeter of 18 cm gives a maximum area of 15.59 cm².

What is the difference between area and perimeter?

The perimeter is the distance around the triangle in length units, and the area is the space inside in square units. A 3-4-5 triangle in metres has a perimeter of 12 m and an area of 6 m².

How does the inradius connect area and perimeter?

The inradius connects them with A = r × s, where s is half the perimeter. A 3-4-5 triangle has s = 6 and r = 1, so A = 6.

Is the triangle perimeter formula the same for every triangle?

Yes, P = a + b + c works for every triangle. An equilateral triangle shortens the formula to P = 3a, and an isosceles triangle to P = 2a + b.