Timber posts almost always fail in the same place, in a band a few inches either side of ground level, while the timber above and below stays sound. That failure pattern is what makes a repair worth considering rather than a full replacement.
Working out how bad it is
Push the post firmly at shoulder height. Movement at the base with no movement in the concrete means the timber has gone.
Test with a screwdriver. Push it into the post at ground level and just below. Sound timber resists. Rotten timber takes the blade easily and comes away as soft fibres.
Scrape away soil and check all four faces, since rot is frequently worse on the shaded side.
Check the post above the rot too. If the upper section is also soft, or the post is riddled at the top where a cap has been missing, repairing the base is wasted effort.
Concrete repair spurs
The standard fix. A short reinforced concrete post, usually 100mm square and between 1.2 and 1.8 metres long, set in concrete alongside the existing post and bolted through it.
The spur takes over the job of transferring load to the ground, and the old post becomes a rail carrier rather than a structural element.
It costs a fraction of a full replacement, needs no panels to be removed in most cases, and is reliably long lived.
It looks like what it is, which is the only real objection.
Fitting a spur
Dig alongside the existing post, on the side away from the panels, to around 600mm deep and wide enough to work in.
Support the fence while you work. Props or a temporary batten screwed across two panels stop the run sagging.
Stand the spur against the post, check it is plumb on two faces, and mark the bolt positions through the pre-cast holes.
Drill the timber, fit the bolts with washers under both head and nut, and tighten evenly rather than fully tightening one first.
Put hardcore in the bottom of the hole, concrete around the spur in compacted layers, and slope the top away from both spur and post.
Leave it to cure before removing the props.
Metal repair systems
Galvanised steel spurs and sleeves do the same job with a slimmer profile, and some are designed to be driven rather than concreted.
Driven versions suit firm, stone free ground and light fences. In soft or stony soil they deflect and do not sit plumb.
Bolt down bases exist for posts sitting on concrete or paving, which is the usual answer where digging is impossible.
Cutting the rotten section out
Where only the very bottom has gone and the post is otherwise good, the rotten section can be cut away and the post supported on the spur alone.
Cut square, treat the new end grain thoroughly, and keep the cut end clear of the ground by at least 50mm so it can dry.
This is neater than bolting a spur to rotten timber, which never grips properly.
When to replace instead
Replace rather than repair where the post is soft well above ground level, where it has split along its length, where the fence is old enough that the neighbouring posts will fail shortly, or where several posts in a run have gone.
Repairing three posts in a ten post fence usually means repairing the other seven within two years. At that point the cost and disruption of doing the whole run properly is better value.
Concrete posts and gravel boards at that stage remove the problem permanently.
Stopping it happening again
The rot is caused by water sitting where the post meets the ground, and by soil and vegetation holding moisture against the timber.
Keep soil, bark, gravel and planting away from the base of posts.
Make sure concrete at the base sheds water rather than holding it.
Fit post caps so water does not soak down the end grain from above.
Fit gravel boards so panels are not in contact with the ground.
Retreat the timber every few years with a preservative rather than a surface stain alone, paying attention to the bottom 300mm.
Safety while working
A fence with a failed post is unstable and can go over in a gust while you are working on it. Prop it before you start rather than after it moves.
Check for buried services before digging alongside an existing post, since the original installer may have found them the hard way.