Home/Calculators/Math/Perimeter Calculator

Perimeter Calculator

Find the perimeter of a rectangle from its length and width — instant and free.

perimeter-calculator
Result
—
In summary: The perimeter of a rectangle is 2 × (length + width). A rectangle 10 units long and 4 wide has a perimeter of 2 × (10 + 4) = 28 units, and an area of 10 × 4 = 40 square units.

How to find the perimeter of a rectangle

The perimeter of a rectangle is twice the sum of its sides: P = 2 × (l + w). For a rectangle 10 long and 4 wide, P = 2 × (10 + 4) = 28 units. The area is 10 × 4 = 40 square units — see the rectangle area calculator.

The doubling comes from the fact that a rectangle has two pairs of equal sides. You could equally write it as l + w + l + w; the factored form is just quicker to compute.

How to use this calculator

Enter the length and width in the same unit. The perimeter is the total distance around the shape, returned in linear units. For four-sided shapes with parallel bases see the trapezoid area calculator.

Keep perimeter and area straight: perimeter is a distance measured in metres or inches, while area is a surface measured in square units. Mixing units between the two inputs is the usual source of error.

Worked example

To fence a garden 10 m by 4 m, the perimeter is 2 × (10 + 4) = 28 metres of fencing. The enclosed area is 40 square metres.

Real jobs usually need a little more than the bare perimeter. Subtract the width of any gate, and add an allowance for overlap or waste at corners. If posts are set at fixed intervals, divide the perimeter by the spacing to estimate how many you need, rounding up and adding one for each corner. The perimeter of a circle has its own name and its own formula, covered by the circle circumference calculator.

Frequently asked questions

What is the formula for the perimeter of a rectangle?
P = 2 × (length + width). Add the two sides and double the result.
What is the perimeter of a 10 by 4 rectangle?
28 units (2 × 14).
Does this work for a square?
Yes — enter the same number for length and width, and the perimeter is 4 × side.
What units is the perimeter in?
The same linear unit you used for the sides — inches, cm, metres, etc.
Can two rectangles have the same perimeter but different areas?
Yes, and the difference can be large. A 10 by 4 rectangle and a 13 by 1 rectangle both have a perimeter of 28, but their areas are 40 and 13 square units. For a fixed perimeter, the area is greatest when the shape is closest to a square.
How this tool works

The formula behind this tool is written out in full in the sections above, so you can check the maths yourself. Every calculator on Calculorium is verified against worked examples with automated tests before it is published, and pages are reviewed as formulas or standards change. Nothing you type is sent anywhere — the calculation runs entirely in your browser. Read how we build and check these tools.

Last updated: July 27, 2026 · Calculations run in your browser. Estimates for information only.