Fence Post Calculator

Find out how many posts your fence needs. Corner, end and gate posts are counted separately, and you get the post length for your fence height.

Include the gate openings.

6–8 ft for wood and vinyl, up to 10 ft for chain link.

A closed loop has no end posts. The fence returns to where it started.

Post length

Use 0 if the ground does not freeze where you live.

How the post count is calculated

The fence is split into straight runs. Each run ends at a terminal post: an end post, a corner post or a gate post. Every run is divided into equal sections no longer than your maximum spacing, and line posts go between them.

fenced length = total length − gates × gate width runs = corners + 1 + gates (open fence) = corners + gates (closed loop) sections/run = ⌈ (fenced length ÷ runs) ÷ max spacing ⌉ line posts = runs × (sections/run − 1) total posts = end + corner + 2 × gates + line posts

The calculator assumes all runs are about the same length. If your sides differ a lot, use the Fence Spacing Calculator on each side to get an exact layout.

How deep should fence posts be?

A common rule is to bury at least one-third of the above-ground height, and never less than 2 ft. In cold climates, the bottom of the hole must be below the frost line, or frost heave will push the posts up. For a 6 ft fence that means a 2 ft hole and an 8 ft post.

Tips