Home Project Resources

Measure · Calculate · Buy Once

Fence Calculator

Enter your fence line in feet and inches and get posts, panels or pickets, rails and concrete bags. Post depth is worked out from your fence height and your frost line, and gate posts are counted separately because they carry a load the line posts never see.

Fence Line0 FT

ft in

= 100 ft

Layout

A straight run has a post at each end, so posts = sections + 1. A closed loop (a fenced yard that returns to its start) shares the first and last post, so posts = sections.

Infill

Posts, Holes & Frost Line
in

Frost line depth is set by your local building department. It runs from 0 in southern Florida and coastal California to 42 in or more in Minnesota, North Dakota and northern Maine. Look it up rather than guessing, and see fence post depth for the full explanation.

in

gates
ft

Elevation & Post Set1:SCALE

One bay drawn to your real height, spacing and buried depth. The dashed red line is your frost line.

Posts To BuyLIVE

Total posts to buy

0 posts

Sections
0
Panels
0
Rails
0
80 lb bags
0

Set your line posts this deep

0 in below grade

    Waste allowance

    %

    Waste is applied to pickets, rails and panels, not to posts or concrete. Posts are counted exactly and concrete is already rounded up per hole, so adding a percentage on top of both would double count. Buy one spare post anyway: you will break a hole or hit a rock.

    Fence Materials#FENCE

      Holes, Concrete & Gates#SET

        Materials Ticket#FENCE

        homeprojectresources.com — Fence Calculator
        Enter your fence length to build the ticket.

        Post counts are exact. Concrete is rounded up per hole, which is the safe way to buy it, so expect a bag or two left over across a long run.

        How This Is CalculatedSHOW WORK

        Post depth: the one-third rule, the 24 inch floor, and the frost line

        Three different rules apply to the same hole, and this calculator takes whichever is deepest. That is the whole point, because most sources quote only one of them.

        1. The one-third rule. Bury one third of the height that stands above ground. A 6 ft fence wants 24 in in the ground. This is the rule that keeps the post from levering over in wind, and it is about stability, not frost.

        2. The 24 inch minimum. Even a 3 ft fence gets 24 in, because a shallower hole in most soils simply does not hold a post. Some builders use 30 in as their floor.

        3. The frost line. The bottom of the concrete should sit below the depth at which the ground freezes in your area, or freeze-thaw cycles will jack the post up out of the ground a little each winter. This is the rule that varies most by location and the one people skip. Read the full explanation on fence post depth.

        A fourth consideration that is not a depth: drainage. Put 4 to 6 in of gravel in the bottom of the hole so water can leave, then set the post on it. That gravel is inside the depth figure above, so dig the total, then subtract the gravel from the concrete volume. This calculator shows both figures.

        Posts, sections and gates

        Sections = fencing length divided by post spacing, rounded up. The last section is almost always short. With pre-built panels you either cut one panel down or you shorten several bays evenly, and shortening evenly looks far better.

        Line posts = sections + 1 on a straight run, or sections on a closed loop that returns to its starting post.

        Gate posts are counted as two extra posts per gate. If a gate sits at the very end of a run one of its posts doubles as the end post, so you may end up with one spare post per gate. That is deliberate: a spare post costs a few dollars and a second trip costs an afternoon.

        Concrete per hole

        Hole volume is a cylinder, pi x radius squared x depth, minus the volume the post itself occupies. Bag yields are the manufacturer's printed figures for mixed concrete: 80 lb = 0.60 cu ft, 60 lb = 0.45 cu ft, 50 lb = 0.375 cu ft. Fast-setting post mix bags carry the same yields. Bag counts are rounded up for each hole individually, which is how you actually buy and mix.

        For slabs, footings or anything poured into a form rather than a hole, use the concrete calculator. To measure an irregular yard before you fence it, use the square footage calculator.

        Fence Quick ReferenceSCREENSHOT ME

        Post depth by fence height

        Fence heightOne-third rule24 in floorUse in a 36 in frost zonePost length to buy
        3 ft12 in24 in36 in6 ft
        4 ft16 in24 in36 in8 ft
        5 ft20 in24 in36 in8 ft
        6 ft24 in24 in36 in10 ft
        8 ft32 in24 in36 in12 ft
        The deepest of the three columns wins. In a zone with no frost, the one-third rule or the 24 in floor decides it instead. Post length is height plus depth, rounded up to a stock length.

        Concrete per post hole

        HolePostCu ft of concrete50 lb bags60 lb bags80 lb bags
        8 in x 24 in4x40.53221
        10 in x 24 in4x40.92332
        10 in x 30 in4x41.15432
        10 in x 36 in4x41.38443
        12 in x 36 in4x42.10654
        12 in x 42 in6x62.01654
        12 in x 48 in6x62.30764
        Post volume is already subtracted, and these are full-depth pours with no drainage gravel. The calculator above subtracts a 5 in gravel base as well, so its per-hole figure is lower. Yields: 50 lb = 0.375 cu ft, 60 lb = 0.45 cu ft, 80 lb = 0.60 cu ft. A 6x6 in a 12 in hole displaces a lot, which is why the 12x42 row takes less concrete than the 12x36 with a 4x4.

        Pickets per 100 feet

        Picket + gapPer picketPickets per 100 ftStyle
        5.5 in + 0 in5.50 in219Privacy, boards touching
        5.5 in + 0.25 in5.75 in209Privacy with a shrink gap
        5.5 in + 2.5 in8.00 in150Classic spaced picket
        5.5 in + 5.5 in11.00 in110Shadowbox, per side
        3.5 in + 0 in3.50 in343Narrow privacy
        3.5 in + 3.5 in7.00 in172Narrow spaced picket
        A shadowbox fence needs both sides, so double the per-side figure. Leave a small gap on a wet-treated privacy fence: those boards shrink as they dry and a zero gap becomes a quarter inch gap anyway.

        Finish The Estimate

        Fence Calculator FAQ

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

        At 8 ft spacing, 100 ft is 12.5 bays, which rounds up to 13 sections and 14 posts on a straight run. At 6 ft spacing it is 17 sections and 18 posts. On a closed loop that returns to its starting post you drop one post, so 13 and 17.

        The last bay will be short. Do not leave one 4 ft stub bay next to twelve 8 ft bays: pull the spacing in evenly across the whole run instead, so 13 bays of 7 ft 8 in rather than 12 of 8 ft plus a runt. It costs the same and it is the difference between a fence that looks built and one that looks calculated.

        How deep should fence posts be?

        Take whichever of these three is deepest: one third of the height above ground, a 24 in minimum, or below your local frost line. For a 6 ft fence in a 36 in frost zone that is 36 in, because the frost line wins. For the same fence in a no-frost zone it is 24 in, because the one-third rule and the minimum agree.

        Frost depth is a local code number, not a regional guess: it runs from zero in southern Florida and coastal California to 42 in or more in Minnesota, North Dakota and northern Maine. Call your building department. See fence post depth for the full breakdown.

        Do gate posts need to be deeper?

        Yes, and heavier. A gate hangs its whole weight off one post and adds a swinging, slamming load every time anyone uses it, which is exactly the load a line post never sees. Use 6x6 posts instead of 4x4, dig the hole 6 in deeper and 2 in wider in diameter, and set them in concrete even if you set the line posts in tamped gravel.

        This calculator counts gate posts separately for exactly that reason and gives them their own concrete figure. For a gate wider than about 5 ft, or any gate carrying solid privacy boards, go to a 6x6 in a 12 in hole at minimum and consider a diagonal brace or a wheel at the latch end.

        Should posts be set in concrete or gravel?

        Sources genuinely disagree here and both work, so this is worth understanding rather than following. Concrete gives the most lateral resistance and is the standard for gate posts, corners, ends and any tall privacy fence. Compacted gravel drains freely, lets you reset a post later, and in wet clay soils often outlasts concrete because it does not create a bathtub that holds water against the wood.

        The compromise most fence builders land on: gravel in the bottom 4 to 6 in of every hole for drainage, concrete above it, and the concrete crowned above grade so water runs away from the post rather than pooling at it. Never bury the concrete collar below grade in a dish shape.

        How many pickets do I need per foot?

        Divide 12 by the picket width plus the gap, both in inches. A 5.5 in privacy board with no gap is 12 / 5.5 = 2.18 pickets per foot, so 219 pickets per 100 ft. A 5.5 in board with a 2.5 in gap is 12 / 8 = 1.5 per foot, so 150 per 100 ft.

        The trap is nominal width. A "1x6" fence board is 5.5 in actual, not 6 in. Using 6 in leaves you about 8% short, which on a 100 ft fence is roughly 17 missing boards and one more trip to the yard.

        How many bags of concrete per fence post?

        For the most common hole, a 4x4 in a 10 in wide by 36 in deep hole, you need about 1.38 cu ft of concrete, which is 3 bags of 80 lb, 4 of 60 lb or 4 of 50 lb. A shallower 10 x 24 in hole takes 2 bags of 80 lb.

        Two things change that number more than people expect. A wider hole costs far more concrete than a deeper one, because volume goes up with the square of the radius: going from 10 in to 12 in diameter adds 44% to the concrete at the same depth. And a 6x6 post displaces roughly two and a half times what a 4x4 does, which claws some of that back.

        Does the fence length include the gates?

        In this calculator, yes. Enter the full length of the fence line including the gate openings, then set the number of gates and their width. The gate widths are subtracted before sections are counted, because a gate opening does not need panels, pickets or rails, and then the gate posts are added back.

        Measure the opening, not the gate. A 4 ft gate needs roughly 4 ft between the finished faces of its two posts, and the gate leaf itself is built about 1.5 in narrower to leave room for the hinges and the latch gap. If you buy a pre-built 4 ft gate, set the posts to the manufacturer's stated opening, not to 48 in.