Rectangle Area Calculator

Enter a length and a width to get the area, perimeter and diagonal of a rectangle.

Inputs

The two sides

Try an example

Area

40 m²

Lengths are in m, so the area is in m².

Perimeter
26 m
Diagonal
9.434 m

d = 9.434length = 8 mwidth = 5 m

Step-by-step solution

  1. The area is length times width.

    A = l × w = 8 × 5 = 40 m²

  2. The perimeter is twice the length plus width, because each side appears twice.

    P = 2(l + w) = 2 × (8 + 5) = 26 m

  3. The diagonal and the two sides form a right triangle, so the Pythagorean theorem gives the diagonal.

    d = √(l² + w²) = √(64 + 25) = √89

  4. Take the square root.

    d = 9.434 m

Formulas used

A = l × w area

P = 2(l + w) perimeter

d = √(l² + w²) diagonal, from the Pythagorean theorem

l
the length
w
the width
d
the diagonal, corner to opposite corner

Area counts how many unit squares fit inside. A rectangle 8 units long and 5 wide holds 5 rows of 8 squares, which is 40. That is all multiplication is doing here.

Scaling shows how area behaves. Double both sides and the perimeter doubles, but the area becomes four times as large, because there are twice as many rows and each row is twice as long.

Worked example: a room 8 m by 5 m

Length l = 8 m and width w = 5 m.

A = 8 × 5 = 40 m²

P = 2 × (8 + 5) = 26 m

d = √(8² + 5²) = √(64 + 25) = √89 ≈ 9.434 m

The area, 40 m², is what a flooring order depends on. The perimeter, 26 m, is the length of skirting board before you subtract doorways.

The diagonal, about 9.43 m, is the longest straight line that fits in the room. It also gives a quick squareness check when you lay out a floor: if opposite sides match and both diagonals match, the corners are right angles.

Areas of familiar rectangles

Paper sizes and playing fields are handy reference points. A 3 by 4 rectangle has a diagonal of exactly 5, the smallest whole-number case of the Pythagorean theorem.

RectangleAreaPerimeterDiagonal
3 × 4 m12 m²14 m5 m
5 × 5 m (a square)25 m²20 m7.0711 m
8 × 5 m room40 m²26 m9.434 m
10 × 6 ft60 ft²32 ft11.6619 ft
A4 paper, 29.7 × 21 cm623.7 cm²101.4 cm36.3743 cm
US Letter paper, 11 × 8.5 in93.5 in²39 in13.9014 in
Football pitch, 105 × 68 m7140 m²346 m125.096 m

Frequently asked questions

What is the difference between area and perimeter?

Area is the amount of surface inside the rectangle, measured in square units. Perimeter is the distance around the outside, measured in ordinary length units. Flooring and paint depend on area. Fencing and skirting board depend on perimeter.

How is the diagonal calculated?

The diagonal cuts the rectangle into two right triangles whose legs are the length and the width, so the Pythagorean theorem gives d = √(l² + w²). A 3 by 4 rectangle has a diagonal of 5.

Does it matter which side is the length?

No. Area, perimeter and diagonal give the same answers if you swap the two. The longer side is usually called the length, but the formulas do not care.

Is a square a rectangle?

Yes. A square is a rectangle whose sides are all equal, so everything on this page works for it. The calculator mentions it when the length and width match.

What if I know the area and one side?

Divide the area by the known side to get the other one. A 40 m² rectangle that is 8 m long is 40 / 8 = 5 m wide.

Why does the area unit have a small 2?

Multiplying a length by a length gives a length squared, so metres become square metres. Square units do not convert like lengths: 1 m is 100 cm, but 1 m² is 100 × 100 = 10,000 cm².