Rectangle Calculator
Enter the length and width to find a rectangle's area, perimeter and diagonal.
Reviewed by the WorldCalcs team · Methodology · Last reviewed: June 2026
Area
40
A = l × w
Perimeter
26
P = 2(l + w)
Diagonal
9.433981132
d = √(l² + w²)
What is a rectangle?
A rectangle is a four-sided shape with four right angles, where opposite sides are equal in length. The two key measurements are the length and the width. From these you can work out the area (the space it covers), the perimeter (the distance around it) and the diagonal (the straight line from one corner to the opposite corner).
The rectangle formulas
With length l and width w: the area is A = l × w, the perimeter is P = 2(l + w), and the diagonal is d = √(l² + w²). The diagonal comes from the Pythagorean theorem, because it splits the rectangle into two right triangles.
Example
A rectangle 8 long and 5 wide has an area of 8 × 5 = 40, a perimeter of 2 × (8 + 5) = 26, and a diagonal of √(8² + 5²) = √89 ≈ 9.434.
All calculations happen in your browser. Nothing is sent, stored, or tracked.
Results are estimates and may contain errors — for general information only, not professional advice. Always verify before relying on them. Disclaimer
How to use
Type positive values for the length and width. The calculator returns the area (length × width), perimeter (2 × (length + width)) and diagonal (√(length² + width²)) instantly.
Values are rounded to about 6 significant digits.
Frequently asked questions
How do you find the area of a rectangle?+
How do you find the perimeter of a rectangle?+
What is the diagonal of a rectangle?+
Is a square a rectangle?+
What units does the result use?+
Related calculators
- Circle CalculatorDiameter, circumference and area from the radius.
- Pythagorean TheoremFind the hypotenuse or a missing leg of a right triangle.
- Triangle Area CalculatorArea from base and height, or from three sides with Heron's formula.
- Cylinder CalculatorVolume and total surface area from radius and height.