How Deep Should a Fence Post Be in the Ground?

Finding the ideal fence post depth takes a little digging—literally

two moms and two kids in backyard near fence
Photo: Cavan Images / Cavan / Getty Images
two moms and two kids in backyard near fence
Photo: Cavan Images / Cavan / Getty Images
Highlights
  • Set your fence posts deep enough to bury one-third to one-half of the aboveground height of the post.

  • The hole for the footing should be three times the diameter of the post.

  • You’ll need to dig deeper if you have unstable soil, windy weather, or you’re setting a gate post.

  • Your fence post hole should be a uniform width throughout, so use a power auger.

Get quotes from up to 3 pros!
Enter a zip below and get matched to top-rated pros near you.
Geo Icon

If you’re planning a DIY fence installation, you may be wondering: how deep should a fence post be? Fence posts are the backbone of your fence, so you’ll need to set them correctly. Part of that includes finding the perfect depth and diameter for your post holes. A shallow hole is a one-way ticket to a toppled fence—but finding that sweet spot takes little more than some basic math.

How Deep Should You Dig Fence Post Holes?

How deep should a fence post be? As a general rule, your fence post hole should be deep enough to accommodate one-third to one-half of the aboveground height of the fence post. That said, the exact figure isn’t always so cut and dry. A lot depends on external factors.

For example, loam soil is less sturdy than other soil types, so you’ll want to dig a bit deeper. The same goes for heavier fences—like when installing a wrought iron fence or a chain-link fence—gate posts, and climates with heavy winds. Local building codes also vary, so you’ll need to check before you get started.

In addition, you’ll have to add 3 to 6 inches to your total depth measurement to accommodate for a layer of gravel. This helps with drainage—but depth isn’t the only important measurement. Diameter matters, too. Here are some general guidelines.

Post Hole Depth Guidelines

Whether you're installing a picket or panel fence post, dig your hole deep enough to accommodate one-third to one-half of the aboveground height of your fence plus 3 to 6 inches of gravel. For example, a 6-foot-tall fence should have posts buried at least 24 inches deep, plus an extra 3 inches for gravel. Here are some basic guidelines.

Fence Height (Aboveground in Feet)Post Hole Depth (Inches)
315–24
419–30
523–36
627–42
731–48
835–54

Post Hole Width Guidelines

The width—or diameter—of your post hole should be three times the diameter of your post. Standard post diameter varies based on the type of fence, so you’ll need to measure, but here are some common sizes.

Size of PolePost Hole Diameter (Inches)
2-3/8-inch round pole7.2
4x4-inch square pole12
6x6-inch square pole18

Post Hole Depth Guidelines for Gates

Gate posts require more stability because they have to handle the weight and movement of the gate. Dig your gate post holes deep enough to accommodate one-half of the aboveground height of your fence, plus a 6-inch layer of gravel.

Fence Height (Aboveground in Feet)Post Hole Depth (Inches)
324
430
536
642
748
854

Tips to Make Sure Fence Posts Are Set Securely

Finding the fence post depth takes a little basic math. You’ll need a calculator and some measuring tape. These tips can help:

  • Measure the height of your post, then divide the total height by two or three to get a general depth.

  • Burying half the pole is the sturdiest option. It’s ideal for gate posts, fences made from heavier materials, loamy or clay soil, and climates with high winds.

  • You can get away with burying a third of the pole if it’s a lightweight panel post and you have a sturdy soil type like sand, sandy loam, or gravel.

  • Don’t forget to add 3 to 6 inches to your measurement for a layer of gravel. The more gravel, the better the drainage. This is especially important for wood posts, which can rot in moisture.

  • If you don't have experience, you should enlist a fence company near you.

Set Posts Beneath the Frost Line

Frost lines by location highlighting 11 cities, with Chicago, IL having a frost line of 40”
Image: epic_fail / iStock / Getty Images Plus / Getty Images

If you live in an area that experiences freezing temperatures, your fence will be the most stable if you position the posts below the frost line. The frost line is the depth at which groundwater freezes in the soil. The type of soil around your home, its moisture content, and average temperatures in your area all contribute to the frost line. 

When you install fence posts above the frost line, the fence can be unstable due to the freezing and thaw of water in the soil. As water freezes, it expands. As it thaws, it contracts, potentially pushing the posts out of the soil. 

Your local fence code will most likely contain information about the required fence post depth to avoid frost damage. If it doesn't, and freezes occur in your area, a safe bet is to set the posts at least 24 inches deep. 

Ways to Set Fence Posts

Man digging hole in stone with shovel in garden
Photo: AMANDA JACKSON / iStock / Getty Images

A properly installed fence post will last for several years, if not decades. Along with digging deeply enough and making the post hole the appropriate size, there are a few ways to fill the hole to increase stability.

Soil and Gravel

Pouring at least 3 inches of gravel into the bottom of the fence post hole will help improve drainage, preventing a wood post from rotting. After putting the gravel in and centering the post in the hole, fill it in with soil, tamping down as you go. When finished, you can add another 2- or 3-inch thick layer of gravel on top of the soil.

Let the soil settle for several days, tamp down again, add more if needed, and install the pickets or panels.

Concrete or Expanding Foam

Another, sturdier option is to use concrete or expanding fence post foam when setting the fence posts in place. Unlike soil, you don't have to worry about settlement, nor do you need to tamp down foam or concrete.

To keep water from seeping between the concrete or foam and the fence post, run a bead of silicone caulk around the post's perimeter, where it meets the concrete or foam.

Signs Fence Posts Aren’t Buried Deep Enough

It's pretty easy to tell if a fence post isn't buried deeply enough. The post may be loose and easily moved. It may also start to lean, pulling the rest of the fence with it.

After a frost, you may notice that the fence posts have pushed out of the ground.

Is It Possible to Reset Fence Posts?

You can reset a fence post if it wasn't installed correctly the first time. If the post was installed to the correct depth, you can fix any leaning or wobbliness by adding more soil around the post. 

Another option is to dig out around the posts and pour concrete into the hole to create a stronger base. If the posts are rotted or otherwise damaged, your best option may be to pull them up and replace them.

When to Repair vs. Replace a Fence With Post Problems

You may reach the point when you're not sure if you're better off replacing a fence or repairing it. Often, repair is your best bet if large areas of the fence are affected. For example, if multiple posts are leaning or have signs of rot, replacement is the most cost-effective option. But, if just one post has a problem, it's more cost-effective to repair the entire fence.

The average cost of fence repair is about $600, while the average cost of fence replacement is $3,150.

Mariel Loveland contributed to this piece.

Need professional help with your project?
Get quotes from top-rated pros.
The homeowners guide to fence companies
From average costs to expert advice, get all the answers you need to get your job done.
White vinyl fence in backyard with nice landscaping in the foreground and background
Sep 5, 2024
Sep 5, 2024
How much a vinyl fence costs depends on its length, height, style, and whether you pay for labor. Learn more about the true cost of vinyl fencing.
A garden with a glass fence and magnificent seaview
Mar 20, 2024
Mar 20, 2024
Installing a glass fence costs much more than wood or metal, but those who invest do so for aesthetics. Learn how different types can significantly influence your project budget.
Swimming Pool Fence
Feb 7, 2024
Feb 7, 2024
Pool fence costs vary depending on the type of fencing and the size of your pool. This guide will help you figure out the true cost of pool fence installation, along with what you should consider when adding a fence around your pool.
a light wood privacy fence surrounds a private yard with plants, bushes, a bench, and gravel
Oct 18, 2024
Oct 18, 2024
Privacy fences enhance security without sacrificing curb appeal or character. From vinyl to wood, explore various privacy fence costs here.
Female friends playing with bubbles in front of a corrugated fence
Feb 9, 2024
Feb 9, 2024
A corrugated metal fence is a great way to give your yard a sleek, modern look while also saving a little bit of green in the process. This guide will break down the costs of building this type of fence and what you should consider before doing so.
New modern contemporary house exterior with fence and front door
Feb 5, 2024
Feb 5, 2024
Comparing vinyl vs. aluminum fencing is a question many homeowners consider when installing a new fence. Here's how to narrow down your choice.
Share project details to get started.