Skip to content
Popular Calculators
Browse Construction calculators

Fence Post Depth Calculator

Find how deep to set fence posts from the fence height, frost depth, post type and soil, with the hole size and the post length to buy.

From your building department; 0 if the ground does not freeze.

3.5 for a 4×4, 5.5 for a 6×6.

Post type (optional)
Soil (optional)

Result

Depth3 ft deep
Whyset by half the height above ground
Holedig 3 ft 6 in deep (6 in of gravel at the bottom), about 10.5 in across
Post lengthpost length 9 ft: buy 10 ft posts
Worth knowinglocal codes and fence makers may set other depths; call before you dig to locate buried lines

How this was calculated

  1. Depth rulemax(6 × 12 ÷ 2, 24, 30) = 36 in
  2. Extras36 + 0 = 36 in
  3. Post72 + 36 = 108 in

About the Fence Post Depth Calculator

The posts are the backbone of a fence. Boards, rails, wire and gates all hang from them, and wind pushes on the whole fence as if it were a sail. A post that is set too shallow leans, wobbles and eventually falls over, taking a run of fence with it. A post set too shallow in cold country can also be lifted out of the ground by frost a little each winter. Getting the depth right at the start is far cheaper than resetting posts later.

This fence post depth calculator works out how deep to set each post from the height of the fence above ground, your local frost depth, the type of post and your soil. It also gives the depth to dig including a gravel base, the hole diameter, the total post length and the standard length to buy.

How to Use the Fence Post Depth Calculator

Enter the fence height above ground in feet.

Enter your frost depth in inches, from the local building department, or 0 where the ground does not freeze.

Enter the post width and choose the post type and the soil.

The Formulas

  height rule  = height above ground ÷ 2   (a third of the post's total length)
  depth        = max(height rule, 24 in, frost depth)
               + 6 in for a corner or gate post
               + 6 in in soft or sandy soil
  hole depth   = depth + 6 in of gravel
  hole width   ≈ 3 × post width
  post length  = height + depth, rounded up to 6, 8, 10, 12, 14 or 16 ft

Step-by-Step Examples

A 6 ft fence, line post, firm soil, 30 in frost depth, 4×4 posts.

  height rule  72 ÷ 2 = 36 in
  depth        max(36, 24, 30) = 36 in = 3 ft
  hole         42 in deep, about 10½ in across
  post         72 + 36 = 108 in = 9 ft → buy 10 ft posts

The same fence with a gate post where the frost depth is 48 in.

  depth        max(36, 24, 48) + 6 = 54 in = 4 ft 6 in
  post         72 + 54 = 126 in → buy 12 ft posts

The One-Third Rule

The traditional rule is that a third of a post's total length should be in the ground. If the post shows 6 feet above ground, a third of its length buried means 3 feet below, a 9-foot post. That is the same as burying half the above-ground height. The rule gives enough soil around the post to resist the leverage of wind on the fence, which acts like a long lever trying to tip the post over. Taller fences catch more wind, so they need proportionally deeper posts.

Frost Depth

In places where the ground freezes, water in the soil expands as ice and can lift anything that is anchored only in the frozen layer. Posts set in concrete are especially vulnerable, because the frozen soil grips the rough concrete and heaves it upward. Setting the bottom of the post, or its concrete, below the frost line prevents this. Frost depths range from almost nothing in the southern United States to 48 inches or more in the northern states and Canada. Your building department can tell you the figure for your area.

Corner, End and Gate Posts

Not all posts carry the same load. Line posts in the middle of a run share the wind with their neighbours. Corner and end posts take the pull of the rails or wire from one or two directions, and gate posts carry the weight and swing of the gate, which levers the post sideways every time it opens. Setting these posts deeper and in wider holes, often with a 6×6 instead of a 4×4, keeps gates from sagging and corners from leaning. For heavy or wide gates, a concrete footing and a brace or cable on the gate itself help further.

Soil Type

Firm clay and compacted soils grip a post well. Loose sand, gravel, fill and wet ground grip less, so posts need to go deeper or have larger holes. In very loose soil, setting posts in concrete, or using steel post anchors driven deep into the ground, may be the only way to keep them firm. Rocky ground can stop a hole short; a rock bar, auger with a rock bit or a hired post-hole driller usually gets through.

Setting the Post

Put about 6 inches of gravel in the bottom of the hole and tamp it, so water can drain away from the end of the post. Stand the post, brace it plumb in two directions, and backfill with concrete or with soil and gravel tamped in thin layers. Slope the top of any concrete away from the post so water runs off rather than collecting around the wood. Pressure-treated posts rated for ground contact last much longer than untreated wood.

Before You Dig

Always call your local utility locating service a few days before digging, so buried power, gas, water and communication lines can be marked. Many fence projects also need a permit, and some neighbourhoods have rules on fence height and which side of the fence faces out.

Understanding Your Result

The headline gives the depth to set the post.

The why line says which rule set the depth and any extra added.

The hole line gives the depth to dig and the hole diameter.

The post length line gives the total length and the stock size to buy.

When Should You Use This Calculator?

Use it when planning a new fence or gate.

Use it to work out what length of post to buy.

Use it to check whether existing posts are deep enough when a fence leans.

Common Mistakes

Setting every post the same depth. Gate and corner posts need more.

Ignoring the frost line. Shallow posts heave in cold climates.

Skipping the gravel. Standing water rots post ends.

Digging without calling. Locate buried utilities first.

Frequently Asked Questions

How deep should a 6 ft fence post go?

A common rule buries a third of the post's total length, which is half its height above ground. For a 6 ft fence that is 3 feet deep, so the post is 9 feet long and you buy 10-foot posts.

Do fence posts need to go below the frost line?

In cold climates, yes, especially for posts set in concrete. Frost heave can lift posts that stop above the frost line. If your frost depth is 48 inches, set posts at least that deep, whatever the height rule gives.

Should gate posts be set deeper?

Yes. Gate posts carry the swinging weight and leverage of the gate, and corner posts take the pull of two fence lines. Setting them about 6 inches deeper than line posts, often in larger holes, keeps them plumb.

How wide should a fence post hole be?

About three times the post's width: roughly 10 to 11 inches for a 4×4 and 16 to 17 inches for a 6×6. Wider holes give more concrete or packed gravel around the post for stability.

Why put gravel at the bottom of the post hole?

A few inches of gravel under the post lets water drain away from the end grain instead of pooling, which slows rot. Dig the hole about 6 inches deeper than the post depth to leave room for it.

What length of fence post should I buy?

Add the height above ground to the burial depth and round up to a standard length. A 6 ft fence with 3 ft of burial needs 9 feet, so buy 10 ft posts and trim the tops level after setting.

Formula and article last checked September 28, 2026. How we test these calculators.