Picture walking a single lap along the edge of a shape and measuring how far you went. That distance is the perimeter: the total length around the outside of a two-dimensional shape. For polygons you add the side lengths; for a circle the same idea is called the circumference.

In compact form,

P=sum of the outside side lengthsP = \text{sum of the outside side lengths}

and for a circle,

C=2πr=πdC = 2\pi r = \pi d

where rr is the radius and dd is the diameter.

Why the Shape Formulas Are Just Shortcuts

Perimeter measures boundary length, not enclosed space, which is exactly what separates it from area. Every named formula below is really the same act of adding outside lengths, shortened once you notice repeated sides.

Square

If each side has length ss:

P=4sP = 4s

Four equal sides, so s+s+s+s=4ss + s + s + s = 4s.

Rectangle

If the length is ll and the width is ww:

P=2l+2w=2(l+w)P = 2l + 2w = 2(l+w)

Two lengths and two widths collapse into the factored form.

Triangle

If the sides are aa, bb, and cc:

P=a+b+cP = a+b+c

Regular Polygon

If a regular polygon has nn equal sides of length ss:

P=nsP = ns

This works because every side is equal. If the polygon is not regular, add the sides one by one instead.

Circle

The perimeter of a circle is its circumference:

C=2πrorC=πdC = 2\pi r \quad\text{or}\quad C = \pi d

Both mean the same thing because d=2rd = 2r.

Worked Example: Fencing a Garden

A garden is 99 meters long and 44 meters wide. To find the fencing around it, use the rectangle form:

P=2(l+w)P = 2(l+w)

Substitute l=9l = 9 and w=4w = 4:

P=2(9+4)=2(13)=26P = 2(9+4) = 2(13) = 26

So the perimeter is 2626 meters. Note the unit stays in meters, not square meters, because perimeter is a length — you went all the way around the boundary once.

Try It With Your Own Numbers

Take a triangle with sides 55, 77, and 99. Add the three sides, and confirm your answer comes out in linear units (not square units). If you ever find side lengths first with the distance formula in coordinate geometry, the final step is this same addition.

Common Mistakes

  • Mixing up perimeter and area. Perimeter uses units like cm or m; area uses square units.
  • Forgetting part of the boundary. In a rectangle, you need both pairs of sides.
  • Mixing units before adding. Convert first if one side is in centimeters and another in meters.
  • Using 2πr2\pi r for shapes that are not circles.
  • Assuming nsns works for any polygon. It only applies directly when all nn sides are equal.

When to Reach for Perimeter Instead of Area

Use perimeter when the edge length matters more than the inside region: fencing a yard, trimming a room, bordering a poster, or measuring the distance around a track. The clue is always whether you care about the outline or the surface.

Frequently Asked Questions

What is perimeter in math?
Perimeter is the total distance around the outside of a two-dimensional shape. For polygons, you find it by adding the side lengths. Perimeter measures boundary length, not enclosed space, which is why it is different from area. It is measured in linear units such as centimeters or meters, not square units.
What are the perimeter formulas for common shapes?
For a square with side s, the perimeter is 4s. For a rectangle, it is 2 times the sum of length and width. For a triangle, add the three side lengths. For a regular polygon with n equal sides of length s, the perimeter is n times s. For a circle, the perimeter is the circumference, equal to 2 pi times the radius or pi times the diameter.
What is the difference between perimeter and area?
Perimeter measures the boundary length around a shape, while area measures the surface covered inside it. If you are asking how much fencing, trim, border, or edging is needed, perimeter is the right measurement. If you are asking how much surface is covered, you want area. Perimeter uses linear units, while area uses square units.
What is the perimeter of a circle called?
The perimeter of a circle is called the circumference. It is calculated as 2 pi times the radius, or equivalently pi times the diameter, since the diameter is twice the radius. A common mistake is applying these circle formulas to shapes that are not circles.
What common mistakes happen when finding perimeter?
Frequent errors include mixing up perimeter and area, forgetting to include the whole boundary such as both pairs of sides in a rectangle, mixing units before adding when one side is in centimeters and another in meters, and using the regular polygon shortcut n times s on a polygon whose sides are not all equal.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →