Irregular Shape Perimeter Calculator (Any Number of Sides)
This irregular shape perimeter calculator measures the total length around any shape: a lopsided garden bed, an L-shaped room, a curved patio, or a fenced yard. Enter the side lengths, the corner coordinates, or a mix of straight and curved edges (arcs and semicircles). You’ll get the perimeter in feet, meters, and yards, plus the area when you use coordinates, and a built-in planner that works out the fencing panels, posts, edging or baseboard length, and cost, after skipping doors and gates.
Fencing, edging and trim
Show the step-by-step working
Calculate to see the steps.
How to Use This Irregular Shape Perimeter Calculator
- Pick a tab. Side lengths if you measured each edge, Corners (x, y) for plans and graphs, or Straight + curved edges for shapes with rounded parts.
- Enter one row per edge or corner. Use + Add for as many as you need.
- Choose a unit and press Calculate. The total appears in feet, meters, and yards, along with the number of edges and the longest and shortest one.
- Plan your materials (optional). Enter the width of doors or gates to skip, an extra percentage for cuts, the panel or piece length, and the price per foot or meter.
- Open the steps or copy the results for your shopping list.
Perimeter vs. Area: Two Different Questions
| Perimeter | Area | |
|---|---|---|
| Measures | The boundary, the distance around | The surface inside |
| Units | ft, m, yd | sq ft, m², sq yd |
| Use it for | Fencing, edging, baseboards, trim, crown molding, lights | Flooring, sod, paint, mulch, concrete |
You can’t get one from the other. A long, thin rectangle and a square can share the same perimeter but enclose very different areas. If you also need the area, use the Corners tab or the main Irregular Shape Area Calculator, and see our Area vs Perimeter guide.
How Perimeter Is Calculated
Straight sides: add them up.
Perimeter = side₁ + side₂ + side₃ + …
From coordinates: find each side with the distance formula, then add:
Side length = √((x₂ − x₁)² + (y₂ − y₁)²)
The same corners also give the area through the Shoelace formula, so the calculator shows both.
Curved edges:
- Semicircle: π × radius
- Arc: 2π × radius × (angle ÷ 360)
- Full circle: 2π × radius
Worked Example 1: A Garden Bed
A four-sided garden bed measures 12 ft, 8 ft, 15 ft, and 10 ft.
Perimeter = 12 + 8 + 15 + 10 = 45 ft
Add 5% for cuts and you’d buy about 47.25 ft of edging. The four sides alone don’t fix the bed’s area, because the same sides can lean into different shapes.
Worked Example 2: An L-Shaped Room
An L-shaped room has corners at (0, 0), (20, 0), (20, 12), (10, 12), (10, 20), and (0, 20), in feet.
- The six walls are 20, 12, 10, 8, 10, and 20 ft, so the perimeter is 80 ft.
- The calculator also gives the area: 320 sq ft.
- Notice that the full 20 × 20 square has the same 80 ft perimeter but 400 sq ft of area. Cutting a corner out of a rectangle (with square corners) doesn’t change the perimeter, only the area.
Worked Example 3: A Running Track (Curved Edges)
A standard track has two straights of 84.39 m and two semicircular ends with a radius of 36.5 m.
| Edge | Calculation | Length |
|---|---|---|
| Straight | 84.39 | 84.39 m |
| Semicircle | π × 36.5 | 114.67 m |
| Straight | 84.39 | 84.39 m |
| Semicircle | π × 36.5 | 114.67 m |
| Total | 398.12 m |
That’s the inside kerb. Runners are measured about 0.3 m out from it, which brings lane 1 to 400 m.
Estimating Fencing, Edging, and Trim
Fencing. A 60 × 40 ft yard has a 200 ft perimeter. Skip a 4 ft gate and you need to cover 196 ft. With 8 ft panels, that’s 196 ÷ 8 = 24.5, so 25 panels, and about 26 posts for an open run (one more post than panels). For rails, pickets, and gate hardware, use the Fence Calculator.
Baseboards and trim. A room with a 45 ft perimeter and two 3 ft doors needs 45 − 6 = 39 ft of baseboard. At $2 per foot, that’s $78, before extra for cuts.
Edging and borders. Add 5 to 10% for corners, joints, and mistakes. Flexible edging around curves often needs the higher end.
| Material | Typical piece length | Extra to add |
|---|---|---|
| Fence panels | 6 or 8 ft | Round up to whole panels |
| Baseboard / trim | 8, 12, or 16 ft | 10% |
| Landscape edging | 20 ft rolls | 5 to 10% |
| String lights | 25 or 50 ft strands | Add the run to the outlet |
Curved or Traced Boundaries
For a shape with curves you can’t describe as arcs, place points along the curve and use the Corners tab. More points get closer to the true length. Here’s how close a polygon gets to a circle with a 10 ft radius (true perimeter 62.83 ft):
| Points | Polygon perimeter | Accuracy |
|---|---|---|
| 6 | 60.00 ft | 95.5% |
| 8 | 61.23 ft | 97.4% |
| 12 | 62.12 ft | 98.9% |
| 24 | 62.65 ft | 99.7% |
| 48 | 62.79 ft | 99.9% |
Straight segments always come out a little short on curves, so add a few percent when ordering. To trace a curved bed over a photo, use the main Irregular Shape Area Calculator.
Tips and Common Mistakes
- Forgetting openings. Subtract doors, gates, and driveways before buying trim or fencing.
- Mixing units. Don’t mix feet and inches in one list. Convert everything first.
- Measuring curves as straight lines. Use the Straight + curved tab, or add points along the curve.
- Expecting the area from side lengths. Sides give the perimeter only. Use corners for the area.
- Ordering exactly the perimeter. Add extra for cuts, corners, and waste.
Related Calculators
- Fence Calculator: posts, panels, rails, and pickets
- Irregular Polygon Area Calculator: area and perimeter from corners
- Land Area Calculator: plots measured with a tape
- L-Shaped Room Square Footage Calculator
- Garden Plot Area Calculator
- Map Area Calculator: measure boundaries on a satellite map

4 Comments