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 , and because opposite sides are equal, it collapses to
Opposite sides are equal because a rectangle has four right angles. The interior angles of a polygon with four sides add to , 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 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 is the natural form: it is the half-perimeter, doubled.
The most common error is writing , 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 , so , 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
Answer:
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 ft by ft. Rewrite with a common denominator: and . Then
As a decimal check, and .
The trap with units is that both sides must be in the same unit before you add. A rectangle that is m by cm is not . Convert m to cm, then cm, which is 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 , dividing by 2 gives , so
The usual mistake is subtracting the known side from directly. That leaves , which is too much. Halve first.
- Halve the perimeter to get .
- Subtract the side you know.
- Plug both sides back into to confirm.
Example 2. A rectangle has perimeter and one side . Half the perimeter is , so the other side is . Check: .
Before any algebra, halve . The two unknown sides must add to , which turns most problems into one subtraction.
When the sides are expressions, the same idea applies. Suppose the length is , the width is , and . Then , so and . The length is and the width is , and confirms it.
Find the Perimeter of a Rectangle From Its Diagonal or Area
If you are given a diagonal and one side, the diagonal splits the rectangle into two right triangles, so the Pythagorean theorem gives the other side: . With and , . This is a familiar Pythagorean triple, and .
Now suppose you know the area and the diagonal, but neither side. Square the half-perimeter:
So , 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 and . Then and , so and are the roots of , which factors as . The sides are and . 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 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 , the width is , so the area is . This peaks at , 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 (a dilation with scale factor ) and the perimeter is multiplied by , but the area is multiplied by . Triple the sides and the perimeter triples while the area grows ninefold.
Try this: Take a rectangle with . Write the area for widths and see which gives the largest value, and what shape it makes.
Quick check
Answer: 60 m and 216 m²
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 -values for one side and the -values for the other.
Example 3. The vertices are , , and . The horizontal side is and the vertical side is . So
The trap is the double negative. Writing drops the sign, while the correct subtraction is . 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 to has length . Find one side from two adjacent vertices, find the next side from the following pair, and then apply .
How Do You Find the Perimeter of an L-Shape?

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 by rectangle with a by corner removed. The perimeter is the same as the full rectangle’s:
To verify, walk the boundary: . The removed corner never matters, because the notch’s two edges add up to exactly the length they replace.
A notch cut into the middle of an edge, with depth , adds 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

Real problems usually add one twist: some sides do not count. A fence with one side against a wall covers only three sides, so for ft of fencing. That gives and an area of . This is a downward parabola with its peak at , so the best pen is ft wide and ft long, with area ft². Check: . Using all four sides with the same fence gives at most ft², so the wall doubles the enclosed area.
Borders work differently. A photo in by in with a in frame has an outer rectangle of by , so the outer perimeter is in, versus in for the photo. A border of width always adds to the perimeter (here ), because each of the four sides grows by 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
Answer:
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 by , , and .
- 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 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
- Find the perimeter of a rectangle that is cm long and cm wide.
Answer:
Add the sides: . Double it: . The perimeter is cm. - A rectangle measures in by in. Find its perimeter.
Answer:
Add: . Double: . The perimeter is in. - A rectangle has perimeter m and width m. Find its length.
Answer:
Halve the perimeter: . Subtract the width: . Check: . - The length of a rectangle is more than twice its width, and its perimeter is . Find both sides.
Answer: width 5, length 13
Let the width be , so the length is . Then , so and . The length is . Check: . - A rectangle has a diagonal of and an area of . Find its perimeter.
Answer:
Use . This gives , so . Then . The sides are and .
Common questions
What is the formula for the perimeter of a rectangle?
The formula is , which is the same as . 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 , then use .
How do you find the length of a rectangle from its perimeter and width?
Halve the perimeter, then subtract the width: . For and , the length is .
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 by rectangle and a by rectangle both have perimeter , but their areas are and . 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 , so the formula collapses to . The rectangle formula still works, since .