Article

Area of a Rectangle: Formula, Perimeter and Worked Examples

The area of a rectangle is the product of two adjacent sides. This article gives the formulas for area, perimeter and diagonal, shows how to work from other data and gives four worked examples. You can check your own dimensions in the rectangle area calculator. For sides of 8 and 5 the area is 40.

Last updated:

Find the area, perimeter and diagonal in the rectangle area calculator. For a triangle use the triangle area calculator.

The area of a rectangle formula

The area of a rectangle equals the product of the lengths of two adjacent sides. You express the result in square units, such as square centimeters or square meters.

A = a · b
example: 8 · 5 = 40
perimeter: P = 2 · (a + b)

Side aSide bAreaPerimeterDiagonal
8540269.43
104402810.77
127843813.89
20153007025.00
25102507026.93

A square is a rectangle with equal sides, so its area is a² and its perimeter is 4a.

A rectangle with sides a and b and its diagonalA rectangle with sides a = 8 and b = 5. The diagonal is about 9.43 long and the area is 40.a = 8b = 5A = 40d ≈ 9.43
The area is the product of adjacent sides: 8 · 5 = 40. The diagonal splits the rectangle into two right triangles.

Try it with an example

Example: a rectangle with sides 8 and 5. Both lengths are already stored in the link to the calculator.

Side a
8
Side b
5
Result
A = 8 · 5 = 40

Open the calculator with these numbers

The calculator reads the values from the page address and shows the result right away. You can change them freely.

How the calculator works

The calculator takes two sides greater than zero and computes the area a · b, the perimeter 2 · (a + b) and the diagonal √(a² + b²), rounded to two decimal places. The unit label (cm or in) follows the Metric/US switch, but the calculator does not convert the numbers you enter. It does not find a side from the area and the diagonal, so you rearrange such data by hand first.

The perimeter and the diagonal of a rectangle

The perimeter is the sum of all four sides, P = 2 · (a + b). For sides of 8 and 5 it is 26. The diagonal joins opposite corners and follows from the Pythagorean theorem: d = √(a² + b²) = √(64 + 25) ≈ 9.43.

The theorem is explained in The Pythagorean Theorem, and you can compute the root in the square root calculator.

The area of a rectangle when you know other data

If you know the area and one side, the other side is b = A ÷ a. For A = 48 and a = 6 you get b = 8. If you know the perimeter P and one side, the other is b = P ÷ 2 − a. For P = 26 and a = 8 you get b = 5, so the area is 40.

If you know the diagonal d and a side a, the other side is b = √(d² − a²). For d = 13 and a = 5 you get b = 12 and an area of 60. For a fixed perimeter the area is largest when the rectangle is a square: for P = 20 the area 5 · 5 = 25 beats 6 · 4 = 24.

Area units: cm², m², are and hectare

You multiply in the same units in which the sides are given. Sides in meters give an area in square meters. One square meter is 10000 cm², and a hectare is 10000 m². An area of 120 m × 75 m is 9000 m², which is 0.90 ha.

Convert mixed units to one unit before you multiply. For areas in square feet use the m² to square feet converter, and for lengths in inches read Inches to Centimeters.

Where the area of a rectangle helps

You calculate the area of a rectangle for floors, walls, plots, tiles and paint. For a room of 4.5 m × 3.2 m the floor area is 14.40 m². Estimate the cost of work on that area in the renovation cost per m² calculator, and the price per meter in the price per m² calculator.

Other shapes are covered by the triangle area calculator, the rhombus area calculator and the parallelogram area calculator. The area of a circle is in Area of a Circle.

Four worked examples

You can repeat each example in the rectangle area calculator.

1. A rectangle 8 × 5

The basic calculation.

  1. Enter a = 8 and b = 5.
  2. Multiply 8 · 5.
  3. The area is 40.
  4. The perimeter is 26 and the diagonal is 9.43.

2. A floor 4.5 m × 3.2 m

The area of a room in square meters.

  1. Enter a = 4.5 and b = 3.2.
  2. Multiply 4.5 · 3.2.
  3. The area is 14.40 m².
  4. The perimeter of the walls is 15.4 m.

3. A field 120 m × 75 m

Converting to hectares.

  1. Enter a = 120 and b = 75.
  2. Multiply 120 · 75.
  3. The area is 9000 m².
  4. Divide by 10,000 to get 0.90 ha.

4. A diagonal of 13 and a side of 5

A missing side from the Pythagorean theorem.

  1. Find b = √(13² − 5²) = √144 = 12.
  2. Enter a = 5 and b = 12.
  3. The area is 60.
  4. The calculator diagonal is 13, which confirms the data.

Common mistakes when calculating the area of a rectangle

  • Adding the sides instead of multiplying — the sum of two sides is half the perimeter, not the area.
  • Confusing area with perimeter — area has a square unit and perimeter a unit of length.
  • Sides in different units — convert them to one unit before multiplying.
  • Using the diagonal as a side — the diagonal is longer than either side.
  • Writing the area in a unit of length — a result in m² is not a result in meters.
  • Converting cm² to m² by dividing by 100 — a square meter is 10,000 cm².
  • Rounding the sides before multiplying — round only the result.

Frequently asked questions

What is the formula for the area of a rectangle?

The area is A = a · b. For sides of 8 and 5 it is 40.

How do you find the area of a rectangle?

Multiply the lengths of two adjacent sides in the same units. Give the result in square units.

How do you find the perimeter of a rectangle?

Add two adjacent sides and multiply by 2. For 8 and 5 the perimeter is 26.

How do you find the diagonal of a rectangle?

Use d = √(a² + b²). For sides of 8 and 5 the diagonal is 9.43.

How do you find the area of a rectangle from its diagonal?

The diagonal alone is not enough. You also need one side, and you get the other from b = √(d² − a²).

How do you find the other side when you know the area and one side?

Divide the area by the known side. For A = 48 and a = 6 the other side is 8.

How many hectares is a rectangle 120 m by 75 m?

The area is 9000 m², which is 0.90 ha.

Does the calculator convert centimeters to meters?

No. The unit label follows the Metric/US switch, but the calculator does not convert numbers, so enter both sides in the same unit.

Find the area of your own rectangle

Enter two sides in the rectangle area calculator and read the area, the perimeter and the diagonal.

For other shapes use the triangle area calculator, and for solids the cube volume calculator.