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
- Enter the Width of your rectangle.
- Enter the Height.
- Press Calculate.
- 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².