Irregular Shape Perimeter Calculator: How to Use It, Formula, and Example

Measuring around an odd shape is harder than it looks. A garden bed with uneven sides, an L-shaped room, a curved patio, or a fenced yard with a gate has no single length you can multiply, and guessing usually means buying too little fencing or edging. The Irregular Shape Perimeter Calculator adds up every edge for you. Enter side lengths, corner coordinates, or a mix of straight and curved edges, and it gives you the perimeter in feet, meters, and yards, plus the area when you use coordinates, and a planner for fencing, edging, and baseboard cost after skipping doors and gates.
What is the Irregular Shape Perimeter Calculator?
The Irregular Shape Perimeter Calculator is a free online tool on IrregularShapeCalc.com, with no download, and no limit on how many shapes you can measure. The perimeter is the total distance around a shape. It is a length, measured in feet, meters, or yards, not in square feet. Perimeter tells you how much edge material you need, while area tells you how much surface you need to cover. The calculator offers three ways to describe your shape: Side lengths — type in each edge you measured with a tape, one row per side. Corners (x, y) — type in the coordinates of each corner, for plans and homework. Straight + curved edges — mix straight sides with arcs and semicircles, for patios and tracks. Along with the total, it shows the number of edges and the longest and shortest edge, so you can spot a typing mistake. When you use coordinates, it also shows the area. The planner turns the perimeter into a shopping list: enter the doors or gates to skip, an extra percentage for cuts, the panel length, and the price per foot, and it works out the length to buy, the panels, the posts, and the cost.
How to use the calculator, step by step
1. Pick a tab. Choose 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 rows as you need.
3. Choose a unit and press Calculate. Pick feet, meters, yards, inches, or centimeters.
4. Plan your materials, if you need them. 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. Open Show the step-by-step working to check the math, then copy the results for your shopping list. The most common mistake is in the measuring: a side missed out, a door forgotten, or feet and inches mixed in one list. Measure each edge once and check the longest and shortest edges before you order.
The formula behind the calculator
For straight sides, add them all up. Perimeter = side1 + side2 + side3 + … If a shape has six sides, you add six numbers. From coordinates, the calculator first finds each side with the distance formula, then adds the results: Side length = sqrt((x2 – x1) squared + (y2 – y1) squared). For each pair of neighbouring corners, subtract the x values and square the difference, subtract the y values and square that difference, add the two squares, and take the square root. Do this for every pair, including the last corner back to the first. The same corners also give the area through the Shoelace formula. Curved edges use a rule based on the circle: a semicircle adds pi x radius, an arc adds 2 pi x radius x (angle / 360), and a full circle adds 2 pi x radius. If your curve is not a neat arc, use the Corners tab and place points along it. Straight segments always come out a little short on curves, so add a few percent when ordering.
Worked example: 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:
| Corners | Calculation | Length |
|---|---|---|
| (0, 0) to (20, 0) | sqrt((20 – 0) squared + (0 – 0) squared) | 20 ft |
| (20, 0) to (20, 12) | sqrt((20 – 20) squared + (12 – 0) squared) | 12 ft |
| (20, 12) to (10, 12) | sqrt((10 – 20) squared + (12 – 12) squared) | 10 ft |
| (10, 12) to (10, 20) | sqrt((10 – 10) squared + (20 – 12) squared) | 8 ft |
| (10, 20) to (0, 20) | sqrt((0 – 10) squared + (20 – 20) squared) | 10 ft |
| (0, 20) to (0, 0) | sqrt((0 – 0) squared + (0 – 20) squared) | 20 ft |
| Total perimeter | 20 + 12 + 10 + 8 + 10 + 20 | 80 ft |
The calculator also gives the area: 320 sq ft, which you can check by splitting the L into 20 x 12 ft (240 sq ft) and 10 x 8 ft (80 sq ft). Notice that the full 20 x 20 ft square has the same 80 ft perimeter but 400 sq ft of area. Cutting a corner out does not change the perimeter, only the area. A garden bed measuring 12 ft, 8 ft, 15 ft, and 10 ft has a perimeter of 45 ft; add 5% and you would buy about 47.25 ft of edging. A running track with two straights of 84.39 m and two semicircular ends of radius 36.5 m has a perimeter of 398.12 m: each semicircle is pi x 36.5 = 114.67 m.
Common uses
- Fencing a yard — add up the boundary, subtract the gate, and work out panels and posts. A 60 x 40 ft yard has a 200 ft perimeter; skip a 4 ft gate and you need 196 ft, which is 25 panels at 8 ft each, and about 26 posts.
- Garden edging and borders — measure beds and lawns, including beds with a curved side. Add 5 to 10% for corners and mistakes.
- Baseboards and trim — take the room perimeter, subtract the door widths, and add extra for cuts. A 45 ft room with two 3 ft doors needs 39 ft, which at $2 per foot is $78.
- Crown molding and string lights — the same wall run decides how much molding or how many light strands you need.
- Homework and plans — check a polygon perimeter from coordinates, with the working shown.
Fencing, edging, and baseboards come from the perimeter. Flooring, sod, and paint come from the area. Measure once, in the Corners tab, and you get both.
Tips for an accurate result
- Do not forget openings. Subtract doors, gates, and driveways before buying trim or fencing.
- Keep one unit throughout. Do not mix feet and inches in one list. Convert everything first.
- Measure curves as curves. Use the Straight + curved tab, or add points along the curve.
- Do not expect the area from side lengths. Sides give the perimeter only. Use corners for the area.
- Order more than the perimeter. Add extra for cuts and waste, and round up to whole panels or rolls.
Frequently asked questions
Try the calculator
Ready to measure your own shape? Open the free Irregular Shape Perimeter Calculator, enter your sides, corners, or curved edges, and get your perimeter in seconds.






