Rectangle & Square Area Calculator
Work out the area, perimeter and diagonal of a rectangle from its length and width, or find a missing side from the area or perimeter. Switch to square to start from the side, area, perimeter or diagonal.
About Rectangle & Square Area Calculator
This page handles the two most common flat shapes: rectangles and squares. It gives the area, the perimeter and the corner-to-corner diagonal, and it can also recover a side you do not know. Rooms, plots, tiles and screens are all rectangles.
Rectangle: what you can start from
- Length and width: the usual case. Area is L × W, perimeter is 2(L + W).
- Length and area: the width is area ÷ length.
- Length and perimeter: the width is half the perimeter minus the length. The perimeter must be more than twice the length.
- Area and perimeter: both sides are found together by solving a small quadratic. A given perimeter can only enclose so much area, and the most is a square, so if your area is too big the page says no rectangle fits.
Square
Choose square and enter the side, the area, the perimeter or the diagonal. The side is the square root of the area, a quarter of the perimeter, or the diagonal divided by √2.
Worked examples
- A bedroom 4.2 m long and 3.5 m wide has a floor area of 14.7 m² and a skirting length of 15.4 m (before you subtract doorways).
- A square patio of 36 m² has 6 m sides and needs 24 m of border.
- A rectangle with an area of 12 and a perimeter of 14 must be 4 by 3, and its diagonal is exactly 5.
Units and rounding
Choose mm, cm, m, km, in, ft, yd or mi. Lengths are shown in that unit and areas in the unit squared, for example ft². Nothing is converted, so keep every input in the same unit. For square feet to square metres, open the Area Converter.
Results are rounded to 6 decimal places with floating-point noise removed, so sides of 0.1 and 0.2 give a perimeter of exactly 0.6. The working lists every formula with your numbers, which makes it easy to check a quote for flooring or paint.
How to use Rectangle & Square Area Calculator
- Choose rectangle or square, then what you know.
- Enter the two values (or one for a square) and pick the length unit.
- Read the area, perimeter, diagonal and any missing side, with the working.
Privacy: how it works
Calculations run in your browser. Nothing you type is sent anywhere.
Frequently asked questions
How do I calculate the area of a square?
Multiply the side by itself. A square with 4 m sides has an area of 4 × 4 = 16 m². Going the other way, the side is the square root of the area.
Can I find the sides from the area and perimeter?
Yes. Half the perimeter is length + width, and the area is length × width, so the two sides are the roots of a quadratic. If the area is too large for the perimeter, no rectangle exists and the tool says so.
How is the diagonal worked out?
By Pythagoras' theorem: the diagonal is √(length² + width²). For a 3 × 4 rectangle that is √25 = 5. For a square it is the side × √2.