The general rule of thumb is that your fence posts needs to be two feet longer than the total height of your fence - including a gravel board, if you’re using one. 

A 6ft fence requires an 8ft fence post.