ToolNestr

Fence Post Spacing Calculator

Find the number of fence posts and the hole depth for a fence run, from the total length, target post spacing, and post height.

Reviewed by the ToolNestr Editorial Team — July 2026

Disclaimer: Results are estimates for planning only. Always verify quantities, measurements and structural loads against local building codes and a qualified professional before purchasing materials or building.
Fence post depth versus frost line A fence post set in the ground below the frost line, with the spacing and depth formulas frost line post Post spacing posts = length⁄spacing + 1 depth = max(1⁄3 post, frost, 24″) bays = posts − 1
Posts must be set below the local frost line so freezing soil cannot heave them.

How the fence post spacing calculator works

Posts break a fence run into equal bays, so the number of posts is the run length divided by your target spacing, rounded up, plus one extra post to close both ends. Dividing that same length by the actual post count gives the real, evenly divided spacing, which is usually a little tighter than your target since posts rarely divide a run perfectly.

Hole depth follows three rules at once, and the calculator uses whichever is deepest. A common carpentry rule buries one-third of the total post length. Most residential codes also set a practical minimum around 24 inches. And critically, the hole should reach below the local frost line, the depth to which the ground freezes in winter, so freezing and thawing soil cannot slowly heave the post loose.

Frost depth follows IRC foundation frost-protection guidance and varies enormously by region, from near zero in warm climates to 48 inches or more in the coldest parts of the country — check your local building department for the figure that applies to you, since using a generic number can leave a post too shallow.

Minimum footing depth relative to the frost line follows IRC Table R403.1(1) and local building-department frost-depth maps; the one-third-of-post-length rule is a widely used residential carpentry guideline.

1

Enter the run

Total fence length and your target spacing, both in feet.

2

Set post and frost depth

Post length in feet and your local frost depth in inches.

3

Read post count and depth

Get posts, real spacing, hole depth, and finished fence height.

The formula explained

Post count

= ceil(length ÷ spacing) + 1. A 100 ft run at 8 ft spacing: ceil(12.5) + 1 = 13 + 1 = 14 posts.

Hole depth

= max(post⁄3, frost, 24″). An 8 ft (96″) post, 36″ frost line: max(32, 36, 24) = 36 in.

Height above ground

= post length − depth. 96″ − 36″ = 60 in (5 ft) of finished fence height.

Worked example

A 64 ft backyard fence, 6 ft target spacing, 7 ft posts, 30″ frost line.

Posts: ceil(64⁄6) + 1 = 11 + 1 = 12
Real spacing: 64⁄11 = 5.8 ft
Depth: max(28, 30, 24) = 30 in
Above ground: 84 − 30 = 54 in

Setting posts right

🕳️

Widen the hole, not just the depth

A hole about three times the post's width gives room for concrete to fully surround the post, which resists wind and frost heave far better than a snug hole.

💧

Add drainage at the bottom

A few inches of gravel under the post keeps standing water off the end grain, reducing rot in wood posts and corrosion in metal ones.

📐

Check corner and gate posts

Corner, end, and gate posts carry more load than mid-run posts and often need a larger post, a deeper hole, or extra concrete beyond the standard spacing plan.

🌬️

Tighten spacing for wind

Solid privacy fencing catches wind like a sail. In windy areas, spacing posts closer than the panel maximum reduces the leverage that can loosen or snap a post over time.

Real-world context

A warm-climate backyard fence shows how shallow frost lines simplify the job. A 150 ft run at 6 ft spacing with 8 ft posts and only a 12-inch frost line needs ceil(150⁄6) = 25 bays, so 26 posts, with real spacing landing at an even 6 ft. Hole depth is max(32, 12, 24) = 32 inches, driven by the one-third-of-post-length rule rather than frost, since the frost line here is shallower than the practical 24-inch minimum would need anyway.

A cold-climate fence flips which rule controls. A 40 ft run at 8 ft spacing with 6 ft posts and a 48-inch frost line needs ceil(40⁄8) = 5 bays, so 6 posts at an even 8 ft real spacing. Hole depth is max(24, 48, 24) = 48 inches — the frost line now dominates, and the post only sticks up 72 − 48 = 24 inches above grade, which is worth checking against the target fence height before ordering posts.

A tall privacy fence needs closer spacing to resist wind load. An 80 ft run at 6 ft spacing with 9 ft posts and a 30-inch frost line needs ceil(80⁄6) = 14 bays, so 15 posts, with real spacing tightening to about 5.7 ft. Hole depth is max(36, 30, 24) = 36 inches, leaving 108 − 36 = 72 inches (6 ft) of finished fence height — a good illustration of how much more concrete and post length a tall privacy fence consumes compared with a short picket fence.

Common misconceptions

"If I bury one-third of the post, I'm always safe." Not in cold climates. The one-third rule is only a starting point — if it puts the post bottom above the local frost line, freeze-thaw cycles can still heave the post over successive winters. The calculator always uses whichever of the one-third rule, the frost line, or the 24-inch practical minimum is deepest.

"Dividing the fence length by the spacing gives the post count." It's off by one. Posts sit at both ends of a run as well as between spans, so the post count is the number of bays (spans) plus one — a 100 ft fence at 10 ft spacing needs 11 posts, not 10, or the last section comes up short.

Related calculators

Frequently asked questions

How far apart should fence posts be?

Most residential wood fences space posts 6 to 8 feet apart, and vinyl or panel fencing often follows a fixed panel width such as 6 or 8 feet. Taller or heavier fences, and fences on windy or sloped sites, do better with closer spacing.

How deep should a fence post hole be?

A common rule is to bury one-third of the post length, with a minimum of 24 inches for most residential fences, and always below the local frost line so freezing soil cannot heave the post. Confirm your local frost depth, since it varies widely by region.

Why does frost depth matter for fence posts?

Water in the soil expands as it freezes. If a post bottom sits above the frost line, the freezing and thawing soil around it can slowly heave the post out of the ground over several winters, even though it felt solid when set.

How much concrete do I need per post?

For a typical 8 to 10 inch diameter hole and a 4x4 post, one 50 lb bag of fast-setting concrete mix is a common estimate per post; larger holes or posts need more. Check the bag instructions for your hole size.

Sources & references

This tool uses standard formulas and reference values from:

  • American Concrete Institute — ACI 318, Building Code Requirements for Structural Concrete. concrete.org
  • ICC — International Residential Code (IRC), span, footing and framing tables. codes.iccsafe.org
  • APA – The Engineered Wood Association, allowable span and load guidance.

Estimates for planning only. Span, load and code values vary by jurisdiction — verify against your local adopted code and a licensed engineer before building.

All tool categories

🏠 Construction & Home Improvement (105 tools)
🎨 Paint Coverage Calculator📐 Square Footage Calculator📏 Perimeter Calculator🏗️ Concrete Calculator🧱 Concrete Slab Calculator⬜ Tile Calculator🪵 Flooring Calculator🧱 Brick Calculator🚧 Fence Calculator🪵 Deck Calculator🏠 Roofing Calculator⛰️ Gravel & Sand Calculator🌿 Mulch Calculator🪵 Board Foot / Lumber Calculator🏊 Pool Volume Calculator📦 Cubic Yardage Calculator🧱 Drywall Calculator🛡️ Insulation Calculator🌱 Sod Calculator🟫 Paver Calculator🪜 Stair Calculator🧊 Concrete Block Fill Calculator🛢️ Sonotube Concrete Calculator🕳️ Concrete Footing Calculator🔻 Concrete Stairs Calculator🪣 Mortar Mix Calculator🔳 Thinset Coverage Calculator⏲️ Concrete Curing Time Calculator🏋️ Metal Weight Calculator🔗 Rebar Calculator🔨 Framing Stud Calculator🚰 Pipe Weight Calculator🔲 Retaining Wall Block Calculator🏘️ Vinyl Siding Calculator🧽 Tile Grout Calculator🌀 Spiral Staircase Calculator❄️ AC Unit Size Calculator🔥 Furnace BTU Calculator🌡️ Home Heat Loss Estimator🚧 Fence Post Spacing Calculator🖌️ Deck Stain Calculator🖼️ Wallpaper Roll Calculator♿ ADA Ramp Slope Calculator🐔 Chicken Coop Size Calculator📐 Roof Pitch Calculator📏 Rafter Length Calculator🏚️ Roof Truss Spacing Calculator❄️ Snow Load Calculator🏗️ Metal Roofing Calculator🛖 Gambrel Roof Rafter Calculator🛣️ Asphalt Driveway Calculator🪨 Road Base Calculator🛁 Water Tank Volume Calculator🪷 Pond Volume Calculator🚿 GPM Flow Rate Calculator🫗 Pipe Volume Calculator🚒 Fire Flow Calculator🔄 Square Feet to Cubic Yards Calculator🧴 Gallons per Square Foot Calculator📤 Box Weight Calculator🪚 Miter Angle Calculator🔺 Compound Angle Calculator📉 Grade & Slope Calculator⭕ Bolt Circle Calculator🐎 Round Pen Calculator🔩 Countersink Depth Calculator🌉 Beam Deflection Calculator💠 Bending Stress Calculator🔧 Bolt Torque Calculator⚡ Welding Amperage Calculator🗳️ Electrical Box Fill Calculator🚪 Door Header Size Calculator📊 Floor Joist Span Calculator🧥 Insulation R-Value Calculator🟦 Concrete Block (CMU) Count Calculator🏛️ Concrete Column Calculator⚖️ Concrete Weight Calculator🔘 Post Hole Concrete Calculator🪟 Board and Batten Calculator💧 French Drain Calculator🗿 Stone Weight Calculator🧮 Steel Plate Weight Calculator🌬️ Air Changes Per Hour (ACH) Calculator⛩️ Arch Layout Calculator🔆 Boiler Size Calculator🧶 Carpet Calculator🧾 DIY Shed Cost Calculator🧪 Epoxy Resin Calculator🗺️ Floor Area Ratio (FAR) Calculator🏕️ Hoop House Calculator📶 Ladder Angle Calculator🏖️ Paver Sand Calculator📚 Plywood Sheet Calculator🎋 Shiplap Calculator🪞 Wainscoting Calculator🪛 Birdsmouth Cut Calculator🛻 Concrete Driveway Cost Calculator🛞 Gravel Driveway Calculator💦 Liters Per Minute Calculator🏋️‍♂️ Beam Load Calculator🌲 Wood Beam Span Calculator🧬 Carbon Equivalent (CE) Calculator📌 Thread Pitch Calculator⚙️ Rivet Size Calculator🍃 CFM Airflow Calculator
🌐 Networking & IP Tools (36 tools)
🧮 Everyday (26 tools)
💪 Health & Fitness (30 tools)
💰 Finance (34 tools)
🔢 Math (23 tools)
📄 PDF Tools (10 tools)
🎨 Creators (12 tools)
💻 Developers (24 tools)
⚡ Engineering & Science (24 tools)
⚛️ Physics (48 tools)
🧪 Chemistry (50 tools)
🧬 Biology (50 tools)
👗 Clothing & Garment Tools (68 tools)
🍳 Cooking & Baking (9 tools)
🚗 Automotive (26 tools)
🖼️ Image Tools (13 tools)
🔐 Security & Hash (15 tools)
📝 Text Tools (15 tools)
🔍 SEO Tools (11 tools)
🔄 Converters (69 tools)
🕐 Time & Date (15 tools)
📊 Chart Generators (11 tools)
🕌 Islamic Tools (16 tools)