Rectangle

Area, perimeter, and diagonal from length and width.

Greater than 0, up to 1,000,000

Greater than 0, up to 1,000,000

The perimeter is twice the sum of the length and the width.

Enter the length and the width.

How the rectangle is solved

Enter the length and the width. Length 3 and width 4 have area 12, perimeter 14, and diagonal 5.

Length 5 and width 12 have area 60, perimeter 34, and diagonal 13. Length 1 and width 1 have area 1, perimeter 4, and diagonal 1.41421356237. Zero and a negative number have no result.

How to use this calculator

  1. Enter the length.
  2. Enter the width.
  3. Read the area. The rows below are the perimeter and the diagonal.

Area of a rectangle

The area is the length times the width.

Rectangle area
A=l⁢w

The perimeter is twice the sum of the length and the width. The diagonal is the square root of length squared plus width squared.

Source

A rectangle is defined on the Wikipedia page that defines a rectangle.

Worked examples

Example: length 3 and width 4

The area is 12, the perimeter is 14, and the diagonal is 5.

Example: length 1 and width 1

The area is 1, the perimeter is 4, and the diagonal is 1.41421356237. The sides are equal, so this is a square.

What to keep in mind

Swapping length 3 and width 4 keeps area 12, perimeter 14, and diagonal 5. Length 10 and width 10 have area 100, perimeter 40, and diagonal 14.1421356237. Each side is greater than 0 and at most 1,000,000. A completed result, including the length and the width you entered, can be saved in this browser’s local history and never leaves your device. Clear it with the history Clear action or by clearing site data.

Common questions about rectangles

What do length 3 and width 4 give?

Area 12, perimeter 14, and diagonal 5.

What do length 5 and width 12 give?

Area 60, perimeter 34, and diagonal 13.

What do length 1 and width 1 give?

Area 1, perimeter 4, and diagonal 1.41421356237. The sides are equal, so this is a square.

What if the sides are swapped?

Length 4 and width 3 still give area 12, perimeter 14, and diagonal 5.

What if a side is zero or blank?

There is no result. A negative number also has no result. Each side is greater than 0 and at most 1,000,000.

Does this calculator store my sides?

A completed result can be saved in this browser’s local history, including the length and the width you entered. It stays on your device and is not sent to our servers or to analytics. Clear it with the history Clear action or by clearing site data.