Post Count
The number of fence posts needed based on length and spacing. postCount = ceil(totalLength / postSpacing) + 1 (for the starting post)
Home
Measure the fence on a map or by hand, then get posts, rails, panels, and a printable quote.
About this calculator
Calculates the full material takeoff for a fence project—posts, rails, panels, concrete, and hardware—based on the measured length, height, and material type. It also provides a printable cost quote with adjustable pricing for wood, board-on-board, vinyl, chain link, and aluminum fences.
Homeowners planning a new fence, contractors preparing material estimates, and DIYers comparing costs across fence styles and regions with support for UK, CA, NZ, and ZA units.
Start by selecting your region, units, and fence material. Measure the fence length by tracing directly on the map or entering dimensions by hand. The calculator divides the total length by the standard spacing for posts and rails, accounts for gate openings, and multiplies each material item by your entered unit prices to build a complete cost breakdown.
Assumes straight fence runs and does not account for steep terrain, retaining walls, or specialized site prep. Pricing is based on user-entered values, not live retailer data, and labor rates may vary significantly by region.
Formula
The number of fence posts needed based on length and spacing. postCount = ceil(totalLength / postSpacing) + 1 (for the starting post)
The number of horizontal rails per section times the number of sections between posts. railCount = (postCount - 1) × railsPerSection
Standard panel sections derived from total length divided by panel width. panelCount = ceil(totalLength / panelWidth)
Sum of all material costs plus concrete, hardware, and labor. totalCost = postCost + railCost + panelCost + concreteCost + hardwareCost + laborCost
How it works
Step 1
Pick your region to set default units and currency, then choose a fence type: wood, board-on-board, vinyl, chain link, or aluminum.
Step 2
Trace the fence line on the map and confirm the measured length, or enter the length and height manually using your preferred units.
Step 3
Adjust the post spacing, number of rails per section, and panel width to match your fence design and local building practices.
Step 4
Enter gate widths to subtract from the material takeoff. Gate posts are added to the total post count automatically.
Step 5
Enter your local prices for posts, rails, panels, concrete, and hardware, or use the defaults as a starting reference.
Step 6
Review the full material list, quantities, and cost breakdown, then print the quote summary for shopping or contractor bids.
Reference ranges
Typical post spacing is 6–8 feet. 8 ft for wood and vinyl, 6–10 ft for chain link depending on wind loads and local codes.
Wood fences last 10–15 years. Vinyl: 20–30 years. Chain link: 15–20 years. Aluminum: 30+ years with minimal maintenance.
Wood: $15–$35. Board-on-board: $20–$45. Vinyl: $25–$60. Chain link: $10–$30. Aluminum: $25–$55. Installed prices vary by region and labor rates.
Board-on-board uses roughly 1.5–2× the boards of a standard privacy fence because each board overlaps the next. The default factor is editable based on your build.