Fence calculator: how many posts, rails, pickets and bags of concrete do I need?

Add up your fence runs and get the posts (with corners and gates), rails, pickets or ready-made panels, concrete bags for the post holes and the cost. Metric or imperial.

Keep it one tap away for everyday use.

Bookmark Fence calculator?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

Or install fibub as an app: every tool you open then works offline.

  1. Runs
  2. Design
  3. Count
  4. Buy list
Nothing is uploadedWorks offline once open

Your fence

    Post holes and concrete
    Prices (any currency)

    Counts are fibub's own arithmetic; bag yields from Quikrete product data (checked 2026-12-05); check the bag and the official source for local rules, frost depth and permits. Nothing you type leaves this page.

    What it does

    This calculator turns the length of your fence into a shopping list. Enter each straight run, the fence height, how far apart the posts go and how many gates there are. It counts the posts (including the end and corner posts and the extra posts for gates), then the rails and pickets, or the ready-made panels if you prefer. It also works out the concrete for the post holes, in litres and in bags, and adds up the cost if you type prices.

    It works in metric or imperial and runs in your browser. Local rules on height, boundaries and frost depth vary, so check the official source. When you pour the post footings, concrete calculator gives a second opinion on volume; for a boarded deck next to the fence use deck calculator, and cut list helps plan the cuts from long boards.

    How to use it

    1. Choose metric or imperial.
    2. Add each straight run with its length and the number of gates in it. Pick whether the runs are separate, one continuous line, or a closed loop (corner posts are shared).
    3. Set height, post spacing, rails per bay, picket width and gap, or tick “ready-made panels”.
    4. Open “Post holes and concrete” for hole size and bag size, and “Prices” for a cost.
    5. Read the buy list. “Copy list” or “Download CSV” to take it to the shop.

    What each setting does

    • Gates: each gate takes its width out of the fence and adds a post beside it.
    • Layout: separate runs have their own end posts; a continuous line shares the corner posts; a closed loop shares all of them.
    • Panels: when ticked, panel width sets the post spacing and no rails or pickets are counted.
    • Waste %: extra rails and pickets for cuts and mistakes (5% default).

    Worked example

    Two runs, 12 m and 8 m, in one continuous line, post spacing 2.4 m, no gates. The 12 m run needs 5 bays and 6 posts; the 8 m run needs 4 bays and 5 posts; they share the corner post, so 10 posts. With two rails per bay and 5% waste you need 42 m of rail, which is 18 lengths of 2.4 m. Pickets 90 mm wide with a 10 mm gap give 200 for 20 m, 210 with waste. Holes 300 mm across and 600 mm deep with 100 mm posts take 36.4 litres each: 364 litres, or 22 bags of 80 lb premix.

    FAQs

    How deep should post holes be? A third of the post’s length is a common rule, and below the local frost line in cold places. Your supplier or local rules decide.

    Do I need concrete for every post? Not always; some soils and fence types use compacted gravel. This tool assumes concrete.

    Does it count nails and screws? No. Allow about 2 fasteners per picket per rail.

    Does it include fence height limits or permits? No, ask your local authority.

    Where the numbers come from

    • Post, rail, picket and panel counts are fibub's own arithmetic from the sizes you type: bays = run length / post spacing rounded up, posts = bays + 1 for each section, pickets = length / (picket width + gap) rounded up.
    • Concrete per hole = (pi/4 x hole diameter squared - post width squared) x hole depth. Premix bag yields (80 lb about 0.60 cu ft, 60 lb about 0.45 cu ft) are from Quikrete's product data (quikrete.com, checked 2026-12-05); a 25 kg bag is taken as about 12 litres. Always check the bag. 1 cu ft = 28.3168 litres.
    • Common rules used as defaults: posts every 2.4 m (8 ft), a post hole about a third as deep as the post is long (and below the frost line where it freezes), hole diameter about three times the post width. Planning rules, fence height limits, boundary law and frost depth are set by your local authority, so check the official source.

    Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

    Read more on the Blog

    Last updated 2026-12-05.

    Related tools

    Concrete calculator #T871 Work out how much concrete a slab, footing, post holes or steps need in m³, yd³ and ft³, add a waste allowance and count bags of premix. Deck calculator #T872 Count the deck boards, joists and screws or hidden clips for a deck from its size, board width, gap, the board lengths you can buy and joist spacing. Gravel calculator #T875 Add up rectangles, circles and triangles, set the depth and get the volume in m³, yd³ and ft³, the weight in tonnes and US tons, and the number of bags of gravel, sand, topsoil or mulch. Cut list #T1011 Type the length of the boards you can buy, the saw kerf and the pieces you need. The cut list packs them onto the fewest boards, draws each board with its cuts and offcut, and gives the waste and a list to copy or print. Millimetres or inches. Mulch calculator #T1211 Add your garden beds (rectangles, circles, triangles), set the depth and see cubic yards or metres, bags of 2 cu ft, 40 L or 50 L, the weight and the cost. Presets for mulch, topsoil, compost, gravel and sand. Board foot calculator #T1212 Work out board feet (and cubic metres) for a list of boards from thickness, width and length, with a nominal against actual lumber size table, price per board foot or per linear foot, and a waste allowance. Paver calculator #T1217 Count the pavers for a patio of any simple shape, with pattern waste, plus the gravel base and bedding sand in volume, tonnes and bags, the edging length and an optional cost. Aquarium calculator #T1221 Work out how many litres or gallons of real water a rectangular, bow-front or cylinder tank holds after substrate and decor, its filled weight, heater watts, filter flow, water-change size and a rough stocking limit.