Perimeter

On this page

How to work out the perimeter of rectangles, triangles, L-shapes and shapes on a grid, how to find a missing side from the perimeter, including sides written with a letter, and how to solve fencing and cost problems.

Perimeter in the exam

The perimeter of a shape is the total distance all the way round its edge. You find it by adding the lengths of all its sides.

Early in a paper, you may be given a shape with its sides marked, or a shape drawn on a centimetre grid, and asked to work out its perimeter, for 1 or 2 marks.

Harder questions, worth 3 to 5 marks, give you the perimeter and ask for a missing side. They may join shapes together, write the sides using a letter such as x, or ask how much fencing to buy and what it costs.

The diagrams are usually not drawn accurately, so don't measure them. Work out every length from the numbers you are given.

What perimeter means

Imagine walking all the way round the edge of a shape and back to where you started. The distance you walk is the perimeter.

On a centimetre grid, count the edges of the squares round the outside, not the squares inside. This rectangle has perimeter 5+3+5+3=16 cm. The 15 squares inside are its area, which is a different thing.

Perimeter is a length, so it is measured in mm, cm or m. Area is measured in square units, such as \text{cm}^2

Start at one corner and go round the shape in order, ticking each side as you add it. Then no side is missed and none is counted twice.

Worked example 1: A shape on a centimetre grid

The shape is drawn on a centimetre grid. Work out the perimeter of the shape.

  1. Each square is 1 cm wide, so each square edge along the outline is 1 cm.
  2. Start at the bottom left corner and go round: along the bottom 6, up the right 3, then across 2, down 2, across 2, up 2, across 2 and down the left 3
  3. The sides are 6+3+2+2+2+2+2+3
  4. Your turn. Add the eight sides. What is the perimeter, in centimetres?

    6+3+2+2+2+2+2+3=22

  5. Check: the two sides inside the gap, going down 2 and up 2, are part of the edge, so they are counted.
  6. Answer: 22\text{ cm}

Rectangles, squares and regular shapes

The opposite sides of a rectangle are equal, so a diagram often marks only the length and the width. The perimeter is two lengths and two widths:

P=2l+2w

where l is the length and w is the width.

All four sides of a square are equal, so its perimeter is 4 times one side. With sides of 8 m, the perimeter is 4\times8=32 m.

In a regular shape, all the sides are the same length. A regular pentagon has 5 equal sides and a regular hexagon has 6. Multiply one side by the number of sides.

Tick marks on sides show that they are equal. So a side with the same tick mark as a 6 cm side is also 6 cm long.

Use one unit for every side. To change mm to cm, divide by 10. For example, a regular hexagon with sides of 45 mm has perimeter 6\times45=270 mm, which is 27 cm.

Worked example 2: The perimeter of a rectangle

The diagram shows a rectangle. Work out the perimeter of the rectangle.

  1. Only two sides are marked, but opposite sides of a rectangle are equal.
  2. So the four sides are 12, 7.5, 12 and 7.5 cm.
  3. Your turn. Add the four sides. What is the perimeter, in centimetres?

    12+7.5+12+7.5=39

  4. Check with the formula: 2\times12+2\times7.5=24+15=39
  5. Answer: 39\text{ cm}

L-shapes and joined shapes

In an L-shape every corner is a right angle, so each side goes straight across or straight up and down. It has six sides, and usually some of them are not marked.

Find each missing side from the sides you know. The sides across the top add up to the side across the bottom, and the heights on one side add up to the height on the other. If the whole width is 10 m and one part of the top is 6 m, the other part is 10-6=4 m.

When shapes are joined, the edges where they touch are inside the new shape, so they are not part of its perimeter. Don't just add the perimeters of the separate pieces.

Each square has perimeter 20 cm, but the joined shape has perimeter 10+5+10+5=30 cm, not 40 cm. The two 5 cm edges that touch are inside.

Worked example 3: The perimeter of an L-shape

The diagram shows an L-shape. All its corners are right angles. Work out the perimeter of the L-shape.

  1. The L-shape has six sides, but only four are marked.
  2. Your turn. The side going across in the middle is not marked. What is its length, in centimetres?

    Missing side across: 12-5=7\text{ cm}

  3. Missing side up and down: 9-4=5\text{ cm}
  4. Go round all six sides: 12+9+5+5+7+4=42
  5. Check: the missing sides fill the gaps, so the perimeter is the same as a 12 by 9 rectangle: 2\times12+2\times9=42
  6. Answer: 42\text{ cm}

Working backwards from a perimeter

Sometimes you are given the perimeter and asked for a missing side. Add the sides you know, then subtract from the perimeter. For example, a triangle with perimeter 30 cm and sides of 8 cm and 13 cm has a third side of 30-8-13=9 cm.

For a rectangle, take off both widths first, then halve what is left to get one length. Only divide the perimeter by 4 when the shape is a square.

When the sides are written with a letter, add them to make an expression for the perimeter. Collect like terms, make it equal to the perimeter you are given, then solve the equation.

Finding x is often not the end. Read the question again: it may want the length of one side, so put your value of x back in.

Worked example 4: Finding the length of a rectangle

A square has sides of 9 cm. A rectangle is 5 cm wide. The square and the rectangle have the same perimeter. Work out the length of the rectangle.

  1. Perimeter of the square: 4\times9=36\text{ cm}
  2. So the rectangle's perimeter is also 36 cm. Its two widths use 5+5=10 cm of it.
  3. Your turn. How many centimetres of the 36 cm are left for the two lengths?

    36-10=26 cm for the two lengths.

  4. The two lengths are equal, so one length is 26\div2=13 cm.
  5. Check: 13+5+13+5=36
  6. Answer: 13\text{ cm}

Worked example 5: Sides written with x

The diagram shows a rectangle. The length of the rectangle is (3x-2) cm and the width is (x+4) cm. The perimeter of the rectangle is 44 cm. Work out the length of the rectangle.

  1. A rectangle has two lengths and two widths, so add each one twice: 3x-2+3x-2+x+4+x+4
  2. Collect like terms: the perimeter is 8x+4. It is 44 cm, so 8x+4=44
  3. Your turn. Solve 8x+4=44. What is x?

    8x=40, so x=5

  4. Length =3x-2=3\times5-2=13
  5. Check: the width is 5+4=9, and 13+9+13+9=44
  6. Answer: 13\text{ cm}

Fencing, rope and cost

Fencing, edging, rope and ribbon go round the edge of something, so these are perimeter questions. Turf, paint and tiles cover a surface, so those are area questions.

Read which sides need fencing. Leave out a side along a wall, and subtract the width of a gate.

Fencing is often sold in panels or rolls of one length. Divide the length you need by the length of one panel, then round up, because you can't buy part of one. Then work out the cost.

Worked example 6: Buying rope for a vegetable plot

A rectangular vegetable plot is 7.5 m long and 4.5 m wide. One long side is against a wall. Rope is put along the other three sides. Rope is sold in 5 m lengths, costing £3.80 each. Work out the cost of the rope needed.

  1. The rope goes along three sides: two widths and one length.
  2. Rope needed: 4.5+7.5+4.5=16.5\text{ m}
  3. Number of lengths: 16.5\div5=3.3
  4. Your turn. How many 5 m lengths of rope must be bought?

    4 lengths, because 3 lengths give only 15 m.

  5. Cost: 4\times\pounds 3.80=\pounds 15.20
  6. Answer: \pounds 15.20

Common mistakes

  • Adding only the numbers you can see. Work out every side that is not marked, then add all of them.
  • Adding the perimeters of the separate pieces. Edges where shapes touch are inside the shape, so leave them out.
  • Working out the area instead. Perimeter is the distance round the edge, so add the sides; don't multiply them.
  • Dividing a rectangle's perimeter by 4. Take off the two sides you know, then halve what is left.
  • Stopping before the question is answered. If you have found x or a perimeter, check whether the question wants a side, a number of panels or a cost.
  • Making one side equal to the perimeter. Add all the sides to make the perimeter first, then make that equal to the total.

Practice questions