Rectangle Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter a rectangle's length and width to get its area, perimeter and diagonal.
Result
Area (square units)
Perimeter (length units)
- Diagonal (length units)
- Angle between the diagonal and the length (degrees)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Length (any length unit): enter 0 or more.
- Width (same unit): enter 0 or more.
- Read the result: Area (square units); the panel also shows Perimeter (length units), Diagonal (length units) and Angle between the diagonal and the length (degrees).
How this calculator works
Area = length × width. Perimeter = 2 × (length + width). The diagonal follows from the Pythagorean theorem: d = √(l² + w²).
The diagonal makes an angle of arctan(w ÷ l) with the length side.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Length | any length unit | |
| Width | same unit | |
| Area | square units |
Worked example
| Length (any length unit) | 8 |
|---|---|
| Width (same unit) | 6 |
| Perimeter (length units) | 28 |
|---|---|
| Diagonal (length units) | 10 |
| Angle between the diagonal and the length (degrees) | 36.8699 |
Area (square units) 48
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is the diagonal of an 8 by 6 rectangle?
√(8² + 6²) = √100 = 10. Its area is 48 and its perimeter 28.
Is a square a rectangle?
Yes: a square is a rectangle whose length and width are equal.