Rectangle and Square Calculator
Find the area, perimeter, diagonal or aspect ratio of a rectangle or square from its length and width.
Last updated: October 2026
Result
96 square units
Formula below · 1 source (mathworld.wolfram.com) · Updated Oct 2026
Compare with similar
About this calculator
A rectangle is a four-sided shape with four right angles, so two numbers, its length and width, fix everything else about it. A square is the special case where both are equal.
The formulas
• Area = length × width (in square units) • Perimeter = 2 × (length + width) • Diagonal = √(length² + width²), from the Pythagorean theorem, because the diagonal splits the rectangle into two right triangles • Aspect ratio = length ÷ width For a square with side s: area = s², perimeter = 4s and diagonal = s × √2.
Example: a 12 × 8 ft room has an area of 96 sq ft, a perimeter of 40 ft and a diagonal of √208 = 14.42 ft.
Units
Use the same unit for both sides. The area comes out in that unit squared: feet give square feet, meters give square meters. To convert square feet to square yards divide by 9, and square inches to square feet divide by 144.
Practical uses
Area tells you how much flooring, paint coverage, sod or fabric you need; perimeter tells you how much baseboard, fencing or trim. Measuring both diagonals is a quick check that a frame or foundation layout is square: if they match, the corners are right angles. For other shapes, split the floor plan into rectangles and add their areas.
Area, perimeter and diagonal of some everyday rectangles
Scroll sideways to see all columns →
| Rectangle | Size | Area | Perimeter | Diagonal |
|---|---|---|---|---|
| Bedroom | 12 ft × 10 ft | 120 sq ft | 44 ft | 15.62 ft |
| Letter paper | 11 in × 8.5 in | 93.5 sq in | 39 in | 13.90 in |
| Plywood sheet | 8 ft × 4 ft | 32 sq ft | 24 ft | 8.94 ft |
| Parking space | 18 ft × 9 ft | 162 sq ft | 54 ft | 20.12 ft |
| Tennis court (doubles) | 78 ft × 36 ft | 2808 sq ft | 228 ft | 85.91 ft |
How to use
Enter the length and width in the same unit and choose what to calculate. The defaults, 12 by 8, give an area of 96 square units; switch to perimeter for 40, diagonal for 14.42, or aspect ratio for 1.5:1. Pick "Square" to use the length for all four sides. For an L-shaped room, split it into two rectangles, calculate each area and add them.
Frequently asked questions
How do I find the area of a rectangle?
Multiply the length by the width. A room 12 ft long and 8 ft wide has an area of 12 × 8 = 96 square feet.
How do I find the diagonal of a rectangle?
Square the length and the width, add them and take the square root. For 12 by 8: √(144 + 64) = √208 ≈ 14.42. For a square, multiply the side by √2 ≈ 1.414.
What is the difference between area and perimeter?
Area is the space inside the shape, in square units, and is what you use for flooring or paint. Perimeter is the distance around the edge, in ordinary units, and is what you use for fencing, trim or baseboards.
How do I calculate the area of an irregular room?
Divide it into rectangles that do not overlap, find the area of each and add them. Subtract the area of any cut-out, such as a fireplace, the same way.
Related calculators
Sources & references
Think a result is wrong? Report a problem with this calculator.