EN

Rectangle Area and Perimeter Calculator

The area and perimeter of a rectangle come from just two measurements: its length and its width. A square is simply a special case of rectangle — both sides equal — so the same formula applies without any change.

Enter the length and width: the calculator returns the area, the perimeter, and the length of the diagonal.

Length and width

Dimensions

For a square, enter the same value as the length.

length = 8 mwidth = 5 m
Sample diagram. It redraws itself to scale after the calculation.

Starred terms are unpacked in the glossary at the end of the article.

A square is a rectangle with equal sides

A rectangle is a four-sided figure with a right angle at every corner. Opposite sides match. That is the whole definition. Make the length equal the width and the figure is a square. The family has not changed. A square is a rectangle — the tidy case in which both measurements say the same thing. There is no separate square calculator on this site, and there should not be: the three formulae on this page already cover it.

Area, perimeter, diagonal: no second toolkit. The same number in both boxes, and the calculator flags the square, then carries on as usual. The unit selector is a label only. Length 8 and width 5 stay 8 and 5; the area comes back in that unit squared.

A square leads a double life. Four equal sides is also the definition of a rhombus. The square is the only quadrilateral that is both. Right angles and equal sides. Other rectangles do not have equal sides; other rhombi do not have right angles. Among regular polygons it is the 4-gon, nothing more exotic.

Recovering a missing side from the area

Area is a product. Undo it with a division. Area plus one side is enough to recover the other.

length = area ÷ width  ;  width = area ÷ length

A room of 12 m², 3 m wide: the length is 4 m. A plot of 600 m² with a 20 m frontage: 30 m deep. Square metres divided by metres give metres, not centimetres left on a drawing.

Area will not give the outline. 12 m² might be 4 × 3, or 6 × 2, or 12 × 1. Same carpet, wildly different skirting (14 m, 16 m, 26 m). To pin down both sides, the other length, a ratio, or the perimeter is still required.

Perimeter plus a ratio: both sides at once

Perimeter hands over a sum, not each side. P = 2(L + W), so L + W = P/2. The ratio r = L/W splits that half-sum.

W = (P ÷ 2) ÷ (1 + r)  ;  L = r × W  ;  where r = L/W

A picture frame with a 2.40 m run, ratio 3/2. Half-sum 1.20 m. Width 1.20 / 2.5 = 0.48 m, length 0.72 m. Check: 2 × (0.72 + 0.48) = 2.40. It closes.

Without a ratio, the perimeter settles nothing. Infinitely many rectangles share a given run of fencing, from a near-square down to a long thin strip. Among them, the square holds the most area. That is why a paddock “as roomy as possible” for a fixed length of wire comes out square.

The diagonal and Pythagoras

Draw one diagonal. The rectangle splits into two right-angled triangles. The legs of the right angle are L and W. The hypotenuse is the diagonal.

d= L2 + W2

The 3-4-5 case is the clean one: a 3 × 4 rectangle has a diagonal of exactly 5. No rounding. A “55-inch” television is that diagonal, in inches, not a side. A 2.20 m hallway and a 2.40 × 0.60 m cupboard: the cupboard's diagonal is √(2.40² + 0.60²) ≈ 2.47 m. It will not go through flat.

Both diagonals of a rectangle are equal. They bisect each other. They sit at right angles only in the square — which is exactly what makes a square a rhombus as well. Equal diagonals are also the on-site check that a corner is square: tape both, and they must agree.

Golden rectangles, and why A4 is a different story

The golden ratio*, φ ≈ 1.618, is (1 + √5) / 2. A golden rectangle* has length / width = φ. Cut a square off the end, side equal to the shorter side, and what remains is another golden rectangle. It nests for ever.

It turns up on bank cards, frontages, book pages. Less often than the myth suggests. A4 paper is not golden: its ratio is √2 ≈ 1.414, chosen so that a fold in half yields the next size down. Two different looks, two different numbers. ISO A sizes sit on √2 so that one step up exactly doubles the area — A3 = 2 × A4 — without changing the shape of the sheet.

The 8 × 5 default on this form comes close (8/5 = 1.6). Close enough for a sketch, not close enough to call golden. A true golden rectangle of width 5 would run to about 8.09.

An 8-by-5 walkthrough

Length 8, width 5, same unit. Three lines and the figure is done.

area = 8 × 5 = 40

perimeter = 2 × (8 + 5) = 26

diagonal = √(8² + 5²) = √89 ≈ 9.434

Ratio 8/5 = 1.6, a whisker under φ. If those 8 and 5 are metres, the result is 40 m² and a 26 m walk around. If they are centimetres, 40 cm² and 26 cm. The number 40 is mute until the unit sits beside it.

Recover the width from area 40 and length 8: 40 / 8 = 5. Recover the sides from perimeter 26 and ratio 8/5: half-sum 13, width 13 / 2.6 = 5, length 8. Three routes, one rectangle.

Doubling the sides: perimeter scales, area squares

Double length and width and the perimeter doubles. The area goes up fourfold. A 4 × 3 rectangle (area 12, perimeter 14) becomes 8 × 6 (area 48, perimeter 28). Factor 2 on the outline, factor 4 on the floor. That is the square of the scale factor.

Triple the sides: perimeter × 3, area × 9. A drawing “twice as big” therefore wants four times the paint, not twice. The same scaling holds for a triangle or a regular polygon: area follows the square of the lengths, perimeter follows the lengths themselves. A photo enlargement “× 2” on a side therefore eats four times the paper — which is why A3, not a stretched A4, is the next sheet up.

Metres and square metres are different kinds of quantity

Perimeter is a length. Area is a product of two lengths. A metre is never added to a square metre. Obvious on a whiteboard; less so in a site spreadsheet with mixed columns.

Convert before multiplying. 3.20 m × 80 cm is not 256. It is 3.20 × 0.80 = 2.56 m². Or 320 × 80 = 25,600 cm², which is the same once it is brought back. This calculator does not convert the typed numbers; a sum on the back of a delivery note will not forgive a missing factor of 100 or 1,000 either.

A diagonal is not an area. √(L² + W²) lives in the same unit as L and W. If the figure “looks like” the area, that is a coincidence of numbers, not an identity.

Glossary

Golden ratio (φ)
The number (1 + √5) / 2 ≈ 1.618. A line divided in this ratio has the whole to the longer part as the longer part to the shorter.
Golden rectangle
A rectangle whose length-to-width ratio is φ. Cutting a square off the shorter side leaves another golden rectangle.

Related calculators