To avoid upheavals or other issues, bury your fence post so the depth exceeds the frost line, or about one-third to one-half of the aboveground height of your post. But like with the placement of the fence post, check with your local code requirements to determine the right depth for your home since it varies by location.