Post depth is decided at the merchant rather than in the garden, because a post that is too short cannot be made deeper once it is bought, and shallow posts are the commonest cause of a leaning fence.
The basic rule
Allow between a quarter and a third of the total post length below ground.
For a 1.8 metre high fence, that means around 600mm in the ground and a post roughly 2.4 metres long. Buying a 2.1 metre post for a 1.8 metre fence leaves 300mm of purchase, which is not enough.
The figures below are a starting point for ordinary conditions.
A 0.9 metre fence wants about 450mm of post in the ground. A 1.2 metre fence wants about 450 to 600mm. A 1.5 metre fence wants about 600mm. A 1.8 metre fence wants 600 to 750mm.
Why height matters so much
A fence works as a lever. Wind pressure acts across the whole panel, and the post has to resist the turning force at ground level.
Doubling the height of a fence more than doubles the load on the post, because both the area catching the wind and the leverage increase together.
This is why a 1.8 metre fence needs disproportionately more support than a 1.2 metre one, rather than simply half as much again.
Soil makes a real difference
Firm clay and compact subsoil hold a post well, and the standard depths apply.
Sandy or loose soil gives much less resistance. Go deeper, widen the hole, and use more concrete.
Made ground, recently landscaped gardens and fill are the worst case, because the material has no structure at all. Dig through it to something solid if you can.
Waterlogged ground loses strength when saturated, which is exactly when the winter gales arrive. Depth and drainage both need attention.
Where the ground is rock or a made up surface close to the surface, a driven or bolt down system may be the only realistic option.
Exposure
A sheltered urban garden surrounded by other fences and buildings sees a fraction of the wind load of an open boundary facing a field.
On an exposed site, add depth, consider a fence type the wind passes through, and treat the standard depths as a minimum rather than a target.
Coastal and hilltop sites justify going a full third of the post length or more into the ground.
Gate posts
These carry a different kind of load entirely: a constant off centre weight, plus the shock of a gate being slammed, repeated thousands of times.
Set gate posts deeper than the rest of the run, use a larger post section, and use more concrete. A 100mm post minimum for a pedestrian gate, and 150mm for anything wide or heavy.
A metre in the ground for a tall gate post is not excessive, and it is far cheaper than resetting it in two years.
The hole, not just the depth
Depth alone does not hold a post. The block of concrete around it has to be big enough to mobilise the surrounding soil.
A hole around three times the post width gives a sensible mass of concrete. A post dropped into a narrow auger hole with a trickle of postcrete around it is barely better than a spike.
Keep the sides parallel or slightly wider at the bottom.
Counting the gravel board
Remember that finished fence height includes the gravel board. A 1.8 metre panel on a 150mm board gives a 1.95 metre fence, which needs post depth suited to that height, and which is also close to the planning limit.
Order posts on the finished height rather than the panel height.
When depth is not achievable
Services, tree roots, a neighbouring wall footing or solid rock can all stop a hole at the wrong depth.
Options are to reduce the fence height, use a wind permeable panel to cut the load, use a bolt down post base on a suitable concrete surface, or use repair spurs alongside shallower posts.
Do not cut through significant tree roots to make a hole, which can destabilise the tree and may be an offence where a preservation order applies. Move the post along the line instead.