How to set fence posts: the short answer

To set fence posts, dig each hole about three times the post's width and deep enough for the buried part plus 6 in (15 cm) of gravel. Stand the post on the gravel, plumb and brace it, then backfill with tamped soil, gravel or concrete.

How deep is a local question. The City of Oshkosh, Wisconsin, in its fence permit guide, says the building code sets no minimum depth for fence posts. It gives a rule of thumb of half the fence height. Our fence calculator starts at the same half-height depth.

The backfill depends on your soil and the post's job. A gate post may need concrete, while line posts in sandy or gravelly soil can go back in their own soil, well tamped.

How deep to set fence posts

Depth rules start from different numbers, so check which one your source means:

  • Half the fence height: the Oshkosh rule of thumb, and our fence calculator's default. For a 6 ft fence that is 36 in (91 cm), or one-third of a 9 ft post.
  • A range for a 6 ft fence: the rules in our fence planning guide land between 24 and 36 in (61 to 91 cm) in the ground.
  • Frost: the University of Wisconsin-Extension says 4 ft (1.2 m) usually gets the bottom of a post below the frost line in most northern climates. Oshkosh lists its minimum frost depth as 48 in.
  • Deeper is stronger: the same extension sheet says the deeper you can get a post in the ground, the better.

At the half-height rule, here is the post length and hole depth for common fences, with 6 in of gravel under each post:

Fence heightPost in the groundPost length neededStock postHole depth with gravel
4 ft (1.2 m)24 in (61 cm)72 in8 ft30 in (76 cm)
5 ft (1.5 m)30 in (76 cm)90 in8 ft36 in (91 cm)
6 ft (1.8 m)36 in (91 cm)108 in10 ft42 in (107 cm)

The calculator rounds post length up to the next stock length of 8, 10 or 12 ft. If your frost depth is deeper than half the height, enter it, and the calculator uses that instead.

Hole size and the gravel base

QUIKRETE and Sakrete both size the hole at three times the post's actual width. A 4x4 is 3-1/2 in (89 mm) wide, so its hole is 10.5 in (267 mm) across.

Kits can differ. The planning guide notes that Barrette's vinyl kit asks for a 10 in hole for a 5 in post. Master Halco's chain link instructions call for terminal post holes about 8 in across and 30 in deep.

The Wisconsin sheet adds a shape tip: try to make the bottom of the hole wider than the top. Then put gravel in the bottom. Our calculator uses 6 in, and Sakrete's data sheet asks for 4 to 6 in.

Concrete, gravel or tamped soil?

There is no single right backfill. The Wisconsin sheet weighs the choices like this:

BackfillWhen it fitsWhat to watch
Native soil, tampedSand, sandy loam or gravel soilTamp as you fill, from the bottom up
Brought-in sand and gravel, tampedSilt or clay soilSame tamping; the native soil goes elsewhere
Concrete, full depthA few cases, such as a gate postWisconsin says cement can trap moisture near the top of a wood post

The same sheet says galvanized steel posts in cement tend to rust at the top of the hole. It also says to avoid putting cement just at the top of the hole.

If you do use concrete, our calculator stops it 3 in (76 mm) below the ground, above a 6 in gravel base. Our guide on how many bags of concrete per fence post gives bag counts by hole size and both makers' dry-set methods. For a mixed batch instead, see how to mix concrete.

Use posts made for ground contact

The wood matters too, because a wood post rots where it meets the ground. The Wisconsin setting posts sheet covers the hole; a University of Kentucky Extension sheet covers the wood.

  • Tag: preservative-treated posts are tagged for ground-contact exposure. Kentucky's example is 0.4 lb per cu ft of CCA.
  • Untreated or dip-treated posts: Kentucky calls them unsuitable for long-term use. They rot first at the ground line, where water and air suit fungi.
  • Tops: slant the top cut so the post sheds water.
  • Cut ends: if you trim a post, re-treat the cut end with a wood preservative.

Extra hold for gate posts

Every gate needs a post on each side, and the opening comes out of the fence length, our planning guide notes. It adds that gate posts get extra support.

  • Concrete: the Wisconsin sheet names a gate post as one of the few cases where it might be necessary to backfill entirely with cement.
  • Bigger posts on farm fences: University of Georgia Extension, cited in the planning guide, says corner and gate posts should have a top diameter of at least 8 in.
  • Anchors: the Wisconsin sheet describes nailing a piece of wood to the bottom of the post before it goes in. Another way it gives is brace pins driven into the bottom of the post. Once the posts are set, our guide to building a fence gate covers the leaf itself.

Digging or driving? The Wisconsin sheet says professional fence contractors prefer post drivers because they are faster. It adds that digging can be just as good, if not better, because you know what is below ground.

Permits and the property line

  • Permit: Oshkosh requires a fence permit, and says no construction can start until the permit is approved. The planning guide notes that the 2021 IRC exempts fences not over 7 ft high from a building permit, but local codes differ.
  • Property line: Oshkosh allows fences up to the property line, but never over it. Master Halco recommends setting posts about 4 in inside the line, the planning guide says.
  • Zoning and HOAs: they may also regulate a fence's location, style and height.

How to set fence posts, step by step

  1. Check and call: ask your building office about depth and permits, and call "811" a few days before you dig. Oshkosh asks for 3 work days' notice.
  2. Mark the line: set the end posts' spots first, then stretch a string between them so the line posts fall on it.
  3. Dig: make each hole three times the post width and as deep as the buried post plus the gravel.
  4. Add gravel: pour the gravel in and tamp it firm.
  5. Set and plumb: stand the post on the gravel and check two neighboring faces with a level. Hold it with two angled braces staked to the ground.
  6. Backfill: fill and tamp in stages, as the Wisconsin sheet says, or place the concrete for gate posts.
  7. Check again: recheck plumb and the string line before the backfill or concrete sets.
  8. Wait: give concrete its set time from the bag before you hang rails or a gate.

If you rent a power auger, read the "tool's manual" and wear eye and hearing protection. Wear "alkali-resistant gloves" and eye protection when you work with wet concrete.

Worked example: a 5 ft picket fence with a gate

Say you build a 5 ft (1.5 m) picket fence with 4x4 posts, in sandy loam, where winters freeze. Your city lists a 48 in frost depth, like Oshkosh.

  1. Line posts, half the height: 30 in (76 cm) in the ground, so 60 + 30 = 90 in of post. Buy 8 ft posts, with 6 in to trim.
  2. Line post holes: 10.5 in (267 mm) wide and 30 + 6 = 36 in (91 cm) deep. Backfill with the tamped sandy loam.
  3. Gate posts, to the frost depth: 48 in (122 cm) in the ground, so 60 + 48 = 108 in of post. Buy 10 ft posts.
  4. Gate post holes: 10.5 in wide and 48 + 6 = 54 in (137 cm) deep, with concrete above the gravel.
  5. Concrete per gate post: the ring around the post is 86.59 − 12.25 = 74.34 sq in. The concrete runs 48 − 3 = 45 in, so 74.34 × 45 ÷ 1,728 = 1.936 cu ft.
  6. Both gate posts, plus 10% waste: 1.936 × 2 × 1.10 = 4.26 cu ft. At 0.375 cu ft per 50 lb bag of fast-setting mix, that is 11.36, so 12 bags.

The deeper gate posts cost 2 more feet of post each and all of the concrete. They are the posts where the Wisconsin sheet says cement may be needed.

Common fence post mistakes

  • Mixing up depth rules. One-third of the post length and one-third of the height above ground differ by 12 in on a 6 ft fence, the planning guide shows.
  • Using posts not rated for ground contact. Kentucky says untreated and dip-treated posts are unsuitable for long-term use.
  • A collar of cement at the top only. The Wisconsin sheet says to avoid it.
  • Clay backfill around the post. In silt or clay, Wisconsin brings in sand and gravel to backfill.
  • Digging before the lines are marked. Call "811" first, every time.

To count posts, holes and bags for your run, use the fence calculator. For the rest of the Building & Masonry topics, start with masonry basics.

Your questions, answered

How deep should fence posts be?

Often there is no code minimum. Oshkosh, Wisconsin, says the building code sets none and gives half the fence height as a rule of thumb, which is also our calculator's default: 36 in for a 6 ft fence. Where the ground freezes, Wisconsin Extension says 4 ft usually gets below the frost line in northern climates.

Should fence posts be set in concrete?

Not always. The University of Wisconsin-Extension says native soil works as tamped backfill in sand, sandy loam or gravel, and it brings in sand and gravel for silt or clay. It names a gate post as a case where cement may be needed, and warns that cement can trap moisture near the top of a wood post.

How wide should a fence post hole be?

QUIKRETE and Sakrete use three times the post's actual width, so 10.5 in for a 4x4 that is 3-1/2 in wide. Kits can differ: Barrette's vinyl kit asks for a 10 in hole for a 5 in post. The Wisconsin sheet suggests making the bottom of the hole wider than the top.

Do you put gravel under fence posts?

Yes, in the methods our guides use. Our fence calculator puts 6 in of gravel under each post, and Sakrete's data sheet asks for 4 to 6 in. Add that gravel to the hole depth: a post buried 30 in needs a 36 in hole with 6 in of gravel under it.

What kind of wood should fence posts be?

Posts treated for ground contact. The University of Kentucky says treated posts are tagged for ground-contact exposure, and that untreated or dip-treated posts are unsuitable for long-term use, because they rot first at the ground line. Slant the top cut so it sheds water, and re-treat any cut end.

How many bags of concrete for a gate post?

It depends on the hole. A 4x4 gate post buried 48 in, in a 10.5 in hole on 6 in of gravel, with the concrete stopping 3 in below ground, takes 1.936 cu ft. Two such posts with 10% waste need 4.26 cu ft, or 12 bags of 50 lb fast-setting mix.

WORK OUT YOUR OWN NUMBERS

Fence Calculator

Posts, rails, pickets or panels, plus post concrete and gravel, for every run, gate and corner of a fence.

Sources and how we checked this

Sources

  1. Setting Posts (Fencing Systems for Rotational Grazing), University of Wisconsin-Extension; Tom Cadwallader and Dennis Cosgrove. Accessed .
  2. Installing Wood Posts for Greatest Longevity in Farm or Paddock Fencing (FORFS 03-05), University of Kentucky Cooperative Extension Service; Terry Conners. Accessed .
  3. 1 & 2 Family Fence Permits (2/6/2024), City of Oshkosh, Wisconsin. Accessed .
Method
Each figure on this page comes from one of the sources listed here or from a run of the Fence Calculator with the inputs stated beside it.
Last verified
How this page was made
Drafted with AI assistance, then reviewed and edited by Benjamin Davis. AI tools checked every number against the sources listed here and the Fence Calculator, and an independent AI review checked them again.

Corrections

See something wrong? Report a problem · Corrections policy

No corrections to this page so far.

Report a problem with this page

Tell us what looks wrong on this page. Every report is checked.

For example: the number you expected, and where it came from.

We use your message only to check and fix this page. Privacy policy.