Rectangle Calculator

Area, perimeter and diagonal of a rectangle.

Free rectangle calculator — enter width and height to get area, perimeter, diagonal length and the diagonal angle. Runs entirely in your browser, nothing uploaded. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

How do you find the diagonal of a rectangle?

The diagonal equals √(width² + height²) by the Pythagorean theorem, since the diagonal forms the hypotenuse of a right triangle.

Enter the width and height of a rectangle and get its area, perimeter, diagonal length, and the angle the diagonal makes with the base — useful for construction, screens and displays, framing, flooring, and geometry homework.

How it works

The tool applies four standard formulas to the width (w) and height (h) you enter:

  • Area = w × h
  • Perimeter = 2 × (w + h)
  • Diagonal = √(w² + h²) — the Pythagorean theorem, because the diagonal is the hypotenuse of the right triangle formed by the width and height
  • Diagonal angle = arctan(h ÷ w), converted to degrees — the angle the diagonal makes with the base

It is unit-agnostic: use any unit consistently and the lengths come out in that unit, the area in square units, and the angle in degrees.

Worked examples

For a rectangle 4 by 3 (a classic Pythagorean triple):

  • Area = 4 × 3 = 12
  • Perimeter = 2 × (4 + 3) = 14
  • Diagonal = √(16 + 9) = √25 = 5
  • Diagonal angle = arctan(3 ÷ 4) ≈ 36.87°

For a 16 by 9 rectangle (widescreen display proportions, in any unit):

  • Area = 144
  • Perimeter = 50
  • Diagonal ≈ 18.36
  • Diagonal angle ≈ 29.36°

For a 10 by 10 square:

  • Area = 100
  • Perimeter = 40
  • Diagonal = √200 ≈ 14.14 (exactly 10√2)
  • Diagonal angle = 45° (always 45° for a square)
WidthHeightAreaPerimeterDiagonalAngle
341214553.13°
16914450~18.3629.36°
101010040~14.1445°
192010802,073,6006,000~2,20329.36°

Practical applications

Screen size: A “55-inch TV” means the diagonal is 55 inches. If you know the aspect ratio is 16:9, you can work backwards: set width to 16 and height to 9, note the diagonal as ~18.36 units, then scale. The real screen is 55 ÷ 18.36 × 16 ≈ 47.9 inches wide and 27 inches tall.

Flooring and tiling: Multiply area (in square feet or metres) by your material’s coverage rate to get how much flooring to buy. Add 10% waste for cut pieces around edges.

Checking a corner is square: A rectangle is square when the diagonal equals √(w² + h²). If you measure both diagonals of a frame and they are equal, the corners are at 90°. If they differ, one corner is out of square and needs adjustment.

Framing artwork or windows: Perimeter tells you how much material (moulding, gasket, weatherstrip) you need to go around the outside. Diagonal tells you the longest piece you need to cut or carry through a door.

All maths runs in your browser — nothing is uploaded.