Skip to content

Math

Rectangle Calculator

Enter the length and width of a rectangle in the same unit. The calculator returns the area, the perimeter, and the diagonal. Area uses square units, while perimeter and diagonal use the original unit. Results are rounded, and the shape must have four right angles. It is a geometry aid for homework, flooring, framing, and layout checks.

Updated 2026-11-12 Editorial estimate Calccc Editorial Team Free · No sign-up

Loading calculator…

What this calculator does

A rectangle needs only two numbers: length and width. From them come area, the space inside; perimeter, the distance around; and diagonal, the straight line between opposite corners. The formulas are short, but mixing up units or confusing area with perimeter is common. This calculator keeps the three results together and reports area in square units. Use it for a room, a garden bed, a sheet of paper, or a quick homework check.

How to use it

  1. Enter the length in your chosen unit.
  2. Enter the width in the same unit.
  3. Read the area in square units and the perimeter in linear units.
  4. Read the diagonal, which uses the linear unit too.
  5. Change either side to compare two rectangles.

How it works

Area = length x width, reported in square units. Perimeter = 2 x (length + width), in linear units. Diagonal = the square root of (length squared + width squared), from the Pythagorean theorem. For a 12 by 10 rectangle, area is 120 square units, perimeter is 44 units, and the diagonal is about 15.62 units. Keep both inputs in the same unit before calculating.

Example calculations

Example 1: 12 by 10

Area is 120 square units. Perimeter is 44 units. The diagonal is about 15.62 units, which is longer than either side but shorter than their sum.

Example 2: 5 by 5

A square is a rectangle with equal sides. Area is 25 square units. Perimeter is 20 units, and the diagonal is about 7.07 units.

Example 3: 8.5 by 11

A standard US Letter sheet has an area of 93.5 square inches, a perimeter of 39 inches, and a diagonal of about 13.90 inches.

What the result means

Area answers a covering question, such as how much paint, sod, or flooring a surface needs. Perimeter answers an edge question, such as how much trim or fencing runs around it. The two scale differently. Double both sides and the area becomes four times larger while the perimeter only doubles. The diagonal is the longest straight line inside the rectangle and is useful for checking whether a frame or opening is square: if both diagonals match, the corners are true. Units matter throughout, so convert to one unit first and write area as square feet, square inches, or square meters, not as plain feet.

Common mistakes

  • Confusing area with perimeter and reporting square units for a length.
  • Mixing feet and inches in the same calculation.
  • Squaring the perimeter instead of multiplying length by width.
  • Using the diagonal as if it were the length of a side.
  • Entering a negative or zero dimension.

Assumptions and limits

  • The shape is a true rectangle with four right angles.
  • Both dimensions are positive and use the same unit.
  • The shape is flat, with no thickness or depth.
  • Displayed results are rounded to two decimal places.
  • Length and width are measured along the sides, not diagonally.

Frequently asked questions

How is the diagonal calculated?

The diagonal is the hypotenuse of a right triangle formed by the length and width. Square both sides, add them, then take the square root. For 3 by 4, the diagonal is 5.

What is the difference between area and perimeter?

Area measures the surface inside the rectangle and uses square units. Perimeter measures the distance around the edge and uses linear units.

Is a square a rectangle?

Yes. A square has four right angles like every rectangle, and it adds the rule that all four sides are equal. Enter the same number for length and width.

How do I convert square inches to square feet?

Divide square inches by 144, because one square foot holds 144 square inches. A 93.5 square inch sheet is about 0.65 square feet.

What if length and width use different units?

Convert one to the other first. For example, change 6 inches to 0.5 feet before calculating, or change 3 feet to 36 inches. Do not mix units in one formula.

Can this calculator find the volume of a box?

No. Volume needs a third dimension: length x width x height. This tool covers flat rectangles only, so it returns area, perimeter, and diagonal.

Sources

This calculator is an educational geometry tool. Results are rounded and assume a perfect rectangle with positive sides measured in the same unit. Confirm measurements and units before ordering material or making a cut.

2026 update

How to use the professional output

This page is not just a formula box. The result is designed to be checked, compared, and taken away.

  • Professional worksheet. The result includes the inputs used, the method and scope, and a one-variable sensitivity check for finance calculators.
  • A/B scenarios. Save two input sets in the browser and compare the primary, secondary, and breakdown figures side by side.
  • Print / PDF and CSV. Print a branded worksheet, or export the year-by-year table when the calculator produces one.

The formulas and assumptions above still govern the number. The worksheet makes the estimate auditable; it does not make it a lender quote, tax return, or personalized advice.

Go deeper

Guides that explain the math

Rectangle Calculator: Area, Perimeter, and Diagonal
Math

Rectangle Calculator: Area, Perimeter, and Diagonal

The three rectangle formulas from length and width, with worked examples, backward solving, unit conversion, and the measurement mistakes that skew area and perimeter.

8 min read

Calccc Editorial Team · Updated 2026-11-12

Prepared by Calccc Editorial Team as an educational estimate. This page is not a licensed professional review and is not financial, medical, legal, or tax advice.

Editorial estimate prepared by the Calccc Editorial Team; not a licensed professional review.