How to Calculate Perimeter
Calculate the perimeter of rectangles, squares, and triangles.
The Formula
P = 2(l+w)The perimeter formula uses the mathematical relationship: P = 2(l+w). Each variable in the formula represents a measurable quantity that affects the final result.
What Each Variable Means
Every value in the perimeter formula, what it measures, and the value used in the worked example on this page:
| Variable | Type | Example value |
|---|---|---|
| Length (l) | Input (you provide) | 8 |
| Width (w) | Input (you provide) | 5 |
| Rectangle Perimeter | Result (calculated) | — |
| Square Perimeter (using l) | Result (calculated) | — |
| Circle Circumference (radius = l) | Result (calculated) | — |
Step-by-Step Method
- 1Write down the values you know: Length (l), Width (w).
- 2Substitute your known values into the formula: P = 2(l+w).
- 3Work through the arithmetic in the standard order of operations — parentheses first, then exponents, then multiplication and division, then addition and subtraction.
- 4Check that your result carries the correct unit and falls in a reasonable range for the problem.
- 5Verify your answer with the interactive Perimeter Calculator — it solves the same formula instantly.
Worked Example
Take a concrete case: length (l) = 4, with the other inputs at the typical values from the variables table above. Substituting into the formula gives rectangle perimeter = 18.0000, square perimeter (using l) = 16.0000, circle circumference (radius = l) = 25.1327. These numbers are solved by the same engine that powers the Perimeter calculator, so you can reproduce them exactly by entering the same inputs there.
| Length (l) | Rectangle Perimeter | Square Perimeter (using l) | Circle Circumference (radius = l) |
|---|---|---|---|
| 2 | 14.0000 | 8.0000 | 12.5664 |
| 4 | 18.0000 | 16.0000 | 25.1327 |
| 6 | 22.0000 | 24.0000 | 37.6991 |
| 8 | 26.0000 | 32.0000 | 50.2655 |
| 10 | 30.0000 | 40.0000 | 62.8319 |
| 20 | 50.0000 | 80.0000 | 125.6637 |
| 30 | 70.0000 | 120.0000 | 188.4956 |
How each result changes as length (l) changes, holding the other inputs constant.
Practice Problems
1. Room 8m × 5m: Given Length (l) 8, Width (w) 5, what does it come out to?
Answer: The calculator returns Rectangle Perimeter 26.0000, Square Perimeter (using l) 32.0000, Circle Circumference (radius = l) 50.2655 for Length (l) 8, Width (w) 5.
2. You enter Length (l) 37.13, Width (w) 21 — what does the calculator return?
Answer: With Length (l) 37.13, Width (w) 21, the results are Rectangle Perimeter 116.2600, Square Perimeter (using l) 148.5200, Circle Circumference (radius = l) 233.2947.
Frequently Asked Questions
What is the formula for perimeter?
The formula is: P = 2(l+w). Calculate the perimeter of rectangles, squares, and triangles.
What values do I need to calculate perimeter?
You need length (l), width (w). The calculator produces rectangle perimeter, square perimeter (using l), circle circumference (radius = l) from those inputs.
What is the perimeter when length (l) is 4?
With length (l) = 4, the result is rectangle perimeter = 18.0000, square perimeter (using l) = 16.0000, circle circumference (radius = l) = 25.1327. This is worked through in full in the example on this page.
Related Topics
Use the Interactive Calculator
Skip the manual math — get instant results with our free Perimeter calculator.
