A lot depends on how good you are at digging post holes.
If you can make sure that the hole you dig will be perfectly straight, then 7" might work. Most of us tend to have a little slop in our holes so to set the post straight, the hole has to be a larger diameter, say 10" or even 12".
Also if...