Rectangle Calculator

Area, perimeter and diagonal of any rectangle from length and width.

The formula behind it

A = lw; P = 2(l+w); d = √(l²+w²)
l, w
length and width

A rectangle tiles length × width unit squares, which is why area multiplies while perimeter adds. Its diagonal splits it into congruent right triangles, which is why Pythagoras yields it — and why the diagonal is the longest straight distance inside the shape.

How to use this calculator

  1. 1

    Enter length and width.

  2. 2

    Press Calculate.

  3. 3

    Read area, perimeter and diagonal together.

Worked examples

Flooring

5.2 m × 3.8 m room = 19.76 m² of flooring; skirting board follows the perimeter, 2(5.2+3.8) = 18 m.

Screen diagonal

A 16:9 rectangle 140 cm wide is 78.75 cm tall; diagonal = √(140² + 78.75²) ≈ 160.6 cm.

Frequently asked questions

Explore more categories

Command Palette

Search for a command to run...