Fence Calculator
Enter the length and height of your fence to see the posts, rails, pickets, concrete and gravel to buy, and how far apart to set the posts.
Quick answer
14 posts, 39 rails and 240 pickets — set the posts 92 5/16 in apart
Includes 10% extra pickets and 10% extra concrete.
14 posts, 39 rails and 240 pickets — set the posts 92 5/16 in apart
Your measurements
- Fence length
- 100 ft
- Fence height
- 6 ft
- Post spacing, at most
- 8 ft
- Gates
- 0
- Rails per section
- 3
- Picket width
- 5.5 in
- Gap between pickets
- 0 in
- Extra pickets
- 10%
- Post size
- 4 × 4
- Post depth in the ground
- 24 in
- Concrete bag
- 50 lb fast-setting
Buy list
Posts (4 × 4, 8 ft)
14 posts
14 posts exact
Rails (8 ft)
39 rails
39 rails exact
Pickets (5.5 in wide)
240 pickets
240 pickets exact
Concrete mix for the posts
58 × 50 lb fast-setting bag
57.52 bags exact
Gravel under the posts
11 × 0.5 ft³ bag
11 bags exact
Nails or screws
about 1,314 fasteners
1,314 fasteners exact
Add your local prices to see a total.
Project figures
- Sections
- 13
- Post spacing
- 92 5/16 in, center to center
- Posts
- 14 × 8 ft (6 ft above ground + 24 in below)
- Rails
- 39 (3 per section), each 92 5/16 in
- Pickets
- 240 (218.18 before extra)
- Post holes
- 12 in wide, 30 in deep
- Concrete
- 0.8 cubic yards (21.57 ft³)
- Gravel
- 0.2 cubic yards (5.5 ft³)
- Nails or screws
- about 1,314
Diagram
Not to scale where a dimension is very thin or long.
Show the math
- Sections = 100 ft ÷ 8 ft, rounded up = 13.
- Posts = 13 sections + 1 to end the run + 0 for gates = 14.
- Even spacing = 100 ft ÷ 13 = 92 5/16 in, center to center.
- Post length = 6 ft + 24 in in the ground = 8 ft, so 8 ft posts.
- Rails = 13 × 3 per section = 39, each 92 5/16 in, so 8 ft boards.
- Pickets = 100 ft ÷ (5.5 in + 0 in gap) = 218.18; + 10% = 240, rounded up to 240.
- Each hole is 12 in wide (3 × the post's size). Concrete per hole = (hole − the post) × 24 in = 1.4 ft³.
- Concrete = 1.4 ft³ × 14 holes + 10% = 21.57 ft³ = 57.52 bags, rounded up to 58.
- Gravel = the hole × 6 in × 14 holes = 5.5 ft³.
- Nails or screws = 219 pickets (before extra) ×3 rails × 2 = about 1,314.
Assumptions and notes
- Call 811 before you dig.
- Check your property line and local fence height rules.
- Set the posts below the frost line where the ground freezes. Check your local code.
- Gates are built from the same pickets and rails, so nothing is taken off for them; each gate adds one post.
- Quantities and cost only. For structural, load or code questions, check your local building code and a qualified professional.
How it works
A wood fence is a row of posts set in concrete, two or three rails between each pair of posts, and pickets nailed to the rails. This calculator lays the fence out the way you will build it: how many sections, where each post goes, how long each board must be, and how much concrete and gravel the holes take. Every count is rounded up to whole pieces you can buy.
Spacing the posts evenly
Posts usually go at most 8 ft apart, closer on a tall fence or a windy site. The calculator divides the fence line by that spacing and rounds up to whole sections, then spreads the posts evenly along the line. A 100 ft fence at 8 ft is 12.5 sections, so it takes 13, and the posts are 92 5/16 in apart, center to center. That beats twelve full sections and one short one at the end. A 96 ft fence is exactly 12 sections, and the calculator recognizes it: 13 posts, not 14.
Posts
There is one post per section, one more to end the run, and one more for each gate, so the 100 ft example takes 14. Each post is as long as the fence is tall plus the part in the ground. The depth starts at a third of the height and never goes below 24 in, so a 6 ft fence gets posts 24 in deep and 8 ft long, and an 8 ft fence gets 32 in and 12 ft posts (10.67 ft rounded up to the next length a lumber yard sells). Where the ground freezes, type a depth below your frost line instead.
Rails and pickets
A fence under 5 ft gets 2 rails per section and a taller one 3, each as long as the spacing, so the example takes 39 rails of 8 ft. The pickets are the fence length divided by one picket plus the gap: 100 ft of 5.5 in pickets butted together is 218.18 pickets. Adding 10% for splits and cuts gives 240. The calculator recognizes an exact count, so 240.0000001 from rounding noise stays 240. Gates are built from the same pickets and rails, so nothing is taken off for them. Plan on two nails or screws per picket at every rail, about 1,314 for the example.
Post holes, concrete and gravel
Each hole is 3 times as wide as the post (12 in for a 4 × 4, 18 in for a 6 × 6) and 6 in deeper than the post goes, for a layer of gravel that lets water drain away from the end grain. The concrete fills the hole around the post from the gravel to the surface. A 4 × 4 is really 3.5 in square, so it takes up about a tenth of a 12 in hole: one hole 24 in deep needs 1.4 cubic feet. Fourteen holes with the concrete calculator’s 10% waste need 21.57 cubic feet, or 58 bags of 50 lb fast-setting mix.
Measuring tips
- Measure the whole fence line, gates included, along where the posts will stand.
- Count each run with its own end posts: an L-shaped fence is two runs.
- Call 811 before you dig, and find your property line before you set the first post.
These figures are estimates. Read the disclaimer before you buy or build.
Common questions
How deep should fence posts be?
About a third of the post's height above the ground, and never less than 2 ft: posts for a 6 ft fence go 24 in deep, and for an 8 ft fence 32 in. Where the ground freezes, set them below the frost line so frost can't heave them. Check your local code.
How many pickets do I need per foot of fence?
Divide 12 in by the picket width plus the gap. Pickets 5.5 in wide with no gap come to 2.18 per foot, so 100 ft of privacy fence takes 218.18 pickets, and 240 with 10% extra for splits and cuts. Pickets 3.5 in wide with a 2.5 in gap come to exactly 2 per foot.
How many bags of concrete does a fence need?
Each 4 × 4 post in a 12 in hole 24 in deep takes 1.4 cubic feet: the hole less the post itself. The 14 posts of a 100 ft fence need 21.57 cubic feet with 10% extra, which is 58 bags of 50 lb fast-setting mix or 36 bags of 80 lb.
How many rails does a fence need?
Two rails per section on a fence under 5 ft tall and three from 5 ft up, so a 6 ft privacy fence has a top, middle and bottom rail. With posts at most 8 ft apart each rail is one 8 ft board, and 100 ft of 6 ft fence takes 13 sections and 39 rails.
Why does the calculator set my posts closer than 8 ft apart?
It spaces the posts evenly. 100 ft in sections of at most 8 ft is 12.5 sections, so it takes 13, and the posts go 92 5/16 in apart, center to center, instead of leaving one short section at the end. Each gate adds one more post.
Planning guide: Wood privacy fence: the full material list by length
Sources
Where the reference numbers on this page come from.
- Lowe's: Wood fence planning guide (opens in a new tab) (PDF)Sections are the fence length divided by 8 ft. Posts are one per section, plus one to end the run and one per gate. A 4 ft fence takes 2 rails per section and a 6 ft fence 3.
- QUIKRETE: Setting Posts in Concrete (opens in a new tab)A hole three times the width of the post, 6 in of gravel under it, and one third to one half of the post's above-ground height in the ground. We use one third.
- QUIKRETE: Setting Posts (project video page) (opens in a new tab)For a 6 ft fence, at least 2 ft of post in the ground, which is our minimum.
- QUIKRETE: Fast-Setting Concrete Mix spec data (opens in a new tab) (PDF)A 50 lb bag of fast-setting concrete mix yields about 0.375 cubic feet.
- QUIKRETE: Concrete Mix No. 1101 data sheet (opens in a new tab) (PDF)The 60 lb and 80 lb bags yield 0.45 and 0.60 cubic feet.
Sizes and coverage differ between products. Check the label on yours and change the fields above to match.
Numbers checked: . All sources
Something wrong, or a calculator you'd like us to add? Tell us by email. We read every message.