Three rectangle answers from two numbers
A rectangle has four right angles and opposite sides that are equal. Its length and width determine the area, the perimeter and the diagonal.
Area is length times width and uses square units. Perimeter is the distance around the edge and uses linear units. The diagonal splits the rectangle into two right triangles, so it comes from the Pythagorean theorem.
These are everyday measurements: flooring, paint, sod, picture frames, screens, garden beds and room layouts all reduce to a rectangle calculation.
Rectangle formulas used on this page
← Swipe →| Quantity | Formula | Notes |
|---|---|---|
| Area | A = l × w | Square units: ft², m², in². |
| Perimeter | P = 2(l + w) | Linear units: ft, m, in. |
| Diagonal | d = √(l² + w²) | Pythagorean theorem applied to the two sides. |
| Length from area | l = A ÷ w | Rearrange the area formula. |
| Length from perimeter | l = (P ÷ 2) − w | Useful when the perimeter is known. |
Rectangle values at a glance
← Swipe →| Length | Width | Area | Diagonal |
|---|---|---|---|
| 3 | 3 | 9 | 4.2426 |
| 4 | 6 | 24 | 7.2111 |
| 5 | 12 | 60 | 13 |
| 8 | 10 | 80 | 12.8062 |
| 10 | 20 | 200 | 22.3607 |
Worked calculation examples
Flooring a room
A room is 12 ft by 14 ft.
- 1.A = 12 × 14 = 168 ft²
- 2.P = 2 × (12 + 14) = 52 ft
- 3.d = √(12² + 14²) = √340 = 18.4391 ft
- 4.With 10% waste: 168 × 1.10 = 184.8 ft² of flooring
Raised garden bed
A bed measures 4 m by 1.2 m.
- 1.A = 4 × 1.2 = 4.8 m²
- 2.P = 2 × (4 + 1.2) = 10.4 m
- 3.d = √(4² + 1.2²) = √17.44 = 4.1761 m
- 4.Soil at 0.3 m deep: 4.8 × 0.3 = 1.44 m³
Rectangle tips
Length and width are interchangeable
Swapping them changes neither the area, the perimeter, nor the diagonal. Pick the orientation that matches your sketch.
Area and perimeter scale differently
Doubling every side quadruples the area but only doubles the perimeter. That is why larger rooms need disproportionately more flooring.
Measure the diagonal to check square
Both diagonals of a true rectangle are equal. If they differ on site, the corners are not square yet.
Convert square units carefully
One square metre is 10.7639 square feet, not 3.2808. Unit conversion for area uses the scale factor squared.
Frequently asked questions
What is the area of a rectangle?+
A = l × w. A 4 ft by 6 ft rectangle has an area of 24 ft².
How do I find the perimeter?+
P = 2(l + w), the distance around all four sides. A 4 by 6 rectangle has a perimeter of 20 ft.
How do I find the diagonal?+
Use the Pythagorean theorem: d = √(l² + w²). The diagonal is the hypotenuse of the right triangle formed by the length and width.
How do I find the missing length from the area?+
Divide the area by the known width: l = A ÷ w. From a perimeter, use l = (P ÷ 2) − w.
Is a square a rectangle?+
Yes. A square is a rectangle with equal sides, so the same formulas apply; area is s², perimeter is 4s and the diagonal is s√2.