Calculator tool
How this calculator works
Use the explanation to understand the formula, assumptions, and practical limits behind the calculator result.
What a Rectangle Is
A rectangle is a four-sided shape where every corner is a right angle (90°). Opposite sides are equal in length. A square is a special rectangle where all four sides are equal.
Formulas
Let be the length and be the width.
| Measurement | Formula |
|---|---|
| Area | |
| Perimeter | |
| Diagonal |
The diagonal formula comes directly from the Pythagorean theorem: the diagonal splits the rectangle into two right triangles.
Worked Example
For a rectangle 10 m long and 6 m wide:
Unit Rules
Use the same unit for both length and width. If you enter meters, area is in square meters. If you enter centimeters, area is in square centimeters. Mixing units — for example, entering length in meters and width in centimeters — gives a wrong result.
Where Rectangles Appear
Rectangle calculations apply to rooms (floor area, skirting board length), building plots (land area), screens and canvases (display area), picture frames, doors, windows, tiles, and garden beds. The diagonal formula is useful when measuring across a space to confirm a right-angle corner.
Frequently asked questions
How do I find the area of a rectangle?
Multiply length by width: . For a room 5 m long and 4 m wide, the area is . This tells you how many square meters of flooring or carpet you need, ignoring waste.
How is the diagonal of a rectangle calculated?
The diagonal divides the rectangle into two identical right triangles, so the Pythagorean theorem applies directly: . For a 3 m × 4 m rectangle, the diagonal is . Builders use the diagonal to check that a corner is truly square — if the measured diagonal matches the calculated one, the right angle is correct.
What is the difference between area and perimeter for a rectangle?
Area is the surface enclosed inside the shape, measured in square units such as m². Use it for flooring, paint coverage, and material quantities. Perimeter is the total distance around the shape, measured in linear units such as meters. Use it for fencing, framing, or skirting boards. A 10 m × 2 m rectangle and a 5 m × 4 m rectangle both have area 20 m², but their perimeters differ: 24 m versus 18 m.
Can I use this calculator for a square?
Yes. Enter the same value for both length and width, and the calculator gives the correct area, perimeter, and diagonal for a square. For a dedicated square tool with inscribed-circle radius and other square-specific values, use the Square Calculator.