Rectangle Formulas
A rectangle has four right angles and opposite sides equal in length. Given length (l) and width (w), three properties can be derived:
| Property | Formula |
|---|---|
| Area | A = l × w |
| Perimeter | P = 2 × (l + w) |
| Diagonal | d = √(l² + w²) |
The diagonal formula comes directly from the Pythagorean theorem — a diagonal splits the rectangle into two right triangles.
How to Calculate
Area
Multiply length by width:
A = l × w
Example: A room 6 m × 4 m → A = 6 × 4 = 24 m²
Perimeter
Add both sides and double:
P = 2 × (l + w)
Example: 6 m × 4 m → P = 2 × (6 + 4) = 20 m
Diagonal
Apply the Pythagorean theorem:
d = √(l² + w²)
Example: 6 m × 4 m → d = √(36 + 16) = √52 ≈ 7.21 m
Working Backwards from Any Two Values
The calculator accepts any two fields and derives the other three. Here is how each combination is solved:
| Known values | Method |
|---|---|
| l + w | Direct: A = l × w, P = 2(l+w), d = √(l²+w²) |
| l + A | w = A / l |
| l + P | w = P/2 − l |
| l + d | w = √(d² − l²) |
| w + A | l = A / w |
| w + P | l = P/2 − w |
| w + d | l = √(d² − w²) |
| A + P | Solve t² − (P/2)t + A = 0 |
| A + d | Solve t² − √(d²+2A) · t + A = 0 |
| P + d | Solve t² − (P/2)t + ((P/2)²−d²)/2 = 0 |
Not every pair has a solution. If the values are geometrically incompatible — for example, a diagonal shorter than one of the sides — the calculator will not produce a result.
Practical Examples
| Object | Length | Width | Area | Perimeter | Diagonal |
|---|---|---|---|---|---|
| A4 paper | 29.7 cm | 21.0 cm | 623.7 cm² | 101.4 cm | 36.4 cm |
| Standard door | 200 cm | 80 cm | 1.60 m² | 560 cm | 215.4 cm |
| Tennis court (singles) | 23.77 m | 8.23 m | 195.6 m² | 64.0 m | 25.16 m |
| Football pitch | 105 m | 68 m | 7140 m² | 346 m | 124.7 m |
| Letter paper (US) | 27.94 cm | 21.59 cm | 603.2 cm² | 99.06 cm | 35.13 cm |
Area vs. Perimeter
These two properties measure different things:
- Area measures the surface enclosed — used for flooring, paint, or fabric coverage.
- Perimeter measures the boundary length — used for fencing, framing, or trim.
Doubling just one side doubles the area. Scaling both sides by a factor k multiplies the area by k² but the perimeter only by k.