Rectangle Calculator

This calculator finds a rectangle's area, perimeter, and diagonal for rooms, materials, and geometry tasks.

The interactive rectangle calculator loads right here. If it hasn't appeared, refresh the page.

Enter the rectangle's length and width using the same unit. Calculate to get area in square units and perimeter and diagonal in the original length unit.

Area = length × width. Perimeter = 2 × (length + width). Diagonal = square root of (length² + width²).

Worked example

A patio measuring 15 feet by 8 feet has area 15 × 8 = 120 square feet and perimeter 2 × (15 + 8) = 46 feet. Its diagonal is square root of (15² + 8²) = 17 feet.

Common questions

What is the diagonal used for?

The diagonal measures the straight-line distance between opposite corners. Builders also compare the two diagonals to check whether a rectangular frame is square.

Does length have to be the longer side?

No. Swapping length and width does not change the area, perimeter, or diagonal, which is convenient when the labels are unclear.

Related geometry tools

More from DoesWhat: free calculators · emoji meanings · quick answers · the DoesWhat blog