Rectangle Calculator
Enter the length and width of a rectangle to get its area, perimeter and diagonal length.
| Area | 108 sq units |
|---|---|
| Perimeter | 42 |
| Diagonal | 15 |
| Aspect ratio (l : w) | 1.333 : 1 |
Link to this calculation – copied!
Formula
P = 2(l + w)
d = √(l2 + w2)
| Symbol | Meaning |
|---|---|
| l | Length |
| w | Width |
| A | Area |
| P | Perimeter |
| d | Diagonal |
How to Use This Calculator
- Enter the Length.
- Enter the Width.
- Press Calculate. Results also update automatically as you type.
Worked Example
Using the values pre-filled in the calculator above:
| Length | 12 |
|---|---|
| Width | 9 |
| Area | 108 sq units |
|---|---|
| Perimeter | 42 |
| Diagonal | 15 |
| Aspect ratio (l : w) | 1.333 : 1 |
About This Calculation
A rectangle is a four-sided shape with four right angles, so opposite sides are equal and parallel. Its area is length times width, its perimeter is the distance all the way around, and its diagonal — found with the Pythagorean theorem — is the longest straight line that fits inside it. A square is simply a rectangle whose length and width are equal.
Area and perimeter answer different questions, and mixing them up is the classic mistake. Area tells you how much carpet, paint or turf you need to cover a surface; perimeter tells you how much skirting board, fencing or edging goes around it. Two rectangles can have the same perimeter but very different areas: a 10 × 10 plot and an 18 × 2 plot both need 40 units of fence, yet the square encloses 100 square units and the long strip only 36. Always measure in one unit; mixing feet and inches is a frequent source of errors.
The diagonal is useful in practice too. Television and monitor sizes are quoted as diagonals, and builders check that a rectangular frame is square by confirming both diagonals are equal. When ordering materials, add an allowance of 5–10% for cutting waste. To convert the area between units, use the area converter.
Frequently Asked Questions
- How do I calculate square footage of a room?
- Measure the length and width in feet and multiply. A 12 ft × 9 ft room is 108 square feet. Split L-shaped rooms into rectangles and add them together.
- How do I check that a corner is a true right angle?
- Measure both diagonals of the rectangle. If they are equal, all four corners are square. You can also use the 3-4-5 rule from the Pythagorean theorem.