Perimeter Calculator

Need to find the perimeter of a fence line, a picture frame, or a garden bed? The distance around any shape–its perimeter–is one of the most practical measurements in everyday life. Our perimeter calculator gives you that distance instantly for rectangles, circles, triangles, and over a dozen other shapes.

Choose the geometric shape to calculate its perimeter
Dimensions
Perimeter formulas reference
ShapeFormulaVariables
SquareP = 4 × aa – side length
RectangleP = 2 × (l + w)l – length, w – width
TriangleP = a + b + ca, b, c – three side lengths
Equilateral triangleP = 3 × aa – side length
Circle (circumference)C = 2πr or C = πdr – radius, d – diameter
Regular polygonP = n × sn – number of sides, s – side length
TrapezoidP = a + b + c + da, b, c, d – four side lengths
ParallelogramP = 2 × (a + b)a, b – adjacent side lengths
Ellipse (approximation)P ≈ 2π √((a²+b²)/2)a, b – semi-major and semi-minor axes
Sector of a circleP = 2r + (θ/360) × 2πrr – radius, θ – central angle in degrees
Irregular polygonP = sum of all side lengths
The calculator is unit-agnostic. Use the same unit for all inputs; the result will be in that unit.

What Is Perimeter?

Perimeter is the total length of the boundary of a closed two‑dimensional figure. Think of it as the distance you would walk if you traced the outline of the shape exactly once. In geometry, perimeter is always expressed in linear units (feet, meters, inches, etc.)–the same units as the sides or radius you provide.

The concept dates back to ancient land surveying, but today it helps with projects as varied as installing baseboards, framing artwork, and determining the amount of material for a sports‑field border. While the formula changes with the shape, the idea stays simple: add up the lengths of all outer edges.

Perimeter Formulas for Common Shapes

Most perimeters boil down to a simple formula. Below are the expressions used by the calculator above for the shapes you’ll encounter most often.

ShapeFormulaVariables
SquareP = 4 × aa – side length
RectangleP = 2 × (l + w)l – length, w – width
TriangleP = a + b + ca, b, c – three side lengths
Equilateral triangleP = 3 × aa – side length
Circle (circumference)C = 2πr or C = πdr – radius, d – diameter
Regular polygonP = n × sn – number of sides, s – side length
TrapezoidP = a + b + c + da, b, c, d – four side lengths
ParallelogramP = 2 × (a + b)a, b – adjacent side lengths
Ellipse (approximation)P ≈ 2π √((a²+b²)/2)a, b – semi‑major and semi‑minor axes
Sector of a circleP = 2r + (θ/360) × 2πrr – radius, θ – central angle in degrees

The calculator uses these exact formulas after you select the shape and enter the required dimensions. For irregular polygons that don’t fit a standard formula, you can simply input each side length individually and the tool will sum them.

How to Calculate Perimeter – Step‑by‑Step Examples

Doing a few quick examples by hand helps you understand the process and check the calculator’s results.

Example 1: rectangular room
A room measures 12 ft by 9 ft.
Perimeter = 2 × (12 + 9) = 2 × 21 = 42 ft.
That’s the length of baseboard needed.

Example 2: garden bed shaped like a regular pentagon
Each side of the pentagon is 3.5 m.
Number of sides n = 5.
Perimeter = 5 × 3.5 = 17.5 m.

Example 3: circular pond
The pond has a radius of 2 m.
Circumference = 2 × π × 2 ≈ 12.57 m.
That’s the length of edging to place around it.

Example 4: triangle with sides 5, 7, and 9 inches
Perimeter = 5 + 7 + 9 = 21 inches.

For any shape you’re measuring, consistency in units is key. If one side is in feet and another in inches, convert all to the same unit before adding.

Real‑World Uses for a Perimeter Calculator

Beyond the classroom, perimeter shows up in countless DIY and professional tasks:

  • Construction & landscaping – ordering fencing, borders, or edge‑restraint materials.
  • Home improvement – calculating trim, crown molding, or weatherstripping.
  • Crafts & framing – cutting matboard, ribbon, or picture frames to size.
  • Sports fields – marking running tracks or field boundaries.
  • Fabric & sewing – measuring the length of piping or binding for cushions.

Because the calculator works equally with imperial and metric inputs, you can handle any project without manual conversions.

Tips for Accurate Perimeter Measurements

A few good habits ensure your result matches reality:

  • Measure each side separately, even if a shape looks symmetrical. Manufacturing tolerances or rough cuts often produce slight differences.
  • Use the same unit throughout–if you start in inches, finish in inches. The calculator doesn’t convert units automatically.
  • For circles, measure the radius or diameter carefully. A small error in radius gets multiplied by 2π (roughly 6.28).
  • Count the sides correctly for polygons. A regular hexagon has 6 sides, an octagon 8, etc.
  • When dealing with arcs, a sector of a circle uses the central angle. Make sure the angle is in degrees (not radians) if using the formula above.

If you’re unsure about a shape, break it into rectangles and triangles, calculate the perimeter of each part, and then only sum the outer edges–ignoring any shared interior edges. The calculator’s “irregular polygon” mode lets you enter only the boundary sides.

Frequently Asked Questions

What is the difference between perimeter and area?
Perimeter is the total distance around the outer edge of a shape (linear measurement), while area is the amount of space inside the shape (square measurement). You use perimeter to buy fencing and area to buy flooring.
How do you find the perimeter of an irregular shape?
For an irregular polygon, measure each side length and add them together. If the shape has curves, you may need to break it into segments of straight lines and arcs. The calculator above sums all entered side lengths for any closed shape.
Can perimeter be calculated for a circle?
Yes, the perimeter of a circle is called the circumference. It is calculated using the formula C = 2πr (or πd). The calculator includes a circle option that uses the radius to compute the circumference.
What units are used for perimeter?
Perimeter uses the same linear unit as the input–feet, inches, meters, centimeters, etc. The calculator itself is unit‑agnostic; just ensure all dimensions are in the same unit. The result will be in that same unit.
Is the perimeter of a triangle always the sum of its three sides?
Yes, regardless of the triangle type, perimeter = side1 + side2 + side3. For equilateral triangles, this simplifies to 3 × side length. The calculator automatically does this when you enter the three sides.
Does the calculator support polygons with more than 10 sides?
The perimeter calculator accepts any regular polygon up to 20 sides, or you can input individual side lengths for an irregular polygon. For a regular polygon, simply provide the number of sides and one side length.
  1. Polynomial Calculator: Evaluate, Solve & Simplify Polynomials Online
  2. Surface Area Formula: Cube, Cylinder, Sphere & More
  3. Mixed Fraction Calculator – Free Online Tool
  4. Calculator Sum
  5. Midpoint Calculator
  6. Midpoint Formula Calculator