Rectangle Area Calculator

Area—
Perimeter—
Diagonal—

How Rectangle Area Calculator is calculated: Area = length × width; Perimeter = 2 × (length + width); Diagonal = √(length² + width²)

What is the area of a rectangle?

The area of a rectangle is the flat space inside its four sides: length times width. A rectangle 8 units long and 5 units wide covers 40 square units — imagine 8 columns of 5 unit squares, or 5 rows of 8. Area is always measured in square units.

This rectangle area calculator takes the length and width and returns the area, the perimeter, and the diagonal. Type the numbers in and the answers update live. It is the area formula most people use most often, from rooms to plots to screens.

Rectangles are the default shape of the built world: rooms, doors, windows, books, screens, fields, and plots. Whenever a space has four right-angled corners, its area starts with length times width.

How the rectangle formulas work

The area formula is area = length × width. For the defaults, 8 × 5 = 40 square units. The perimeter, the distance around the edge, is 2 × (length + width), which is 2 × (8 + 5) = 26 units. The diagonal, the line from one corner to the opposite, is √(8² + 5²) = √89, which is about 9.43.

The diagonal uses the Pythagoras theorem, because the diagonal splits the rectangle into two right-angled triangles with the length and width as the short sides. For a 12-by-5 rectangle the diagonal is exactly 13, another Pythagorean triple — 5, 12, and 13.

The perimeter and the area measure different things: the perimeter is a length around the edge, in plain units, while the area is the space inside, in square units. A square area calculator covers the special case where the length and width are equal.

Length and width: the input people get wrong

Length and width are just the two side lengths, and it does not matter which one you call the length. An 8-by-5 rectangle has the same area as a 5-by-8 rectangle: 40 square units either way. The convention is to call the longer side the length, but the maths does not care.

The common slip is measuring the diagonal instead of a side. The diagonal, 9.43 for the defaults, is longer than either side, and using it as the length inflates the area. Measure the edges, corner to corner along the side, not across the middle.

Units are the second trap. A room 8 metres long and 5 metres wide is 40 square metres, but if the width is measured in centimetres by mistake, the answer is wrong by a factor of 100. Use the same unit for both sides, and the area comes out in the square of that unit.

A worked example: 8 by 5, 10 by 10, 12 by 5

Start with the defaults, 8 by 5. The area is 8 × 5 = 40. The perimeter is 2 × (8 + 5) = 26. The diagonal is √(64 + 25) = √89, which is about 9.43. Three answers, all from two numbers.

A 10-by-10 rectangle is a square. The area is 100, the perimeter is 40, and the diagonal is √(100 + 100) = √200, which is about 14.14. The same numbers come out of the square calculator with side 10, which is a good cross-check.

A 12-by-5 rectangle has an area of 60, a perimeter of 2 × 17 = 34, and a diagonal of √(144 + 25) = √169 = 13 exactly. The 5-12-13 triple is the second most famous Pythagorean triple after 3-4-5, and it turns up in construction whenever a right angle must be checked.

Where rectangle area gets used

In school, rectangle area is the first area formula and the base for the rest: triangles are half a rectangle, parallelograms are sheared rectangles, and compound shapes are split into rectangles. The diagonal adds the Pythagoras theorem to the same shape.

In homes and building, rectangle area decides flooring, paint, tiles, and carpet. A room 8 metres by 5 metres needs 40 square metres of flooring, and the perimeter, 26 metres, decides the skirting board. Measure the room, multiply, and order with a little extra for cutting waste.

In land and farming, plots are measured as rectangles whenever the corners are square. A plot 8 metres by 5 metres is 40 square metres, and a field of the same shape scaled up a hundred times is 4,000 square metres. A builder ordering tiles for a 40-square-metre room buys a little extra, usually 5 to 10 percent, for cuts and breakages, so the order is about 42 to 44 square metres rather than exactly 40. The same habit applies to paint: one coat over 40 square metres needs the coverage stated on the tin, and two coats need double, so the area number feeds straight into the shopping list. The trapezoid area calculator handles the plots where two sides are parallel but the corners are not square.

Rectangle area calculator vs square and trapezoid calculators

A square is a rectangle with equal sides, so the square area calculator is this tool with one input instead of two. A 10-by-10 rectangle is a square with side 10, and both tools give area 100, perimeter 40, and diagonal 14.14.

A trapezoid is the next step outward: two parallel sides of different lengths and a height, with no right angles required. The trapezoid calculator uses the average of the parallel sides times the height, which is a different formula for a different shape. Use the rectangle tool when the corners are right angles; use the trapezoid tool when they are not.

The triangle area calculator is the other close relative: a triangle is half a rectangle with the same base and height. The triangle area calculator gives 30 for a base of 10 and height of 6, while the rectangle with those sides gives 60 — exactly double.

Common rectangle mistakes

The first mistake is adding length and width instead of multiplying them: 8 + 5 = 13 is not the area. The area is 40, and 13 is half the perimeter. Multiplication, not addition, is what turns two lengths into an area.

The second mistake is confusing area with perimeter. The perimeter, 26, is the fence around the rectangle; the area, 40, is the ground inside it. Fencing is bought by the metre, flooring by the square metre, and the two numbers answer different shopping questions.

The third mistake is using the diagonal as a side, which inflates the area. And the fourth is mixing units — metres for the length and centimetres for the width. Convert first, then multiply, and the answer will be in the square of the unit you used.

How to use this rectangle area calculator

Type the length into the first box and the width into the second. The area, the perimeter, and the diagonal update live. It does not matter which side you call the length — the answers are the same either way.

Check the diagonal as a sanity test: it must be longer than either side but shorter than the two sides added together. For the defaults, 9.43 sits between 8 and 13, which is correct. The area row is the one to trust for ordering material, and the perimeter row is the one for edging, skirting, or fencing. A room that is 8 by 5 needs 40 square metres of flooring and 26 metres of skirting, and confusing the two rows is the most expensive mistake on this page, because flooring is priced by the square metre and skirting by the metre. If it does not, a side was typed wrong.

Everything runs in your browser — no account, no upload, and your numbers never leave your device. Use it for rooms, plots, screens, or homework, and switch to the square or trapezoid calculator when the shape changes. A rectangular wall area is the starting point for paint — our paint calculator turns wall area, coats and coverage into litres. A rectangular room's area decides what fits in it — our room size calculator gives the area, perimeter and fitting guidance.

Frequently Asked Questions

Area = length × width. For a rectangle 8 units long and 5 units wide, the area is 8 × 5 = 40 square units. The perimeter is 2 × (length + width), which is 26 units, and the diagonal is √(8² + 5²), about 9.43 units.

The area is 40 square units. The perimeter is 2 × (8 + 5) = 26 units, and the diagonal is √89, about 9.43 units. A rectangle 12 by 5 has an area of 60, a perimeter of 34, and a diagonal of exactly 13.

Area is the space inside the shape, measured in square units — 40 for an 8-by-5 rectangle. Perimeter is the distance around the edge, measured in plain units — 26 for the same rectangle. Flooring is bought by area, fencing and skirting by perimeter.

No. An 8-by-5 rectangle has the same area, perimeter and diagonal as a 5-by-8 rectangle. By convention the longer side is called the length, but the maths gives the same answers either way.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.