Rectangle Calculator

Diagonal
—
Area
—
Perimeter
—

Formulas

Common questions

How do you calculate the diagonal of a rectangle?

The diagonal is calculated using the Pythagorean theorem: d = √(w² + h²), where w is the width and h is the height. For example, a rectangle with width 3 and height 4 has diagonal √(9 + 16) = √25 = 5.

How do you calculate the diagonal of a square?

For a square with side s, the diagonal is d = s × √2. For example, a square with side 5 has diagonal 5 × √2 ≈ 7.07.

What is diagonal measurement?

Diagonal measurement is the length of the diagonal, usually given in inches or centimeters. It is commonly used to specify screen sizes (TV, monitor, laptop). A 15.6-inch laptop has a screen diagonal of 15.6 × 2.54 = 39.6 cm.

What is a rectangle?

A rectangle is a four-sided shape where every corner is a right angle (90°) and opposite sides are equal. The two measurements that define it are the width and the height — a square is simply the special case where both are the same.

Rectangles cover most of daily life's surfaces: rooms, walls, doors, screens, tables and sheets of paper. From width and height you can get the area, the perimeter and the diagonal — the straight line joining opposite corners.

How to use this rectangle calculator

  1. Enter the Width of your rectangle.
  2. Enter the Height.
  3. Press Calculate.
  4. Read the Diagonal, Area and Perimeter. Use C to clear the values.

The rectangle formulas

Area and perimeter come straight from the definitions; the diagonal is the Pythagorean theorem in disguise, since the diagonal splits the rectangle into two right triangles:

area = width × height perimeter = 2 × (width + height) diagonal = √(width² + height²)

Example 1: a room 4 m by 3 m

Area: 4 × 3 = 12 m² of floor. Perimeter: 2 × (4 + 3) = 14 m of wall to run baseboard along. Diagonal: √(4² + 3²) = √(16 + 9) = √25 = 5 m straight across.

Area = 12 m², perimeter = 14 m, diagonal = 5 m

Example 2: a screen 48 in wide and 27 in high

Screens are sold by their diagonal. For a 16:9 panel of 48 × 27 inches: 48² = 2304 and 27² = 729, so the diagonal is √3033 ≈ 55.1 inches — this is what a "55-inch TV" means.

Diagonal ≈ 55.1 in

Practical uses and common mistakes

Builders exploit the diagonal as a squareness check: in a true rectangle both diagonals are equal, and the 3-4-5 rule (measuring 3 and 4 units along the edges should give a diagonal of exactly 5) verifies a 90° corner in seconds.

Two habits prevent most errors. First, keep units consistent — mixing meters and centimeters in one calculation distorts every result. Second, remember that areas scale with the square of the sides: doubling both dimensions of a 12 m² room gives 48 m², not 24 m².

Frequently asked questions

Is a square also a rectangle?

Yes. A rectangle needs four right angles and opposite sides equal; a square meets both rules and adds that all four sides match. Enter the same width and height and this calculator handles squares directly.

What are the area and perimeter formulas for a rectangle?

Area = width × height and perimeter = 2 × (width + height). A 4 × 3 m room has 12 m² of floor and needs 14 m of baseboard around it.

How do I convert square feet to square meters?

Multiply the area by 0.0929 — one square foot is 0.0929 m². A 100 ft² room is about 9.29 m². Never convert the sides and the area with the same factor: areas scale with the square.

Why is the diagonal longer than the longest side?

Because it cuts across the shape rather than along one edge. It is the hypotenuse of a right triangle whose legs are the width and height, so it must be longer than either leg.