geometry calculators

Rectangle Perimeter Calculator

Calculate the total boundary length of a rectangle by entering its length and width. Use it for fencing a yard, framing a picture, or any project requiring the distance around a rectangular space.

About this calculator

The perimeter of a rectangle is the total distance around its outer edge. Because a rectangle has two pairs of equal sides, the formula is P = 2 × (length + width). You simply add the length and width together, then double the result to account for both pairs of sides. This is useful any time you need to know how much material surrounds a rectangular area — such as fencing, baseboard trim, or picture frames. The formula assumes all four corners are right angles (90°), which is the defining property of a rectangle. Knowing the perimeter is distinct from knowing the area; perimeter is a linear measurement while area covers the interior space.

How to use

Imagine you want to fence a rectangular backyard that is 12 meters long and 8 meters wide. Enter 12 in the Length field and 8 in the Width field. The calculator computes P = 2 × (12 + 8) = 2 × 20 = 40 meters. You would need 40 meters of fencing to enclose the yard. If you add a gate that is 1 meter wide, you would purchase 39 meters of fencing. Adjust either dimension to instantly see how the perimeter changes.

Frequently asked questions

What is the formula for the perimeter of a rectangle and how does it work?

The perimeter of a rectangle is calculated as P = 2 × (length + width). This works because a rectangle has two sides of equal length and two sides of equal width, so you add one of each and multiply by 2. For example, a rectangle 10 m by 4 m has a perimeter of 2 × (10 + 4) = 28 m. It is one of the most straightforward formulas in geometry and applies to any shape with four right-angled corners.

How is the perimeter of a rectangle different from its area?

The perimeter measures the total length of the boundary around the rectangle, given in linear units like meters or feet. The area measures the space inside the rectangle, expressed in square units like m² or ft². For a 10 m × 4 m rectangle, the perimeter is 28 m but the area is 40 m². You use perimeter when buying edging, fencing, or trim, and area when buying flooring, paint, or turf.

When would I need to calculate the perimeter of a rectangle in real life?

Rectangle perimeter calculations come up in many practical situations. Homeowners use it to determine how much fencing they need for a rectangular yard or how much trim is needed for a room. Builders and carpenters calculate perimeter when framing walls or cutting moldings. Artists and framers use it to size picture frames. Even athletes use it — a standard running track is designed around the perimeter of an inner rectangular field.