Perimeter — the total length of the boundary around a two-dimensional shape — is essential for fencing, framing, trim work, border construction, and any project requiring material along edges. From basic rectangles (P = 2l + 2w) and circles (circumference C = 2πr) to irregular polygons and composite shapes, each geometry has specific formulas. A rectangular yard measuring 60 × 40 feet requires P = 2(60) + 2(40) = 200 feet of fencing. A circular garden with 10-foot radius needs C = 2π(10) = 62.8 feet of edging material. Our perimeter calculator supports rectangles, squares, triangles, circles, regular polygons (pentagon through decagon), ellipses, and parallelograms, with results in both metric and imperial units. It also calculates the perimeter of composite shapes formed by combining basic geometries, handles unit conversions, and estimates material quantities with waste factors for real-world project planning.
Perimeter formulas for common shapes
Rectangle: P = 2(l + w). Square: P = 4s. Triangle: P = a + b + c (sum of all three sides). For right triangles, the hypotenuse c = √(a² + b²) via the Pythagorean theorem. Circle (circumference): C = 2πr = πd. Regular polygon with n sides of length s: P = ns — a regular hexagon with 5-inch sides has P = 30 inches. Ellipse (approximate): P ≈ π[3(a+b) - √((3a+b)(a+3b))] using Ramanujan's formula, where a and b are semi-major and semi-minor axes. Parallelogram: P = 2(a + b) where a and b are adjacent sides. Trapezoid: P = a + b + c + d (sum of all four sides). For irregular shapes, measure each side segment individually and sum.
Practical perimeter applications
Fencing: always add 10% to calculated perimeter for gate openings, corners, and cutting waste. A 200-foot perimeter needs approximately 220 feet of fencing material. Standard fence panels are 6 or 8 feet long — 200 feet ÷ 8 = 25 panels plus posts every 8 feet (26 posts). Crown molding and baseboard: room perimeter minus door openings. A 12×15 foot room has P = 54 feet minus two 3-foot doorways = 48 linear feet of trim needed. Purchase 10-15% extra for miter cut waste at corners. Garden edging: for curved beds, lay a garden hose along the desired border and measure its length, or use the circumference formula for circular and semi-circular sections. Always round up when purchasing materials — returning excess costs nothing, but running short delays the project.
Perimeter vs area: when each matters
Perimeter and area measure fundamentally different properties and are not directly related. A 10×10 square and a 20×5 rectangle have the same area (100 sq units) but different perimeters (40 vs 50 units) — the more elongated shape has more perimeter per unit area. This relationship matters in construction: a circular house encloses the maximum area for a given perimeter (most efficient use of wall material), while long narrow buildings require more wall material per square foot of floor space. In landscaping, a square garden maximizes growing area for a given amount of fencing. For heat loss calculations, perimeter matters because heat escapes through exterior walls — a compact square building loses less heat than a long rectangular building with the same floor area.