Fence calculator

Fence Post Depth Calculator

This fence post depth calculator works out how deep a fence post has to go before you dig the first hole, so posts stay upright through frost heave and high wind. Enter the fence height, your local frost line and the soil, and it compares the two rules that govern depth, the one-third rule from the fence height and the frost-line rule from your climate, and tells you which one wins, how long a post to buy, and how much concrete each hole takes.

  • Free to use
  • No sign-up
  • Formula and sources shown
Fence Post Depth Calculator

Got the number? Save it before it gets lost.

A result on a screen is easy to lose. Save this estimate in the app and it stays with the project, ready when you order.

Save this estimate in the app

The height of the finished fence, not the post. 6 ft is the standard backyard privacy height.

24

Your building department or county extension office has the number. 0 in means the ground does not freeze where you are.

Test the soil at the bottom of a test hole, not the topsoil. Loose soil needs a deeper embed; rocky ground needs less.

Gate, corner and end posts carry more load than line posts, so they go 6 in deeper.

Required embed depth

36 in (3.00 ft)

Governed by the fence height (1/3 rule) · Firm loam / average soil

One-third rule depth

36.0 in

Frost rule depth

30 in

Post length needed

9.00 ft. Buy 10 ft posts

Concrete per post (60 lb bags)

4 bags (1.38 cu ft)

Dig a 10 in hole 36 in deep with a 6 in gravel base (0.27 cu ft of gravel) at the bottom. Confirm the frost number with your building department; it varies by county, and call 811 before you dig.

Turn this result into a priced plan

Save it to a project, add the rest of your materials, and send a client-ready quote. No retyping, no spreadsheet, no lost numbers.

Open this calculator in the app

Formula

Depth = max(24 in, fence height ÷ 2 × soil factor, frost line + 6 in) + 6 in for gate and corner posts; post length = height + depth, rounded up to the next stock length

Worked example. A 6 ft fence in firm soil with a 24 in frost line (the calculator's defaults): the one-third rule gives 36 in, the frost rule gives 30 in, so the height rule governs and the depth is 36 in. The post is 9 ft long, so you buy 10 ft posts. Each 10 in hole takes about 1.38 cu ft of concrete net, or 4 bags of 60 lb concrete, over a 6 in gravel base.

A 6 ft fence post needs 36 in in the ground in firm soil with a 24 in frost line: 9 ft of post in total, so you buy 10 ft posts, and 4 bags of 60 lb concrete per hole. That is the whole answer for most of the temperate United States, and the rest of this page covers the two cases where it changes: when the frost line is deeper than the fence is tall, and when the soil is too loose or too wet to hold the post at 36 in.

Key takeaways

  • •Depth is the deeper of two rules: the one-third rule (half the above-ground height) and the frost rule (frost line + 6 in), with a 24 in minimum.
  • •A 6 ft fence wants 36 in in the ground in firm soil; a 4 ft fence wants 24 in; an 8 ft fence wants 48 in, before frost is considered.
  • •Frost governs in cold climates: a 6 ft fence in a 48 in frost zone needs 54 in, not 36 in, and 12 ft posts instead of 10 ft.
  • •Gate, corner and end posts go 6 in deeper than line posts. A 6 ft gate post in a 48 in frost zone goes 60 in deep.
  • •Soil moves the structural depth: sandy soil 1.15×, clay 1.10×, firm loam 1.00×, rocky ground 0.90×. Frost depth is never multiplied.
  • •Post length is height plus depth, rounded up to the next stock length: 8, 10, 12, 14 or 16 ft. A 9 ft post means buying 10 ft posts.
  • •Concrete per post at 36 in deep in a 10 in hole is about 1.38 cu ft net, or 4 bags of 60 lb concrete, over a 6 in gravel base.
  • •Your building department's frost number governs, not a map. Frost depth varies by county, and the map is a planning range.

How to use the fence post depth calculator

  1. Enter the fence height above ground in feet, the height of the finished fence, not the post.
  2. Enter your local frost line depth in inches. Your building department or county extension office has the number; 0 in means the ground does not freeze where you are.
  3. Pick the soil you are actually digging into. If you are not sure, dig a test hole: soil that holds its shape when squeezed is clay, soil that falls apart is sandy, and soil that rings the shovel is rocky.
  4. Pick the post type. Line posts are the ordinary run; gate, corner and end posts all go 6 in deeper, and the calculator adds it automatically.
  5. Read the governing rule first. It tells you whether the fence height or the frost line is deciding the depth, which is the fact that changes the answer when you move house.
  6. Read the post length to buy. It is rounded up to the next stock length, because posts are sold in 2 ft increments and a post that is an inch short is useless.
  7. Read the concrete per post and multiply by your post count, or use the fence post calculator to price the concrete for the whole fence at once.

Worked examples

1. The default: 6 ft fence, 24 in frost line, firm soil, line post

  • One-third rule: 6 ft ÷ 2 = 36 in in the ground
  • Frost rule: 24 + 6 = 30 in. Shallower, so the height rule governs
  • Minimum: 24 in | not governing here
  • Depth: 36 in, or 3 ft
  • Post length: 6 ft + 3 ft = 9 ft, so buy 10 ft posts
  • Hole: 10 in diameter, 36 in deep, 6 in gravel base at the bottom
  • Concrete: hole 1.64 cu ft minus post 0.26 cu ft = 1.38 cu ft net, or 4 bags of 60 lb concrete

2. Cold climate gate post: 6 ft fence, 48 in frost line, sandy soil

  • One-third rule with soil: 36 in × 1.15 = 41.4 in
  • Frost rule: 48 + 6 = 54 in. Deeper, so frost governs
  • Gate post extra: +6 in, for a total depth of 60 in, or 5 ft
  • Post length: 6 ft + 5 ft = 11 ft, so buy 12 ft posts
  • Concrete: 2.30 cu ft net at 60 in deep, or 6 bags of 60 lb concrete per post
  • The same fence, the same height, and the post is 2 ft longer and takes 50% more concrete, because the climate changed

3. Short fence, warm climate: 4 ft fence, no frost, firm soil

  • One-third rule: 4 ft ÷ 2 = 24 in
  • Frost rule: 0 + 6 = 6 in, not governing
  • Minimum: 24 in | the same as the height rule here
  • Depth: 24 in, or 2 ft
  • Post length: 4 ft + 2 ft = 6 ft, so buy 8 ft posts (6 ft posts are not a stock length for fence posts)
  • Concrete: 0.92 cu ft net, or 3 bags of 60 lb concrete per post
  • A short fence in a warm climate is the cheapest hole you will dig, and still 24 in deep, because the minimum is a minimum

Depth by fence height

The one-third rule gives a clean table, and it is worth memorising: the depth is half the height above ground. The table below shows the depth before frost and before soil, in firm soil with no frost. The baseline every other adjustment starts from. Frost and soil only ever add to these numbers; they never reduce them, except rocky soil, which takes 10% off the structural depth and still cannot go below the frost depth or the 24 in minimum.

Fence heightDepth (1/3 rule)Total post lengthStock length to buyConcrete per post (60 lb bags)
3 ft24 in (minimum)5 ft8 ft3 bags
4 ft24 in6 ft8 ft3 bags
5 ft30 in7.5 ft8 ft3 bags
6 ft36 in9 ft10 ft4 bags
7 ft42 in10.5 ft12 ft5 bags
8 ft48 in12 ft12 ft5 bags
10 ft60 in15 ft16 ft7 bags

Firm soil, no frost, 10 in hole, 4×4 post, 6 in gravel base. Gate and corner posts add 6 in of depth and usually one more bag.

Two rows deserve a second look. The 3 ft fence is the minimum at work: the one-third rule alone would give 18 in, but the 24 in minimum overrides it, because a shallow hole in a short fence still has to resist wind and frost. The 5 ft fence is the stock-length trap: 7.5 ft of post means buying 8 ft posts with only 6 in to spare, so measure the depth carefully. A hole dug 3 in shallow leaves the post short, and a hole dug 3 in deep wastes the margin. The 8 ft fence is the permit line in many towns: above 6 ft, and almost always at 8 ft, a permit and a neighbour agreement are usually required, and the posts are 12 ft stock at 48 in of depth.

The concrete column is the one people underestimate. Four bags per post does not sound like much until the fence has 14 posts, which is 56 bags. Over a tonne and a half of concrete to haul, mix and pour. That is why the calculator shows the per-post count and the fence post calculator shows the whole-fence total: the per-post number plans the hole, the total plans the truck.

Frost line by region

Frost is the reason the same fence costs a different amount in different states. When saturated soil freezes it expands by about 9%, and it grips the concrete footing as it does, a post that stops inside the frost zone gets lifted a little every winter, and after a few winters the fence leans and the gates stop latching. The fix is to put the bottom of the footing in soil that never freezes, which means 6 in below the local frost line. The frost line is set by climate and by county, and the ranges below are planning figures, not code numbers: your building department's figure is the one that governs, and it can differ from the next county over.

RegionTypical frost depthEmbed for a 6 ft fencePost to buy
Florida, Gulf Coast, southern Texas, southern California0 to 6 in36 in (height governs)10 ft
Southeast, Southwest, Pacific coast6 to 18 in36 in (height governs)10 ft
Mid-Atlantic, lower Midwest, Pacific Northwest inland24 to 36 in36 to 42 in10 ft
Upper Midwest, New England, mountain states42 to 60 in48 to 66 in (frost governs)12 ft
Northern Minnesota, North Dakota, northern Maine60 in or more66 in or more (frost governs)12 to 14 ft

Frost depths are regional planning ranges. Confirm the county figure with your building department before you dig.

The crossover sits in the Mid-Atlantic. At a 24 in frost line the frost rule gives 30 in and the height rule gives 36 in, so the fence height still decides. At a 36 in frost line the frost rule gives 42 in and takes over. That is why two neighbours in different counties can build the same 6 ft fence with posts a foot apart in depth, and why a fence built to the height rule in a cold climate leans within three winters. If you are moving from a warm state to a cold one, the depth is the first thing to relearn; everything else about fence building transfers, and this does not.

There is one more frost subtlety worth knowing: the frost line is the depth the ground freezes in a normal winter, not the worst winter on record, and a bare, snow-free patch of ground freezes deeper than ground under snow or mulch. A post in an exposed, windswept part of the yard can heave while a post ten feet away under a snow drift does not. If your yard has both, dig to the deeper number everywhere. A fence is only as straight as its shallowest post.

Soil: the multiplier nobody measures

Soil is the part of the calculation most people skip, and it is the part that decides whether a fence that is deep enough on paper stays upright in practice. A post resists wind by bearing against the soil along its buried length, and different soils bear very differently: firm loam grips well, heavy clay grips well when dry and badly when wet, loose sand barely grips at all, and rocky ground grips best of all but is miserable to dig. The calculator multiplies the structural depth by a soil factor, sandy 1.15, clay 1.10, firm 1.00, rocky 0.90, and the factor applies to the height rule only, never to the frost rule.

SoilFactorDepth for a 6 ft fence (no frost)How to recognise itDigging note
Firm loam1.00×36 inHolds its shape when squeezed, crumbles when pokedThe baseline; an auger or a post-hole digger works well
Heavy clay1.10×40 inSticks to the shovel, holds a ball when squeezedHolds water and heaves; keep the hole drained with gravel
Loose / sandy1.15×41 inFalls apart when squeezed, gritty between the fingersLeast grip; consider a wider hole as well as a deeper one
Rocky / hard0.90×32 inShovel bounces, stones in every scoopBest grip; a digging bar and patience, or a powered auger

Depths are the structural depth only. Frost can still demand more, and the 24 in minimum still applies.

The practical test is a squeeze test on a handful of soil from the bottom of a test hole, not the topsoil. Topsoil is almost always loam, even over clay or sand, because that is what was spread when the yard was graded. Dig 2 ft down and test that soil: if it holds a ball that does not crumble, it is clay; if it falls apart, it is sand; if the shovel rings, it is rock. If the test hole fills with water, the soil is wet clay or a high water table, and the drainage matters more than the depth. A post standing in water rots at the ground line whatever the depth, and the gravel base and a concrete collar that sheds water are what save it.

A wider hole is the other answer to bad soil, and it is one this calculator does not change: the concrete figures assume a 10 in hole, which is three times the width of a 4×4 post and the usual rule of thumb. In sand, a 12 in hole gives the concrete plug more bearing area against the soil and is often a better use of an extra bag of concrete than another 6 in of depth. The two work together, deeper and wider, and a fence in sand wants both.

Gate, corner and end posts

Line posts carry wind load from one direction and share it with their neighbours through the rails. Gate, corner and end posts do not have that luxury. A gate post carries a swinging load that pulls sideways and twists the post every time the gate opens; a corner post carries tension from two directions at once; an end post carries the whole pull of the fence run with nothing beyond it. All three go 6 in deeper than a line post, and all three want a bigger hole and more concrete.

Post typeExtra depthDepth for a 6 ft fence (24 in frost)Concrete per postOther notes
Line postn/a36 in4 bagsThe baseline
Corner post+6 in42 in5 bagsTension from two directions; brace the rails both ways
End post+6 in42 in5 bagsTakes the pull of the whole run; anchor it well
Gate post+6 in42 in5 bagsSwings a load; through-bolt the hinges, use a larger post if the gate is wide

Cold-climate figures are deeper: in a 48 in frost zone a gate post goes 60 in deep and takes 6 bags.

For a wide or heavy gate, depth alone is not enough. A 6 ft wide gate on a 4×4 post is a lever, and the post will rack over time whatever the depth. The fixes are a 6×6 post for the gate, a diagonal brace or a wheel on a wide gate, and hinges through-bolted through the post rather than screwed into its face. A gate post that is 6 in deeper and a size bigger is cheap insurance against the most common fence failure, which is not a leaning line post but a sagging gate that no longer latches.

Count the whole fence, posts, rails, pickets and concrete, with the fence calculator, and the concrete for the holes with the fence post calculator, which prices the concrete volume for the whole run. This page answers the depth question; those two answer the quantity question.

Common fence post depth mistakes

  • •Digging to the one-third rule in a cold climate and ignoring the frost line. A 36 in hole in a 48 in frost zone heaves every winter until the fence leans.
  • •Using the frost-line map instead of the county number. Frost depth varies by county, and the map is a planning range. The building department's figure governs.
  • •Digging a 3 ft fence 18 in deep. The one-third rule gives 18 in, but the 24 in minimum overrides it, and a shallow hole in a short fence still has to resist wind.
  • •Setting gate posts at line-post depth. A gate post carries a swinging load and needs 6 in more depth, a bigger post for a wide gate, and through-bolted hinges.
  • •Skipping the gravel base. Six inches of gravel at the bottom of the hole drains water away from the post; without it the post stands in water and rots at the ground line.
  • •Backfilling with the clay you dug out. Clay holds water against the post. Backfill the top 6 in with soil that sheds water, and crown the concrete so water runs away from the post.
  • •Mixing the concrete too wet. Soup-like concrete is weak concrete, and a weak plug crumbles under wind load. Mix it stiff, and let it cure before you hang the rails.
  • •Measuring the post length from the drawing instead of the hole. The post length is the height plus the actual depth, and if the hole came out 3 in deep, the post needs to be 3 in longer.

How this calculator compares with the rivals

The fence-post-depth search has several good dedicated calculators, so this page wins on the combination rather than on the existence of a depth figure: the two competing rules shown side by side, the soil multiplier, the post-type extra depth, and the stock-length and concrete answers in the same pass. Most rivals give the depth and stop; this page gives the depth, the post to buy and the concrete to order.

RivalWhat it offersWhere this page beats it
OnlyCalculators | Fence Post Depth CalculatorEmbed depth, post length and 80 lb bag count from fence height, soil, wind and frost line, with a 1/3-rule explainerThe strongest rival, with wind exposure as an input. This page adds the soil multiplier table, the gate and corner extra depth, and the regional frost table.
MyFenceCalculator | Fence Post Depth CalculatorDepth from the deeper of the height rule and the frost rule, with hole diameters, gravel base and post lengths to buyThe closest rival to this page's logic. This page adds the soil factor, the per-post concrete count and the worked cold-climate gate-post example.
FenceCalculatos.org | Fence Post CalculatorPost spacing, depth, frost line by state and concrete bags, with a step-by-step layoutGood on frost lookup by state. This page adds the soil multiplier, the governing-rule callout and the regional frost-depth table.
FarmerGrows | Fence Post Depth CalculatorDepth by fence height, frost line by region, hole diameters and post lengthsGood reference tables. This page adds the soil factor, the gate-post rule and the concrete count per post.
CalcExp | Fence Post Concrete Depth CalculatorFull footing prescription with soil coefficients, gravel base and bag counts in imperial and metricThe most engineering-heavy rival. This page adds the plain-language worked examples and the stock-length answer a DIYer actually shops for.
Cal67 | Post Hole Depth CalculatorRecommended depth from the rule of thumb, frost adjustment and wind load, with a local code minimum inputGood on wind load. This page adds the soil table, the post-type depth and the concrete per post.
CalculatorSoupNo fence post depth calculator in the top results for this keywordIts strength is general-purpose calculators.
Home Depot / Lowe'sNo fence post depth calculator in the top resultsThis page answers it and links to the quantities.
BuildCova's own fence post calculatorConcrete volume for fence post holes, for the whole fenceThe sibling page, not a rival. It prices the concrete once you know the depth; this page tells you the depth, and the two link to each other.

Rival coverage is qualitative, from the top search results for this keyword. No search volumes or authority scores are claimed.

The honest summary: OnlyCalculators and MyFenceCalculator are the rivals to watch, because they already compare the height rule with the frost rule. No rival combines the governing-rule callout, the soil multiplier, the gate and corner extra depth, the stock-length answer and the per-post concrete count in one place, and none of them shows the cold-climate gate post as a worked example. This page wins by being the only one that takes the reader from a frost number to a shopping list.

Related tools and next steps

Depth is one number in a fence job. The rest of the job is the fence itself: the length, the height, the material, the rails and pickets, and the concrete for every hole. Do the depth first; it decides the post length, and the post length decides the order, and then count the fence.

Count the whole fence with the fence calculator, price the concrete for every hole with the fence post calculator, and work out the bags for a single pour with the concrete bag calculator. If the fence runs over uneven ground, check the fall with the elevation grade calculator before you set the post heights.

Before you dig, call your local utility locator; in the United States, 811, and confirm the frost number with your building department. Then dig one test hole to the full depth and check the soil at the bottom, because the soil down there is the soil the post will live in, and it is often nothing like the topsoil. Measure the depth with a tape, not by eye, and crown the concrete at the top so water runs away from the post instead of pooling against it.

Assumptions

  • •The one-third rule means the depth is one third of the total post length, which works out to half the above-ground height: a 6 ft fence wants 36 in in the ground, a 4 ft fence wants 24 in.
  • •The frost rule is the local frost line plus 6 in, so the bottom of the footing sits in soil that does not freeze. Frost depth varies by county, not just by state. Your building department's number governs, and the figures on this page are regional planning ranges.
  • •The minimum embed is 24 in regardless of fence height or climate. Gate, corner and end posts go 6 in deeper than line posts, because they carry swinging loads or tension from two directions.
  • •Soil multiplies the structural depth only: loose or sandy soil 1.15×, heavy clay 1.10×, firm loam 1.00×, rocky ground 0.90×. The frost depth is not multiplied. Frozen ground is frozen ground.
  • •Concrete figures assume a 10 in diameter hole and a 4×4 post, with 0.45 cu ft per 60 lb bag, and a 6 in gravel drainage base at the bottom of the hole.

Sources✓ Verified

  • IRC R403 | Footings and foundations. Footings must extend below the frost line; the basis for the frost rule on this page.
  • University of Minnesota Extension | Frost depth and post footings. Frost-line practice for northern climates and the need to set footings below the frost depth.
  • Fence industry practice (one-third rule). Bury at least one third of the total post length, with a 24 in minimum, as published by fence manufacturers and trade guides.

Formula reviewed November 2026.

For a 6 ft fence, 36 in by the one-third rule, half the above-ground height, or your frost line plus 6 in, whichever is deeper. In a 24 in frost zone the height rule governs at 36 in; in a 48 in frost zone the frost rule governs at 54 in. The minimum is 24 in in any climate, and gate and corner posts go 6 in deeper.

About 36 in in firm soil with a frost line of 30 in or less, which covers most of the temperate United States. In a cold climate with a 48 in frost line, the same fence needs 54 in in the ground. Buy 10 ft posts for a 36 in embed and 12 ft posts for a 54 in embed, because the post length is the height plus the depth.

Yes, in any climate where the ground freezes. When saturated soil freezes it expands and grips the concrete, and a post that stops inside the frost zone gets lifted a little every winter until the fence leans. The footing must sit at least 6 in below the local frost line, in soil that does not move. In warm climates with no frost, the one-third rule governs instead.

6 in deeper than line posts of the same fence, because a gate post carries the dynamic load of a swinging gate. For a 6 ft fence in firm soil that is 42 in instead of 36 in, and in a 48 in frost zone it is 60 in. Gate posts also want a larger hole and more concrete, and the gate hardware should be through-bolted, not screwed into the face.

Bury at least one third of the total post length underground. Because the total length is the height above ground plus the depth, the rule works out to a depth of half the above-ground height: a 6 ft fence wants 36 in in the ground, a 4 ft fence wants 24 in, and an 8 ft fence wants 48 in. It is a minimum, not a target. The frost rule can demand more.

For a 6 ft fence at 36 in deep in a 10 in hole with a 4×4 post, about 1.38 cu ft net, or 4 bags of 60 lb concrete per post. A 4 ft fence at 24 in deep takes 3 bags, and a 6 ft gate post at 60 in deep in a cold climate takes 6 bags. Work out the exact count with the fence post calculator, which prices the concrete for the whole fence.

Converters to use with the Fence Post Depth Calculator

Switch units, compare bulk and bagged quantities, or check coverage, without leaving BuildCova.

Browse all converters

More fence calculators

Fence CalculatorFenceFence CalculatorA fence calculator that turns your fence length, post spacing and rails per section into a post, section and rail count you can shop from. Miss a post and the run sags; order too many and the extras sit in the yard. Plan corners, gates and concrete from the same numbers, so the materials arrive in one trip and the build starts on time.Fence Post Concrete CalculatorFenceFence Post Concrete CalculatorA fence post concrete calculator that works out how much concrete your posts need, in cubic feet, cubic yards and 60 lb bags, from the post count and the size of each hole. Too little concrete and posts lean within a season; too much and you pay for bags you never open. Enter your hole size and buy the count the job actually takes.Fence Panel CalculatorFenceFence Panel CalculatorA fence panel calculator that turns your total fence length and the width of one panel into the number of pre-made panels to buy, how much length they cover and how many posts you need. Panels come in fixed widths, so a rough count leaves a gap at the end of the run or a panel you cannot use. Enter the length and get a panel count that fits.Fence Picket CalculatorFenceFence Picket CalculatorA fence picket calculator that turns your fence length, the width of one picket and the gap between pickets into the number of pickets or fence boards you need. Count by the picket instead of the foot and the last board lands short, leaving a gap you cannot hide. Enter the real widths and get a count that closes the run.Fence Cost CalculatorFenceFence Cost CalculatorA fence cost calculator that shows the installed cost per linear foot and the total, split into materials and labour, with gates, old-fence removal and a permit as separate line items. Enter the fence length, height and material, then compare all five fence materials side by side. A fence priced on a guess can run short on posts and panels, so price the whole job first.Chain Link Fence CalculatorFenceChain Link Fence CalculatorA chain link fence calculator that turns your fence length and post spacing into the post count, the mesh length and the top rail length you need, then helps you plan the terminal posts, concrete, gates and ties. Mesh and rail run the full length, so a short measure leaves a gap in the run. Enter the length and spacing and get the full materials list.

Material requirements can vary based on product specifications and job conditions. Verify quantities with your supplier before ordering.