Skip to content
Yardox

Fence calculator

Work out how many fence posts you need, how deep and wide to dig the holes, how many bags of concrete to buy and how many panels or rails and pickets go between the posts, following QUIKRETE’s post-setting instructions.

Fence

6 ft3 ft8 ft

Sides of the fence

How the sides meet

Each side has its own end posts.

Posts and infill

in

Side of a square post: a 4×4 is 3.5 in.

Check the rail length you can buy.

in
in

0 for a privacy fence.

Concrete

More settings
in

Leave empty for 3 × the post, as QUIKRETE recommends.

in

QUIKRETE: 6 in (150 mm) for drainage.

in

QUIKRETE: fill to 3–4 in below the surface.

Posts7 posts· 27 bags
Add this calculator to your website

Free for any website: paste this code where the calculator should appear. It keeps itself up to date, fits its height to the content and links back to the full page with the explanations.

How to use it

  1. 01Measure each side of the fence. If the sides meet at corners, choose Connected so the corner posts are counted once; for a fence all the way round, choose Closed loop.
  2. 02Pick ready-made panels or rails and pickets, then enter the height above ground and the post size.
  3. 03Choose the concrete bag. The hole size and depth follow the QUIKRETE instructions and can be changed under More settings.
  4. 04Read the posts, the hole size, the bags of concrete and the gravel, then copy the list for the store.

How it is calculated

Each side is split into bays no wider than the post spacing. Posts go at both ends of every bay; sides that meet share their corner post. Holes and concrete follow the QUIKRETE post-setting instructions.

Bays per side
⌈L / spacing⌉
Depth in the ground
d = H / 2 (one third of the post)
Post length
H + d = 1.5 × H
Hole
⌀ 3 × post, d + 6 in deep for gravel
Concrete per post
(π ⌀² / 4 − post²) × (d − 3 in)
Pickets per side
⌈L / (w + gap)⌉

QUIKRETE puts 6 in of gravel at the bottom of the hole so water drains away from the end of the post, pours the concrete to 3 to 4 in below the surface and tops up with soil. We use 3 in, which gives the larger amount of concrete.

With panels, the posts stand one panel width plus one post apart. The last bay on a side is usually shorter, so one panel is cut to fit.

The depth here is the QUIKRETE rule. Where the ground freezes, local rules may ask for a deeper hole below the frost line.

Worked example

A 48 ft fence, 6 ft high, 4×4 posts 8 ft apart

  1. 48 / 8 = 6 bays, so 7 posts. Each post goes 3 ft into the ground, so buy 9 ft posts (or the next length up).
  2. Holes 3 × 3.5 = 10.5 in wide and 3 ft 6 in deep, with 6 in of gravel at the bottom.
  3. Concrete per post: (86.6 − 12.25) in² × 33 in = 1.42 cu ft. For 7 posts: 9.94 cu ft, or 27 bags of QUIKRETE Fast-Setting at 0.375 cu ft each.
  4. With three rails per bay: 18 rails of 8 ft. Pickets 5.5 in wide with no gap: 105.

Getting the order right

Set the corners first

Set the end and corner posts, stretch a string line between them, then set the line posts to the string. The spacing stays even and the fence straight.

Leave the top for soil

Stopping the concrete a few inches below the surface lets you cover it with soil or turf, and the post does not sit in a puddle on top of the concrete.

Plan the gate early

Enter each side between a gate and a corner as its own side, with the gate posts as end posts. Gate posts often get a larger section; enter that side separately if so.

Common mistakes

  • Buying posts as long as the fence is high: a third of the post goes into the ground.
  • Counting corner posts twice when sides meet.
  • Leaving out the gravel, so water collects under the post.
  • Digging a narrow hole with an auger made for a smaller post.

Questions

How deep should fence posts be?

QUIKRETE gives half the height above ground, which is one third of the whole post: a 6 ft fence needs 3 ft in the ground and 9 ft posts. Add 6 in to the hole for gravel. Where the ground freezes, follow the local frost depth if it is deeper.

How many bags of concrete per fence post?

It depends on the hole. For a 4×4 post 3 ft deep in a 10.5 in hole, about 1.4 cu ft, which is four 50 lb bags of QUIKRETE Fast-Setting at 0.375 cu ft each.

How wide should a post hole be?

QUIKRETE recommends three times the post width: about 10.5 in for a 4×4 (3.5 in actual).

How far apart are fence posts?

For panels, one panel width plus one post. For rails and pickets, the spacing usually matches the rail length you can buy, such as 8 ft.

Guides on this topic

Sources

  1. [1]Setting Posts – project instructions. QUIKRETE Companies. Hole diameter 3 times the post diameter; hole depth 1/3 of the overall post length plus 6 in (150 mm) of gravel at the bottom for drainage.. Checked November 6, 2026
  2. [2]QUIKRETE Fast-Setting Concrete Mix – SPEC-DATA sheet. QUIKRETE Companies. Hole depth one half of the above-ground post height; pour dry mix to about 3–4 in from the top and fill the rest with soil; yield about 0.375 cu ft (11 L) per 50 lb bag.. Checked November 6, 2026
  3. [3]Concrete Mix No. 1101 – Product Data Sheet. QUIKRETE Companies. Yield per bag: 40 lb ≈ 0.30 ft³, 60 lb ≈ 0.45 ft³, 80 lb ≈ 0.60 ft³. Checked November 5, 2026
  4. [4]SAKRET Premium-Beton – Technisches Merkblatt (2025-12-02). SAKRET. Yield 0.46–0.47 l of fresh concrete per kg; we use the lower value 0.46 l/kg (11.5 l per 25 kg bag). Checked November 5, 2026

Formulas and sources last checked on November 6, 2026. How we calculate