Area of a Rectangle Calculator

Enter a rectangle's length and width to get its area (A = l × w), perimeter (P = 2(l + w)), and diagonal (d = √(l² + w²)), plus an optional material cost estimate.

Quick Facts

Area formula
A = l × w
Multiply length by width; doubling either dimension doubles the area.
Perimeter formula
P = 2(l + w)
Sum of all four sides — two lengths and two widths.
Diagonal formula
d = √(l² + w²)
Follows from the Pythagorean theorem across length and width.

Your Results

Calculated
Area
-
A = length × width, in square units
Perimeter
-
P = 2 × (length + width)
Diagonal
-
d = √(length² + width²)
Estimated Material Cost
-
Area × cost per square unit

Ready

Enter a length, width, and unit, then press Calculate.

Formula and Method for the Area of a Rectangle

A rectangle is a four-sided polygon with two pairs of equal, parallel sides and four 90° interior angles. Its area is the product of two adjacent sides — commonly called length and width: A = l × w. This calculator also derives the perimeter and diagonal from the same two dimensions, plus an optional material cost estimate.

How the calculation works

Enter the length, the width, and choose the unit they are measured in. The calculator multiplies length by width to get the area (in square units, such as ft² or m²), adds the length and width and doubles the sum to get the perimeter (P = 2(l + w)), and applies the Pythagorean theorem to get the diagonal (d = √(l² + w²)), since a rectangle's diagonal is the hypotenuse of the right triangle formed by one length side and one width side. If you enter a cost per square unit, the tool multiplies it by the area to estimate total material cost.

Common mistakes

  • Confusing perimeter with area: a rectangle 8 ft long and 5 ft wide has an area of 40 ft², not the 26 ft perimeter — the two describe different things and use different units.
  • Mixing units: keep length and width in one consistent unit — convert inches to feet, or centimeters to meters, before entering the values.
  • Diagonal vs. side: the diagonal is always longer than either the length or the width; do not substitute it for a side when computing area or perimeter.

Real-world applications

  • Flooring, tiling, and carpet estimates use area directly to calculate how much material to buy (add 5–10% extra for cuts and waste).
  • Fencing and edging projects use perimeter to determine how much linear material is needed.
  • Framing and layout checks use the diagonal to confirm a rectangle is truly square-cornered — equal diagonals confirm 90° corners.
  • Construction and landscaping budgets combine area with a cost per square unit to estimate material costs before purchasing.

Frequently Asked Questions

What is the formula for the area of a rectangle?
The area of a rectangle equals its length times its width: A = l × w. For example, a rectangle 8 ft long and 5 ft wide has an area of 8 × 5 = 40 ft².
How do I find the perimeter of a rectangle?
Add the length and width, then double the sum: P = 2(l + w). A rectangle 8 ft long and 5 ft wide has a perimeter of 2 × (8 + 5) = 26 ft.
How is the diagonal of a rectangle calculated?
The diagonal is the square root of the length squared plus the width squared: d = √(l² + w²), which follows from the Pythagorean theorem applied to the right triangle formed by the length, width, and diagonal. An 8 ft by 5 ft rectangle has a diagonal of about 9.43 ft.
How much extra material should I buy for a tiling or flooring project?
Add roughly 5–10% to the calculated area to cover cuts, mismatched pieces, and waste, and more for diagonal layouts or intricate patterns.