Area of a Rectangle Calculator
The area of a rectangle is length × width: A = l × w. A room 12 m by 8 m has an area of 96 m² and a perimeter of 40 m. Enter both sides to get every measurement, or one side with the area, perimeter or diagonal to find the other side.
Last updated by Ultra Calculator
Rectangle Area
How to calculate it
A = l × w P = 2 × (l + w) d = √(l² + w²)
- A
- area, in square units
- P
- perimeter, the distance round the edge
- d
- diagonal, from one corner to the opposite corner
- l
- length
- w
- width
To find a missing width, the calculator uses w = A ÷ l from the area, w = P ÷ 2 − l from the perimeter or w = √(d² − l²) from the diagonal. A missing length works the same way.
Worked example
Room 12 m by 8 m
A 12 m by 8 m room has an area of 96 m², a perimeter of 40 m and a diagonal of about 14.42 m.
| Find | Everything, from length and width |
|---|---|
| Length (l) | 12 |
| Width (w) | 8 |
| Calculation | All measurements |
|---|---|
| Area | 96 |
| Perimeter | 40 |
| Diagonal | 14.4222 |
| Length ÷ width | 1.5 |
| Square? | No |
| Longer side | 12 |
| Shorter side | 8 |
| Formula | A = l × w, P = 2 × (l + w), d = √(l² + w²) |
How to use this calculator
- Choose what you need in Find.
- For Everything, Area, Perimeter or Diagonal, enter Length and Width.
- To find a missing Length, enter Width and one of Area, Perimeter or Diagonal. To find a missing Width, enter Length and one of them.
- Read the highlighted answer in the unit you used, with the area in that unit squared.
Frequently asked questions
How do you find the area of a rectangle?
Multiply the length by the width: A = l × w. A 4 m by 3 m room has an area of 12 m². Both sides must be in the same unit.
How do you find the perimeter of a rectangle?
Add the length and width, then double the total: P = 2(l + w). For a 4 m by 3 m rectangle that is 14 m.
How do you find a missing side from the area?
Divide the area by the side you know. A 24 m² rectangle that is 6 m long is 4 m wide.
How do you find the diagonal of a rectangle?
Use Pythagoras: d = √(l² + w²). A 4 by 3 rectangle has a diagonal of 5. Builders use the same 3, 4, 5 check to set out square corners.
How do I get square metres or square feet?
Measure both sides in metres to get m², or in feet to get square feet. One square metre is about 10.764 square feet.
Learn more
Area and perimeter
Area counts the squares inside the shape. Perimeter is the distance round the edge. Two rectangles can share an area but not a perimeter: 6 by 4 and 12 by 2 both cover 24, but their perimeters are 20 and 28.
Squares are rectangles
A square is a rectangle with four equal sides. In Everything mode, the Square? line shows Yes when the length and width differ by less than 0.0001.
The diagonal and square corners
The diagonal splits a rectangle into two right-angled triangles, so d² = l² + w². If the opposite sides of a frame match and both diagonals measure the same, its corners are square.
- Working out floor area for carpet, laminate or tiles in m²
- Finding the perimeter of a garden for fencing or edging
- Checking the diagonals when setting out a shed base or patio
- Finding a room's length when you know its area and width
- KS3 and GCSE maths area and perimeter questions
Mixing metres and centimetres
Convert both sides to one unit first. 3 m by 50 cm is 3 × 0.5 = 1.5 m², not 150.
Confusing area and perimeter
Area is for covering a surface, such as flooring or paint. Perimeter is for the edges, such as skirting board or fencing.
Entering more than one extra value when finding a side
When finding a missing side, the calculator uses Area if you enter it, then Perimeter, then Diagonal. Leave the others blank so it uses the value you meant.
Entering a diagonal shorter than the known side
A diagonal is always longer than either side. If it isn't, no rectangle fits, and the calculator says so instead of giving a side.
Methodology and sources
Length and width are multiplied for the area, added and doubled for the perimeter, and combined with Pythagoras for the diagonal. Finding a missing side uses the area if you give it, then the perimeter, then the diagonal, and ignores any further values. Results display to four decimal places. The calculator works in whatever unit you enter and does not convert. The Square? line checks whether the length and width differ by less than 0.0001, and the diagonal angle is measured from the length side. Values that can't form a rectangle, such as a perimeter too small for the side you know or a diagonal shorter than it, give a message instead of a result.