BuildNook Hub
FencingFormulas Shown

Fence Calculator

Calculate posts, horizontal rails and vertical pickets for a wood fence.

Fence Calculator Interactive Tool

Interactive Calculator

Enter your project dimensions below. Results update instantly.

Currently measured in ft. Total perimeter distance to fence in.
typical value, change to match your productCurrently measured in ft. Distance between post centers. Our calculator starts at 8 ft.
Currently measured in ft. Vertical board height above ground. Our calculator starts at 6 ft.
Advanced settings(Rails: 3 rails/bay, Picket width: 5.5 in, Gap: 0.25 in, Gates: 1 gates, Example price: $2.5/picket)▼
typical value, change to match your productCurrently measured in rails. 2 rails for 4-ft fence; 3 rails for 6-ft fence.
typical value, change to match your productCurrently measured in in. Many 1x6 boards measure about 5.5 inches wide. Measure your own board.
typical value, change to match your productCurrently measured in in. 0 for privacy; 0.25 to 0.5 inches for shadowbox/spaced.
typical value, change to match your productCurrently measured in openings. Adds heavy hinge posts for each gate opening.
Currently measured in $/picket. Individual board cost at local lumber supplier. Example price only. Use your local quote.

Results

What to buy / main result

Buy 16 posts, 39 rails, and 230 fence pickets.

Total Posts

16 posts

14 line + 2 gate posts8-ft posts (2 ft in-ground for 6 ft fence)
Horizontal Rails

39 rails

3 rails per 8-ft bay (2x4 lumber)
Pickets to Order

230 pickets

Includes +10% cutting and split buffer (209 net)
Estimated Picket Cost (example price)

$575.00

At $2.50 per picket

Full 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.

Length:120 ft
Spacing:8 ft
Height:6 ft
Rails:3
Pickets:5.5 in with 0 gap
Gates:1
  1. Calculate sections: 120 ft ÷ 8 ft = 15 sections.
  2. Calculate posts: 15 sections + 1 + 2 gate posts = 18 posts (4×4 timber).
  3. Calculate horizontal rails: 15 sections × 3 rails = 45 rail boards (2×4×8ft).
  4. Calculate pickets: (120 ft × 12 in/ft) ÷ 5.5 in = 261.8 → 262 pickets (+ 10% waste = 289 pickets).
Materials: 18 posts (4×4), 45 rails (2×4) and 289 pickets.

Related Calculators

Related estimation tools for fencing and complementary construction planning:

Related Material & Construction Guides

In-depth guidance on measurement standards, formulas, and material depths:

Input Explanations & Measurement Guidelines

Total Fence Length

Typical: 80 to 200 ft

Combined linear footage of all fence runs.

Post Spacing

Typical: 8 feet

Distance between post centers (many builders use 6 to 8 ft).

Fence Height

Typical: 6 feet

Finished 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.
Published by BuildNook HubMath checked by hand against our published formulas (How we calculate)Last updated: 28 November 2026Found a mistake? Tell us

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.