Fence Calculator
Calculate posts, horizontal rails and vertical pickets for a wood fence.
Fence Calculator Interactive Tool
Enter your project dimensions below. Results update instantly.
Advanced settings(Rails: 3 rails/bay, Picket width: 5.5 in, Gap: 0.25 in, Gates: 1 gates, Example price: $2.5/picket)▼
Results
Buy 16 posts, 39 rails, and 230 fence pickets.
16 posts
14 line + 2 gate posts8-ft posts (2 ft in-ground for 6 ft fence)39 rails
3 rails per 8-ft bay (2x4 lumber)230 pickets
Includes +10% cutting and split buffer (209 net)$575.00
At $2.50 per picketFull Fence Material Equations
Sections = ⌈Length ÷ Post Spacing⌉ | Posts = Sections + 1 + (2 × Gates) | Rails = Sections × Rails/Section | Pickets = ⌈(Length × 12) ÷ (Picket W + Gap)⌉Formula Variables:
- Post Spacing:Many builders space posts 6 to 8 feet apart. Our calculator starts at 8 feet.
- Rails:Many builders use 2 horizontal rails for a 4 ft fence and 3 for a 6 ft fence. Our calculator starts at 3 rails per section.
Each gate opening needs a post on each side, so our calculator adds 2 posts for each gate.
Step-by-Step Worked Example
Example: 120-foot 6-foot privacy fence with 8-foot spacing and 1 gate
Building a 120-foot wood privacy fence with 3 horizontal rails, 5.5-inch dog-ear cedar pickets, and 1 gate opening.
- Calculate sections: 120 ft ÷ 8 ft = 15 sections.
- Calculate posts: 15 sections + 1 + 2 gate posts = 18 posts (4×4 timber).
- Calculate horizontal rails: 15 sections × 3 rails = 45 rail boards (2×4×8ft).
- Calculate pickets: (120 ft × 12 in/ft) ÷ 5.5 in = 261.8 → 262 pickets (+ 10% waste = 289 pickets).
Related Calculators
Related estimation tools for fencing and complementary construction planning:
Fence Post Calculator
Count line, corner, end and gate posts, with shared corners counted once.
Post Hole Concrete Calculator
Calculate premix concrete bags and volume per hole, after taking away the space the wooden post fills.
Fence Picket Calculator
Calculate fence boards and pickets from your fence length, picket width and gap.
Related Material & Construction Guides
In-depth guidance on measurement standards, formulas, and material depths:
How to Calculate Concrete Volume: Slabs, Piers, Footings
For a slab, multiply length × width × thickness (in feet), then divide by 27 to get cubic yards. For a round pier, use 3.14 × radius × radius × depth. A 10 × 12 ft slab 4 inches thick is 40 cubic feet, or 1.48 cubic yards, and 1.63 cubic yards with 10% extra.
How Many Fence Pickets Do I Need? Width, Gap and Gates
To count fence pickets, divide the fence length in inches by the picket width plus the gap, then round up and add a little extra. Use the real width of the board, not the name on the label.
How Many Fence Posts Do I Need? Corners, Ends and Gates
Divide the fence length by the post spacing, round up to get sections, add 1 post, then sort out corners, ends and gates. A 60 ft U-shaped fence with 1 gate needs 11 posts.
Input Explanations & Measurement Guidelines
Total Fence Length
Typical: 80 to 200 ftCombined linear footage of all fence runs.
Post Spacing
Typical: 8 feetDistance between post centers (many builders use 6 to 8 ft).
Fence Height
Typical: 6 feetFinished height (4 ft garden fence or 6 ft privacy fence).
Assumptions & Limitations
- Assumes level ground without severe stepped terracing.
- Does not include concrete for the post holes. Use our Post Hole Concrete Calculator for that.
Safety & Professional Notes
- Confirm your property boundaries before you dig post holes. Before any digging, check for buried utility lines: in the US, 811 is the free national number, so call a few days ahead.
Frequently Asked Questions
Why do 6-foot fences need 3 rails?
Wood pickets shrink, swell, and cup with humidity. Two rails leave 3+ feet of unsupported wood that will twist and warp over time; a middle rail keeps boards straight.
How deep should fence posts be buried?
Many installers bury about 1/3 of the total post length in the ground. Frost depth and local rules vary, so ask your local building office what depth applies to you. Example: for an 8 ft (96 inch) post, 1/3 buried is 32 inches (96 ÷ 3 = 32), which leaves 64 inches above ground.