← Imperial Products / Tools / Fence Calculator

Fence Calculator

How much fencing do you need? Enter your fence length, height, and type to get an instant materials list — posts, rails, pickets, concrete bags, and estimated cost included.

Fence Details
ft
Measure the full perimeter or run of fence you want to build.
Solid board fence; boards typically 3.5″ wide with no gaps.

Distance between fence posts. 6 ft is the standard for wood fences; 8 ft is common for chain link.

gate(s) × 3 ft opening each
gate(s) × 6 ft opening each
Fence Posts Needed
— posts
Materials Breakdown
Fence line length —
Gate openings subtracted —
Net fenced length —
Number of posts —
Number of rails —
Pickets / panels —
Concrete bags (post footings) —
Gate hardware sets —

Cost Estimator
Enter your cost per linear foot of fencing:
$ per linear ft
Estimated total cost —

How to Calculate How Much Fencing You Need

Estimating fence materials comes down to four steps: measure the total run of fence, determine post spacing, figure out how many panels or pickets fill each bay, and calculate how many rails span between posts. This calculator handles all of that automatically and adjusts for fence type.

The Formulas

Number of posts = floor(fence length ÷ post spacing) + 1
Number of rail bays = posts − 1
Rails = bays × rails per bay (2 for 4–5 ft, 3 for 6–8 ft)
Pickets per bay = floor(post spacing × 12 ÷ picket width)
Total pickets = pickets per bay × bays
Concrete bags = posts × bags per post (typically 2 bags per post)

Gate openings are excluded from the picket/panel count but gate posts are included in the post count. Each gate requires its own pair of posts set in concrete.

Fence Types Compared

The right fence type depends on your goals for privacy, security, aesthetics, and budget. Here is a quick comparison of the four most common residential fence types:

Fence Type Privacy Typical Cost / Lin. Ft Lifespan Notes
Wood Privacy Full $20–$45 15–20 years Most popular; needs staining or sealing every few years
Wood Picket Low $10–$25 15–20 years Classic look; good for front yards; gaps between pickets
Chain Link None $8–$20 20–30 years Lowest cost; very durable; add privacy slats if desired
Vinyl Full $25–$60 25–40 years No maintenance; won’t rot or rust; higher upfront cost

Post Spacing Guide

Post spacing is one of the most important decisions in fence design. Spacing that is too wide leads to sagging rails and wobbly panels; too close wastes material unnecessarily.

Always check local building codes. Some municipalities restrict maximum post spacing for fences above a certain height, especially in high-wind zones.

Rails Per Bay

The number of horizontal rails between each pair of posts depends on fence height:

Concrete for Post Footings

Every fence post needs to be set in concrete to resist racking, frost heave, and wind load. The standard rule of thumb is to bury posts one-third of their total length (so a 9 ft post for a 6 ft fence needs a 3 ft deep hole). Use a minimum of two 50-lb bags of fast-setting concrete per post for standard 4×4 posts in average soil. Loose or sandy soil, larger diameter posts, or tall fences may require three bags.

This calculator assumes 2 bags of 50-lb fast-set concrete per post as a default. For 8 ft fences or poor soil, budget for 3 bags per post and adjust your cost estimate accordingly.

Permits and Property Lines

Before breaking ground, check these three things:

DIY vs. Professional Installation

Fence installation is one of the more accessible DIY projects for a handy homeowner, but it is also more labour-intensive than most people expect. Here is a realistic breakdown:

More Free Online Tools

Ready to Start Your Project?

Get free, no-obligation quotes from licensed contractors in your area. Compare prices and save up to 30%.

Get Free Quotes Find Local Pros

Free service. No credit card required. Licensed & insured contractors only.

Get Your Estimate Emailed
Save your calculation results and get helpful project tips.
Thanks! Check your inbox for your estimate.
We respect your privacy. Unsubscribe anytime.
Download Professional PDF Report
Get a detailed project report with material lists, cost breakdown, and pro tips. Enter your email to download.
Your report is downloading!
Free professional report. We respect your privacy.

Ready to Start Your Project?

Get free, no-obligation estimates from licensed contractors in your area.

Get Free Estimates
✓ Free, no obligation ✓ Licensed contractors ✓ Your info stays private

Frequently Asked Questions

How much does it cost to build a fence per foot?

A 6-foot privacy fence costs $15-$35 per linear foot for materials (pressure-treated wood). Cedar costs $20-$45/ft, vinyl $25-$55/ft, and aluminum $25-$75/ft. Professional installation adds $10-$30 per linear foot in labor. A typical 200-foot fence perimeter costs $3,000-$7,000 in materials.

How far apart should fence posts be?

Fence posts should be spaced 6 to 8 feet apart, with 8 feet being most common for wood privacy fences. Posts should be set in concrete at least 2 feet deep (or one-third of the total post length for posts taller than 6 feet).

How many fence pickets do I need?

Divide the total fence length in inches by the picket width plus gap. For a 200-foot fence with 3.5-inch pickets and 0.25-inch gaps, you need: (200 x 12) / 3.75 = 640 pickets. Add 5-10% for waste and cuts.

Recommended Fence Supplies on Amazon

Materials and tools for your fence project

As an Amazon Associate, we earn from qualifying purchases. This helps keep our tools free.

Related Content

Related Calculators

Related Blog Posts