Fence calculator

Enter the length of each straight side of your fence, the post spacing and any gates. FenceCalc counts the sections, line and gate posts, rails and pickets, sizes the post holes and works out how many bags of concrete and how much gravel to buy. Add prices to get a materials estimate. The example is a 6-foot privacy fence around three sides of a yard: 100, 50 and 100 feet with one 4-foot gate.

Feet and inches
Prices (optional)

    Saved you some time? Leave a tip, entirely optional.

    Corner posts are shared between runs, and a closed loop shares its first and last post.

    How the fence calculator works

    FenceCalc splits each run into sections no longer than the post spacing, rounding up. Posts are the sections plus one, minus one for each corner shared by two runs, plus one extra post per gate. Rails are sections × rails per section. Pickets are the fence length minus the gate openings, in inches, divided by picket width plus gap, rounded up.

    Concrete per hole is the hole's volume minus the post's, from the top of a 6-inch gravel base (if you include one) to ground level, divided by the bag yield and rounded up to whole bags.

    Typical wood fence specs

    FencePostsRailsPickets
    4 ft picket fence4×4, 6 ft long, 6–8 ft apart2 per section1×4, 2–3″ gaps
    6 ft privacy fence4×4, 8 ft long, 8 ft apart3 per section1×6, no gap
    Gate posts4×4 or 6×6, set deeper——

    Concrete bag yields

    BagYield
    40 lb0.30 ft³
    50 lb0.375 ft³
    60 lb0.45 ft³
    80 lb0.60 ft³

    Yields are the published figures for Quikrete fast-setting and standard concrete mixes. Results are estimates: buy a few spare pickets and a spare bag, and check local codes, frost depth, HOA rules and underground utilities (call 811 in the US) before you dig.

    Frequently asked questions

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

    With 8 ft spacing, 13 sections and 14 posts, plus one extra post per gate.

    How far apart should fence posts be?

    Usually 6 to 8 feet for wood fences; 8 ft is the most common because rails come in 8 ft lengths.

    How many rails per section?

    Two for fences up to about 4–5 ft, three for 6 ft privacy fences.

    Is FenceCalc free?

    Yes, with no sign-up or ads.

    Are my measurements saved?

    Yes, in this browser only.

    More tools