---
slug: rectangle-calculator
title: "Rectangle Calculator"
category: geometry
updated: 2026-11-17
canonical: https://calcseed.com/c/geometry/rectangle-calculator/
html: /c/geometry/rectangle-calculator/
---

# Rectangle Calculator

Calculate the area, perimeter and diagonal of a rectangle from its length and width. Solve for either side from the area. Free and instant.

## Quick answer

**Quick answer:** with the default inputs (5 units, 3 units), the area is **15 units²**. At these inputs: perimeter = **16**, diagonal = **5.83**. Change any input to update the result.

## Default calculation

Values computed by this calculator at exactly the default inputs listed below.

### Inputs (defaults)

| Input | Value | Unit |
| --- | --- | --- |
| Length | 5 | units |
| Width | 3 | units |

### Outputs at these defaults

| Output | Value | Unit |
| --- | --- | --- |
| Area | 15 | units² |
| Perimeter | 16 |  |
| Diagonal | 5.83095 |  |

## Formula

```text
A = l × w     P = 2(l + w)     d = &radic;(l² + w²)
```

## Inputs

| Variable | Type | Unit | Default |
| --- | --- | --- | --- |
| Length | number | units | 5 |
| Width | number | units | 3 |
| Area | number | units² | 15 |

## Outputs

| Result | Format |
| --- | --- |
| Area | primary |
| Perimeter | number |
| Diagonal | number |

## How it works

### What this calculator does

Enter a rectangle&rsquo;s length and width and the calculator returns three outputs: the area in units², the perimeter in units, and the diagonal in units. At the defaults of 5 × 3 it reports an area of **15**, a perimeter of **16** and a diagonal of **5.83**. It also runs in reverse: clear a side, enter the area, and it solves for the missing dimension.

### The three formulas

The area counts the unit squares inside: length times width, measured in units². The perimeter walks all four edges — two lengths and two widths — so it is 2(l + w) in plain units. The diagonal is the hypotenuse of the right triangle formed by two adjacent sides, so the Pythagorean theorem gives d = &radic;(l² + w²). Three quite different quantities, all derived from the same pair of numbers.

### Worked example at the default size

For l = 5 and w = 3: the area is 5 × 3 = **15 units²**; the perimeter is 2 × (5 + 3) = **16 units**; the diagonal is &radic;(25 + 9) = &radic;34 ≈ **5.83 units**. Solving backwards works the same way — if you know the floor is 15 ft² and the length is 5 ft, the width is 15 ÷ 5 = 3 ft.

Watch what a fixed area does to the other outputs. All of these rectangles have an area of 15:

#### Same area, different shapes

| Length | Width | Area | Perimeter | Diagonal |
| --- | --- | --- | --- | --- |
| 1.5 | 10 | 15 | 23 | 10.11 |
| 3 (default) | 5 | 15 | 16 | 5.83 |
| 3.873 (square) | 3.873 | 15 | 15.49 | 5.48 |
| 15 | 1 | 15 | 32 | 15.03 |

The square — length and width both &radic;15 ≈ 3.873 — has the shortest perimeter (15.49) and the shortest diagonal of any 15-square-unit rectangle. Stretch the same area long and thin and the perimeter climbs without limit. This is the square-is-most-efficient rule at work, and it explains why square or near-square rooms are cheapest to build and easiest to heat.

### Real rectangles run through the formulas

| Rectangle | Size | Area | Diagonal |
| --- | --- | --- | --- |
| Basketball court | 94 ft × 50 ft | 4,700 ft² | 106.47 ft |
| US letter paper | 8.5 in × 11 in | 93.5 in² | 13.90 in |
| This calculator at defaults | 5 × 3 | 15 | 5.83 |
| 55-inch 16:9 TV | 47.97 in × 26.98 in | 1,294 in² | 55 in |

The TV row shows the diagonal working in reverse: a screen&rsquo;s advertised size is its diagonal, and the 16:9 ratio fixes the sides at 47.97 × 26.98 inches. The basketball court&rsquo;s 106.47 ft diagonal is exactly how officials square the court — measure both diagonals, and they must match.

#### Squaring a frame with the diagonal

A rectangle has equal diagonals if and only if its corners are true 90&deg;. Builders exploit this: after framing a wall or deck, they tape both diagonals. If both read the same — 5.83 and 5.83 in the default example — the frame is square. If one reads longer, the frame is racked into a parallelogram and needs pushing back before sheathing goes on.

### What moves each number

- **Area grows multiplicatively.** Doubling both sides multiplies the area by 4: 5 × 3 becomes 10 × 6 = 60.
- **Perimeter grows additively.** The same doubling raises the perimeter only from 16 to 32, a factor of 2.
- **Diagonal scales like the sides.** Doubling both sides doubles the diagonal, from 5.83 to 11.66.
- **One-sided stretching** raises area and perimeter together but skews the shape toward the inefficient thin rectangle in the table above.

### Common mistakes

- **Buying material by the perimeter.** Flooring follows area (15 ft² at the defaults, plus a 5–10% waste allowance), while baseboard follows perimeter (16 ft). Mixing them up under- or over-orders badly.
- **Quoting units loosely.** 15 is the area in units²; 16 and 5.83 are in plain units. Writing &ldquo;15 feet&rdquo; for a 5 × 3 room is a dimensional error, not a rounding.
- **Measuring the frame instead of the opening.** Door and window rough openings, not the finished frame, define tile and trim cuts.
- **Assuming a room is square.** Out-of-plumb corners mean the true area needs both diagonals measured; if they differ, split the room into two triangles.

### Related shapes and conversions

Every result here extends to three dimensions in the cuboid calculator, where volume adds a third side to the multiplication. If the quadrilateral&rsquo;s angles are not right angles, the parallelogram calculator shows how the area shrinks by a factor of the sine of the corner angle — a 30&deg; lean cuts the area in half. And when the final number needs to live in acres, square yards or square metres, the area converter handles the translation.

## FAQ

### How do I find the area of a rectangle?

Multiply length by width: A = l × w. A 5 × 3 rectangle has an area of 15 square units of whatever unit you measured in.

### How do I find the diagonal of a rectangle?

Use the Pythagorean theorem: d = &radic;(l² + w²). For 5 × 3, d = &radic;(25 + 9) = &radic;34 ≈ 5.83.

### How do I solve for the width if I know the area?

Divide the area by the length: w = A ÷ l. For an area of 15 and a length of 5, the width is 3. Enter the area and length, then solve for width.

### How do I find the perimeter?

Add the two sides and double: P = 2(l + w). For 5 and 3, P = 2 × 8 = 16 units.

### Which rectangle shape has the least perimeter for a given area?

The square. For an area of 15, the square with sides &radic;15 ≈ 3.873 has a perimeter of 15.49, less than the default 5 × 3 rectangle&rsquo;s 16.

### If I double the length and width, what happens to the numbers?

Area quadruples (15 to 60), perimeter doubles (16 to 32), and the diagonal doubles (5.83 to 11.66). Area is multiplicative; the other two are linear.

### How do builders check that a frame is square?

Tape both diagonals. A true rectangle has equal diagonals — two readings of 5.83 on a 5 × 3 frame confirm 90&deg; corners; unequal diagonals mean the frame is racked.

### How large is a basketball court in area and diagonal?

A 94 ft × 50 ft court covers 4,700 ft² with a 288 ft perimeter and a diagonal of &radic;(8,836 + 2,500) ≈ 106.47 ft.

### Why is a TV described by its diagonal?

The advertised size is the screen diagonal: a 55-inch 16:9 TV measures about 47.97 in by 26.98 in, since 47.97² + 26.98² ≈ 55².

### Can two rectangles have the same area but different shapes?

Yes, endlessly. 1.5 × 10, 3 × 5 and 15 × 1 all have area 15, but their perimeters run 23, 16 and 32 — the area alone never pins down the shape.

## Method and sources

Methodology: Formulas are the standard closed-form expressions of Euclidean geometry, exact for the given inputs.

Last updated: 2026-11-17.
- Rectangle: A = lw, P = 2(l + w), d = √(l² + w²).
