Calculating Perimeter: Formulas and Examples
- Side length
- 5 m
- You entered
- Number of sides
- 4
- You entered
Calculating perimeter means finding the total distance around a two-dimensional shape: add the lengths of all its outer sides. Enter each side length in the calculator to get the perimeter in the same unit; for a regular shape, you can enter one side and the number of sides instead.
Formula
For a regular polygon, perimeter equals the number of sides multiplied by the length of one side:
P = n × s
- P is perimeter, measured in the same length unit as the side.
- n is the number of sides, a count with no unit.
- s is the length of one side.
The calculator uses this regular-polygon formula. It assumes every side has the same length. For a shape with unequal sides, add the length of every outer side instead; a single side length and side count are not enough to determine that perimeter.
Worked Example
The default entries are a side length of 5 m and 4 sides. Substitute them into the formula:
- P = n × s
- P = 4 × 5 m
- P = 20 m
The calculator reports 20.00 m, displaying the result to two decimal places. The exact perimeter is 20 m; the extra zeros are only a display choice.
Perimeter of Common Shapes
Different shapes use the same core idea—measure the outside boundary—but their formulas can make the calculation quicker:
- Square: P = 4s, where s is the side length.
- Rectangle: P = 2l + 2w = 2(l + w), where l is length and w is width.
- Triangle: P = a + b + c, the sum of its three side lengths.
- Regular polygon: P = ns, where all n sides have equal length.
- Circle: Its boundary is called circumference. C = 2πr or C = πd, where r is radius and d is diameter.
For example, a rectangle 8 ft long and 3 ft wide has perimeter 2(8 + 3) = 22 ft. A triangle with sides 4 cm, 6 cm, and 7 cm has perimeter 17 cm. These examples require the dimensions of every distinct side, not an assumption that the shape is regular.
How to Measure and Use the Result
To find a real object’s perimeter, measure along its boundary rather than across its interior. For a rectangle, measure its length and width; for an irregular outline, record each straight section and add them. If the boundary curves, use an appropriate curve measurement or a shape-specific formula rather than treating a curved edge as a straight side.
- Identify the complete outer boundary you want to measure.
- Measure each necessary side or dimension using one unit system.
- Choose the formula that matches the shape and enter the measurements.
- Check that the result is a length and that no outer section was omitted or counted twice.
Perimeter is useful when estimating the length of a border, edging, trim, or fence around a simple region. The calculated boundary length is not automatically the amount of material to buy: corners, joins, gates, overlaps, and installation allowances may affect a practical quantity.
Units, Rounding, and Common Mistakes
Perimeter has units of length: for example, millimeters, centimeters, meters, inches, feet, or yards. The output uses the same unit as the input side length. If measurements use different units, convert them before adding. For instance, adding 2 m and 30 cm directly as “2 + 30” is wrong; convert 30 cm to 0.30 m first, giving 2.30 m.
A common misconception is that perimeter and area describe the same thing. They do not: perimeter measures the distance around a shape, while area measures the surface inside it and is expressed in square units. A rectangle with length 8 m and width 3 m has perimeter 22 m but area 24 m². A larger area does not always mean a larger perimeter; the outline depends on both dimensions and shape.
Rounding intermediate measurements can introduce small errors, especially when many sides are added. Keep the measured or converted values at useful precision while calculating, then round the final result to a level justified by the measurements. The calculator’s two decimal places do not make the original measurements more precise.
Limits and Special Cases
The regular-polygon calculator is not suitable for an irregular shape unless all its sides really are equal. For an irregular polygon, enter or add each side separately. If a diagram gives only some dimensions, the perimeter may not be uniquely determined without further information.
A perimeter describes a closed boundary. For an open path, the total length along the path can still be calculated by adding its segments, but it is not the perimeter of an enclosed region. For circles and other curved boundaries, use the appropriate circumference or curve formula; the polygon calculator does not calculate those from a radius or diameter.
Frequently Asked Questions
How do you calculate perimeter?
Add the lengths of all sides around the outside of the shape. If all sides are equal, multiply one side length by the number of sides.
What is the perimeter formula for a rectangle?
Use P = 2l + 2w, or P = 2(l + w). Add the length and width, then double the sum.
How do you find perimeter if one side is missing?
You need enough information to determine the missing length. For a rectangle, opposite sides are equal, so a known matching side supplies it. For other shapes, use given relationships or measurements; otherwise the perimeter cannot be determined uniquely.
Can perimeter and area have the same number?
They can have the same numerical value in a particular example, but they measure different quantities and use different units. Perimeter uses length units; area uses square units.
How do you calculate the perimeter of a circle?
Calculate its circumference using C = 2πr, where r is radius, or C = πd, where d is diameter. Radius and diameter must use the same length unit as the result.
Related
Formula used
in s | Side length | m | 5 | 0 in n | Number of sides | - | 4 | 1 out perimeter | Perimeter | m | n * s | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.