Math

Perimeter Calculator

Calculate the perimeter of 7 geometric shapes instantly — rectangle, square, triangle, circle, parallelogram, trapezoid, and regular polygon.

Did this calculator help you?

What is Perimeter Calculator?

The perimeter is the total distance around the outside of a two-dimensional shape. It is found by adding together the lengths of all the sides. For a circle, the perimeter is called the circumference. Calculating perimeters is fundamental in geometry, construction, and everyday tasks such as measuring fencing for a garden or trim for a room. Our perimeter calculator handles seven common shapes — rectangles, squares, triangles, circles, parallelograms, trapezoids, and regular polygons — giving you instant results with animated visuals and full step-by-step solutions.

When to Use This Calculator

  • You need to find the total length of boundary around any flat shape.
  • You are planning to buy fencing, trim, or edging material.
  • You want to verify the dimensions of a physical object by measuring its outline.
  • You are solving a geometry homework problem requiring perimeter calculation.
  • You need to compare the boundary lengths of different shapes or layouts.

Steps:

  1. Identify the shape and its known side lengths.
  2. Select the appropriate perimeter formula for that shape.
  3. Substitute the known values into the formula.
  4. Perform the arithmetic to get the perimeter.
  5. Express the result in the correct unit of length.

Formula

Rectangle: P = 2(l + w) Square: P = 4s Triangle: P = a + b + c Circle: C = 2πr Parallelogram: P = 2(a + b) Trapezoid: P = a + b + c + d Regular polygon: P = n × s

Use Cases

  • Measuring fencing or borders around a garden or yard
  • Calculating the frame length needed for a painting or photograph
  • Determining the distance around a running track or sports field
  • Estimating baseboard or crown molding for room renovation
  • Sizing ribbon or edging for craft and sewing projects
  • Planning walkway or driveway perimeters in landscape design
  • Verifying CAD or architectural drawing dimensions

Key Benefits

  • Supports seven common geometric shapes in one tool
  • Animated SVG shape previews with real-time dimension updates
  • Full step-by-step solutions showing every formula substitution
  • Also computes area as a bonus for supported shapes
  • Mobile-responsive floating labels and controls
  • One-click copy of results for sharing or notes
  • Works instantly in your browser — no downloads required

Pro Tips

  • Draw the shape and label each side before calculating.
  • For a circle, remember that π ≈ 3.14159 for quick mental estimates.
  • Double-check units — convert centimeters to meters or inches to feet when needed.
  • For irregular shapes, walk the perimeter with a measuring tape for accuracy.
  • Use the perimeter result to check whether a fence or frame will fit.
  • Practice with real-world objects like doors, windows, or tabletops.

Common Mistakes to Avoid

  • Confusing perimeter with area — perimeter is a length, not a surface measure.
  • Forgetting to use the same unit for every side before adding.
  • Using the diameter instead of the radius for circle circumference.
  • Omitting one side when summing the sides of a triangle or polygon.
  • Treating a parallelogram perimeter as 2 × base × height instead of 2(a + b).
  • Assuming all sides of a trapezoid are equal without checking the given values.

Key Terms Explained

Perimeter — the total distance around a closed two-dimensional shape.
Circumference — the perimeter of a circle.
Regular polygon — a polygon with all sides and angles equal.
Trapezoid — a quadrilateral with exactly one pair of parallel sides.
Dimension — a measurable extent such as length, width, or height.
Unit — the standard of measurement used for a side length (m, cm, ft, in).
Area — the surface enclosed within a shape, distinct from its perimeter.
Base — the bottom side of a polygon, often used as the reference side.

Related Concepts

  • Area Calculator: Perimeter measures the boundary while area measures the enclosed surface. Our area calculator handles the same seven shapes plus additional polygons, letting you compute both dimensions for any project.
  • Circle Calculator: For circles specifically, our circle calculator provides diameter, circumference, area, and sector calculations in one place — useful when perimeter is just one of several circle properties you need.
  • Volume Calculator: When your project extends into three dimensions — boxes, cylinders, cones, or spheres — our volume calculator computes the space enclosed, complementing the two-dimensional perimeter results.

Example

A rectangle with length = 8 m and width = 5 m has a perimeter of 2 × (8 + 5) = 2 × 13 = 26 m.

Interpreting Your Results

The calculator computes the perimeter (or circumference for circles) of seven standard geometric shapes. Each result is accompanied by a step-by-step derivation showing the formula, substituted values, and final computation. The animated SVG previews update in real time as you change dimensions, giving you visual confirmation of the shape's proportions. Perimeter is a linear measure — the result is always in the same unit as the input dimensions. For circles, the tool uses a high-precision value of π rather than the 3.14 approximation, ensuring accurate results even for large radii. The bonus area calculation lets you compare boundary length to enclosed surface, which is useful when optimizing material usage (minimizing fencing while maximizing enclosed area).

Frequently Asked Questions

What is the difference between perimeter and circumference?
Perimeter is the general term for the distance around any polygon. Circumference is the specific term used for the perimeter of a circle.
Can I use this calculator for irregular shapes?
This tool supports seven standard geometric shapes. For irregular polygons, add the lengths of each individual side manually.
Does the calculator handle different units?
Enter all side lengths in the same unit. The result will be in that same unit. For example, use meters throughout, then convert if needed.
Why is the perimeter of a circle called circumference?
The word circumference comes from the Latin circumferentia, meaning carrying around, which describes the act of tracing a circle's boundary.
How accurate are the results?
Results are calculated to full double-precision floating-point accuracy. For π, the calculator uses a high-precision value, not just 3.14.
What is the perimeter formula for a regular polygon?
For a regular polygon with n sides of equal length s, the perimeter is P = n × s. For example, a regular hexagon with side 10 cm has perimeter 6 × 10 = 60 cm.
How do I find the perimeter of a parallelogram?
A parallelogram has two pairs of equal opposite sides. If the sides are a and b, the perimeter is P = 2(a + b). The slant height is not needed for perimeter — only for area.
Does a trapezoid have a simple perimeter formula?
A trapezoid has four sides that are generally all different lengths. The perimeter is the sum of all four sides: P = a + b + c + d. There is no shortcut — you need all four measurements.
Why does a circle use circumference instead of perimeter?
The term circumference specifically refers to the boundary length of a circle, derived from the Latin circumferentia (carrying around). In everyday language, perimeter and circumference are interchangeable for circles, but circumference is the standard mathematical term.
Can two different shapes have the same perimeter?
Yes. A 4×6 rectangle and a 3×7 rectangle both have perimeter 20, but enclose different areas (24 vs 21 square units). This is the basis of the isoperimetric problem: among all shapes with a given perimeter, the circle encloses the most area.
How does perimeter relate to real-world cost estimation?
Many materials are sold by length — fencing, edging, baseboards, picture frame molding. Calculating the perimeter gives you the total linear material needed. Add 5–10% extra for waste, cuts, and corners to avoid running short.

Discover More Tools

Fresh picks from across our tool library.