Area of Rectangle Calculator
Calculate the area, perimeter, and diagonal of a rectangle given length and width.
Rectangle Dimensions
Rectangle Diagram
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
Common Rectangle Sizes
| Size (LxW) | Area | Perimeter |
|---|---|---|
| 2 x 1 | 2 | 6 |
| 4 x 3 | 12 | 14 |
| 5 x 5 | 25 | 20 |
| 10 x 5 | 50 | 30 |
| 16 x 9 | 144 | 50 |
Rectangle Formulas
Area
Perimeter
Diagonal
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
Where:
- l= Length — the longer side of the rectangle
- w= Width — the shorter side of the rectangle
Understanding the Results
| Output | Meaning |
|---|---|
| Area | Total enclosed space in square units — directly useful for flooring, painting, or material estimates |
| Perimeter | Total distance around the outside edge — used for fencing, trim, or border material |
| Diagonal | Corner-to-corner distance — the longest straight line you can fit inside, critical for fitting items through openings |
| Aspect Ratio | l: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
- Enter length (l): Type the longer dimension of the rectangle.
- Enter width (w): Type the shorter dimension.
- Select unit: Pick from units, cm, m, in, or ft — the area will be reported in that unit squared.
- 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:
- 1Enter l = 12, w = 10.
- 2Area: A = 12 × 10 = 120 sq ft.
- 3Perimeter: P = 2(12 + 10) = 2(22) = 44 ft.
- 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:
- 1Enter l = 48, w = 27.
- 2Apply Pythagorean theorem: d = √(48² + 27²) = √(2304 + 729) = √3033.
- 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:
- 1Enter l = 5, w = 5.
- 2The calculator detects Math.abs(5 - 5) ≈ 0, which is below the 0.0001 threshold.
- 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
Sources & References
- Rectangle - Wikipedia (2024)
- Area of Rectangles - Khan Academy (2024)
- Aspect Ratio Guide - W3C (2024)
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.
Formula Source: Handbook of Mathematical Functions
by Abramowitz & Stegun