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.
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.
| Shape | Formula | Variables |
|---|---|---|
| Square | P = 4 × a | a – side length |
| Rectangle | P = 2 × (l + w) | l – length, w – width |
| Triangle | P = a + b + c | a, b, c – three side lengths |
| Equilateral triangle | P = 3 × a | a – side length |
| Circle (circumference) | C = 2πr or C = πd | r – radius, d – diameter |
| Regular polygon | P = n × s | n – number of sides, s – side length |
| Trapezoid | P = a + b + c + d | a, b, c, d – four side lengths |
| Parallelogram | P = 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 circle | P = 2r + (θ/360) × 2πr | r – 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.