Area of Rectangle Calculator

Calculate the area, perimeter, and diagonal of a rectangle given length and width.

Rectangle Dimensions

Rectangle Diagram

Length = 10Width = 5

Step-by-Step Solution

Step 1: Identify dimensions

Length = 10, Width = 5

Step 2: Calculate Area = Length x Width

A = 10 x 5 = 50

Step 3: Calculate Perimeter = 2(l + w)

P = 2(10 + 5) = 30

Area of Rectangle

50.0000

square units

AArea
50.0000 units^2
PPerimeter
30.0000 units
dDiagonal
11.1803 units
l:wAspect Ratio
2.0000

Common Rectangle Sizes

Size (LxW)AreaPerimeter
2 x 126
4 x 31214
5 x 52520
10 x 55030
16 x 914450

Rectangle Formulas

Area

A = l x w

Perimeter

P = 2(l + w)

Diagonal

d = sqrt(l^2 + w^2)

What Is an Area of Rectangle Calculator?

An area of rectangle calculator computes the enclosed space of a rectangle from its length and width. The formula is the simplest in geometry: A = l × w. But the calculator goes further — it also computes the perimeter (P = 2(l + w)), the diagonal (d = √(l² + w²) via the Pythagorean theorem), the aspect ratio, and even identifies when the rectangle is a perfect square.

Rectangles are everywhere — from room dimensions and screen sizes to land parcels and shipping boxes. Understanding how area, perimeter, and diagonal relate to length and width is fundamental to construction, interior design, manufacturing, and logistics. The diagonal is especially important for determining whether a large piece of furniture will fit through a doorway or corridor.

The calculator supports multiple measurement units (units, cm, m, in, ft) and displays all four derived quantities together, so you get a complete picture from a single pair of inputs. A quick-reference table shows precomputed values for common aspect ratios like 16:9 (widescreen), 4:3 (standard TV), and 5:5 (square).

Rectangle Formulas

The three core formulas all derive from the length l and width w. The diagonal formula is a direct application of the Pythagorean theorem since a rectangle's diagonal forms a right triangle with the sides.

Rectangle Formulas

A = l × w | P = 2(l + w) | d = √(l² + w²)

Where:

  • l= Length — the longer side of the rectangle
  • w= Width — the shorter side of the rectangle

Understanding the Results

OutputMeaning
AreaTotal enclosed space in square units — directly useful for flooring, painting, or material estimates
PerimeterTotal distance around the outside edge — used for fencing, trim, or border material
DiagonalCorner-to-corner distance — the longest straight line you can fit inside, critical for fitting items through openings
Aspect Ratiol:w ratio — tells you the shape's proportions; 1:1 is square, 16:9 is widescreen

If length equals width within a tiny tolerance, the calculator displays a "This is a Square!" badge — a square is a special rectangle where all four sides are equal.

How to Use This Calculator

  1. Enter length (l): Type the longer dimension of the rectangle.
  2. Enter width (w): Type the shorter dimension.
  3. Select unit: Pick from units, cm, m, in, or ft — the area will be reported in that unit squared.
  4. Read the results: The highlighted area value appears first. Below it, four result cards show area, perimeter, diagonal, and aspect ratio. The SVG diagram updates to reflect the entered proportions.

Real-World Applications

In construction and home improvement, rectangle area and perimeter are the most frequently calculated quantities. Flooring contractors need area in square feet to order the right amount of tile or carpet; fence installers need perimeter to estimate materials; and the diagonal tells whether a sofa will fit through a doorway. In packaging and shipping, box dimensions are always rectangular, and the diagonal determines whether an item can be placed diagonally inside a container for a tighter fit.

In digital media, aspect ratios define screen layouts — 16:9 for modern TVs and monitors, 4:3 for older displays, and 1:1 for social media profile images. In agriculture, field area determines seed, fertilizer, and water requirements. Even in art and photography, the golden rectangle (aspect ratio ≈ 1.618) has been used for centuries as a visually pleasing proportion.

Worked Examples

Standard Room Area

Problem:

A room is 12 feet long and 10 feet wide. Find its area and perimeter.

Solution Steps:

  1. 1Enter l = 12, w = 10.
  2. 2Area: A = 12 × 10 = 120 sq ft.
  3. 3Perimeter: P = 2(12 + 10) = 2(22) = 44 ft.
  4. 4Diagonal: d = √(12² + 10²) = √(144 + 100) = √244 ≈ 15.62 ft.

Result:

Area = 120 sq ft, Perimeter = 44 ft, Diagonal ≈ 15.62 ft. Aspect ratio = 1.2:1.

TV Screen Diagonal

Problem:

A widescreen TV has a 48-inch width and 27-inch height. What is the diagonal screen size?

Solution Steps:

  1. 1Enter l = 48, w = 27.
  2. 2Apply Pythagorean theorem: d = √(48² + 27²) = √(2304 + 729) = √3033.
  3. 3Calculate: d ≈ 55.07 inches.

Result:

Diagonal ≈ 55.07 inches (commonly marketed as a 55-inch TV). The area is 1,296 sq in and the aspect ratio is 1.78:1 (16:9).

Square Detection

Problem:

Enter l = 5 and w = 5. Verify the calculator identifies it as a square.

Solution Steps:

  1. 1Enter l = 5, w = 5.
  2. 2The calculator detects Math.abs(5 - 5) ≈ 0, which is below the 0.0001 threshold.
  3. 3Area = 25, Perimeter = 20, Diagonal = √50 ≈ 7.07. Aspect ratio = 1.00.

Result:

The calculator displays 'This is a Square!' badge. Area = 25 sq units, Perimeter = 20 units, Diagonal ≈ 7.0711 units.

Tips & Best Practices

  • If length and width are equal, the calculator shows a 'This is a Square!' badge — all square formulas apply.
  • Use the diagonal to check whether a large piece of furniture will fit through a door — compare the diagonal to the door width.
  • The perimeter tells you how much trim, baseboard, or fencing you need — double the length plus double the width.
  • For rooms that aren't perfectly rectangular, measure the length and width in several places and use the average.
  • Area calculated in feet gives square feet; divide by 9 to convert to square yards for carpet estimates.
  • The aspect ratio helps identify standard formats — 1.78:1 is widescreen (16/9), 1.33:1 is standard (4/3).

Frequently Asked Questions

Area measures the enclosed space inside the rectangle (length × width), reported in square units. Perimeter measures the distance around the outside edge (2(l + w)), reported in linear units. If you're painting a wall, you need area; if you're installing baseboards, you need perimeter.
The diagonal uses the Pythagorean theorem: d = √(l² + w²). This works because the length and width form a right triangle with the diagonal as the hypotenuse. The calculator computes this using JavaScript's Math.sqrt(l * l + w * w).
Aspect ratio (l:w) describes the rectangle's shape independently of size. A 1:1 ratio is a perfect square; 4:3 was the standard TV format; 16:9 is modern widescreen; and the golden ratio ≈ 1.618:1 is considered aesthetically ideal. Two rectangles with the same aspect ratio have proportional dimensions.
Yes, you can enter decimal values like 5.75 or 3.14159 for length and width. The calculator uses parseFloat() to handle decimals and displays results to four decimal places. This precision is sufficient for construction, crafting, and classroom use.

Sources & References

Last updated: 2026-06-06

💡

Help us improve!

How would you rate the Area of Rectangle Calculator?

<>

Editorial Note

MyCalcBuddy Editorial Team

This page is maintained as an educational calculator reference.

Source

Formula Source: Handbook of Mathematical Functions

by Abramowitz & Stegun

UpdatedLast reviewed: May 2026
CheckedFormula checks are based on standard references and internal QA review.