Perimeter
Perimeter is the distance around a shape. Learn the formulas for rectangles, squares, triangles and regular polygons, how to find a missing side, how to handle composite shapes and circles, and how perimeter differs from area.
The perimeter of a shape is the total distance around its outside, and you find it by adding the lengths of all its sides. A rectangle 8 cm long and 5 cm wide has a perimeter of 8 + 5 + 8 + 5 = 26 cm, which is the formula P = 2(l + w). Perimeter is a length, so it is measured in units of length such as centimeters, meters, inches or feet, never in square units. The perimeter of a circle has its own name: the circumference.
What is perimeter?
Imagine walking all the way around a playground along its fence: the distance you walk is the perimeter. You need it whenever something goes around a shape: a fence around a yard, a frame around a picture, trim along the walls of a room, or a border around a bulletin board. The word comes from Greek: peri means “around” and metron means “measure.” Before adding, make sure all sides are in the same unit.
Perimeter of a rectangle
A rectangle has two lengths and two widths, so P = l + w + l + w = 2l + 2w. The shortest form is P = 2(l + w): add one length and one width, then double.
Perimeter of a square
All four sides of a square are equal, so P = 4s. A square with side 7 in has a perimeter of 4 × 7 = 28 in. Going backward, a square with perimeter 36 cm has sides of 36 ÷ 4 = 9 cm.
Perimeter of a triangle
Add the three sides: P = a + b + c. For special triangles there are shortcuts: an equilateral triangle has P = 3s, and an isosceles triangle with two equal legs a and base b has P = 2a + b.
If a right triangle is missing its third side, find it first with the Pythagorean theorem: legs of 5 and 12 give a hypotenuse of 13, because 5² + 12² = 25 + 144 = 169 = 13².
Perimeter of regular polygons
In a regular polygon all sides have the same length, so the perimeter is the number of sides times the side length: P = n × s.
| Polygon | Sides | Perimeter | Example with s = 4 cm |
|---|---|---|---|
| Equilateral triangle | 3 | 3s | 12 cm |
| Square | 4 | 4s | 16 cm |
| Regular pentagon | 5 | 5s | 20 cm |
| Regular hexagon | 6 | 6s | 24 cm |
| Regular octagon | 8 | 8s | 32 cm |
Perimeter of composite shapes
A composite shape (or compound shape) is made of simpler shapes, like the floor plan of an L-shaped room. To find its perimeter:
- Mark every outside edge. Edges inside the shape, where two parts touch, do not count.
- Work out any missing lengths from the ones you know: opposite sides of the whole shape must add up to the same total.
- Add all the outside edges, going around the shape once so that you do not miss or repeat an edge.
Circumference: the perimeter of a circle
The distance around a circle is its circumference. It is always a little more than three times the diameter; the exact factor is the number π (pi) ≈ 3.14159. So C = πd, or, with the radius r = d/2, C = 2πr.
The area of a circle, finding the radius from the circumference and more examples are on area of a circle.
Perimeter vs. area
| Perimeter | Area | |
|---|---|---|
| Measures | the distance around the shape | the space inside the shape |
| Units | cm, m, in, ft | cm², m², in², ft² (square units) |
| Rectangle 8 × 5 | 2(8 + 5) = 26 | 8 × 5 = 40 |
| Real life | fence, frame, trim | carpet, paint, lawn |
Perimeter and area do not decide each other. All of these rectangles have a perimeter of 24 cm, but their areas grow from 11 cm² to 36 cm²:
| Length × width | 1 × 11 | 2 × 10 | 3 × 9 | 4 × 8 | 5 × 7 | 6 × 6 |
|---|---|---|---|---|---|---|
| Area (cm²) | 11 | 20 | 27 | 32 | 35 | 36 |
For a fixed perimeter, the square encloses the most area of all rectangles. The other way around also holds: rectangles with an area of 36 cm² have perimeters from 24 cm (6 × 6) up to 74 cm (1 × 36).
Common mistakes
- Adding only one length and one width for a rectangle. 8 + 5 = 13 is half the perimeter; double it.
- Mixing units. A side of 2 m and a side of 50 cm must be written as 200 cm and 50 cm (or 2 m and 0.5 m) before adding.
- Writing square units. Perimeter is a length: 26 cm, not 26 cm².
- Counting inside edges in a composite shape, or forgetting the sides you had to work out.
- Using the radius in C = πd. With the radius, the formula is C = 2πr.
Practice problems
- Find the perimeter of a rectangle 12 cm long and 7 cm wide.
- Find the perimeter of a square with sides of 9.5 m.
- A triangle has sides of 7 in, 10 in and 12 in. Find its perimeter.
- Find the perimeter of a regular hexagon with sides of 5 cm.
- A square has a perimeter of 52 ft. How long is each side?
- A rectangle has a perimeter of 46 m and a length of 15 m. Find its width.
- Find the circumference of a circle with a diameter of 20 cm (use π ≈ 3.14).
- A 12 m by 9 m rectangle has a 5 m by 4 m rectangle cut out of one corner. Find the perimeter of the L-shape.
- A garden is 18 ft by 12 ft. The fence leaves a 3 ft gap for a gate. How many feet of fence are needed, and what do they cost at $8 per foot?
- A running track has two straight sides of 10 m joined by two semicircles with a diameter of 6 m. Find its length to the nearest hundredth.
Show answers
- P = 2(12 + 7) = 2 × 19 = 38 cm.
- P = 4 × 9.5 = 38 m.
- P = 7 + 10 + 12 = 29 in.
- P = 6 × 5 = 30 cm.
- s = 52 ÷ 4 = 13 ft.
- 46 ÷ 2 = 23, and 23 − 15 = 8 m.
- C = 3.14 × 20 = 62.8 cm.
- Missing sides: 9 − 4 = 5 m and 12 − 5 = 7 m. P = 12 + 5 + 5 + 4 + 7 + 9 = 42 m, the same as 2(12 + 9).
- Perimeter: 2(18 + 12) = 60 ft. Minus the gate: 60 − 3 = 57 ft. Cost: 57 × $8 = $456.
- Two semicircles make one full circle: π × 6 ≈ 18.85 m. Plus the straights: 2 × 10 = 20 m. Length ≈ 38.85 m.
Frequently asked questions
How do you find the perimeter of a shape?
Add the lengths of all the sides that form its outside edge, in the same unit. For common shapes there are formulas: 2(l + w) for a rectangle, 4s for a square, n × s for a regular polygon.
What is the formula for the perimeter of a rectangle?
P = 2(l + w), which is the same as 2l + 2w. A 40 ft by 25 ft yard has P = 2 × 65 = 130 ft.
What is the difference between perimeter and area?
Perimeter is the distance around a shape and is measured in units of length; area is the space inside and is measured in square units. An 8 cm by 5 cm rectangle has a perimeter of 26 cm and an area of 40 cm². See perimeter vs. area.
How do you find the perimeter of a circle?
The perimeter of a circle is its circumference: C = π × diameter, or 2 × π × radius. A circle with radius 5 cm has C ≈ 31.4 cm.
How do you find the perimeter of an irregular or composite shape?
Work out every missing side from the lengths you know, then add all the outside edges once. Inside edges do not count. See the L-shaped room example.
Keep learning
- Previous topic: prime numbers.
- Next topic: angles.
- All topics: math step by step.
- Circles in depth: area of a circle, and the story of π in the history of pi.
- To print: area and perimeter worksheets with answer keys.
Spotted a mistake or have a request? Send us a short message and we will take care of it.