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
- 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.
- Add the sides for the perimeter. P = a + b + c. The colored strip unrolls the 3 sides into 1 line.
- Halve the perimeter and apply Heron's formula. s = P ÷ 2, then A = √(s(s−a)(s−b)(s−c)).
- 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 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
- Halve the perimeter to get the semiperimeter s. Heron's formula uses s and the 3 sides.
- 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.
- 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.
| Sides a-b-c | Perimeter P | Area A | Max area (√3⁄36)P² | Efficiency |
|---|---|---|---|---|
| 3-4-5 | 12 | 6 | 6.93 | 86.6% |
| 5-5-5 | 15 | 10.83 | 10.83 | 100% |
| 5-6-7 | 18 | 14.7 | 15.59 | 94.3% |
| 4-7-7 | 18 | 13.42 | 15.59 | 86.1% |
| 6-6-6 | 18 | 15.59 | 15.59 | 100% |
| 6-8-10 | 24 | 24 | 27.71 | 86.6% |
| 2-8-8 | 18 | 7.94 | 15.59 | 50.9% |
| 7-8-9 | 24 | 26.83 | 27.71 | 96.8% |
| 4-9-11 | 24 | 16.97 | 27.71 | 61.2% |
| 13-14-15 | 42 | 84 | 84.87 | 99% |
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.
| Area unit | Value | From 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.