Fence Length, Trim & Borders
Last reviewed: May 2026
Calculate the perimeter (total distance around) of any shape. Perimeter is the linear measurement you need for fencing, baseboards, garden edging, crown molding, and any project where you need to know "how far around." While area tells you how much surface to cover, perimeter tells you how much border material to buy.1
| Shape | Formula | Example |
|---|---|---|
| Rectangle | 2(L + W) | 2(30 + 50) = 160 ft |
| Square | 4s | 4 × 25 = 100 ft |
| Circle | πd or 2πr | π × 20 = 62.83 ft |
| Triangle | a + b + c | 5 + 7 + 9 = 21 ft |
| Regular polygon | n × s | 6 × 8 = 48 ft (hexagon) |
| Project | What You Need | Example |
|---|---|---|
| Fencing | Yard perimeter | 50×80 ft yard = 260 lin ft fence |
| Baseboard | Room perimeter minus doors | 12×14 room = 52 ft minus 6 ft door = 46 ft |
| Garden edging | Bed perimeter | 4×20 ft bed = 48 ft edging |
| Crown molding | Room perimeter | 15×18 room = 66 ft of molding |
| Shape | Formula | Example | Result |
|---|---|---|---|
| Rectangle | P = 2(l + w) | l = 12, w = 8 | 40 units |
| Square | P = 4s | s = 10 | 40 units |
| Triangle | P = a + b + c | a=3, b=4, c=5 | 12 units |
| Circle (circumference) | C = 2πr or πd | r = 7 | 43.98 units |
| Regular polygon | P = n × s | hexagon, s = 5 | 30 units |
| Trapezoid | P = a + b + c + d | 4 + 8 + 5 + 5 | 22 units |
| Ellipse | P ≈ π[3(a+b) − √((3a+b)(a+3b))] | a=6, b=4 | ~31.4 units |
Perimeter measures the total distance around a shape — the path an ant would walk along every edge. Unlike area (which uses squared units), perimeter uses linear units: feet, meters, inches. This distinction matters practically: fencing is sold by linear feet (perimeter), while sod is sold by square feet (area). A 50×100 foot yard requires 300 linear feet of fencing (perimeter) but 5,000 square feet of sod (area). Confusing the two leads to wildly incorrect material orders.
| Project | Material | Sold By | What You Measure |
|---|---|---|---|
| Fencing | Fence panels, posts | Linear feet | Perimeter of yard |
| Baseboards | Trim molding | Linear feet | Room perimeter minus doorways |
| Crown molding | Molding | Linear feet | Room perimeter at ceiling |
| Garden edging | Stone, metal, plastic | Linear feet | Bed perimeter |
| Weather stripping | Foam, rubber | Linear feet | Window/door perimeter |
| Gutters | Aluminum, vinyl | Linear feet | Roof edge perimeter |
For baseboard installation in a rectangular 12×15 foot room, the perimeter is 54 feet. Subtract roughly 3 feet for each standard doorway (typically 1–2 doors) to get the actual trim needed — about 48–51 feet. Add 10% waste for cuts and fitting: ~53–56 feet of baseboard to purchase. Trim is usually sold in 8-foot or 12-foot lengths, so you would need 5–7 pieces depending on length. This same perimeter-minus-openings approach applies to crown molding, chair rail, and any linear trim material.
Fence planning uses the property perimeter minus any structures (house walls, existing fences, garage sides) that form natural boundaries. A 60×120 foot rectangular lot has 360 feet of perimeter. If the house sits 20 feet from the back and 10 feet from each side, and you fence the back yard only, the perimeter is approximately 120 + 40 + 120 = 280 feet (back fence plus two side fences from the house to the back corners). Fence posts are spaced 6–8 feet apart, so 280 feet requires 35–47 posts. Gate openings (typically 3–6 feet each) reduce the fencing needed slightly but add gate hardware costs. Our Fence Calculator handles these details, including post count, gate sizing, and material estimates for the complete perimeter.
Most real-world boundaries are not perfect geometric shapes. Yards have bumps, curves, and angles. The most practical approach is to break the perimeter into segments: measure each straight section with a tape measure, each curved section by laying string along the curve then measuring the string length, and sum all segments. For large properties, a measuring wheel ($20–$40) rolls along the ground and counts distance automatically — ideal for uneven terrain where tape measures are impractical. GPS-based measuring apps calculate perimeter by tracking your position as you walk the boundary, achieving accuracy within 1–3% for distances above 100 feet. For formal purposes (property disputes, construction planning), a licensed surveyor provides the most accurate perimeter measurement with sub-inch precision.
Perimeter and area are independent measurements — the same perimeter can enclose vastly different areas depending on shape. With 100 feet of fencing (fixed perimeter): a circle encloses 796 square feet — the maximum possible area. A 25×25 square encloses 625 square feet. A 10×40 rectangle encloses only 400 square feet. A 5×45 rectangle encloses just 225 square feet. This principle has practical implications: if you want to maximize garden area with a limited amount of border material, use a circular or square layout rather than a long narrow one. Conversely, narrow shapes maximize perimeter relative to area — useful when you want maximum fence frontage or edge planting with minimal enclosed space.
Real projects sometimes involve measurements in mixed units: one wall measured in feet and another in inches, or a landscape plan using meters alongside a property survey in feet. Convert everything to the same unit before summing. Common conversions: 1 foot = 12 inches, 1 yard = 3 feet, 1 meter = 3.281 feet, 1 meter = 39.37 inches. When buying materials sold in specific lengths (8-foot boards, 10-foot rails, 4-foot sections of edging), divide the total perimeter by the piece length and round up to the nearest whole number: 54 feet of baseboard ÷ 8-foot boards = 6.75, so you buy 7 boards. Always round up — you cannot use partial pieces in most installations, and having a small surplus is far cheaper than making a return trip to the store.
Engineering and science use perimeter concepts in sophisticated ways. The wetted perimeter in hydraulics — the length of a channel cross-section in contact with water — determines flow resistance and is critical for designing drainage systems, irrigation channels, and storm sewers. In materials science, grain boundary perimeter in metals affects strength and corrosion resistance. In biology, cell membrane perimeter (circumference) relative to area determines nutrient exchange efficiency — one reason cells remain small. The concept of fractal perimeter demonstrates that coastline length depends on measurement scale: measuring Britain's coastline with a 100-km ruler yields roughly 2,800 km, but a 50-km ruler yields 3,400 km, because shorter rulers capture more irregularity. This fractal behavior means "true perimeter" is theoretically infinite for sufficiently irregular boundaries.
Room perimeter directly impacts construction and renovation costs for multiple finish elements. A 200-square-foot room could be 10×20 (perimeter 60 ft) or roughly 14×14 (perimeter 56 ft). The square room uses 7% less baseboard, trim, and paint along walls despite having identical floor area. For larger spaces, the difference becomes more significant: a 1,000-square-foot space arranged as 20×50 (perimeter 140 ft) versus roughly 32×32 (perimeter 128 ft) saves 12 feet of materials at every perimeter-based element. Architects consider perimeter-to-area ratios when designing efficient buildings — lower ratios mean less exterior wall per square foot of floor space, reducing both construction cost and heating/cooling energy loss since most thermal transfer occurs through the building envelope.
Many practical shapes combine basic geometries. An L-shaped room is two rectangles joined at a corner. A room with a bay window adds a trapezoid or semi-circle. A patio with curved edges combines straight and circular sections. To find the perimeter of a composite shape: identify each boundary segment, classify it as straight (measure directly) or curved (use the appropriate arc formula), and sum all segments. Crucially, when shapes are joined, some edges become interior and disappear from the perimeter. Two 10×10 squares placed side by side have a combined perimeter of 60 feet, not 80 feet (2×40 minus the two 10-foot shared edges). Always trace the outer boundary carefully, counting only edges that face the outside. Use our Area Calculator alongside this tool when you need both perimeter and area for the same shape.
| Material | Cost per Linear Foot | 100 ft Perimeter | 200 ft Perimeter |
|---|---|---|---|
| Wood fence (6 ft privacy) | $15–$35 | $1,500–$3,500 | $3,000–$7,000 |
| Chain link fence | $8–$15 | $800–$1,500 | $1,600–$3,000 |
| Vinyl fence | $20–$40 | $2,000–$4,000 | $4,000–$8,000 |
| Baseboard molding (installed) | $3–$8 | $300–$800 | $600–$1,600 |
| Crown molding (installed) | $5–$12 | $500–$1,200 | $1,000–$2,400 |
| Landscape edging (stone) | $5–$15 | $500–$1,500 | $1,000–$3,000 |
Perimeter-based pricing makes budgeting straightforward: multiply the material cost per linear foot by the total perimeter, then add 10–15% for waste and fittings. Corner pieces, posts, and end caps often cost more than straight sections, so count corners and endpoints separately. For accurate fence quotes, measure the perimeter and note the number of corners, gates, and grade changes — each adds installation complexity and cost beyond the per-foot base rate.
Perimeter is typically introduced in 3rd–4th grade mathematics as one of the first measurement concepts students encounter. The most effective teaching approach is physical: have students walk the boundary of a room, tracing the edges, and count their steps. Then measure each wall segment, add them up, and compare to the step count. This concrete experience builds intuition that perimeter is the boundary distance — fundamentally different from area, which fills the interior. Common student errors include confusing perimeter with area (especially since both involve multiplying for rectangles), forgetting to include all sides (particularly when shapes are drawn with some sides unlabeled), and mixing units within a single calculation. Practice problems that involve real objects — measuring a desk, a book, a whiteboard — reinforce the concept far more effectively than abstract exercises with unnamed polygons.
→ Perimeter = material for borders. Fencing, trim, edging, molding.
→ Subtract openings. Baseboard: subtract door widths from room perimeter.
→ Add 10% for trim. Cuts and joints waste material.
→ Circumference uses diameter. Don't accidentally use radius in the πd formula.
See also: Area · Fence · Length Converter · Lumber