Skip to content
CalcShown

Popular

    Decks, Siding & Exterior

    Fence Calculator

    Enter each side of your fence and its gates, pick the style, and get the posts, pickets, rails and bags of concrete to buy. Corner posts are shared, gates get their own posts, and spaced pickets never end up with gaps wider than you asked for. Posts = sections + 1 for each run.

    Verified · 8 tests · 4 sources · Updated

    What verified means on this page

    • Tested. 8 automated tests check this calculator against official examples, published tables or hand-worked answers every time the site changes (last run December 3, 2026).
    • Sourced. The formulas and data come from the 4 sources listed below, checked against a second source.
    • Shown. "Show the Math" lists every step with your own numbers, so you can check the answer yourself.
    • Open to correction. Spot an error? Tell us. We fix it, add a test so it can't come back, and log it.
    How we verify every calculator →
    Fence sides
    Side 1
    Side 2
    Side 3

    One row per straight side. Neighbouring sides share a corner post.

    Do the sides close into a loop?

    Fence

    Fence style

    Usually 6–8 ft on center. 8 ft fits standard 8 ft rails.

    A 1×6 picket is 5½ in wide, a 1×4 is 3½ in.

    Rails & Gates

    Opening between the gate posts.

    Post Holes & Concrete

    About 3× the post width.

    Includes the gravel. At least ⅓ of the fence height for the post, and below the frost line.

    Waste & Prices (Optional)

    Fence Material Formulas

    sections per run  = run length ÷ post spacing, rounded up
    posts             = sections + 1 per run − shared corner posts
    rails             = sections × rails per section (1 per 2 ft of height, at least 2)
    privacy pickets   = run length in inches ÷ picket width, rounded up
    spaced pickets    = (run + gap) ÷ (picket width + gap), rounded up
    board on board    = (run − board width) ÷ (board width − overlap) + 1, rounded up
    

    A gate splits its side into two runs, so each gate adds one post. Pickets are counted run by run, because the pattern restarts at every corner, gate and fence end.

    Posts and Pickets for a Straight Fence

    Posts every 8 ft, a 6 ft privacy fence with 5½ in pickets and no gates.

    Fence length Sections Posts Rails Pickets
    25 ft 4 5 12 55
    50 ft 7 8 21 110
    75 ft 10 11 30 164
    100 ft 13 14 39 219
    150 ft 19 20 57 328
    200 ft 25 26 75 437
    300 ft 38 39 114 655

    Add about 10% to the pickets for splits, knots and cutting mistakes.

    Pickets per Section by Fence Style

    Style Picket Per 8 ft section Per 100 ft
    Privacy 5½ in 18 219
    Privacy 3½ in 28 343
    Spaced picket, 2 in gap 3½ in 18 219
    Spaced picket, 2 in gap 5½ in 14 161
    Board on board, 1½ in overlap 5½ in 24 300
    Board on board, 1 in overlap 3½ in 38 480

    Why Spaced Pickets Need One More

    A run has one gap fewer than it has pickets. Dividing the length by “picket + gap” counts one gap too many, so the last gap comes out wider than the rest. At 100 ft with 5½ in pickets and 2 in gaps, 160 pickets and 159 gaps cover only 1,198 in, so the run is 2 in short. The calculator uses 161 pickets and shows the real gap, 1.97 in, so you can space them evenly.

    Rails by Fence Height

    Fence height Rails per section
    3–4 ft 2
    5–6 ft 3
    7–8 ft 4

    Board on Board Overlap

    Boards shrink across their width as they dry. Real Cedar’s shrinkage table puts flat-grain western red cedar at 2.6% from green to 12% moisture and 3.8% down to 6%, so a 5½ in picket can lose about ⅛ to ⅕ in. An overlap of about a quarter of the board width, ⅞ in for 3½ in boards, 1⅜ in for 5½ in boards and 1¾ in for 7¼ in boards, is several times that, so see-through gaps don’t open after the first summer.

    How to Measure for a Fence

    1. Walk the fence line and measure each straight side, corner to corner or end to end.
    2. Mark the gates and their widths. Plan gate posts on solid ground and leave room for the gate to swing.
    3. Check the property line and any HOA or city height limits before you dig. Call 811 to have buried lines marked.
    4. Set posts at least ⅓ of the fence height deep, below the frost line in cold areas, with gravel at the bottom of each hole.

    Frequently Asked Questions

    How many fence posts do I need?

    Divide each straight run by the post spacing, round up to get the sections, and add 1 post to finish the run. A 100 ft fence with posts every 8 ft has 13 sections and 14 posts. Corners share a post, and every gate adds one.

    How many pickets do I need for 100 feet of fence?

    About 219 pickets of 5½ in for a privacy fence with no gaps, 161 if you leave 2 in gaps, and 300 for board on board with a 1½ in overlap. Add about 10% for splits and bad boards.

    How far apart should fence posts be?

    Usually 6 to 8 ft on center for a wood fence. 8 ft is the most common because rails come in 8 ft lengths. Go closer in high-wind areas or with heavy boards.

    How many rails does a fence need?

    Lowe’s fence sheet uses 2 backer rails for a 4 ft fence and 3 for a 6 ft fence. The calculator keeps that step of one rail per 2 ft of height, with at least two, so a 7–8 ft fence gets 4.

    How do you calculate board on board fence pickets?

    Neighbouring boards sit on alternate sides of the rails and overlap. Boards = (run length − board width) ÷ (board width − overlap) + 1, rounded up. An 8 ft section of 5½ in boards with a 1½ in overlap takes 24 boards, 12 on each side.

    How deep should fence posts be?

    At least one-third of the fence height in the ground, and below the frost line where the ground freezes. A 6 ft fence needs about 2 ft of post underground, so buy 8 ft posts and dig the holes 6 in deeper for gravel.

    How much concrete do I need for a fence?

    About 0.92 ft³ per 4×4 post in a 10 in hole with 24 in of concrete, which is 2.5 bags of 50 lb fast-setting concrete. A 150 ft fence with 20 posts needs about 50 of those bags, or 31 bags of 80 lb mix.

    Sources

    1. Lowe's, Fence calculator info sheet (posts, backer rails by height, picket math)
    2. Quikrete, Fast-Setting Concrete Mix (50 lb yields 0.375 ft³)
    3. Southern Forest Products Association, Standard lumber sizes
    4. Western Red Cedar Lumber Association (Real Cedar), Characteristics and properties of western red cedar (Table 3, shrinkage from green)