Rectangle Calculator
The rectangle is the most common shape in everyday measurement, from rooms and tabletops to screens, sections of land and sheets of material, so being able to read off its key numbers quickly is genuinely useful. This calculator takes the length and the width of a rectangle, along with the unit you are working in, and returns the three figures you most often need: the area, the perimeter and the diagonal. The area is simply the length multiplied by the width, and because you are multiplying two lengths the answer comes out in square units, such as square metres or square feet. The perimeter is the total distance around the outside. A rectangle has two long sides and two short sides, so you add the length and the width and double the result. The diagonal is the straight line joining opposite corners, and it follows from the Pythagorean theorem because the diagonal is the hypotenuse of the right triangle made by one length and one width: it equals the square root of the length squared plus the width squared. You can work in millimetres, centimetres, metres, kilometres, inches or feet, and every result is shown in the matching unit so you never have to convert by hand. This tool is built for students checking geometry homework, tradespeople and renovators estimating materials, gardeners and farmers measuring plots, and anyone who needs the area, perimeter or diagonal of a four-sided shape with right angles. Enter your length and width below, pick a unit, and all three results update instantly as you type.
The formula
The area of a rectangle is the length times the width. The perimeter is twice the sum of the length and the width. The diagonal is the square root of the length squared plus the width squared, which comes from the Pythagorean theorem.
area = L × W
perimeter = 2 × (L + W)
diagonal = √(L² + W²)
Worked example
A rectangle is 5 m long and 3 m wide. The area is 5 × 3 = 15 square metres. The perimeter is 2 × (5 + 3) = 16 metres. The diagonal is √(5² + 3²) = √34, about 5.831 metres.
Who this calculator is for
This calculator is for students, tradespeople, renovators, gardeners and anyone measuring a rectangular space or sheet of material who needs its area, perimeter or diagonal.
What this calculator assumes
- The length and width you enter, both in the unit you select.
- The shape is a true rectangle, with four right angles.
- Area is shown in square units of the unit you chose.
- Results are rounded for display.
Frequently asked questions
How do I calculate the area of a rectangle?
Multiply the length by the width. The answer is in square units, so 5 metres by 3 metres gives 15 square metres.
How do I calculate the perimeter of a rectangle?
Add the length and the width and multiply by two, because there are two pairs of equal sides. A 5 by 3 rectangle has a perimeter of 16.
How do I find the diagonal of a rectangle?
Take the square root of the length squared plus the width squared. A 5 by 3 rectangle has a diagonal of about 5.83.
Related calculators
- Perimeter Calculator: distance around a shape.
- Trapezoid Calculator: area of a trapezoid.
- Slope Calculator: gradient between two points.
- All Maths & Statistics Calculators.