Skip to main content
Fence Calculator

Fence post depth calculator

Get the right embedment depth for a fence post from frost line and above-ground height, so corner posts hold and winter frost cannot heave them.

Fence calculator

Enter your specs. Every result updates live and shows its formula.

ft
Advanced settings
Local prices (optional)

Enter your own local unit prices to see a cost estimate. Leave blank to skip cost.

Saved quotes

No saved quotes yet.

Enter your fence length to see the full material and cost breakdown.

Overview

A fence post stays put when its embedment covers two rules at once: the frost line where frost heave applies, and at least one third of the above-ground height by the traditional rule of thumb.

This calculator takes your local frost depth and your post height and returns a single recommended depth that satisfies the larger of the two requirements, so a shallow-set post cannot uplift in winter.

Assumptions

  • Depth is the larger of the frost-line requirement and one third of the above-ground post height.
  • The frost line is supplied by the user from a local lookup table or building department.
  • A frost-depth input already includes the commonly recommended few extra inches of clearance below the frost line.

Common mistakes

  • Setting every post to the same depth regardless of height, when a 4 foot post and an 8 foot post need different third-of-height embedment.
  • Ignoring the frost line entirely and using a fixed 24 inches everywhere, which fails in frost-prone ground.
  • Undersizing corner and gate posts, which take tension and gate load and commonly want a deeper, wider footer.

Fence calculation formulas

The same math the calculator runs, in plain terms. Nothing here is a black box.

  • Sections

    sections = max(ceil(effective run / post spacing), 1)

  • Post count

    posts = (sections + 1) along the run, minus named corner and end posts already placed, plus 2 gate posts per gate

  • Effective run

    effective run = total length - sum of gate widths

  • Rail count

    total rails = sections x rails per section

  • Picket count

    pickets = ceil(run in inches / (picket width + gap)); total = ceil(raw x (1 + waste %))

  • Board-on-board pitch

    pitch = picket width - 1 in overlap

  • Panel count

    full panels = floor(run / panel width); add 1 cut panel if the remainder is over 0.01 ft; total = ceil(raw x (1 + waste %))

  • Concrete volume

    per-hole = pi x (diameter / 2)^2 x depth; total = per-hole x posts; bags = ceil(total / bag yield)

  • Slope-adjusted run

    slope run = effective run / cos(atan(slope % / 100)); shown alongside, counts use the flat run

  • Cost

    materials = (posts x post price + rails x rail price + infill x unit price + 60 lb bags x bag price) x regional multiplier; labor = effective run x labor per ft x terrain multiplier x regional multiplier; installed total = materials + gate hardware + removal + permit + labor

Every number the calculator shows comes from these formulas applied to your inputs.

In-depth guides

Buying guide

The fence post depth calculator settles one question that two separate rules of thumb both claim to answer: the one-third rule, which ties embedment to the post's above-ground height, and the frost line rule, which ties embedment to how deep the ground freezes in your climate. A post that only satisfies one of the two can still fail. Set a short post deep enough for frost but shallow relative to its height, and it can rack under wind load; set a tall post at a depth that ignores frost, and the ground itself can heave it out of plumb over a hard winter. This calculator takes both inputs, your post height and your local frost depth, and returns whichever of the two embedment requirements is larger, so the number on screen already accounts for both failure modes rather than just one. Depth also interacts with hole diameter indirectly: a deeper hole with the same diameter holds proportionally more concrete, so the depth number from this page is the first input the footing volume calculators downstream actually need.

Frost depth is the input most people get wrong, mainly because it is a local number rather than a universal constant. It increases with latitude and elevation in general terms, but the only reliable source for your specific address is a published county or state frost-depth table or a call to the local building department, since the same state can span a meaningful range of frost depths from one county to the next. Soil type changes the practical picture too: sandy or well-drained soil is more forgiving of a slightly shallow footing than dense clay that holds water against the post base through a freeze-thaw cycle. Before you dig at all, the 811 and utility locate guide covers the separate, mandatory step of having underground utilities marked, which has nothing to do with frost depth but matters just as much before the first hole goes in.

Post height is the more predictable half of the equation, since it is a measurement you already have rather than a regional lookup. The one-third rule means a 6 foot post wants roughly 24 inches of embedment from height alone, and an 8 foot post wants roughly 32 inches, before frost depth is even considered. Taller posts used for privacy screens or pool enclosures push embedment further still, and the calculator scales the recommendation linearly with whatever height you enter rather than capping it at a residential default. The 6 foot post depth guide and the post spacing guide both work from the same underlying assumptions this calculator uses, so reading them alongside the calculator output is a reasonable way to sanity check the number before you commit to a dig depth, especially at gate and corner posts where the rule is treated as a floor rather than a target.

Depth is only one half of a footing; diameter and volume are the other half, and they come from a different tool. Once you have the depth from this page, the fence post concrete calculator turns depth plus hole diameter into a per-post bag count, or the concrete bags calculator does the same across a full set of holes at once. Where soil conditions favor drainage over rigidity, the gravel calculator gives the equivalent volume in stone instead of mix. All three steps, hole count from the fence post calculator, depth from this page, and fill material from whichever of the concrete or gravel tools fits your soil, are covered together in the post depth and setting guide, and the rest of the foundation tools live under the foundation calculators category.

Regional frost maps are a starting point, not a substitute for a local check, because frost depth can vary within a single county depending on elevation, soil moisture and exposure. Many building departments publish a minimum footing depth specifically for structures in their jurisdiction, and that local number should be treated as the floor when it is available rather than a national average pulled from a general map. Sloped yards add a wrinkle to depth planning as well: on a hillside the embedment depth itself does not change, but digging straight down from a sloped grade means the uphill side of a hole can look shallower than the downhill side if the excavation is not leveled off consistently before measuring. Frost heave risk is also not uniform across a single fence line: a shaded, consistently damp corner of a yard can hold more moisture and freeze more severely than a sunny, well-drained stretch a few yards away, which is one reason some installers deliberately over-embed posts in the wettest part of a lot even when the calculated minimum would technically be enough everywhere else. None of these local variables can be built into a single calculator input, which is exactly why the frost depth field here is meant to be filled from a real local source rather than a guess.

Frequently asked questions

How deep should a 6 foot fence post be?

By the one-third rule, about 24 inches of embedment for the above-ground portion, and deeper where the frost line goes below that. This calculator returns the greater of the rule and your entered frost depth, so the number can be 30 inches or more in deep-frost regions.

What is the formula for post depth?

Take the larger of two values: your local frost depth, and one third of the post height above grade. That is the recommendation this calculator displays, because meeting only one of the two still lets the other cause movement.

How do I find my local frost line?

US county and city frost-depth tables are published by building departments and engineering agencies; a common quoted rule is that frost depth increases with latitude and elevation. This calculator takes the number as an input, so look it up locally with the building official for your address.

Does post height change the depth?

Yes, by the one-third rule it does. An 8 foot post should embed around 32 inches before frost is considered, versus 24 inches for 6 feet, which is why the height input drives the depth recommendation here.

Is deeper always better for a fence post?

Practically, deeper is safer for hold, but cost rises with every extra bag of concrete and length of post, and over-deepening can run into utilities or rock. Use the frost and third-of-height rules as the floor, and go deeper at corners and gates intentionally.

Do posts need to go below the frost line even with concrete?

Yes. Concrete does not cancel frost: when the surrounding soil freezes and heaves, a footer set above the frost depth can lift with the soil. The frost floor in this calculator exists for exactly that reason.

Is the one-third rule safe for gates?

It is a good start, not the end of the story. Gate posts carry a swinging, hinged load plus tension, and gate manufacturers commonly want deeper embedment, sometimes with a concrete collar, so treat the rule as a minimum and upsize at gate and corner posts.

What is the difference between depth and hole diameter rules?

Depth is how far the concrete footer goes below grade; diameter is how wide it is, and a common rule of thumb is three post widths for the hole diameter. This calculator sets the depth floor; the post concrete calculator handles the volume that the diameter and depth produce.