Geometry

Perimeter of a Rectangle

The perimeter of a rectangle is P=2(l+w)P = 2(l + w): add the length and the width, then double the result. It is the total distance around the outside, measured in ordinary length units such as cm, ft or miles.

P=2(l+w)=2l+2wP = 2(l + w) = 2l + 2w

Try it with your numbers

Show every step

The formula is short, but the questions built around it are not: missing sides, mixed units, diagonals, L-shapes and fences. Each one below turns on a single idea, and most lost points come from a handful of predictable slips.

Perimeter of a Rectangle Formula and Why It Works

Walk once around the edge of a rectangle and you travel a length, a width, a length, then a width. That gives l+w+l+wl + w + l + w, and because opposite sides are equal, it collapses to

P=2l+2w=2(l+w).P = 2l + 2w = 2(l + w).

Opposite sides are equal because a rectangle has four right angles. The interior angles of a polygon with four sides add to 360∘360^\circ, and four right angles use that total exactly, which forces each pair of opposite sides to be parallel and equal.

Here is the cleanest way to picture the factor of 2. The quantity l+wl + w is the distance from one corner to the opposite corner if you travel along the edges. There are two such routes (around either way), and together they make the whole loop. That is why 2(l+w)2(l + w) is the natural form: it is the half-perimeter, doubled.

The most common error is writing 2l+w2l + w, or doubling only one side. Parentheses matter here, and the order of operations practice problems are a good place to drill that habit. A square is the special case l=w=sl = w = s, so P=4sP = 4s, and the same loop idea applies. Where perimeter adds, area multiplies: see the area of a rectangle and the area of a square for that side of the story.

Quick check

A student finds the perimeter of a 77 ft by 33 ft rectangle as 2⋅7+3=172 \cdot 7 + 3 = 17 ft. What is the correct perimeter?

Perimeter of a Rectangle With Fractions, Decimals or Mixed Units

The formula does not change when the numbers get messy. Add first, then double. Doing the addition inside the parentheses first keeps the arithmetic to one common denominator.

Example 1. A garden bed is 3123\frac{1}{2} ft by 2342\frac{3}{4} ft. Rewrite with a common denominator: 312=1443\frac{1}{2} = \frac{14}{4} and 234=1142\frac{3}{4} = \frac{11}{4}. Then

P=2(144+114)=2⋅254=252=1212 ft.P = 2\left(\frac{14}{4} + \frac{11}{4}\right) = 2 \cdot \frac{25}{4} = \frac{25}{2} = 12\frac{1}{2} \text{ ft}.

As a decimal check, 3.5+2.75=6.253.5 + 2.75 = 6.25 and 2⋅6.25=12.52 \cdot 6.25 = 12.5.

The trap with units is that both sides must be in the same unit before you add. A rectangle that is 1.51.5 m by 4040 cm is not 1.5+401.5 + 40. Convert 1.51.5 m to 150150 cm, then P=2(150+40)=380P = 2(150 + 40) = 380 cm, which is 3.83.8 m. Pick whichever unit the question asks for and convert once, at the start.

How Do You Find a Missing Side From the Perimeter?

Run the formula backwards. Since P=2(l+w)P = 2(l + w), dividing by 2 gives l+w=P2l + w = \frac{P}{2}, so

w=P2−l.w = \frac{P}{2} - l.

The usual mistake is subtracting the known side from PP directly. That leaves w+l+ww + l + w, which is too much. Halve first.

  1. Halve the perimeter to get l+wl + w.
  2. Subtract the side you know.
  3. Plug both sides back into 2(l+w)2(l + w) to confirm.

Example 2. A rectangle has perimeter 5454 and one side 1717. Half the perimeter is 2727, so the other side is 27−17=1027 - 17 = 10. Check: 2(17+10)=542(17 + 10) = 54.

Half-perimeter shortcut

Before any algebra, halve PP. The two unknown sides must add to P2\frac{P}{2}, which turns most problems into one subtraction.

When the sides are expressions, the same idea applies. Suppose the length is 3x+23x + 2, the width is x+4x + 4, and P=60P = 60. Then (3x+2)+(x+4)=30(3x + 2) + (x + 4) = 30, so 4x+6=304x + 6 = 30 and x=6x = 6. The length is 2020 and the width is 1010, and 2(20+10)=602(20 + 10) = 60 confirms it.

Find the Perimeter of a Rectangle From Its Diagonal or Area

If you are given a diagonal dd and one side, the diagonal splits the rectangle into two right triangles, so the Pythagorean theorem gives the other side: w=d2−l2w = \sqrt{d^2 - l^2}. With d=13d = 13 and l=12l = 12, w=169−144=5w = \sqrt{169 - 144} = 5. This is a familiar Pythagorean triple, and P=2(12+5)=34P = 2(12 + 5) = 34.

Now suppose you know the area and the diagonal, but neither side. Square the half-perimeter:

(l+w)2=l2+w2+2lw=d2+2A.(l + w)^2 = l^2 + w^2 + 2lw = d^2 + 2A.

So P=2d2+2AP = 2\sqrt{d^2 + 2A}, and no side lengths are needed at all. This is the fastest route, and it avoids solving a quadratic.

If you know area and perimeter instead, you need the actual sides. Take A=24A = 24 and P=20P = 20. Then l+w=10l + w = 10 and lw=24lw = 24, so ll and ww are the roots of t2−10t+24=0t^2 - 10t + 24 = 0, which factors as (t−4)(t−6)=0(t - 4)(t - 6) = 0. The sides are 44 and 66. When the numbers do not factor so nicely, the quadratic formula practice problems cover what to do next.

Perimeter vs Area: Why Equal Perimeters Give Different Areas

Perimeter and area measure different things, and they do not move together. Fix the perimeter at 2020 and vary the shape:

Length Width Perimeter Area
9 1 20 9
8 2 20 16
7 3 20 21
6 4 20 24
5 5 20 25

With P=20P = 20, the width is 10−l10 - l, so the area is l(10−l)l(10 - l). This peaks at l=5l = 5, which is the square. For any fixed perimeter, the square encloses the most area. Students who assume a longer rectangle “holds more” are usually mixing the two ideas up.

Scaling shows the difference sharply. Multiply every side by kk (a dilation with scale factor kk) and the perimeter is multiplied by kk, but the area is multiplied by k2k^2. Triple the sides and the perimeter triples while the area grows ninefold.

Try this: Take a rectangle with P=30P = 30. Write the area for widths 2,4,6,7.52, 4, 6, 7.5 and see which gives the largest value, and what shape it makes.

Quick check

A 66 m by 44 m rectangle is enlarged by a scale factor of 33. What are the new perimeter and area?

Perimeter of a Rectangle on a Coordinate Grid With Negatives

On a grid, side lengths come from coordinate differences, and the sign does not matter because length is always positive. For a rectangle with sides parallel to the axes, subtract the xx-values for one side and the yy-values for the other.

Example 3. The vertices are (−3,2)(-3, 2), (4,2)(4, 2), (4,−1)(4, -1) and (−3,−1)(-3, -1). The horizontal side is ∣4−(−3)∣=7|4 - (-3)| = 7 and the vertical side is ∣2−(−1)∣=3|2 - (-1)| = 3. So

P=2(7+3)=20.P = 2(7 + 3) = 20.

The trap is the double negative. Writing 4−3=14 - 3 = 1 drops the sign, while the correct subtraction is 4−(−3)=74 - (-3) = 7. Counting grid squares is a quick way to catch it.

If the rectangle is tilted, the sides are no longer horizontal or vertical, so use the distance formula, which is the Pythagorean theorem again. For example, the segment from (0,0)(0, 0) to (3,4)(3, 4) has length 32+42=5\sqrt{3^2 + 4^2} = 5. Find one side from two adjacent vertices, find the next side from the following pair, and then apply 2(l+w)2(l + w).

How Do You Find the Perimeter of an L-Shape?

L-shape with a corner cut out has the same perimeter 48 as its full 15 by 9 rectangle
Slide the notch edges out to the bounding box and the perimeter is just 2(15 + 9) = 48.

An L-shape is a rectangle with a rectangular corner removed, and there is a neat shortcut. Slide the notched edges outward until they meet the edges of the bounding rectangle. The shape’s perimeter equals the perimeter of the full rectangle around it.

Take a 1515 by 99 rectangle with a 66 by 44 corner removed. The perimeter is the same as the full rectangle’s:

P=2(15+9)=48.P = 2(15 + 9) = 48.

To verify, walk the boundary: 15+9+(15−6)+4+6+(9−4)=15+9+9+4+6+5=4815 + 9 + (15 - 6) + 4 + 6 + (9 - 4) = 15 + 9 + 9 + 4 + 6 + 5 = 48. The removed corner never matters, because the notch’s two edges add up to exactly the length they replace.

When the slide trick fails

A notch cut into the middle of an edge, with depth dd, adds 2d2d to the perimeter. A hole inside the shape adds its own full perimeter.

The shortcut works only for corner cuts and staircase outlines whose sides are all horizontal or vertical. For any other outline, add each segment individually.

Fence and Frame Problems With Rectangle Perimeter

Fence pen against a wall 15 by 30 encloses 450 square feet versus 225 for a square
The same 60 ft of fencing encloses 450 ft² against a wall but only 225 ft² as a free-standing square.

Real problems usually add one twist: some sides do not count. A fence with one side against a wall covers only three sides, so 2w+l=602w + l = 60 for 6060 ft of fencing. That gives l=60−2wl = 60 - 2w and an area of A=w(60−2w)A = w(60 - 2w). This is a downward parabola with its peak at w=15w = 15, so the best pen is 1515 ft wide and 3030 ft long, with area 450450 ft². Check: 2(15)+30=602(15) + 30 = 60. Using all four sides with the same fence gives at most 15⋅15=22515 \cdot 15 = 225 ft², so the wall doubles the enclosed area.

Borders work differently. A photo 88 in by 1010 in with a 22 in frame has an outer rectangle of 1212 by 1414, so the outer perimeter is 2(12+14)=522(12 + 14) = 52 in, versus 3636 in for the photo. A border of width xx always adds 8x8x to the perimeter (here 8⋅2=168 \cdot 2 = 16), because each of the four sides grows by 2x2x in total, regardless of the original size.

Read what the problem asks: the outside edge, the inside edge, or only the sides that need material. Draw the shape and mark the sides that count before you write any equation.

Quick check

You have 100100 ft of fencing for a rectangular pen with one side against a wall (no fence there). The two sides that meet the wall are 2020 ft each. How long is the side parallel to the wall?

How Can You Check a Rectangle Perimeter Answer?

A few quick tests catch most errors before you hand in the work:

  • Bounds: the perimeter must be more than twice the longer side and less than four times the longer side. For 1212 by 55, P=34P = 34, and 24<34<4824 < 34 < 48.
  • Units: perimeter is linear (ft, not ft²). A square-unit answer means you computed area.
  • Parity: with whole-number sides, the perimeter is always even.
  • Reverse: halve your answer and subtract one side. You should get the other.

The formula also separates from its look-alikes. For a parallelogram, the perimeter is 2(a+b)2(a + b) using the two slanted side lengths, not the height. For a circle, the equivalent measure is the circumference. And in three dimensions, the same two-of-each pattern appears in the surface area of a rectangular prism, where opposite faces match.

If an answer fails a check, look first at the three usual causes: forgetting to double, adding mismatched units, and subtracting the wrong way in a missing-side problem.

Practice problems

0 of 5 solved

  1. Find the perimeter of a rectangle that is 99 cm long and 44 cm wide.

  2. A rectangle measures 5345\frac{3}{4} in by 2142\frac{1}{4} in. Find its perimeter.

  3. A rectangle has perimeter 4646 m and width 88 m. Find its length.

  4. The length of a rectangle is 33 more than twice its width, and its perimeter is 3636. Find both sides.

  5. A rectangle has a diagonal of 1717 and an area of 120120. Find its perimeter.

Common questions

What is the formula for the perimeter of a rectangle?

The formula is P=2(l+w)P = 2(l + w), which is the same as P=2l+2wP = 2l + 2w. Add the length and width, then double the result. The answer is in ordinary length units such as cm or ft.

How do you find the perimeter of a rectangle if you only know the area?

The area alone is not enough, because many rectangles share one area. You also need one side: find the other side with w=A÷lw = A \div l, then use P=2(l+w)P = 2(l + w).

How do you find the length of a rectangle from its perimeter and width?

Halve the perimeter, then subtract the width: l=P2−wl = \frac{P}{2} - w. For P=46P = 46 and w=8w = 8, the length is 23−8=1523 - 8 = 15.

Is the perimeter of a rectangle measured in square units?

No. Perimeter is a distance, so it uses linear units like inches or meters. Square units belong to area.

Can two rectangles have the same perimeter but different areas?

Yes. A 11 by 99 rectangle and a 55 by 55 rectangle both have perimeter 2020, but their areas are 99 and 2525. For a fixed perimeter, the square has the largest area.

What is the perimeter of a square compared to a rectangle?

A square is a rectangle with l=w=sl = w = s, so the formula collapses to P=4sP = 4s. The rectangle formula still works, since 2(s+s)=4s2(s + s) = 4s.

Up next