Audited 25 May 2026·Last updated 27 Jul 2026·6 citations·Tier 1·0 uses

Area of a Rectangle Calculator

Free area of a rectangle calculator: enter length and width to get area, perimeter, and diagonal instantly, with worked formulas and worked example.

Area of a Rectangle Calculator

The longer of the two side measurements of the rectangle. Use any unit you like — metres, feet, inches, centimetres — so long as you use the same unit for width.
The shorter side measurement, perpendicular to the length. Must be in the same unit as the length — the calculator does not convert units for you.
Area
50
The area enclosed by the rectangle, equal to length × width. Reported in the square of whatever unit you entered (square metres if you typed metres, square feet if you typed feet, and so on).
Perimeter
30units
Diagonal
11.1803units

Background.

The Quanta area of a rectangle calculator turns a length and a width into three answers in one keystroke: the area enclosed by the four sides, the perimeter that runs around them, and the diagonal that cuts from one corner to the opposite. The arithmetic is the most elementary in all of geometry — area equals length multiplied by width — but it is also the most relied-upon calculation in everyday life.

It is what tells you how much carpet to order for a 14-foot by 11-foot living room, how many litres of paint will cover the wall behind your sofa, how many tiles you need for a kitchen splashback, how much grass seed to spread on a back garden, how many square metres of cladding to ship to a construction site, and how much you should be paying per square foot for an apartment.

The perimeter sits underneath every estimate for fencing, skirting, picture-frame moulding, weatherstripping, and tape-edge trim. The diagonal underwrites every advertised screen size — when a manufacturer says "55-inch television" they mean the 55-inch diagonal of the 16:9 rectangle, not the width — and it is the number a carpenter measures from corner to corner to confirm that a freshly framed door opening is actually square (if the two diagonals match, the rectangle is true; if they differ, the frame is racked into a parallelogram).

The rectangle is the oldest measured shape in human civilization. Babylonian land surveyors recorded rectangular field areas on clay tablets in the third millennium BCE. Egyptian rope-stretchers used 3-4-5 right triangles to lay out rectangular foundations for temples and tombs along the Nile. Euclid formalised the area of a rectangle in Book I of the Elements around 300 BCE as the product of its sides, and proved (Proposition 35) that two parallelograms on the same base and between the same parallels are equal in area — the lemma that lets the rectangle's simple length-times-width rule extend to every parallelogram, triangle, trapezoid, and ultimately, through the method of exhaustion and modern integral calculus, to every region in the plane.

The formulas this page implements are length × width for area, 2 × (length + width) for perimeter, and √(length² + width²) for the diagonal; the last is a direct consequence of the Pythagorean theorem applied to the right triangle formed by two adjacent sides. The calculator rejects negative or zero side lengths because a rectangle with a side of zero degenerates into a line segment with no enclosed area. Use it for homework, for renovation estimates, for landscape planning, for screen-fit checks, or for the dozens of everyday situations — moving furniture, mounting a TV, ordering blinds, sizing a rug — where you need to turn two tape-measure readings into a useful number. Everything below the widget is the full explainer: what each formula means, where it comes from, how to apply it to real rooms and real projects, and the worked example that walks through a 10-by-5 rectangle from inputs to all three outputs.

What is area of a rectangle calculator?

A rectangle is a four-sided plane figure (a quadrilateral) in which all four interior angles are right angles (90°). A direct consequence of all four angles being right is that opposite sides are parallel and equal in length, which is why every rectangle can be fully described by just two numbers — a length and a width. The area of a rectangle is the number of unit squares that fit inside its boundary; for a rectangle whose sides are integers, you can literally count them, and the count always equals length × width. For non-integer sides the same formula extends by limit and continuity (this is the move Euclid makes in Elements Book VI and that modern calculus formalises with Riemann sums). The perimeter is the total distance around the outside, equal to the sum of all four sides — and because opposite sides are equal, that sum collapses to 2 × (length + width). The diagonal is the straight-line distance between any pair of opposite corners; because a diagonal splits the rectangle into two congruent right triangles whose legs are the length and the width, the diagonal is the hypotenuse, and by the Pythagorean theorem it equals √(length² + width²). A square is the special case of a rectangle in which length and width are equal — every square is a rectangle, but not every rectangle is a square. The rectangle is the foundational shape of measured space because almost every man-made surface — rooms, walls, floors, screens, sheets of paper, building lots, parking spaces, shipping pallets, photographs — is built or framed as a rectangle, and almost every measured estimate for material, coverage, or capacity reduces in the first step to a length-times-width product.

How to use this calculator.

  1. Measure the length and the width of the rectangle in the same unit. If you are estimating a room, take the tape measure along one wall for the length, then along the perpendicular wall for the width. For a wall area, length is horizontal and width is vertical (the wall height).
  2. Enter the length value into the first field. The calculator accepts decimals — so 14.5 feet or 4.32 metres both work — and you can type any positive number.
  3. Enter the width value into the second field, in the same unit you used for the length. Mixing units (feet for length, inches for width) will produce a meaningless answer; convert first if you need to.
  4. Read the primary output: Area. It is reported as "square units" — that is, the square of whatever unit you typed. Entered metres → square metres. Entered feet → square feet. Entered inches → square inches.
  5. Read the two secondary outputs: Perimeter (the distance around the rectangle, in the original unit) and Diagonal (the corner-to-corner straight line, in the original unit). Use perimeter for trim, fencing, and edging estimates; use diagonal for screen-size, sheet-cut, and squareness checks.
  6. For unit conversion downstream — for example, square metres to square feet for a flooring quote — multiply square metres by 10.7639 to get square feet, or divide square feet by 10.7639 to get square metres. The Quanta unit converter handles this in one step.

The formula.

A = l × w

Three formulas, all derived from the definition of a rectangle as a four-sided shape with four right angles and equal opposite sides. Area: A = l × w. The proof for integer side lengths is visual — divide the rectangle into a grid of l columns and w rows of unit squares, count them, and you get l × w. Euclid generalised this to all real-valued sides in Elements Book VI by the method of equal ratios, and modern measure theory formalises it through the product measure on ℝ². Perimeter: P = 2 × (l + w). Walk around the four sides once: you cover length, width, length, width — two of each — which sums to 2l + 2w, factored as 2(l + w). Diagonal: d = √(l² + w²). Draw a diagonal from any corner to the opposite corner. The diagonal cuts the rectangle into two right triangles, each with legs of length l and w. The diagonal itself is the hypotenuse of either of those triangles, so by the Pythagorean theorem (Euclid, Elements Book I, Proposition 47) the diagonal length is the square root of the sum of the squares of the two legs: d = √(l² + w²). A useful consequence: the two diagonals of any rectangle are equal in length and bisect each other at the centre of the rectangle. Carpenters and framers use this fact constantly — if you measure both diagonals of a door opening or window frame and they match, the opening is square; if they differ by more than a couple of millimetres, the frame is racked into a parallelogram and needs to be adjusted before the door or window is hung. The calculator returns all three values simultaneously because in practical work you almost always need more than one of them — an area for the material order, a perimeter for the trim, a diagonal for the layout check.

A worked example.

Example

A rectangle 10 units long by 5 units wide. The arithmetic: Area = 10 × 5 = 50 square units. Perimeter = 2 × (10 + 5) = 2 × 15 = 30 units. Diagonal = √(10² + 5²) = √(100 + 25) = √125 ≈ 11.18 units. Read those numbers in whatever unit you measured in — if those were metres, the room is 50 square metres with a 30-metre perimeter and an 11.18-metre diagonal. If you were planning carpet for a 10-foot by 5-foot bedroom, you would need 50 square feet of carpet plus the standard 10% overage for cuts and pattern matching, so order around 55 square feet. The perimeter tells you to buy 30 feet of skirting board for the wall base. The diagonal is the longest piece of furniture you could swing flat across the floor — a sofa just under 11 feet would fit diagonally even if the room is only 10 feet long. Replace those numbers with your own length and width and the three outputs scale linearly with your inputs (the area scales as the product, the perimeter as the sum, the diagonal as the Pythagorean combination).

length10
width5

Frequently asked questions.

How do I calculate the area of a rectangle?
Multiply the length by the width. If the rectangle is 12 feet long and 8 feet wide, the area is 12 × 8 = 96 square feet. The two measurements must be in the same unit — both feet, both metres, both centimetres — and the answer comes out in the square of that unit (square feet, square metres, square centimetres). The Quanta calculator above does the multiplication for you and additionally returns the perimeter and the diagonal so you have every measurement you need for a renovation, a flooring order, or a homework problem in one place.
What is the formula for the area of a rectangle?
A = l × w, where l is the length and w is the width. This is the simplest area formula in classical geometry and was formalised by Euclid in Book I of the Elements around 300 BCE. Every other area formula in plane geometry — for triangles, parallelograms, trapezoids, circles via integration — can ultimately be derived from the rectangle's length-times-width rule, which is why it sits at the foundation of how mathematicians measure flat space.
How many square feet is a 10 by 12 room?
120 square feet. The arithmetic is 10 ft × 12 ft = 120 sq ft. For flooring, add a 10% waste allowance (132 sq ft) for cuts, plank-pattern matching, and damaged pieces. For paint on a single wall 10 ft wide and 12 ft tall, the same 120 sq ft applies — one gallon of paint typically covers 350–400 sq ft with one coat, so a single gallon comfortably handles a 120 sq ft wall with two coats.
How much paint do I need for a rectangular wall?
Compute the wall area (width × height in feet) and divide by the paint's coverage rate. Most interior latex paints cover 350–400 square feet per gallon for one coat on a primed, smooth surface — call it 375 as a working average. A 14 ft by 9 ft wall is 126 sq ft, which needs 126 ÷ 375 ≈ 0.34 gallons per coat, or about 0.7 gallons for two coats. Round up to the nearest container size (in this case a single one-gallon can). Subtract the area of doors (about 21 sq ft each) and windows (about 15 sq ft each) before dividing.
How do I work out the perimeter of a rectangle?
Add the length and the width, then multiply by two: P = 2(l + w). For a 14-foot by 11-foot room, perimeter = 2 × (14 + 11) = 2 × 25 = 50 feet. This is the number you need when buying skirting board, baseboard, crown moulding, fencing, or any other material that runs around the edge of a rectangular area. Subtract the width of any door openings (typically about 3 feet each) for baseboard estimates.
What is the diagonal of a rectangle and how do I find it?
The diagonal is the straight-line distance from one corner of the rectangle to the opposite corner. By the Pythagorean theorem it equals √(length² + width²). For a 16:9 television with a 55-inch diagonal, the screen is √((48²) + (27²)) ≈ 55 inches — confirming that screen sizes really are advertised by the diagonal of the 16:9 rectangle, not by the width. Carpenters use the diagonal as a squareness check: measure both diagonals of a frame, and if they are equal the frame is square; if they differ, the frame is racked into a parallelogram.
What units does the area come out in?
Whatever unit you entered, squared. Enter metres and the area is in square metres. Enter feet and the area is in square feet. Enter centimetres and the area is in square centimetres. The calculator never converts between unit systems — you have to do the conversion yourself before entering, or convert the result afterwards. Useful conversions: 1 square metre = 10.7639 square feet; 1 square yard = 9 square feet; 1 acre = 43,560 square feet; 1 hectare = 10,000 square metres.
What is the difference between a rectangle and a square?
A square is the special case of a rectangle in which the length and the width are equal. Every square is also a rectangle (all interior angles are 90°), but not every rectangle is a square. For a square of side s, the area simplifies to s², the perimeter simplifies to 4s, and the diagonal simplifies to s√2 (about 1.414s). If you enter the same number for both length and width on this calculator, you get the square's measurements directly.
How do I calculate the floor area of a non-rectangular room?
Split it into rectangles. Most real rooms are L-shaped, T-shaped, or have alcoves; you can almost always divide the plan into two or three rectangles, compute each rectangle's area separately, and add them up. For genuinely curved shapes (a bay window, a rounded corner), approximate the curve with a rectangle of equivalent average width, or use the area of a circle or trapezoid formula. The error in approximating a small curved alcove with a rectangle is usually less than 5%, which is well within the waste-allowance margin you would add to a flooring order anyway.
Why does the calculator reject a length or width of zero?
A rectangle with one side of length zero is no longer a rectangle — it collapses into a line segment, which has zero area and is one-dimensional rather than two-dimensional. Negative lengths are even more meaningless — there is no such thing as a negative physical distance. The calculator enforces the rule "length > 0 and width > 0" so that the answer it returns is always a real rectangle, not a degenerate shape or a sign error. If you entered zero by accident, increase the value to a positive number and the calculation will succeed.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 313 calculators remain free
  • No billing is enabled
Coming soon