Skip to content
Lumber Calculator

Projects

Fence Lumber Calculator

Enter the length and height of your wood fence to get every post, rail and picket, plus gate framing, bags of concrete and fasteners. Rails are fitted to stock lengths, and you can check the result in 3D before you buy.

Updated October 31, 2026Our methodology

Units
Lumber sizes & prices

Inputs

Fence line

Design

ft

Top of the pickets above the ground. 6 ft (1.8 m) is typical for privacy.

Style
in

Spaced picket fences usually leave 2–3″ (50–75 mm).

in

How far the second layer covers the first. Use about 1″ (25 mm), or 0 for an open shadowbox.

Auto: 2 up to 4 ft, 3 up to about 6½ ft, 4 above.

Gates

ft

Clear width between the gate posts.

More options
in

About ⅓ of the post length, and below the frost line.

in

About 3× the post width: 10″ for a 4×4.

%

Extra pickets for splits and rejects.

Stock lengths available

Untick lengths your yard does not carry; the optimizer only buys what is ticked.

Loading 3D…

Results

Lumber list

Enter your dimensions to see the lumber list.

Estimate — check sizes and quantities with your lumber yard.

Results

How to calculate lumber for a fence

This fence lumber calculator is a lumber calculator for fence projects of any style: posts, rails, pickets, gates and concrete for every run.

A wood fence is a row of identical sections, each made of posts, rails and pickets. Work it out in this order:

sections = fence length ÷ post spacing   (round up)
posts    = sections + 1 + 1 per gate     (corners share a post)
rails    = sections × rails per section
pickets  = fence length ÷ (picket width + gap)   (round up, + waste)
concrete = posts × (π r² × depth − post area × depth) ÷ bag yield

The calculator divides each run into equal sections no longer than your post spacing, so a 100 ft run at 8 ft spacing becomes 13 sections of about 7′ 8″. Rails are cut to the section length and fitted to the stock lengths you tick. Posts are fence height plus hole depth, rounded up to a stock length.

Worked example: 100 ft privacy fence, 6 ft high

ItemMathBuy
Sections100 ÷ 8 = 12.5 → 1313 sections of 7.7 ft
Posts13 + 114 × 4×4 × 8 ft (6 ft above + 2 ft in the ground)
Rails13 × 339 rails of 2×4, packed onto 8 or 16 ft boards
Pickets1,200″ ÷ 5½″ = 218.2 → 219, + 5%230 × 1×6 × 6 ft
Concreteπ × 5² × 24 − 3½² × 24 ≈ 0.92 ft³ per hole22 × 80 lb bags (about 1.5 per hole)

Those are the default inputs above. Switch the style to see how the picket count changes. A spaced picket fence with 2″ gaps needs 160 pickets, and board-on-board with a 1″ overlap needs 268.

Fence styles and picket counts

StyleHow pickets are hungPickets per 100 ft (1×6, 5½″)
Privacy (stockade)Edge to edge, one side of the rails219
Spaced picketOne layer with a gap (2″ shown)160
Board-on-boardTwo layers on one side, each overlapping the gaps by 1″268
ShadowboxAlternating on both sides of the rails268 at a 1″ overlap

Board-on-board and shadowbox stay private when the wood shrinks, but they use about 20–25% more pickets than a privacy fence. In the calculator, shadowbox rails sit flat between the posts so pickets can go on both faces. All other styles use rails face-nailed to the posts, with joints centred on a post.

Posts, rails and concrete

  • Post spacing. 8 ft (2.4 m) centres is the common maximum. Use 6 ft for tall, heavy or windy fences. Corner, end and gate posts take the most load, so many builders use 6×6 or set those posts deeper.
  • Post depth. Rule of thumb: bury about ⅓ of the post, so a 6 ft fence needs 8 ft posts set 2 ft deep. In cold climates go below the frost line. Your building department can tell you the depth.
  • Rails. Use 2 rails for fences up to 4 ft, 3 for 6 ft, and 4 for taller fences. Rails longer than the stock you can buy are spliced on a post.
  • Concrete. Dig holes about three times the post width. An 80 lb bag of concrete mix yields about 0.6 ft³, so a 10″ × 24″ hole around a 4×4 takes about 1½ bags. Put a few inches of gravel under each post for drainage.
  • Lumber type. Posts in the ground must be rated for ground contact (pressure-treated) or a naturally durable species. Pickets are usually treated pine or cedar. Use hot-dip galvanized or stainless fasteners with treated lumber.

Gates

Each gate takes its opening plus one post width out of the fence and adds one post. The calculator puts gates at the ends of runs, gives each gate two gate posts and frames it with the same number of rails as the fence plus a diagonal brace. The brace should run from the bottom on the hinge side up to the top on the latch side. Pickets on the gate are included in the picket count, and hinges and a latch are added to the list.

Keep walk gates to about 4 ft (1.2 m) wide. For a wider opening, use a double gate or a steel frame kit, because wide wood gates sag.

Buying tips

  • Pickets are sold pre-cut at 4, 5, 6 and 8 ft (often with dog-ear tops). Tick “Cut pickets from stock boards” only if you rip or cut your own.
  • Untick 16–20 ft rails if you can’t haul them. The optimizer will use shorter boards.
  • Press Add to lumber list and combine the fence with a deck or shed for one order. Price it with tax and delivery in the lumber cost calculator.

Frequently asked questions

How many pickets do I need for a 100 ft fence?

For a privacy fence with 1×6 pickets (5½″ actual) and no gaps: 1,200″ ÷ 5½″ = 219 pickets, or 230 with 5% waste. With 2″ gaps you need 160, and board-on-board needs about 268.

How many posts do I need for a 100 ft fence?

At 8 ft spacing, 100 ÷ 8 = 12.5, which rounds up to 13 sections, so you need 14 posts. Add one post per corner run and one per gate.

How long should fence posts be?

Fence height plus the depth in the ground. About ⅓ of the post goes underground, so a 6 ft fence uses 8 ft posts set 24″ deep. Go deeper where the frost line is lower.

How many rails does a 6 ft fence need?

Three rails per section (top, middle and bottom). Fences up to 4 ft need two. The calculator chooses automatically, and you can override it.

How many bags of concrete per fence post?

About 1½ bags of 80 lb concrete mix for a 10″ hole, 24″ deep, around a 4×4. That is 0.92 ft³ of concrete at about 0.6 ft³ per bag. Wider or deeper holes take more.

Is board-on-board more expensive than a privacy fence?

Yes. With a 1″ overlap it uses about 22% more pickets (268 vs 219 per 100 ft), but it stays private as boards shrink. Posts and rails are the same.

Related calculators

Tools

Projects

Framing

Board feet & pricing

Planning

All calculators

Site

Settings

Units

Lumber sizes & prices

Choose the market whose sizes, stock lengths and sample prices you want.

Theme

Language