Part of the Maths & Statistics suite · 235 calculators

Rectangle Calculator

Area, perimeter and diagonal of a rectangle or square from its length and width.

Area is length × width, perimeter is 2 × (length + width), and the diagonal is √(length² + width²) by Pythagoras.

Results update as you type
Results
Area
40
Perimeter
Diagonal
Aspect ratio (length : width)
Reviewed September 2026. Pure mathematics: the result does not depend on where you are. Terminology follows the national curriculum (maths, brackets, decimal point).
No account required · Google Analytics off unless allowedCalculator arithmetic runs in your browserResults update as you type
All calculations run 100% in your browser. The calculator code does not submit your figures to GlobalCalc to obtain a result.
About rectangle

How the rectangle calculator works

Area is length × width, perimeter is 2 × (length + width), and the diagonal is √(length² + width²) by Pythagoras. A square is a rectangle with equal sides.

Formula: A = lw; P = 2(l + w); d = √(l² + w²)

Worked examples

InputsAreaNote
8 × 540area 40, diagonal 9.43
4 × 4 square16diagonal 4√2

Frequently asked questions

What is the difference between area and perimeter?

Area is the space inside (square units); perimeter is the distance around (plain units).

How do I find the diagonal?

Pythagoras on the two sides: √(l² + w²).

Does the order of length and width matter?

No — every result is symmetric.

How many tiles or boards do I need?

Divide the rectangle's area by the area of one tile, then add 5–10% for cuts.

What is the largest area for a given perimeter?

A square — for a perimeter of 20, a 5 × 5 square (area 25) beats any other rectangle.

Where these figures come from

Last checked: September 2026. Formulas are fixed by mathematics and do not change with tax years or regulations.