Fence Post Calculator
- Posts divide the fence into sections of at most 8 ft: 100 ft ÷ 8 ft = 13 sections (rounded up), which need 13 + 1 = 14 line posts. The real spacing works out to 7.7 ft.
- Corners and gates add their own posts: +4 corner posts and +2 gate posts (two per gate opening, for the hinge and latch sides) = 20 posts in total.
- Rails: 13 sections × 2 rails = 26 rail boards, each about 7.7 ft long.
- Concrete: 20 posts × 1.5 bags per post = 30.0 bags, so buy 30 bags (rounded up). A common rule is one 50 lb bag per post for shallow holes, two for deep or wide ones.
A fence post calculator tells you exactly how many posts, rails, and bags of concrete you need before you buy a single thing. Enter your total run length, post spacing, number of corners, and number of gates, and it returns the full material list. A simple 60 ft straight run at 10 ft spacing needs 6 sections and just 7 posts — that +1 end post is the one everyone forgets to buy. A 100 ft fence at 8 ft spacing with 4 corners and 1 gate needs 13 sections and 20 posts (14 line posts + 4 corner + 2 gate), 26 rails at 2 per section, and 30 bags of concrete at 1.5 per post. A 150 ft run at 6 ft spacing with 2 gates needs 25 sections and 34 posts, 75 rails at 3 per section, and 51 bags of concrete.
The method behind these numbers is the accepted standard for fence planning. Sections equal the run length divided by spacing, rounded up, and line posts equal sections plus 1. Uneven final sections are normal — the last bay is simply shorter. Corner posts and gate posts are extra: each gate needs 2 posts, and because gate posts carry the gate's weight and leverage, they are commonly set deeper with more concrete. Rails equal sections multiplied by rails per section (2 for a simple ranch style, 3 for most privacy and paddock fences). The concrete estimate of 1.5 bags per post assumes a standard 50–60 lb bag in a typical post hole. This page shows the formula, step-by-step workings, worked examples, and sources.
Worked examples
100 ft of fence at 8 ft spacing, 4 corners, 1 gate
13 sections and 14 line posts, plus 4 corner and 2 gate posts: 20 posts, 26 rails, 30 bags of concrete. (100 ft · 8 ft · 4 · 1 · 2 rails · 1.5 bags)
| Total posts needed | 20 |
| Sections (panels) | 13 |
| Line posts | 14 |
| Rail boards | 26 |
| Concrete bags (50 lb) | 30 |
| Actual post spacing | 7.7 ft |
150 ft at 6 ft spacing with 2 gates
25 sections, 34 posts in total, 75 rails and 51 bags — tighter spacing adds up fast. (150 ft · 6 ft · 4 · 2 · 3 rails · 1.5 bags)
| Total posts needed | 34 |
| Sections (panels) | 25 |
| Line posts | 26 |
| Rail boards | 75 |
| Concrete bags (50 lb) | 51 |
| Actual post spacing | 6.0 ft |
A simple 60 ft straight run
6 sections, 7 posts, 12 rails, 11 bags. The +1 end post is the one everyone forgets. (60 ft · 10 ft · 0 · 0 · 2 rails · 1.5 bags)
| Total posts needed | 7 |
| Sections (panels) | 6 |
| Line posts | 7 |
| Rail boards | 12 |
| Concrete bags (50 lb) | 11 |
| Actual post spacing | 10.0 ft |
The +1 rule and the anatomy of a fence run
A fence post calculator works by breaking a fence line into sections and counting the posts that hold them up. A section is the span of fence between two posts — the run length divided by the spacing, rounded up. Line posts are the ones in between, and the rule is simple: line posts = sections + 1. That extra end post is the one everyone forgets to buy.
Picture a straight fence drawn flat on paper. Mark the two end posts first — one at the start of the run and one at the far end. Now divide the space between them into equal sections. Each section needs a post at both ends, so every section adds one line post, and the final end post closes the run. The simplest case is a 60 ft straight run at 10 ft spacing: 6 sections and just 7 posts. Six sections of fence, seven posts in the ground — the +1 end post is what makes the math work. Uneven final sections are normal; the last bay is just shorter.
Corner posts come in wherever the fence changes direction. Each gate needs 2 posts, and gate posts carry the gate's weight and leverage, so they are commonly set deeper with more concrete. These are extra — they sit in addition to the line posts along a run. A 100 ft fence at 8 ft spacing with 4 corners and 1 gate needs 13 sections and 20 posts total: 14 line posts, 4 corner posts, and 2 gate posts. Scale up to 150 ft at 6 ft spacing with 2 gates and you need 25 sections and 34 posts.
Rails and concrete follow the same logic. Rails = sections x rails per section — 2 for a simple ranch style, 3 for most privacy and paddock fences. That 100 ft example uses 26 rails at 2 per section, while the 150 ft example uses 75 rails at 3 per section. Concrete runs about 1.5 bags per post, assuming a standard 50–60 lb bag in a typical post hole. The 100 ft fence needs 30 bags; the 150 ft fence needs 51 bags.
- Sections = run length ÷ spacing, rounded up
- Line posts = sections + 1 (the +1 is the end post)
- Corner posts: 1 per corner, extra to line posts
- Gate posts: 2 per gate, extra to line posts, set deeper with more concrete
- Rails = sections × rails per section (2 for ranch, 3 for privacy/paddock)
- Concrete ≈ 1.5 bags per post (50–60 lb bag, typical hole)
Worked example: a real backyard fence
To see how a fence post calculator works in practice, take a 100 ft fence built with 8 ft spacing, 4 corners, and 1 gate. The first step is finding the number of sections: divide the 100 ft run length by the 8 ft spacing, which gives 13 sections. Sections are simply the run length divided by spacing, rounded up, and uneven final sections are normal — the last bay is just shorter than the rest.
Next come the posts. Line posts equal sections plus 1, so 13 sections require 14 line posts. That plus-one end post is the one everyone forgets to buy, as a simple 60 ft straight run at 10 ft spacing makes clear: it needs 6 sections and 7 posts, not 6. Corner posts and gate posts are extra. The 100 ft fence has 4 corners, and each gate needs 2 posts, so add 4 corner posts and 2 gate posts to the 14 line posts. That brings the total to 20 posts. Gate posts carry the gate's weight and leverage, so they are commonly set deeper with more concrete.
Rails come from multiplying sections by the number of rails per section. A simple ranch style uses 2 rails per section, so 13 sections need 26 rails. Most privacy and paddock fences use 3 rails per section instead — the same 13 sections would need 39 rails in that case.
- 100 ft fence at 8 ft spacing: 13 sections, 14 line posts, 4 corner posts, 2 gate posts, 20 total posts, 26 rails, 30 bags of concrete
- 150 ft fence at 6 ft spacing with 2 gates: 25 sections, 34 posts, 75 rails at 3 per section, 51 bags of concrete
- 60 ft straight run at 10 ft spacing: 6 sections, 7 posts — the extra end post is the one everyone forgets
Spacing: 6, 8 or 10 feet?
Spacing is the first decision a fence post calculator asks you to make, and it drives every number that follows — sections, posts, rails, and bags of concrete. The three common choices are 6, 8, and 10 feet, and the right pick depends mostly on what you are hanging between the posts. Privacy panels dictate tighter spacing of 6 or 8 feet because the panels need solid support and have little structural strength of their own. Wire and ranch fencing, by contrast, can stretch to 10 or even 12 feet between wood posts, with steel T-posts filled in between to keep the wire tight and the spacing even.
A 150 ft fence at 6 ft spacing with 2 gates needs 25 sections and 34 posts. That same run at 8 ft spacing would need fewer sections, and a simple 60 ft straight run at 10 ft spacing needs just 6 sections and only 7 posts. That last number is worth pausing on: the count is sections plus one, and that +1 end post is the one everyone forgets to buy. Sections equal the run length divided by spacing, rounded up, and line posts equal sections plus one. Uneven final sections are normal — the last bay is just shorter than the rest.
Corner posts and gate posts are extra. Each gate needs 2 posts, and because gate posts carry the gate's weight and leverage, they are commonly set deeper with more concrete. A verified 100 ft fence at 8 ft spacing with 4 corners and 1 gate needs 13 sections and 20 posts total: 14 line posts, 4 corner posts, and 2 gate posts. That same fence needs 26 rails at 2 per section and 30 bags of concrete at 1.5 per post. Rails equal sections multiplied by rails per section — 2 for a simple ranch style, 3 for most privacy and paddock fences. The concrete estimate at 1.5 bags per post assumes a standard 50 to 60 lb bag in a typical post hole.
- 6 ft spacing: 150 ft run with 2 gates = 25 sections, 34 posts, 75 rails at 3 per section, 51 bags of concrete
- 8 ft spacing: 100 ft run with 4 corners and 1 gate = 13 sections, 20 posts (14 line + 4 corner + 2 gate), 26 rails at 2 per section, 30 bags of concrete
- 10 ft spacing: 60 ft straight run = 6 sections, 7 posts — the +1 end post is the one everyone forgets to buy
- Privacy panels: 6 or 8 ft spacing; wire and ranch fencing: 10 to 12 ft with T-posts between wood posts
How to use this fence post calculator
Start by entering your total fence length and the spacing you want between posts. A fence post calculator uses these two numbers to figure out how many sections your fence will have. Sections equal the run length divided by the spacing, rounded up. So a simple 60 ft straight run at 10 ft spacing needs 6 sections and just 7 posts — the +1 end post is the one everyone forgets to buy. Uneven final sections are normal — the last bay is just shorter. Next, enter your number of corners and gates. Corner posts and gate posts are extra: each gate needs 2 posts, and gate posts carry the gate's weight and leverage, so they are commonly set deeper with more concrete.
Finally, enter the number of rails per section and the bags of concrete per post. Rails equal sections multiplied by rails per section — use 2 for a simple ranch style, or 3 for most privacy and paddock fences. The concrete estimate of 1.5 bags per post assumes a standard 50–60 lb bag in a typical post hole. Once you enter all the inputs, the calculator gives you every post type, your total posts, the total rails, and the total concrete bags you need to buy.
To see how the numbers work, consider 100 ft of fence at 8 ft spacing with 4 corners and 1 gate. The calculator returns 13 sections and 20 posts total: 14 line posts, 4 corner posts, and 2 gate posts. At 2 rails per section, that is 26 rails. At 1.5 bags of concrete per post, you need 30 bags. Another example: 150 ft at 6 ft spacing with 2 gates needs 25 sections and 34 posts, 75 rails at 3 per section, and 51 bags of concrete.
The key rule to remember is that line posts equal sections plus 1. That extra post at the end of a straight run is what catches people off guard when they are at the store. The fence post calculator accounts for it automatically, along with the added corner and gate posts, so your material list is complete before you place an order.
- Enter total length and spacing — the calculator divides length by spacing and rounds up to get your sections
- Add corners and gates — each gate needs 2 posts, and gate posts are set deeper with more concrete
- Enter rails per section — use 2 for ranch style, 3 for privacy and paddock fences
- Enter bags per post — 1.5 bags per post assumes a standard 50–60 lb bag in a typical post hole
- Read your outputs: sections, line posts, corner posts, gate posts, total posts, total rails, and total concrete bags
Posts are only half the shopping list
A fence post calculator gives you the backbone of your material list, but the posts, rails, and concrete bags it spits out are only half the shopping list. Before you head to the lumber yard, run the numbers on three verified fence builds so you can see how spacing and layout change the order. The table below covers a simple 60 ft straight run, a 100 ft layout with corners and a gate, and a 150 ft build with two gates. Notice how the post count jumps when you add corners and gates — those are not line posts, and they do not calculate themselves.
The math behind these builds follows a few straightforward rules. Sections equal the run length divided by the spacing, rounded up, and line posts equal sections plus 1. Uneven final sections are normal; the last bay is just shorter. Corner posts and gate posts are extra: each gate needs 2 posts, and gate posts carry the gate's weight and leverage, so they are commonly set deeper with more concrete. Rails equal sections multiplied by rails per section — 2 for a simple ranch style, 3 for most privacy and paddock fences. The concrete figure of 1.5 bags per post assumes a standard 50–60 lb bag in a typical post hole.
Even with a verified total in hand, a handful of extras never show up in a calculator but absolutely belong on your truck. These are the small items that stall a fence project halfway through Saturday afternoon, and the spare parts that save a Monday morning run back to the store.
- Post caps to cover the tops of every post and slow weather damage
- Screws or fasteners for attaching rails and pickets
- Gravel for the hole bottoms to improve drainage under each post
- A spare post or two in case one splits, warps, or gets cut wrong
| Build | Sections | Posts | Rails | Concrete Bags |
|---|---|---|---|---|
| 60 ft straight run, 10 ft spacing | 6 | 7 | Not specified | Not specified |
| 100 ft, 8 ft spacing, 4 corners, 1 gate | 13 | 20 (14 line + 4 corner + 2 gate) | 26 (2 per section) | 30 (1.5 per post) |
| 150 ft, 6 ft spacing, 2 gates | 25 | 34 | 75 (3 per section) | 51 |
Setting posts that stay put
A reliable fence post calculator gives you the material counts, but the installation details decide whether those posts stay upright for years or start leaning by spring. Start with the depth rule of thumb: aim for about a third of the post in the ground. If you live where the ground freezes, that third still needs to land below the frost line so frost heave will not push the post upward over winter. Local building codes often specify a minimum depth, so check before you dig.
Good drainage prevents the wood from rotting where you cannot see it. Pour a few inches of gravel into the bottom of each hole before setting the post. The gravel lets water drain away from the buried end instead of pooling against the wood. When you pour the concrete, crown the top so it slopes slightly upward from the post to the edge of the hole. That crown sheds water away from the wood so it does not collect at the base and accelerate decay.
Gate posts carry extra weight and leverage every time the gate swings, so they are commonly set deeper with more concrete. The same applies to corner posts, which take the load of rails pulling in two directions. A standard 50 to 60 lb bag of concrete in a typical post hole gives you the 1.5 bags per post that a fence post calculator assumes for line posts, but gate and corner posts often need more to handle the added stress.
Even a simple 60 ft straight run at 10 ft spacing needs 6 sections and 7 posts, because the sections equal the run length divided by spacing, rounded up, and line posts equal sections plus 1. That plus one end post is the one everyone forgets to buy. Uneven final sections are normal; the last bay is just shorter than the rest. When you plan the layout, count 2 posts for each gate, and remember that gate posts and corner posts are extra beyond the line posts.
FAQs
How many posts do I need for 100 ft of fence?
At 8 ft spacing with 4 corners and 1 gate, you need 20 posts total: 14 line posts, 4 corner posts, and 2 gate posts. You will also need 26 rails and about 30 bags of concrete to complete the project.
Why is there always one more post than sections?
Every run needs a post at both ends, so the formula is sections plus 1. Six sections need 7 posts. Forgetting the last end post is the most common fence-materials mistake, so always count your end posts carefully.
How much concrete does each fence post need?
Plan on about 1.5 standard bags per post for a typical hole, which means 30 bags for the 20-post example. Gate and corner posts often deserve 2 bags each, set deeper to handle the extra load and stress.
What spacing should I use between fence posts?
8 ft is the common default spacing. Use 6 ft for heavy privacy panels or high wind areas. For wire or ranch fencing with intermediate T-posts, spacing can go up to 10–12 ft. Panel fences must match the panel width exactly.
How many rails do I need?
Multiply sections by rails per section. The 100 ft example with 13 sections and 2 rails per section needs 26 rails. Three-rail fences multiply the same way, giving 75 rails in the 150 ft case.
How deep should fence posts be?
A common rule is one third of the post's length underground, and below the frost line in cold climates. A 6 ft fence typically wants an 8 ft post with 2 ft in the ground to ensure proper stability and support.