Shapes and algebra
Area and perimeter calculator
Pick a shape and type its measurements. You get the area (the space inside) and the perimeter (the distance around the edge), in the unit you choose.
Press Calculate to see the answer and every step of the working.
How it works
Area counts how many unit squares fit inside a shape, so it is measured in square units like cm². Perimeter is the length of the fence you would need to go all the way around, so it is in ordinary units like cm.
For a triangle the calculator uses Heron's formula, which needs only the three side lengths and no height. For a trapezoid, a and b are the two parallel sides and the height is measured straight across between them, not along the slant. Add the two slanted sides (c and d) if you also want the perimeter.
The formula
| Shape | Area | Perimeter |
|---|---|---|
| Rectangle | l x w | 2(l + w) |
| Triangle | √(s(s-a)(s-b)(s-c)), s = half the perimeter | a + b + c |
| Circle | π r² | 2 π r |
| Trapezoid | (a + b) ÷ 2 x h | a + b + c + d |
Worked example
A notice board is 8 cm by 5 cm (a tiny one). Its area is 8 x 5 = 40 cm² and the border around it is 2 x (8 + 5) = 26 cm.
A circular rug has a radius of 7 cm. Area = π x 7² = 153.94 cm², and the circumference is 2 x π x 7 = 43.98 cm.
A triangle with sides 3, 4 and 5 m: s = 6, so the area is √(6 x 3 x 2 x 1) = √36 = 6 m².
Common questions
Why are the units squared for area?
Because area counts squares. A 3 cm by 2 cm rectangle holds six 1 cm by 1 cm squares, so its area is 6 cm².
What if I know the diameter of a circle?
Halve it to get the radius. A 10 cm wide plate has a radius of 5 cm.
Can two shapes have the same area but different perimeters?
Yes. A 1 by 16 rectangle and a 4 by 4 square both have an area of 16, but their perimeters are 34 and 16. Squares give the most area for the least fence.