Rectangle Calculator

Calculate the area, perimeter, diagonal and aspect ratio of a rectangle from its two sides.

Area 40
A = ab · P = 2(a + b) · d = √(a² + b²)
Perimeter 26
A = ab · P = 2(a + b) · d = √(a² + b²)
Diagonal 9.433981
A = ab · P = 2(a + b) · d = √(a² + b²)
Aspect ratio 1.6
Is it a square? No
Radius of the circumscribed circle 4.716991

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the Rectangle Calculator does

The rectangle calculator on this page will calculate the area, perimeter, diagonal and aspect ratio of a rectangle from its two sides. Fill in all 2 fields and the result updates as you type — there is no Calculate button to press and no page reload. It is most often used for working out a floor, wall or panel area. Companion tools to this one live on FreeToolsWorld.org.

How to use it

  1. Enter the two side lengths in any consistent unit.
  2. Read the area, perimeter and diagonal.
  3. The aspect ratio tells you the proportions independently of size.

How it works

The diagonal is the hypotenuse of the right triangle formed by two sides, which is why it is always longer than either side and shorter than their sum. For a screen or a sheet, the diagonal is the figure quoted in a product specification and the sides are the figures that actually matter for fitting it somewhere.

Every rectangle has a circumscribed circle whose centre is where the diagonals cross, with radius half the diagonal. No rectangle other than a square has an inscribed circle touching all four sides.

When to use it

  • Working out a floor, wall or panel area.
  • Finding the diagonal of a screen or sheet of material.
  • Checking whether something will fit through a diagonal opening.
  • Comparing two rectangles by aspect ratio.

Common mistakes to avoid

  • Mixing units between the two sides.
  • Confusing the diagonal with the perimeter in a product specification.
  • Assuming area scales with the same factor as the sides. It scales with the square.

Frequently asked questions

How do I find the area of a rectangle?

Multiply the two side lengths. An 8 by 5 rectangle has an area of 40 square units.

How do I calculate the diagonal?

Square each side, add them, take the square root. An 8 by 5 rectangle has a diagonal of √89, about 9.434.

What is the aspect ratio of a 16:9 screen?

1.778 as a decimal. A 55 inch 16:9 screen is 48 inches wide and 27 high.

Related tools

See all math & statistics calculators →