Skip to main content
Fence Calculator

Fence Post Length Calculator

Find total post length based on fence height, local frost line depth, and drainage gravel base with recommended lumber sizes.

Fence post length

Enter your measurements and the result updates as you type.

Overview

Buying fence posts that are too short leads to shallow footings that tilt, heave during winter freezes, or snap in high wind. This calculator computes the exact post timber stock required.

Calculations factor the above-ground fence height, the one-third structural rule of thumb, local winter frost line depths, and gravel drainage allowances.

Assumptions

  • Minimum embedment is at least one-third total above-ground height, or 6 inches below local frost line depth.
  • Gravel drainage pad of 4 to 6 inches is accounted for below the post bottom.
  • Recommended stock rounds up to the nearest standard commercial lumber length (even feet).
  • Calculations apply to structural wood, vinyl, and metal posts.

Common mistakes

  • Buying 8-foot posts for a 6-foot fence in northern climates where frost lines require 36 to 42 inches of in-ground depth.
  • Forgetting that lumber comes in standard even lengths (8, 10, 12, 14, 16 feet) and buying stock that leaves zero trimming margin.
  • Neglecting the gravel drainage pad thickness at the bottom of the hole when calculating total dug depth.
  • Cutting post tops off before concrete has fully cured and settled.

In-depth guides

Buying guide

Post length is a different question from embedment depth, even though the two are closely related: depth tells you how far into the ground a post needs to go, while length tells you what size of lumber or pipe stock actually gets you there plus the above-ground height you want. This calculator adds the above-ground fence height to the required embedment, the larger of one third of that height or your local frost line depth, plus a gravel drainage allowance at the bottom of the hole, and then rounds the result up to the nearest commercial stock length, since lumber yards sell posts in even increments like 8, 10, 12, 14 and 16 feet rather than custom lengths.

Frost line is the input that varies most by region and most changes the final stock length. In frost-free or mild climates, an 8 foot post is routinely enough for a 6 foot fence, with roughly 2 feet going into the ground. Where frost depths reach 24 to 36 inches, the same 6 foot fence needs a 9 or 10 foot post to keep the embedment below frost while still leaving the full 6 feet standing above grade. The post depth guide for a 6 foot fence walks through that exact comparison, and the embedment number itself, independent of stock length, comes from the fence post depth calculator.

The gravel allowance at the bottom of the hole is a small number, typically 4 to 6 inches, but it is easy to forget when estimating total dig depth and stock length by hand. A post should rest on top of that compacted gravel pad rather than sitting directly on bare soil, since the gravel lets water drain away from the end grain instead of holding it against the wood. Gate posts are the one case where this calculator's baseline numbers should be treated as a minimum rather than a final answer: a gate post carries cantilevered, dynamic load every time the gate swings, and is commonly set 6 to 12 inches deeper than a standard line post, which often pushes the stock length up to the next standard size.

Once stock length is settled, several follow-on numbers typically need checking next. The fence post hole calculator sizes the hole diameter and volume that this length of post needs to sit in, the concrete bags calculator turns that hole volume into a bag count using the same frost and depth assumptions, and the bags per post guide gives ballpark figures if you want a sanity check before placing a material order. Post spacing is a separate decision again, handled by the fence post spacing calculator, and a side by side comparison of wood, vinyl and metal post stock is in the fence materials guide, alongside the full depth and setting reasoning in the post depth and setting guide. Every related footing tool sits together under the foundation calculators category.

Material choice changes which stock length table actually applies, even though the depth and height math behind this calculator is the same for wood, vinyl and metal posts. Wood posts are sold in the familiar 8, 10, 12, 14 and 16 foot lumberyard lengths this calculator rounds up to, but vinyl fence systems are more often sold as a sleeve over an internal metal or wood insert post, where the insert, not the visible vinyl sleeve, is what actually needs to satisfy the embedment length this calculator returns. Metal posts, whether steel pipe for chain link or aluminum for an ornamental fence, are typically sold in stock lengths matched to the fence height the manufacturer offers rather than the broader range of wood lengths, so the rounding step for metal often lands on a narrower set of available options than it does for lumber. Corner and end posts in some systems use a heavier gauge or larger diameter than line posts at the same length, which does not change the length this calculator returns but does mean the length number should be checked against both line post and corner post stock availability before finalizing an order. Buying slightly long and trimming the top after the concrete has cured is a common practice specifically because it lets installers set every post to a consistent, level finished height across an uneven starting grade, rather than trying to cut every post to an exact pre-measured length before it goes in the ground, where small depth variations from one hole to the next would otherwise show up as an uneven fence line along the top. Checking stock availability at the lumberyard before finalizing a post count matters too, since a yard that stocks 8 and 12 foot posts but skips 10 foot lengths effectively forces a jump to the next size up, which is worth confirming before the length from this calculator becomes a firm order.

Frequently asked questions

What length post do I need for a 6-foot privacy fence?

In frost-free regions, an 8-foot post (2 feet in ground) is common. Where frost lines reach 24 to 36 inches, you need 9 or 10-foot posts buried 36 to 42 inches deep.

What is the one-third rule for fence posts?

The structural rule of thumb requires at least one-third of the total post length to be buried underground (e.g., a 9-foot post has 6 feet above ground and 3 feet buried).

Why must posts extend below the frost line?

When wet soil freezes, it expands upward with tremendous force (frost heave). Setting posts below the frost line anchors the base in unfrozen, stable earth.

Should the post extend all the way through the gravel base?

No. The post should rest on top of the 6-inch compacted gravel base so water drains downward away from the bottom cut grain.

What length posts do I need for an 8-foot deer or security fence?

An 8-foot above-ground fence requires 11 to 12-foot posts buried at least 36 to 48 inches deep in concrete.

Can you trim the top of fence posts after installation?

Yes. It is best practice to install posts slightly long, wait for concrete to cure, and snap a chalk line across the tops to trim them flush and level.

Do gate posts require longer lumber than standard line posts?

Yes. Gate posts support dynamic cantilevered weight and should be set 6 to 12 inches deeper than standard line posts, often requiring the next stock length up.

What stock lengths do lumberyards carry for fence posts?

Treated 4x4 and 6x6 posts are sold in standard 8, 10, 12, 14, and 16-foot lengths.