Skip to main content

Rectangle Calculator

Mathematics - Rectangle Properties

Rectangle Calculator

Calculate the area, perimeter, and diagonal of a rectangle with step-by-step explanation. Learn the formulas A = l × w, P = 2(l + w), and d = √(l² + w²) with worked examples for each measurement.

Calculate Rectangle Properties

Enter the length and width of a rectangle to calculate its area, perimeter, and diagonal. Click Calculate for step-by-step working.

Results will appear here.
Note: A rectangle is a four-sided polygon with four right angles. Opposite sides are equal and parallel. The three fundamental measurements are area (space inside), perimeter (distance around), and diagonal (distance between opposite corners, found using the Pythagorean theorem).

Rectangle – Complete Explanation

A rectangle is one of the most fundamental shapes in geometry — a four-sided polygon (quadrilateral) with four right angles and opposite sides that are equal and parallel. Rectangles are everywhere: doors, windows, books, screens, rooms, and buildings. Understanding how to calculate a rectangle's area, perimeter, and diagonal is essential for geometry, construction, design, and everyday problem-solving.

Rectangle Properties

• Four right angles (90° each)
• Opposite sides are equal and parallel
• Diagonals are equal and bisect each other
• Area = length × width
• Perimeter = 2(length + width)
• Diagonal = √(length² + width²)

1. What Is a Rectangle?

A rectangle is defined by two dimensions: its length (l) and width (w). The length is typically the longer side, and the width is the shorter side — though mathematically, the formulas work regardless of which is which.

Key properties:

  • Right angles: All four interior angles are exactly 90°.
  • Parallel sides: The two lengths are parallel; the two widths are parallel.
  • Equal diagonals: Both diagonals are exactly the same length.
  • Symmetry: A rectangle has two lines of symmetry (through the midpoints of opposite sides).

2. Area of a Rectangle

Rectangle Area Formula

A = l × w

Where l = length and w = width. Measured in square units (m², cm², ft², etc.).

The area formula is the most intuitive: it counts how many unit squares fit inside the rectangle. A rectangle of length 10 and width 6 contains 60 unit squares.

Example: Rectangle with l = 12, w = 5.

A = 12 × 5 = 60 square units

If the units are feet, this is 60 ft² — enough information to buy carpet!

3. Perimeter of a Rectangle

Rectangle Perimeter Formula

P = 2l + 2w = 2(l + w)

Measured in linear units (m, cm, ft, etc.).

The perimeter is the total distance around the rectangle — two lengths plus two widths. It's the length of fencing needed to enclose a rectangular yard or the amount of baseboard for a rectangular room.

Example: Rectangle with l = 12, w = 5.

P = 2(12 + 5) = 2(17) = 34 units

4. Diagonal of a Rectangle

Rectangle Diagonal Formula

d = √(l² + w²)

Derived from the Pythagorean theorem: d² = l² + w².

The diagonal is the straight-line distance between opposite corners. It forms a right triangle with the length and width as the legs. This formula is a direct application of the Pythagorean theorem.

Example: Rectangle with l = 12, w = 5.

d = √(12² + 5²) = √(144 + 25) = √169 = 13 units

This is the famous 5-12-13 Pythagorean triple!

5. Step-by-Step Examples

Example 1: Complete Rectangle Analysis (10 × 6)

Rectangle with length 10 and width 6.

Area:
  A = l × w = 10 × 6 = 60 square units

Perimeter:
  P = 2(l + w) = 2(10 + 6) = 2(16) = 32 units

Diagonal:
  d = √(10² + 6²) = √(100 + 36) = √136 = 2√34 ≈ 11.662 units

Summary:
  • Space inside: 60 square units
  • Distance around: 32 units
  • Corner-to-corner: ≈ 11.662 units

Example 2: The 3-4 Rectangle

Rectangle with length 4 and width 3.

Area: A = 4 × 3 = 12 square units
Perimeter: P = 2(4 + 3) = 14 units
Diagonal: d = √(16 + 9) = √25 = 5 units (3-4-5 triple!)

This is the smallest integer-sided rectangle with an integer diagonal.

6. More Rectangle Examples

8 × 6: A=48, P=28, d=√100=10 (6-8-10 triple!)

15 × 8: A=120, P=46, d=√289=17 (8-15-17 triple!)

7 × 24: A=168, P=62, d=√625=25 (7-24-25 triple!)

5 × 5: A=25, P=20, d=√50=5√2≈7.071 (a square!)

7. Special Case: The Square

A square is a special rectangle where all four sides are equal (l = w = s). The formulas simplify:

Square Formulas (l = w = s)

A = s²
P = 4s
d = s√2

Example: Square with side 5.

A = 25, P = 20, d = 5√2 ≈ 7.071

The diagonal of any square is always s√2.

8. The Golden Rectangle

A golden rectangle has the special property that when a square is removed, the remaining rectangle has the same proportions as the original. Its aspect ratio is the golden ratio φ ≈ 1.618:

Golden Rectangle

l / w = φ = (1 + √5) / 2 ≈ 1.618

Golden rectangles appear in art, architecture, and nature — they're considered aesthetically pleasing.

Example: Golden rectangle with width 10.

l = 10 × 1.618 ≈ 16.18

Area ≈ 161.8, Perimeter ≈ 52.36, Diagonal ≈ 19.02

9. Common Mistakes to Avoid

  • Confusing area and perimeter: Area is in square units (space inside); perimeter is in linear units (distance around). They are different measurements.
  • Forgetting to double in the perimeter formula: P = 2(l + w), not just l + w. You need to count both lengths and both widths.
  • Using the diagonal formula incorrectly: d = √(l² + w²), not l + w. The Pythagorean theorem requires squaring, adding, then taking the square root.
  • Mixing units: If length is in feet and width is in inches, convert to the same unit before calculating.
  • Assuming diagonal = length + width: The diagonal is always shorter than l + w (the triangle inequality).

10. Real-World Applications

  • Flooring and Carpeting: Area determines material quantity; perimeter determines baseboard length.
  • Construction: Diagonal measurement ensures a frame is square (both diagonals equal = perfect rectangle).
  • Screen Sizes: TV and monitor sizes are measured diagonally — the diagonal formula relates screen dimensions to advertised size.
  • Landscaping: Area for sod or mulch; perimeter for fencing or edging.
  • Interior Design: Furniture placement, wall paint calculations, and room layout planning.
  • Manufacturing: Material cutting, packaging design, and sheet metal calculations.

11. Practice Problems with Solutions

Problem 1: Find area, perimeter, and diagonal of a rectangle with l=15 and w=8.

Solution: A=120, P=46, d=√(225+64)=√289=17

Problem 2: A rectangle has area 48 and width 6. Find its length, perimeter, and diagonal.

Solution: l=48/6=8, P=2(8+6)=28, d=√(64+36)=10

Problem 3: A rectangle has perimeter 30 and length 10. Find its width, area, and diagonal.

Solution: 2(10+w)=30 → w=5, A=50, d=√(100+25)=√125=5√5≈11.18

Problem 4: The diagonal of a square is 8. Find its side length and area.

Solution: s√2=8 → s=8/√2=4√2≈5.657, A=s²=32

12. Tips for Mastering Rectangles

  • Memorize the three formulas: A = lw, P = 2(l+w), d = √(l²+w²).
  • For the diagonal, recognize common Pythagorean triples: (3,4,5), (5,12,13), (8,15,17), (7,24,25).
  • Area grows with the product of length and width — doubling both quadruples the area.
  • Use the diagonal to check if a physical rectangle is "square" (right-angled) — both diagonals must be equal.
  • When given area and perimeter, you can set up a system of equations to find length and width.

13. Final Thoughts

The rectangle is the foundation of geometric measurement. Its three formulas — area, perimeter, and diagonal — connect multiplication, addition, and the Pythagorean theorem into a coherent set of tools that apply to countless real-world situations. From calculating carpet for a room to checking if a frame is square, rectangle math is practical geometry at its finest.

Master these three formulas, understand how they're derived (especially the diagonal via the Pythagorean theorem), and you'll have a versatile toolkit for working with rectangles in any context. Use this calculator to verify your manual calculations, but practice until finding area, perimeter, and diagonal becomes automatic.