Fence Post Depth Calculator
Work out buried depth and total post length from the above-ground height.
Seven length units, including feet and inches, and an adjustable depth-to-height ratio.
Updated October 29, 2026
Introduction
Every fence post is really two posts: the part that stands above the ground and the part the ground holds. This page takes the four numbers that describe that pair — the post length, the above-ground height, the buried depth and the ratio between the last two — and solves whichever one you leave blank.
It is written for the moment before a hole is dug. You may know the fence height you want and need the other two numbers; you may already own a post and need to know how much of it will end up underground; or you may have hit clay at a certain depth and need to know what height that leaves. All three are the same relationship, read in different directions, which is why the calculator answers in whichever direction you leave room for.
What it does not do is judge the ground. The geometry of a post is simple; how deep a post has to go in a particular soil, on a windy corner, with a heavy gate hanging off it, is not. The ratio box is where your judgement enters, and the last section is honest about what a proportion cannot tell you.
Four values, any direction
Length, height, depth and ratio solve for each other
Seven length units
Centimetres to yards, plus feet-and-inches and metres-and-centimetres
0.33 by default
A third of the above-ground height starts in the ground
Quick start
Type the height you want above ground
This is the fence height a neighbour sees, measured from the finished ground line to the top of the post. A common garden fence is 1.8 m, so start there.
Read the buried depth and the post to buy
With the ratio at its 0.33 default, the post gives up a third of its above-ground height to the ground, and the length to buy is both parts added together:
Change the ratio if a third is not enough for your ground
A third is a starting point, not a rule. Raise it to 0.4 for the same fence and the hole gets deeper while the post you need gets longer:
Or start from the post you already have
Clear the height and type the post length instead. A 2.4 m post at the same ratio stands 1.80451 m above ground with 0.595489 m buried, which is the answer most people actually need at the timber yard:
Those are the three ways in: the height you want, the post you own, or the depth you can actually dig.
How the four values relate
Two short statements describe the whole calculation. The first is what the ratio means; the second is the fact that the post has to be long enough to be both parts at once.
Read the same two statements backwards and every other direction appears. From a post length and a ratio you get the height; from a depth and a ratio you get the height; from two lengths you get the ratio those lengths imply:
The ratio is the only judgement in the calculation
Everything else on the page is arithmetic. The ratio is the one number that comes from your site rather than from the formula, which is why it sits in its own box and why the calculator opens on a third instead of hiding the choice. A taller fence, a solid infill panel instead of open mesh, a loose or sandy soil or an exposed corner all argue for more buried depth than a sheltered, open-work fence on firm ground. The table below shows what each choice costs on a 6 ft fence — the same ratios scale to any height.
| Depth-to-height ratio | Buried depth | Post to buy |
|---|---|---|
| 0.33 (a third) | 1.98 ft | 7.98 ft |
| 0.40 (two fifths) | 2.40 ft | 8.40 ft |
| 0.50 (half) | 3.00 ft | 9.00 ft |
The buried depth grows by 0.42 ft between the first and second row, and the post you buy grows by the same 0.42 ft — every centimetre you put underground has to come from somewhere, and it cannot come out of the height you want. That is why the ratio is worth deciding before you buy rather than after.
What happens when you fill in more than the calculation needs
Leave one of the four values empty and the arithmetic fills it in — the ratio box carries a value unless you empty it yourself. Fill in more and the extra values start to over-describe the post: three numbers can be consistent or they can disagree. When they disagree, the most recent values hold and the older length is recalculated, so the card never sits on a set of numbers that contradict each other.
A useful way to see it: type 6 ft as the height and 2 ft as the depth, and the ratio box answers with the ratio those two describe — a third, 0.333333 — and the post length becomes 8 ft.
Hiding the ratio box does not change the formula
The checkbox hides the ratio box once you are happy with it. Hiding is not the same as removing: the value stays in the calculation, the answer does not move, and ticking the box again shows the same ratio you set. It is there so the card can stay short after the decision is made.
When a result turns red instead of disappearing
The numbers stay on screen so you can see what happened. Each of the four values has to be positive — a zero or negative length or ratio is refused with a short explanation — and a derived value that would come out negative keeps its digits and is marked as a contradiction. A post length above about 6 m is treated the same way: the figures remain, with a warning that the two lengths probably describe different posts, because stock posts run from roughly 1.8 m to 3.6 m. A 9 m post length, for example, returns a 6.76692 m height and a 2.23308 m depth with that warning attached.
Three posts worked through
A 6 ft garden fence in feet
Situation: A householder is fencing a boundary with a 6 ft open-work fence on firm, well-drained ground and wants to order posts before the holes are dug.
Inputs
Result
The depth here is the buried part of the post. The hole itself goes deeper than 1.98 ft once the drainage layer at the bottom is counted.
In practice: 7.98 ft of post is 8 ft minus about 6 mm, so an 8 ft post works only if it can be seated to within a few millimetres. A 10 ft post cut after the hole is dug is the forgiving order: trimming a post is easy, and finding one 2 cm short is a second trip.
A 2.4 m post that is already on site
Situation: Three 2.4 m posts were bought for a repair and the question is how much of each will still stand above ground once a sensible amount is buried.
Inputs
Result
| Ratio | Height above ground | Buried depth |
|---|---|---|
| 0.33 | 1.80451 m | 0.595489 m |
| 0.40 | 1.71429 m | 0.685714 m |
A 2.4 m post is only just long enough for a 1.8 m fence at this ratio. It stands 1.80451 m above ground — 4.5 mm over the line — which leaves no allowance for an uneven cut, a high spot in the ground or a later gravel bed.
In practice: Burial and height trade one for one. The extra 9 cm of depth at 0.40 costs 9 cm of fence height, so decide whether the boundary needs the height or the ground needs the anchor.
A gate post that needs a deeper footing
Situation: A drive gate will hang from one post, so the installer wants a full 0.9 m buried rather than a third of the height, while keeping the gate line at 1.8 m above ground.
Inputs
Result
Nothing in the arithmetic forced 0.5 — the two lengths were known and the ratio followed from them. This is the direction to use when the depth is the part you can actually control.
In practice: With the ratio at 0.5, buy 2.7 m of post for each gate post, or cut 3 m posts down. The ratio box then records the decision, so a later repair can copy the same proportion.
Before you dig
Measure from the finished ground line
The height the calculator wants is measured from where the ground will end up, not where it is today. Turf, gravel, paving and a raised bed all lower the fence by their own thickness, so a post set to 1.8 m now can finish at 1.72 m after the patio goes down.
The buried post is not the hole
A drainage layer of gravel at the bottom of the hole lifts the post and adds to the depth you have to dig. Plan the hole as the buried depth plus that layer, and check the depth with the post in place rather than with a tape measure down an empty hole.
A wider hole does more than a deeper one
A hole that only just fits the post leaves a thin skin of concrete that has little to bear against when the fence takes a gust. A hole with room around the post gives that fill a collar to push against, which is usually a better use of effort than another 10 cm of depth. Once the depth is fixed, the hole volume and concrete calculator turns the width and depth into the bag count.
If the ground stops you short
Rock, a service or a tree root can end the hole early. Put the depth you can actually reach into the depth box and read the height that leaves — the honest answer is better than a post standing on the bottom of a hole that was never dug.
Soil, wind and load decide more than the ratio
Loose sand and made-up ground hold far less than compacted clay or chalk. A solid panel catches the wind that an open mesh lets through. A gate post carries a load no corner post does. Frost heave in a cold climate can lift a shallow post year after year. The calculator keeps the proportion straight; those site conditions decide whether the proportion is generous enough, and for a heavy gate, a tall boundary or a publicly accessible fence it is worth a word with whoever knows the local ground or the local rules.
When the depth and the post count are both settled, the fence calculator for posts, rails and pickets sizes the rest of the run, including the footing concrete.
Questions
How deep should a fence post be buried?
A third of the above-ground height is the common starting point, which is why the calculator opens on 0.33. It is a proportion, not a rule that fits every site: a short open-work fence on firm, sheltered ground is the case where the low end of the range is defensible, while loose soil, a solid panel instead of mesh and an exposed corner all push the same fence towards 0.4 or beyond. Decide with the conditions, then let the calculator turn the decision into dimensions.
I have already bought the posts. Can I work from their length?
Yes — clear the height and enter the post length. A 2.4 m post at the 0.33 default stands 1.80451 m above ground with 0.595489 m buried; at 0.4 it stands 1.71429 m with 0.685714 m buried. If you are setting a row of posts to one string line, work out the height from the shortest post and cut the others down to it, rather than burying each one by a different amount.
Why did a length I typed change when I edited another box?
The four values describe one post, so they cannot all be chosen freely. When the numbers you typed disagree, the most recent values hold and the older length is recalculated, which is what keeps the answer consistent. If you meant to keep a length, note it down first: after the recalculation it is a derived value, and typing it back in makes it yours again.
Does the ratio still apply after I hide it?
It does. The checkbox only removes the box from view; the value stays in the calculation and the results do not move. Tick it again and the same ratio is there. To change it, show the box and type a new value — there is no separate "use default" step to remember.
How far to trust it
- This is a proportion, not a foundation design. Soil bearing capacity, footing diameter, concrete mix, drainage, frost depth and the loads a post actually sees are outside the model. The calculator keeps the geometry exact and leaves the ground to you.
- A third and two fifths are conventions, not requirements. Local rules, the fence manufacturer and the conditions on the site decide what is actually needed, and a boundary fence, a wind-exposed fence or a gate post can need considerably more than the default shows.
- A short post is not automatically a safe one. The warning above 6 m is a sanity check on the inputs, not a certificate for everything below it. A 1.5 m post can still be under-buried for its soil and its load.
- The depth is the buried post, not the hole or the concrete. A drainage layer, a wider hole and the volume of concrete are all separate calculations, and a hole dug deeper than the post leaves the post hanging above its own bottom.
- For anything structural or load-bearing, get it checked. Retaining fences, tall privacy screens, heavy automated gates, fences on slopes or next to a boundary you do not own, and anything installed over services deserve a site-specific opinion from an engineer, a surveyor or the local planning authority rather than a proportion from a web page.
Related Calculators
Board Foot Calculator
Calculate board feet from lumber dimensions. Convert timber volume measurements across different unit systems.
Bolt Circle Calculator
Lay out a circular bolt pattern: turn the hole count, radius, first-hole angle and centre offset into an x and y coordinate for every hole.
Bowl Segment Calculator
Turn a segmented bowl's segment count, outer radius, wall thickness and allowances into cut-ready segment lengths, blank thickness and cutting angle.
Material Removal Rate Calculator
Work out how much material a machining pass removes per minute for turning, milling, grooving, drilling or grinding. Enter the cut geometry and the cutting speed, read the removal rate in ten flow units, or leave one box empty to solve back for it.
Beam Deflection Calculator
Find how far a simply supported or cantilever beam bends under a point load, a uniform load, a linearly varying load, a triangular load or an end moment. Enter the span, the load and the flexural rigidity, or the modulus of elasticity and area moment of inertia separately, and read the maximum deflection and where it occurs.
Square Yards Calculator
Multiply a length and a width into square yards and price the material. Seven length units, nine area units from square centimeters to acres, and twenty currencies converted at live exchange rates.