Fence Post Depth Calculator

This fence post depth calculator tells you how deep to set a post, how wide to dig the hole, how long a post to buy and how many bags of concrete each hole takes. Enter the fence height, the post size and whether it's a line, corner or gate post, plus your frost depth, any town minimum and gravel if you know them. It shows the rule that set each number, and an optional cost estimate for the bags.

Fence post depth calculator

Post depthEnter your fence height above

Depth, hole size, post length and concrete per post, with the rule that set each number.

Estimate the concrete cost (optional)

Bag prices are filled in from a recent shelf check, so edit them for your store.

Bag prices US average, edit for your store
Estimated costEnter your fence height above

Fast-setting against standard mix for the posts above.

To price a whole fence line at once, use the fence post concrete calculator.

How to use this calculator

Start from the finished fence height: every depth rule is written from the exposed height.

  1. Enter the fence height above ground.
  2. Pick the post. Wood is entered at actual size, 3.5 inches for a 4x4 and 5.5 for a 6x6, per the American Softwood Lumber Standard, PS 20. For steel pipe, choose round and enter the outside diameter.
  3. Say which post it is. Gate, corner and end posts get a deeper minimum.
  4. Add frost depth and any town minimum. Your building department publishes both; there's no national figure.
  5. Add gravel if you're using it. It deepens the hole but doesn't change the concrete.

How the depth is worked out

No model building code (IBC or IRC) sets fence post depth, so the calculator takes four published numbers and uses the deepest.

Depth = deepest of: ASTM F567, gate or corner minimum, frost depth, local minimum
ASTM F567 (in) = 24 + 3 × (fence height in ft minus 4), never under 24

The result also shows the bag makers' own rules, from a third to half the exposed height, as a range: 24 to 42 inches for a 6 foot fence. Why the one-third rule disagrees with itself lays out all four versions.

Fence post depth chart

A 6 foot fence on 4x4 posts needs 30 inches of depth and a 10 foot post, before frost or local rules. The usual 8 foot post leaves only 24 inches in the ground.

Two 4x4 posts in 10 inch holes for a 6 foot fence, to scale: an 8 foot post leaves 24 inches in the ground, a third of the exposed height; a 30 inch setting to ASTM F567 needs a 10 foot post with 18 inches cut off.
Fence post depth by fence height, 4x4 posts, before frost or local rules
FenceLine postBuyGate or cornerBuy
4 ft24 in6 ft36 in8 ft
5 ft27 in8 ft36 in8 ft
6 ft30 in10 ft36 in10 ft
7 ft33 in10 ft39 in12 ft
8 ft36 in12 ft42 in12 ft

A deeper frost line wins over the table: in Minnesota Zone I, a 6 foot fence set to 60 inches needs a 12 foot post.

How wide to dig the hole

Dig about three times the post width: a 10 inch hole for a 4x4 and 16 inches for a 6x6. The calculator checks it against the code minimum.

  • Code minimum

    8.95 in

    For a 4x4: the diagonal plus 4 inches, per IBC 1807.3.3 as adopted in Seattle.

  • Bag rule

    3 × post

    Quikrete and Sakrete's rule: 10.5 in for a 4x4.

  • Steel pipe

    4 × diameter

    ASTM F567, up to 4 in pipe; 3 × above that.

A 6x6 doubles the bags. At 30 inches deep a 4x4 takes 4 bags of 50 lb fast-setting mix and a 6x6 takes 8, because volume rises with the square of the hole width. Depth buys more holding per bag than width, as the code embedment equation shows.

Hole width and bags for six common posts, 30 inch depth
Hole width and concrete per post, 30 inch depth (6 ft fence)
PostCode minHole50 lb bags
4x4 wood8.95 in10 in4
6x6 wood11.78 in16 in8
1.90 in pipe5.9 in8 in3
2.375 in pipe6.38 in10 in4
2.875 in pipe6.88 in12 in5
4.0 in pipe8 in16 in9

A worked example

A 6 foot privacy fence in Columbus, Ohio, needs 65 bags for 14 line posts and two gate posts. Columbus publishes a 32 inch frost depth; the posts sit on 6 inches of gravel.

  1. Line posts, 4x4: 32 inches. Frost beats F567's 30. Dig 38 inches deep, 10 across; buy 10 foot posts. 4 bags each.
  2. Gate posts, 6x6: 36 inches. The gate minimum beats frost. Dig 42 inches deep, 16 across; 10 foot posts. 10 bags each.
  3. Total before you round. 14 line posts hold 17.19 cu ft (46 bags) and the gate posts 7.12 cu ft (19 bags). Rounding hole by hole would say 76, but dry fast-setting mix carries over from hole to hole.

To count posts from the length of the run, use the fence post concrete calculator.

What this calculator does not check

The depth is a floor, not a design: it doesn't size the post for wind or soil.

  • Wind

    Not checked

    A solid board fence catches more wind than chain link, the fence F567 was written for. IBC 1807.3.2.1 can size it if you know the load.

  • Soil

    Clay: half

    Clay resists a leaning post half as well as sandy gravel under IBC Table 1806.2. See soil and post depth.

  • Decks

    Different job

    A post carrying a deck or roof needs a footing sized from load: use the deck footing size calculator.

Frequently asked questions

How deep should a 6 foot fence post be?

30 inches by ASTM F567, the chain link installation standard: 24 inches plus 3 for each foot of fence over 4. Go deeper if your frost line or town minimum is deeper than that, and note that a 30 inch setting needs a 10 foot post, not the usual 8.

How deep should a gate post be?

At least 36 inches, and deeper than the line posts on the same fence. That is what USDA NRCS fence specifications in California and Vermont use for gate, corner and end posts; we found no freely published gate post depth for a residential wood fence.

How long should a fence post be?

The fence height plus the depth in the ground, rounded up to a length you can buy. A 4 foot fence at 24 inches takes a 6 foot post, and an 8 foot fence at 36 inches needs 11 feet, so a 12 foot post.

How deep should a post be for a 4 foot fence?

24 inches. ASTM F567 never goes below 24 however short the fence. A third of the exposed height would be only 16 inches, shallower than any published minimum we found.

What if I hit rock before I reach the depth?

A 2015 USDA NRCS Texas farm fence spec let steel T-posts go 18 inches deep in rocky soil, though its 2021 spec sets every post 3 feet deep. We found no guidance for wood posts in rock, so ask your building department before settling for less.

Does the gravel layer count toward the depth?

No. The depth is the length of post held in concrete, and gravel goes underneath, so 30 inches of setting on 6 inches of gravel is a 36 inch hole. Gravel helps in soil that drains and may hold water in clay, which the depth guide covers.