Perimeter Calculator

Calculate the perimeter of 10 different shapes β€” square, rectangle, triangle, circle (circumference), ellipse, trapezoid, parallelogram, rhombus, sector, and regular polygon. Select a shape and enter the dimensions.

πŸ“ Perimeter Calculator

Result

Perimeter32.000000 units

Steps

Step 1P = 2l + 2w = 2Γ—10 + 2Γ—6 = 32.0000

How to Find the Perimeter of a Shape

Perimeter is the total length of the outer boundary of a two-dimensional shape. The word comes from Greek: peri ("around") + metron ("measure"). Unlike area (which measures surface), perimeter measures distance around.

For shapes with straight edges, the perimeter is simply the sum of all side lengths. For curved shapes like circles and ellipses, you need a formula.

Perimeter Formulas

Square

P = 4a β€” Four times the side length. Example: a = 5 β†’ P = 20.

Rectangle

P = 2l + 2w β€” Twice the length plus twice the width. Example: 10 + 10 + 6 + 6 = 32.

Triangle

P = a + b + c β€” Sum of all three sides. Example: 3 + 4 + 5 = 12.

Circle (Circumference)

C = 2Ο€r β€” Two times Ο€ times the radius. Alternatively: C = Ο€d (Ο€ times the diameter). Example: r = 7 β†’ C = 43.982.

Ellipse

There is no exact closed-form formula for the perimeter of an ellipse. The best approximation is Ramanujan's formula:

P β‰ˆ Ο€[3(a+b) βˆ’ √((3a+b)(a+3b))]

Where a is the semi-major axis and b is the semi-minor axis. Example: a = 10, b = 6 β†’ P β‰ˆ 51.054.

Trapezoid

P = a + b + c + d β€” Sum of all four sides (two bases + two legs). Example: 8 + 6 + 5 + 5 = 24.

Parallelogram

P = 2a + 2b β€” Since opposite sides are equal. Example: a = 10, b = 6 β†’ P = 32.

Rhombus

P = 4a β€” All four sides are equal. Example: a = 7 β†’ P = 28.

Sector

P = 2r + arc length, where arc = rΞΈ (ΞΈ in radians). This is the two straight edges (radii) plus the curved arc. Example: r = 7, angle = 90Β° β†’ P = 14 + 10.996 = 24.996.

Regular Polygon (n-gon)

P = n Γ— a β€” Number of sides times the side length. Works for pentagon (n=5), hexagon (n=6), octagon (n=8), or any regular polygon.

Perimeter vs. Area vs. Circumference

  • Perimeter: Distance around a shape (linear units: ft, m, cm)
  • Circumference: Perimeter of a circle β€” same concept, different name
  • Area: Space inside a shape (square units: ftΒ², mΒ²). See our Area Calculator
Practical uses: Calculate perimeter for fencing a yard, framing a painting, trimming a room with baseboard, wrapping string around a shape, or buying edge material for any project.

Frequently Asked Questions

Is perimeter the same as circumference?

Both measure the boundary length, but perimeter is used for shapes with straight sides, while circumference specifically refers to the boundary of a circle. Mathematically, the circumference is the perimeter of a circle.

How do I find the perimeter of an irregular shape?

Measure each edge individually and add them all together. If some edges are curved, you'll need the appropriate formula for each curved section. For a completely irregular shape, measuring with a flexible tape or string is often the easiest approach.

Why is perimeter measured in linear units, not squared?

Perimeter is a one-dimensional measurement (distance), so it uses linear units like feet, meters, or centimeters. Area is two-dimensional (length Γ— width), which is why it uses squared units.

Why do you calculate perimeter?

Common real-world uses include: calculating fencing needed for a yard, baseboard trim for a room, string lights for windows, framing for pictures, and edging for garden beds.

P = 2l + 2w (rectangle), C = 2Ο€r (circle), P = na (polygon)

Where:

  • P = Perimeter in linear units
  • l, w = Length and width (rectangle)
  • r = Radius (circle, sector)
  • a, b, c = Side lengths
  • n = Number of sides (regular polygon)

πŸ“ Worked Example

1

Rectangle 10Γ—6

P = 2(10) + 2(6)

= 32 units

2

Circle r=7

C = 2Ο€(7)

= 43.98 units

3

Hexagon a=5

P = 6 Γ— 5

= 30 units