Plan a fence post depth from fence height, a planning ratio and any local minimum depth you need to respect.
Methodology
How this calculator works
The result uses the greater of your planning-ratio depth and your entered local minimum. Verify frost depth, soil and building-code requirements locally.