Rectangle Calculator
Enter a rectangle length and width to get its area, perimeter and diagonal.
A length greater than 0, like 8.
A width greater than 0, like 5.
Try
Result
You entered
Perimeter
Diagonal
Show the work
Area of a rectangle
The area counts the unit squares that fit inside, which is the length times the width. Here and .
Perimeter of a rectangle
The perimeter is the distance round the edge: two lengths and two widths, so add and and double the total. Here and .
Pythagorean theorem
The diagonal cuts the rectangle into two right triangles in which it is the hypotenuse, so the square of is the sum of the squares of the two sides. Here and .
Result
So the area is square units, the perimeter is units and the diagonal is units.