Formula
Perimeter of a rectangle
Also written: perimeter formula · 2l + 2w · distance around a rectangle
The perimeter of a rectangle is twice its length plus twice its width, because opposite sides are equal. For any other shape, add every side.
What each part means
- the length
- the width
Perimeter of a rectangle calculator
Enter the length and width to find the distance around with . The steps add all four sides first, then group the equal ones.
The steps below find the perimeter of a rectangle 8 by 5, using . Turn on JavaScript to try your own measurements.
Worked example:
The perimeter is 26.
Add the four sides
The picture shows a rectangle 8 long and 5 wide. Opposite sides are equal, so the four sides, going round, are the length, the width, the length and the width.
The shortcut: group the equal sides
This is the same addition, grouped. Doubling the length and the width is quicker than adding four numbers.
Write the units
Perimeter is a distance around the outside, so it is never written in square units.
Runs on your device: nothing you type is sent or saved. Want the reasoning behind the shortcut? Read the perimeter lesson, or find the space inside with the area formula.
When to use it
You need the distance around a shape — fencing, framing, edging, trim. For shapes that are not rectangles, add the sides instead.
The general rule is simpler than the formula
For any shape with straight sides, the perimeter is the sum of the sides. That is the definition, and it never fails.
The rectangle formula is that addition grouped, nothing more:
A square has four equal sides, so for the same reason.
Units are never squared
Perimeter is a distance, so it is measured in cm or m. A perimeter given in cm² has been confused with an area, and the units alone reveal it.
Perimeter tells you almost nothing about area
The two vary independently, which surprises people.
| Rectangle | Perimeter | Area |
|---|---|---|
Same fence, triple the field. For a fixed perimeter the area is largest when the shape is squarest — which is why fields, rooms and packaging tend toward square.
Rearranged
In practice: subtract the pair you know from the perimeter, then halve what is left. A perimeter of with a length of leaves for two widths, so each is .
Read the question first
“Perimeter” and “how much fencing” are usually the same number — but not when a side is left open for a gate or a wall. See perimeter.
Lessons that teach this
- Perimeter: The Distance Around a Shape
What perimeter means, how to find it for any shape by adding the sides, the rectangle shortcut, and how to work backwards from a known perimeter.
- Area of a Rectangle: Length Times Width
Why the area of a rectangle is length times width, how to find a missing side, why area uses square units, and how to handle L-shaped figures.