Fence Post Calculator: Post Count, Spacing and Concrete
Fence post calculator
- Posts
- –
- Sections between posts
- –
- Actual spacing
- –
- Concrete per hole
- –
- Concrete in total
- –
- Bags
- –
Enter the fence length and the largest gap you will allow between posts. The calculator counts the posts, shows the actual equal spacing, and works out how much concrete the holes take. All the layout maths is plain arithmetic. The numbers that depend on your fence and your ground are left as inputs.
The post count
A fence run is a series of sections between posts, so an open run always has one more post than sections.
sections = ceil(length ÷ maximum spacing)
posts = sections + 1 (open run) posts = sections (closed loop)
actual spacing = length ÷ sections
Round the sections up, never down, so that no gap exceeds your maximum. A 100 ft run at a maximum of 8 ft is 12.5, so you need 13 sections and 14 posts, spaced 100 ÷ 13 = 7.69 ft apart. A closed loop of 96 ft at 8 ft has 12 sections and 12 posts, because the last section ends at the first post. Add posts for gates and corners in the “extra posts” box if your layout needs more than the line count gives you.
Concrete per hole
Concrete fills the space around the post, so the volume is the hole minus the post.
hole volume = π × (hole diameter ÷ 2)² × depth
post volume = width² × depth (square) or π × (diameter ÷ 2)² × depth (round)
concrete = hole − post, in cubic inches ÷ 1,728 = cubic feet
cubic yards = cubic feet ÷ 27
The divisors come from the exact NIST definitions: 1 ft = 12 in, so 1 ft³ = 1,728 in³, and 1 yd = 3 ft, so 1 yd³ = 27 ft³.
Worked example 1: a 100 ft run
Holes 10 inches across and 30 inches deep, with 3.5 inch square posts (enter the post’s measured actual size, which can differ from its nominal name):
- hole = π × 5² × 30 = 2,356 in³
- post = 3.5² × 30 = 367.5 in³
- concrete per hole = 1,989 in³ = 1.15 ft³
- 14 holes = 16.1 ft³ = 0.60 yd³
If the bag label says one bag yields 0.6 ft³, that is 16.1 ÷ 0.6 = 26.9, so 27 bags. Always use the yield printed on your own bag. Yields vary with the product and size. Buy a bag or two extra because holes are never perfectly round.
Worked example 2: a closed loop with a gate
A 96 ft enclosure at 8 ft maximum spacing: 12 sections, 12 posts. A gate adds two extra posts (one each side), so enter 2 in the extra box for 14 posts. Gate and corner posts often carry more load than line posts, so you may want bigger holes for them. Run the calculator once for the line posts and again with larger hole dimensions for the heavy ones, then add the concrete.
Worked example 3: round posts
A round 4 inch post in a 12 inch hole 24 inches deep: hole π × 36 × 24 = 2,714 in³, post π × 4 × 24 = 302 in³, concrete 2,413 in³ = 1.40 ft³ per hole. Choose “round” in the post shape box and enter the diameter.
Planning for panels
If your fence is made of prefabricated panels, the post spacing is the panel width plus the width of one post, because the spacing is measured centre to centre. Six-foot panels between 3.5 inch posts need posts every 6 + 3.5 ÷ 12 = 6.29 ft. Enter 6.29 as the maximum spacing: 100 ft gives ceil(15.9) = 16 sections and 17 posts. Whether a panel fits the actual gap is something to confirm with a dry fit, because the calculator rounds the sections up and so shows the true spacing, which will be slightly shorter than your panel unless the run divides evenly.
Soil to remove
Digging produces spoil. Each 10 inch by 30 inch hole removes π × 5² × 30 = 2,356 in³ = 1.36 ft³ of soil, so the 14 holes in example 1 come to 19.1 ft³, about 0.7 cubic yards, before the post goes in. Plan where the spoil will go, since the concrete and the post take up part of the hole and you will not be able to return all of it.
What this page does not decide
Spacing and depth are inputs because they depend on things the calculator cannot know:
- Fence type. ASTM F537 (wood fences) and USDA NRCS Conservation Practice Standard Code 382 cover assemblies ranging from solid privacy board and picket panels to post-and-rail and tensioned wire fences, each placing very different wind-sail or wire-tension demands on the posts.
- Soil, slope and frost. Loose or wet ground, slopes and freezing depth all change the hole you need.
- Load. Gates, corners and tensioned wire put more force on certain posts.
- Local rules. Height limits, setbacks and permits are set locally.
This page intentionally prints no universal embedment-depth or post-spacing table because state-specific USDA NRCS Code 382 construction sheets, ASTM F537 wind-load schedules and municipal frost-depth codes vary by jurisdiction, soil class and fence height. Read your fence manufacturer’s installation sheet, your state extension or NRCS field office guide, or your local building department’s requirements, and enter their required spacing and hole dimensions here.
Layout tips that are just geometry
- Measure the fence line, not the property line. Posts sit on the line you string.
- Equal spacing looks better. Use the “actual spacing” result and mark every post position before digging.
- Check corners. For a rectangle, add up each side separately and count the corner posts only once.
- Mind the units. Spacing is in feet, hole sizes in inches.
For other layouts see the stud spacing calculator and the stair calculator, and for horizontal members the beam deflection calculator. The framing hub lists everything else.
Locks exact unit rise & unit run repeatability across every stringer
Captures out-of-square wall angles for tight finished treads
IRC-compliant bearing support at top ledger & landing header
Pre-Mixed Concrete Bag Yields, Water Ratios & Cost Bands (QUIKRETE / ASTM C387)
Cubic-foot yield per bag, bags required per cubic yard, mix water, and Low / Mid / High national retail cost bands.
| Bag Weight (lb) | Yield (ft³) | Bags / yd³ | Mix Water (qt) | Low ($) | Mid ($) | High ($) |
|---|---|---|---|---|---|---|
| 40 | 0.3 | 90 | 1.75 | 4.1 | 5.25 | 6.8 |
| 50 | 0.375 | 72 | 2.25 | 4.4 | 5.6 | 7.2 |
| 60 | 0.45 | 60 | 2.75 | 4.65 | 5.95 | 7.5 |
| 80 | 0.6 | 45 | 3 | 5.5 | 6.95 | 8.9 |
| 90 | 0.675 | 40 | 3.5 | 6.25 | 7.8 | 9.75 |
Reference standard: ASTM C387 & QUIKRETE / Sakrete Commercial Technical Data Sheets. Click any column header to sort or click a highlighted preset pill inside the calculator to auto-fill values.
Dimensional Lumber & LVL Section Properties (AWC NDS / PS 20)
Nominal vs. actual dressed dimensions, cross-sectional area A, section modulus S, moment of inertia I, board-foot factor, and unit weights.
| Nominal Size | Actual (b × d) | Area A (in²) | Section Mod. S (in³) | Inertia I (in⁴) | BF / lin ft | Dry Wt (lb/ft) |
|---|---|---|---|---|---|---|
| 2x4 | 1.5" × 3.5" | 5.25 | 3.063 | 5.359 | 0.6667 | 1.28 |
| 2x6 | 1.5" × 5.5" | 8.25 | 7.563 | 20.797 | 1 | 2.01 |
| 2x8 | 1.5" × 7.25" | 10.875 | 13.141 | 47.635 | 1.3333 | 2.64 |
| 2x10 | 1.5" × 9.25" | 13.875 | 21.391 | 98.932 | 1.6667 | 3.37 |
| 2x12 | 1.5" × 11.25" | 16.875 | 31.641 | 177.979 | 2 | 4.1 |
| 4x4 | 3.5" × 3.5" | 12.25 | 7.146 | 12.505 | 1.3333 | 2.98 |
| 4x6 | 3.5" × 5.5" | 19.25 | 17.646 | 48.526 | 2 | 4.68 |
| 6x6 | 5.5" × 5.5" | 30.25 | 27.729 | 76.255 | 3 | 7.35 |
| 1-3/4x9-1/2 LVL | 1.75" × 9.5" | 16.625 | 26.323 | 125.034 | 1.6667 | 4.85 |
| 1-3/4x11-7/8 LVL | 1.75" × 11.875" | 20.781 | 41.13 | 244.207 | 2 | 6.06 |
| 1-3/4x14 LVL | 1.75" × 14" | 24.5 | 57.167 | 400.167 | 2.3333 | 7.15 |
Reference standard: AWC National Design Specification (NDS) Supplement & NIST PS 20. Click any column header to sort or click a highlighted preset pill inside the calculator to auto-fill values.
Enter your ZIP or postal code to compare bids from vetted local finish & stair framing carpenters matched to your calculated scope.
Enter a valid 5-digit US ZIP (or 3–8 character postal code) to check local availability.
Frequently asked questions
How do you calculate the number of fence posts?
Divide the fence length by the maximum post spacing and round up to whole sections, then add one for an open run. 100 ft at 8 ft spacing is 12.5, rounded up to 13 sections, so 14 posts. A closed loop needs no extra end post.
Should I round up or down when the spacing does not divide evenly?
Round the number of sections up. That keeps every gap at or below your maximum, and the calculator then shows the actual equal spacing, 7.69 ft in the 100 ft example.
How much concrete does one post hole need?
It is the volume of the hole minus the volume of the post inside it. A hole 10 inches across and 30 inches deep with a 3.5 inch square post takes 1.15 cubic feet.
How deep should fence posts go?
It depends on the fence type, post length, soil and frost depth, and on local rules. The calculator takes your depth as an input and does not quote one. Check the fence maker's instructions and ask your building department.
Sources
- Conservation Practice Standard Code 382: Fence (line, corner, brace, and gate post structural functions), USDA Natural Resources Conservation Service, accessed November 2026.
- ASTM F537: Standard Specification for Design, Fabrication, and Installation of Fences Constructed of Wood and Related Materials, ASTM International, accessed November 2026.
- SP 811: Guide for the Use of the International System of Units (exact foot, inch and yard definitions), National Institute of Standards and Technology, accessed November 2026.