Perimeter of a Rectangle
Definition: The total distance around the outside of a rectangle
Try this Drag any orange dot to resize the rectangle. The perimeter is calculated as you drag.

How to find the perimeter of a rectangle

Like any polygon, the perimeter is the total distance around the outside, which can be found by adding together the length of each side. I the case of a rectangle, opposite sides are equal in length, so the perimeter is twice its width plus twice its height. Or as a formula: where:
w is the width of the rectangle
h is the height of the rectangle

In the figure above, drag any orange dot to resize the rectangle. From the width and height shown, calculate the perimeter and verify your result matches the formula at the top of the diagram.


Side 1 clear
Side 2 clear

Use the calculator on the right to calculate the properties of a rectangle.

Enter the two side lengths and the rest will be calculated. For example, enter the two side lengths. The area, perimeter and diagonal lengths will be found.

While you are here..

... I have a small favor to ask. Over the years we have used advertising to support the site so it can remain free for everyone. However, advertising revenue is falling and I have always hated the ads. So, would you go to Patreon and become a patron of the site? When we reach the goal I will remove all advertising from the site.

It only takes a minute and any amount would be greatly appreciated. Thank you for considering it!   – John Page

Become a patron of the site at

Other polygon topics


Types of polygon

Area of various polygon types

Perimeter of various polygon types

Angles associated with polygons

Named polygons