Posts go 24 in into the ground: a third of 6 ft above ground.
Quikrete: bury a third to a half of the height above ground, on 6 in of gravel; go to half for gate posts and windy sites. Posts that hold up a structure, like a deck, go at least 6 in below your frost line.