Rectangle Perimeter Calculator: Easy Steps to Find the Distance Around
ByMuhammad Ali•Founder of KruskalCode
16:58
5 min read

Understanding the perimeter of a rectangle is a fundamental concept in geometry, essential for everything from school homework to real-world projects like fencing a garden or framing a picture. Simply put, the perimeter is the total distance around the outside edge of a shape. This guide will walk you through the formula, provide clear examples, and show you how to use our online Rectangle Perimeter Calculator to get instant results.
Explanation
A rectangle is a four-sided shape where opposite sides are equal in length and all angles are right angles (90 degrees). To find its perimeter, you need to add up the lengths of all four sides. Since a rectangle has two lengths and two widths, the formula simplifies this process. Imagine walking around the edge of a rectangular field; the total distance you walk is its perimeter. This concept is crucial for understanding space and measurement.
Formula
The formula for the perimeter of a rectangle is straightforward: Perimeter (P) = Length (L) + Width (W) + Length (L) + Width (W) Which can be simplified to: P = 2 × (L + W) For a square, where Length = Width (Side 's'), the formula becomes: P = 4 × s
Example
Let's say you have a rectangular swimming pool that is 20 meters long and 10 meters wide. To find its perimeter using the formula: P = 2 × (Length + Width) P = 2 × (20 meters + 10 meters) P = 2 × (30 meters) P = 60 meters So, the perimeter of the swimming pool is 60 meters. If you wanted to put a rope around it, you'd need 60 meters of rope.
How to use the related calculator
Using our Rectangle Perimeter Calculator is super easy! Just enter the 'Length' of your rectangle into the first input field and the 'Width' into the second. Make sure both values are positive numbers. Once you've entered them, the calculator will instantly display the perimeter, along with the step-by-step calculation, showing you exactly how the result was reached. You can use any consistent unit of measurement (e.g., feet, meters, inches) – just remember that your result will be in the same unit.
Try the related calculator
Open toolFAQ
What is the perimeter of a rectangle?
The perimeter of a rectangle is the total distance around its outer boundary. It's found by adding up the lengths of all four sides.
How do I calculate the perimeter of a square?
Since a square is a special type of rectangle where all four sides are equal, you can calculate its perimeter by multiplying the length of one side by four, or by using the rectangle formula with length and width being the same value.
Why is the perimeter formula 2 * (length + width)?
A rectangle has two pairs of equal sides: two lengths and two widths. So, you add one length and one width, and then multiply that sum by two to account for all four sides.
Related articles

About the author
Muhammad Ali. Muhammad Ali is a full-stack developer and founder of KruskalCode. He builds SaaS platforms and automation systems with React and Laravel, and helps teams ship fast, scalable tools.
Need a custom calculator, dashboard, or automation workflow? Reach out to KruskalCode.