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.

Perimeter–
Feet–
Meters–
Yards–
Number of edges–
Longest / shortest edge–
Area (coordinates only)–

Fencing, edging and trim

Length to cover–
Length to buy (with extra)–
Panels / pieces–
Fence posts (closed loop)–
Estimated cost–
Show the step-by-step working

Calculate to see the steps.

How to Use This Irregular Shape Perimeter Calculator

  1. 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.
  2. Enter one row per edge or corner. Use + Add for as many as you need.
  3. 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.
  4. 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.
  5. Open the steps or copy the results for your shopping list.

Perimeter vs. Area: Two Different Questions

PerimeterArea
MeasuresThe boundary, the distance aroundThe surface inside
Unitsft, m, ydsq ft, m², sq yd
Use it forFencing, edging, baseboards, trim, crown molding, lightsFlooring, 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.

EdgeCalculationLength
Straight84.3984.39 m
Semicircleπ × 36.5114.67 m
Straight84.3984.39 m
Semicircleπ × 36.5114.67 m
Total398.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.

MaterialTypical piece lengthExtra to add
Fence panels6 or 8 ftRound up to whole panels
Baseboard / trim8, 12, or 16 ft10%
Landscape edging20 ft rolls5 to 10%
String lights25 or 50 ft strandsAdd 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):

PointsPolygon perimeterAccuracy
660.00 ft95.5%
861.23 ft97.4%
1262.12 ft98.9%
2462.65 ft99.7%
4862.79 ft99.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

Frequently Asked Questions

Add the lengths of all its sides. If you only have corner positions, use the distance formula for each side first. For curves, use π × radius for a semicircle, or add points along the curve.

No. Perimeter and area are independent. The same area can have a short perimeter (a circle or square) or a very long one (a thin strip).

As many as you need. Press + Add for each extra side or corner.

Yes, if all the corners are square. Cutting a rectangular notch out of a corner moves the walls inward but keeps the total length the same. The area is smaller, though.

Use the Straight + curved edges tab. A semicircle adds π × radius, and an arc adds 2π × radius × angle ÷ 360.

Subtract the gate widths from the perimeter, divide by the panel width, and round up. You need about one more post than panels for an open run, or the same number for a closed loop.

Take the room’s perimeter, subtract the door widths, and add about 10% for cuts. A 45 ft room with two 3 ft doors needs 39 ft, or about 43 ft with extra.

Feet, meters, yards, inches, and centimeters. The result is also shown in feet, meters, and yards.

Similar Posts

  • Parallel Lines Angle Calculator

    This free parallel lines angle calculator works out every angle formed when a transversal crosses two parallel lines. Enter one angle and see all eight angles labeled on a diagram, with each pair named: alternate interior, alternate exterior, corresponding, vertical, and same-side (consecutive) interior angles. You can also solve for x when angles are written…

  • Map Area Calculator

    This free map area calculator lets you measure the area of any piece of land straight from a map. Search for an address, click around the boundary of a lot, field, yard, roof, or parking area, and you’ll instantly see its size in acres, square feet, square meters, hectares, and more, along with the perimeter….

  • Composite Figures Area Calculator (Add & Subtract Shapes)

    Composite Figures Area Calculator (Add & Subtract Shapes) This composite figures area calculator finds the total area of a shape built from simpler pieces: an L-shaped room, a house front with a gable roof, a running track, or a wall with a door and window cut out. Add each piece that’s part of the figure,…

  • Irregular Triangle Area Calculator (Scalene & Obtuse)

    This irregular triangle area calculator finds the area of any triangle: scalene, obtuse, isosceles, or right-angled. Use whatever you know: three sides, a base and height, two sides and the angle between them, two angles and a side, the two legs of a right triangle, or three corner coordinates. Every method returns the area and…

4 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *