The depth of the hole for setting a fence post should typically be one-third to one-half the above-ground length of the post, with a minimum depth of 24 inches to prevent frost heave in colder climates. For example, if your fence post is 6 feet tall (above ground), you should dig a hole that is at least 2-3 feet deep.