CalcSeed

Rectangle Calculator

Enter the length and width of a rectangle and get its area, perimeter and diagonal instantly — or solve for a missing side from the area.

=
Quick answer: with the default inputs (5 units, 3 units), the area is 15 units². At these inputs: perimeter = 16, diagonal = 5.83. Change any input to update the result.
Area
—

What this calculator does

Enter a rectangle’s length and width and the calculator returns three outputs: the area in units², the perimeter in units, and the diagonal in units. At the defaults of 5 × 3 it reports an area of 15, a perimeter of 16 and a diagonal of 5.83. It also runs in reverse: clear a side, enter the area, and it solves for the missing dimension.

The three formulas

A=lw,P=2(l+w),d=l2+w2A=lw,\ P=2(l+w),\ d=\sqrt{l^2+w^2}

The area counts the unit squares inside: length times width, measured in units². The perimeter walks all four edges — two lengths and two widths — so it is 2(l + w) in plain units. The diagonal is the hypotenuse of the right triangle formed by two adjacent sides, so the Pythagorean theorem gives d = √(l² + w²). Three quite different quantities, all derived from the same pair of numbers.

Worked example at the default size

For l = 5 and w = 3: the area is 5 × 3 = 15 units²; the perimeter is 2 × (5 + 3) = 16 units; the diagonal is √(25 + 9) = √34 ≈ 5.83 units. Solving backwards works the same way — if you know the floor is 15 ft² and the length is 5 ft, the width is 15 ÷ 5 = 3 ft.

Watch what a fixed area does to the other outputs. All of these rectangles have an area of 15:

Same area, different shapes

LengthWidthAreaPerimeterDiagonal
1.510152310.11
3 (default)515165.83
3.873 (square)3.8731515.495.48
151153215.03

The square — length and width both √15 ≈ 3.873 — has the shortest perimeter (15.49) and the shortest diagonal of any 15-square-unit rectangle. Stretch the same area long and thin and the perimeter climbs without limit. This is the square-is-most-efficient rule at work, and it explains why square or near-square rooms are cheapest to build and easiest to heat.

Real rectangles run through the formulas

RectangleSizeAreaDiagonal
Basketball court94 ft × 50 ft4,700 ft²106.47 ft
US letter paper8.5 in × 11 in93.5 in²13.90 in
This calculator at defaults5 × 3155.83
55-inch 16:9 TV47.97 in × 26.98 in1,294 in²55 in

The TV row shows the diagonal working in reverse: a screen’s advertised size is its diagonal, and the 16:9 ratio fixes the sides at 47.97 × 26.98 inches. The basketball court’s 106.47 ft diagonal is exactly how officials square the court — measure both diagonals, and they must match.

Squaring a frame with the diagonal

A rectangle has equal diagonals if and only if its corners are true 90°. Builders exploit this: after framing a wall or deck, they tape both diagonals. If both read the same — 5.83 and 5.83 in the default example — the frame is square. If one reads longer, the frame is racked into a parallelogram and needs pushing back before sheathing goes on.

What moves each number

  • Area grows multiplicatively. Doubling both sides multiplies the area by 4: 5 × 3 becomes 10 × 6 = 60.
  • Perimeter grows additively. The same doubling raises the perimeter only from 16 to 32, a factor of 2.
  • Diagonal scales like the sides. Doubling both sides doubles the diagonal, from 5.83 to 11.66.
  • One-sided stretching raises area and perimeter together but skews the shape toward the inefficient thin rectangle in the table above.

Common mistakes

  • Buying material by the perimeter. Flooring follows area (15 ft² at the defaults, plus a 5–10% waste allowance), while baseboard follows perimeter (16 ft). Mixing them up under- or over-orders badly.
  • Quoting units loosely. 15 is the area in units²; 16 and 5.83 are in plain units. Writing “15 feet” for a 5 × 3 room is a dimensional error, not a rounding.
  • Measuring the frame instead of the opening. Door and window rough openings, not the finished frame, define tile and trim cuts.
  • Assuming a room is square. Out-of-plumb corners mean the true area needs both diagonals measured; if they differ, split the room into two triangles.

Related shapes and conversions

Every result here extends to three dimensions in the cuboid calculator, where volume adds a third side to the multiplication. If the quadrilateral’s angles are not right angles, the parallelogram calculator shows how the area shrinks by a factor of the sine of the corner angle — a 30° lean cuts the area in half. And when the final number needs to live in acres, square yards or square metres, the area converter handles the translation.

Frequently asked questions

How do I find the area of a rectangle?

Multiply length by width: A = l × w. A 5 × 3 rectangle has an area of 15 square units of whatever unit you measured in.

How do I find the diagonal of a rectangle?

Use the Pythagorean theorem: d = √(l² + w²). For 5 × 3, d = √(25 + 9) = √34 ≈ 5.83.

How do I solve for the width if I know the area?

Divide the area by the length: w = A ÷ l. For an area of 15 and a length of 5, the width is 3. Enter the area and length, then solve for width.

How do I find the perimeter?

Add the two sides and double: P = 2(l + w). For 5 and 3, P = 2 × 8 = 16 units.

Which rectangle shape has the least perimeter for a given area?

The square. For an area of 15, the square with sides √15 ≈ 3.873 has a perimeter of 15.49, less than the default 5 × 3 rectangle’s 16.

If I double the length and width, what happens to the numbers?

Area quadruples (15 to 60), perimeter doubles (16 to 32), and the diagonal doubles (5.83 to 11.66). Area is multiplicative; the other two are linear.

How do builders check that a frame is square?

Tape both diagonals. A true rectangle has equal diagonals — two readings of 5.83 on a 5 × 3 frame confirm 90° corners; unequal diagonals mean the frame is racked.

How large is a basketball court in area and diagonal?

A 94 ft × 50 ft court covers 4,700 ft² with a 288 ft perimeter and a diagonal of √(8,836 + 2,500) ≈ 106.47 ft.

Why is a TV described by its diagonal?

The advertised size is the screen diagonal: a 55-inch 16:9 TV measures about 47.97 in by 26.98 in, since 47.97² + 26.98² ≈ 55².

Can two rectangles have the same area but different shapes?

Yes, endlessly. 1.5 × 10, 3 × 5 and 15 × 1 all have area 15, but their perimeters run 23, 16 and 32 — the area alone never pins down the shape.

Method and sources

Calculation basis

Formulas are the standard closed-form expressions of Euclidean geometry, exact for the given inputs.

Last updated: November 17, 2026
Formula & data sources
  • Rectangle: A = lw, P = 2(l + w), d = √(l² + w²).

Cite this page

Reference formats
APA 7CalcSeed. (2026, November 17). Rectangle Calculator. https://calcseed.com/c/geometry/rectangle-calculator/
MLA 9"Rectangle Calculator." CalcSeed, 17 Nov. 2026, calcseed.com/c/geometry/rectangle-calculator/.
ChicagoCalcSeed. "Rectangle Calculator." Last modified November 17, 2026. https://calcseed.com/c/geometry/rectangle-calculator/

Related calculators

More Geometry calculators