How to use the rectangle calculator
Pick any two things you know about the rectangle: the length, width, area, perimeter, diagonal, aspect ratio, or the angle between the diagonal and the long side. Type their values. The calculator finds the missing sides, then gives everything else. That includes the area in several units, the perimeter, the diagonal, the angles, the aspect ratio and the circles that fit around and inside the rectangle.
Measurements can be typed the way you took them, such as 2.1 m, 45 cm, 8 1/2 or 12 ft 6 in. They are converted to the result unit you choose, so mixing metres and centimetres, or feet and inches, is fine. Add a price per square unit (for flooring, paint or turf) or per unit of length (for fencing, edging or trim), plus a waste percentage, to get a cost estimate.
Rectangle formulas
The diagonal splits a rectangle into two right triangles, so it follows from Pythagoras’ theorem. Rearranging the same formulas gives the missing side from other combinations:
- From area and one side: w = A ÷ l.
- From perimeter and one side: w = P ÷ 2 − l.
- From diagonal and one side: w = √(d² − l²). The diagonal is always the longest straight line in a rectangle.
- From aspect ratio r = l : w and the diagonal: w = d ÷ √(r² + 1) and l = r × w.
Finding the sides when neither is known
Sometimes you know the area and perimeter but not the sides. A paddock needs to cover 450 m² with 90 m of fencing. Half the perimeter, 45 m, is the length plus the width, and their product is 450. So the sides are the two solutions of t² − 45t + 450 = 0, which are 30 m and 15 m. The same trick works for the area and diagonal, using (l + w)² = d² + 2A, and for the perimeter and diagonal.
Some combinations are impossible. For a fixed perimeter, a square encloses the most area, so 90 m of fence can never hold more than 22.5 × 22.5 = 506.25 m². The calculator says so when your numbers go beyond that limit. It is also why square-ish plots and rooms need the least boundary per square metre.
Screens, paper and aspect ratios
Screens are sold by their diagonal, so the width and height depend on the aspect ratio. A 65-inch 16:9 TV is about 56.7 in wide and 31.9 in tall (144 cm × 81 cm). A 65-inch 4:3 screen of the same diagonal would be taller and narrower, at 52 × 39 in. Paper uses ratios too. International A sizes have sides in the ratio √2 : 1, so folding a sheet in half keeps the same shape. A4 has an area of 1/16 m², which gives about 297 × 210 mm. US Letter is 8½ × 11 in, a ratio of 22 : 17, with an area of 93.5 in².
Units and conversions
Area units are squared, so the conversion factor is squared as well. 1 m = 100 cm, but 1 m² = 10,000 cm². Likewise 1 yd = 3 ft, but 1 yd² = 9 ft², and 1 m² ≈ 10.764 ft². A room measuring 12 ft 6 in × 10 ft 9 in is 12.5 × 10.75 = 134.375 ft², which is about 14.93 yd² or 12.48 m². Carpet sold by the square yard would need 15 yd² plus an allowance for cutting. For land, 1 acre is 43,560 ft² (about 4,047 m²), and 1 hectare is 10,000 m².
Checking that corners are square
Builders check a frame, slab or room by measuring both diagonals. If the opposite sides are equal and the two diagonals match, every corner is a right angle. A parallelogram that has been pushed out of shape has one diagonal longer than the other. For a single corner, use the 3-4-5 rule. Mark 3 units along one side and 4 along the other, and the distance between the marks should be exactly 5. For larger layouts, use multiples such as 6-8-10 or 9-12-15 to reduce measuring error. For a gate 1.8 m wide and 1.08 m tall, a correctly fitted diagonal brace is 2.1 m long.
Everyday uses
- Flooring, tiles and carpet: a bedroom 3.85 m × 3.2 m is 12.32 m². With 8% extra for cuts, order about 13.3 m².
- Painting: each wall is a rectangle, its width times the ceiling height. Subtract doors and windows, then multiply by the number of coats.
- Fencing, skirting and edging: these depend on the perimeter, not the area. Subtract any gates or doorways.
- Land: a quarter-acre plot (10,890 ft²) with 50 ft of road frontage is 217.8 ft deep.
- Furniture and packaging: whether a 2.4 m × 75 cm desk or a box fits through a door or along a wall, and how large a label or sheet must be.
Common mistakes
- Mixing units. Multiplying metres by centimetres gives nonsense. Either convert first, or type the units and let the calculator convert.
- Converting area as if it were length. Use the squared factor: 1 ft² = 144 in², not 12.
- Confusing area with perimeter. Area (square units) is for covering a surface. Perimeter (plain units) is for going around the edge.
- Ordering exactly the area. Cutting, pattern matching and breakages mean you need 5–15% more material.
- Assuming a room is rectangular. Check the diagonals. For L-shapes and alcoves, use the irregular polygon area calculator.