CalcUnit Logo

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:

VariableTypeExample value
Length (l)Input (you provide)8
Width (w)Input (you provide)5
Rectangle PerimeterResult (calculated)—
Square Perimeter (using l)Result (calculated)—
Circle Circumference (radius = l)Result (calculated)—

Step-by-Step Method

  1. 1Write down the values you know: Length (l), Width (w).
  2. 2Substitute your known values into the formula: P = 2(l+w).
  3. 3Work through the arithmetic in the standard order of operations — parentheses first, then exponents, then multiplication and division, then addition and subtraction.
  4. 4Check that your result carries the correct unit and falls in a reasonable range for the problem.
  5. 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 PerimeterSquare Perimeter (using l)Circle Circumference (radius = l)
214.00008.000012.5664
418.000016.000025.1327
622.000024.000037.6991
826.000032.000050.2655
1030.000040.000062.8319
2050.000080.0000125.6637
3070.0000120.0000188.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

perimetergeometry

Use the Interactive Calculator

Skip the manual math — get instant results with our free Perimeter calculator.

Open Calculator

Related Calculators