Fence calculator

How Many Fence Posts Calculator

This how many fence posts do I need calculator counts exactly how many fence posts your fence needs. Enter the total fence length and your post spacing, add the corners and gates, and get the post count, the section count, and the actual spacing between posts once the bays are evened out, plus a spacing comparison that shows what 6, 8 and 10 ft spacing each cost you in posts.

  • Free to use
  • No sign-up
  • Formula and sources shown
How Many Fence Posts Calculator

Got the number? Save it before it gets lost.

A result on a screen is easy to lose. Save this estimate in the app and it stays with the project, ready when you order.

Save this estimate in the app
100

The actual fence line between the end posts, not the property line.

8 ft is standard for wood fences (rail stock is 8 ft). Use 6 ft for tall, solid or windy fences; 10 ft for chain link.

4

Every place the fence turns. A rectangular yard has 4.

1

Each gate adds 2 gate posts. Count a double-drive gate as 2.

Fence posts needed

20 posts

13 sections · 14 line and end posts · +4 corner · +2 gate

Actual spacing

7.69 ft

Sections

13

Line + end posts

14

Corner + gate posts

6

Spacing comparison, same fence, same corners and gates

24 posts

6 ft spacing (5.88 ft actual)

20 posts

8 ft spacing (7.69 ft actual)

17 posts

10 ft spacing (10.00 ft actual)

Buy posts 2–3 ft longer than the fence height (8–9 ft posts for a 6 ft fence), set 30–36 in deep. If your fence closes into a complete loop with no end posts, subtract 1 from the total.

Turn this result into a priced plan

Save it to a project, add the rest of your materials, and send a client-ready quote. No retyping, no spreadsheet, no lost numbers.

Open this calculator in the app

Formula

Sections = ceil(Fence length ÷ Spacing); Posts = Sections + 1 + Corners + (2 × Gates); Actual spacing = Fence length ÷ Sections

Worked example. A 100 ft fence at 8 ft spacing with 4 corners and 1 gate: 100 ÷ 8 = 12.5, rounded up to 13 sections; 13 + 1 = 14 line and end posts, plus 4 corner posts and 2 gate posts = 20 posts in total. The actual spacing is 100 ÷ 13 = 7.69 ft (7 ft 8¼ in). The bays are evened out so no bay is wider than 8 ft.

A 100 ft fence at 8 ft spacing with 4 corners and 1 gate needs 20 posts: 13 sections, 14 line and end posts, plus 4 corner posts and 2 gate posts, with the posts actually 7.69 ft apart once the bays are evened out. The rule is sections plus one: a straight run cut into n sections needs n + 1 posts, because both ends need one, and the end post is the one people forget.

Key takeaways

  • •Formula (keep exact): Sections = ceil(Fence length ÷ Spacing); Posts = Sections + 1 + Corners + (2 × Gates); Actual spacing = Fence length ÷ Sections.
  • •Default job: 100 ft, 8 ft spacing, 4 corners, 1 gate = 13 sections, 14 line and end posts, 20 posts total, actual spacing 7.69 ft (7 ft 8¼ in).
  • •The end post is the one people forget: sections plus one, never sections alone.
  • •Each corner adds 1 post; each gate adds 2. A double-drive gate counts as two gates (4 posts).
  • •Spacing comparison for 100 ft with 4 corners and 1 gate: 6 ft spacing = 24 posts, 8 ft = 20 posts, 10 ft = 17 posts.
  • •Actual spacing is always your spacing or less, never more. 100 ft at 8 ft spacing is really 7.69 ft between posts.
  • •8 ft is the practical maximum for wood fences because rails come in 8 ft lengths. Drop to 6 ft for tall, solid, windy fences or soft ground.
  • •Chain link goes to 10 ft spacing (ASTM F567). Vinyl follows its panel width, usually 8 ft.
  • •A fully closed loop needs one fewer post than the open-run count. The last post is also the first.
  • •Buy posts 2–3 ft longer than the fence height: a 6 ft fence wants 8–9 ft posts, set 30–36 in deep.

How to use the how many fence posts calculator

  1. Measure the total fence length in feet. The actual distance between the two end posts, along the fence line, not the property line.
  2. Pick your post spacing. Eight feet is the standard for wood privacy fences; six feet is for tall, solid or windy fences; ten feet is for chain link.
  3. Count the corners: every place the fence turns. A rectangular yard has 4; an L-shaped yard has 1 (plus the two ends).
  4. Count the gates: each walk gate is 1, each double-drive gate is 2.
  5. Read the post count, the section count, and the actual spacing. The spacing comparison shows what 6, 8 and 10 ft spacing each cost you in posts.
  6. Then get the concrete for those posts with the concrete for fence post calculator, and price the whole job with the fence cost calculator.

The formula and the spacing comparison

Sections = ceil(Fence length ÷ Spacing); Posts = Sections + 1 + Corners + (2 × Gates); Actual spacing = Fence length ÷ Sections

Fence posts are the textbook fence-post problem: a straight run cut into n sections needs n + 1 posts, because both ends need one. The sections come first, divide the length by the spacing and round up, because a bay cannot be wider than the spacing, then add one for the end post, one for each corner, and two for each gate. The actual spacing is the length divided by the section count, so the bays come out even and none is wider than the spacing you picked.

SpacingSections (100 ft)Line + end postsTotal with 4 corners + 1 gateActual spacing
6 ft1718245.88 ft
8 ft1314207.69 ft
10 ft10111710.00 ft

Totals assume 4 corners and 1 gate, the calculator default. Without corners or gates, the totals are the line + end posts column.

The comparison is the point of the calculator: spacing is the single biggest lever on the post count. Going from 8 ft to 6 ft spacing on a 100 ft fence adds 4 posts; going from 8 ft to 10 ft saves 3. But spacing is not free. Wider spacing needs stronger rails, and on a solid privacy fence the wind load on each post climbs fast. The table shows the cost; the fence-type table below shows the limit.

Fence lengthPosts at 6 ftPosts at 8 ftPosts at 10 ft
50 ft1086
100 ft181411
150 ft262016
200 ft352621

Line and end posts only, before corners and gates. Add 1 per corner and 2 per gate to each figure.

Worked examples

Example 1, the calculator default: a 100 ft fence at 8 ft spacing with 4 corners and 1 gate. Sections: 100 ÷ 8 = 12.5, rounded up to 13. Line and end posts: 13 + 1 = 14. Corners: +4. Gate: +2. Total: 20 posts. Actual spacing: 100 ÷ 13 = 7.69 ft, or 7 ft 8¼ in. Buy 20 posts, and buy them 8–9 ft long for a 6 ft fence.

Example 2. A straight 200 ft run with no corners and no gates, at 8 ft spacing. Sections: 200 ÷ 8 = 25 exactly. Posts: 25 + 1 = 26. Actual spacing: 200 ÷ 25 = 8.00 ft exactly. This is the only case where the spacing comes out exact. Most lengths do not divide evenly, which is why the calculator evens the bays out instead of leaving a short bay at the end.

Example 3. An L-shaped yard: a 60 ft run and a 40 ft run sharing one corner, at 8 ft spacing, no gates. Run one: 60 ÷ 8 = 7.5, rounded up to 8 sections, 9 posts. Run two: 40 ÷ 8 = 5 sections, 6 posts. Shared corner: subtract 1, because the corner post serves both runs. Total: 9 + 6 − 1 = 14 posts. Counting the runs separately and adding them without subtracting the shared corner overbuys by one post per corner.

Example 4. A closed rectangle: four 50 ft sides, 200 ft in total, at 8 ft spacing. An open run of 200 ft needs 26 posts, but a closed loop has no end posts; the last post is also the first, so it needs 25 posts. The calculator counts the open run, so subtract 1 for a fully closed loop. The four corners are already in the count: 25 sections at 8 ft spacing, one post per section, corners included.

Post spacing by fence type

The spacing you choose is a maximum, not a target: the calculator divides each run into equal bays no wider than it. Eight feet is the ceiling for wood, because rails and pre-built panels come in 8 ft lengths and a rail has to land on a post. Drop to 6 ft for tall, solid or windy fences, and set end, corner and gate posts at least 6 in deeper than line posts.

Fence typeTypical spacingMaximumWhy
Wood privacy / picket6 or 8 ft8 ftRail stock is 8 ft; solid boards catch wind
Vinyl privacy / picket8 ftPanel widthPanels fix the spacing. Each run ends in one cut panel
Chain link8 or 10 ft10 ftASTM F567: 10 ft maximum for line posts
Metal / ornamental6 ftPanel widthPanel width fixes the spacing
Split rail8–10 ft10 ftRails are long and the fence is open, so wind load is low
Farm wire / T-posts10–12 ft12 ftWire carries the load, not rails
Electric fence20–30 ft30 ftStep-in posts, very light load

Spacing guidance from the Home Depot wood fence instructions, ASTM F567-23 for chain link, and University of Tennessee Extension PB1541 for farm fences.

Panel and rail systems are the exception to the maximum rule: there the panel is the spacing. A vinyl fence with 8 ft panels is an 8 ft spacing whether you like it or not, and a run that is not a multiple of 8 ft ends in one cut panel. Board-on-board and stick-built fences are freer. You can pick any spacing up to the maximum, and the calculator evens the bays out for you.

Corners and gates: how they are counted

Corners are counted once. Two 40 ft sides counted separately come to 12 posts; joined at a corner they need 11, because the corner post serves both sides. That is the rule this calculator follows when you enter corners as a number on a single total length: it adds one post per corner on top of the spacing count, which is the conservative buy. A corner post is heavier and deeper than a line post, and it is the post you least want to be short of.

Gates each take the opening out of the fence and add two gate posts, one on each side. A 4–5 ft walk gate needs 2; a 10–12 ft double-drive gate needs 4, so count it as two gates. The gate opening itself is part of the length you entered, so do not subtract it. The calculator counts the posts for the full run and adds the gate posts on top. Gate posts should be 6×6, set at least 6 in deeper than line posts, in wider holes, with standard concrete so you have time to get them plumb.

End posts deserve the same respect as corners: the post at the end of a run takes the pull of the whole run in one direction, so it should be set like a corner. Deeper, in a wider hole, and braced until the concrete sets. The calculator counts it in the sections-plus-one, but do not treat it as an ordinary line post when you set it.

Actual spacing: evening out the bays

A 100 ft run at 8 ft spacing is 13 sections, so the posts are actually 7.69 ft apart, 7 ft 8¼ in, not 8 ft. That is the calculator evening the bays out: it divides the run into equal bays no wider than the spacing, instead of spacing 12 bays at 8 ft and leaving a 4 ft stub at the end. Even bays look better, load every post equally, and waste no rail stock: 8 ft rails cut to 7 ft 8¼ in leave a short offcut each, but a 4 ft stub bay wastes a whole rail and looks wrong.

To set the posts out on the ground, run a string line between the two end posts, mark the actual spacing along it with a tape, and drive a stake at each mark. Check the marks twice before you dig. A post in the wrong place is a hole you have to fill. On a slope, measure along the slope, not horizontally: the fence follows the ground, and the spacing is measured along the fence line.

If the actual spacing comes out much shorter than the spacing you picked; say 6.5 ft when you asked for 8 ft, consider whether the run divides better at a different spacing. A 96 ft run at 8 ft spacing is exactly 12 sections at 8.00 ft; a 100 ft run is 13 at 7.69 ft. Moving an end post by a few feet, where the yard allows it, can save a post and make the spacing exact.

How BuildCova compares with the rivals

The top results for how many fence posts do I need are specialist fence calculators: fencelevel.com, nrtechstudio.com, onetripdiy.com, landscapioai.com and brightcalculator.com. They are strong tools; fencelevel counts line, corner, end and gate posts separately and evens the bays out, and nrtechstudio handles multi-run yards, but most of them answer only the post count, and several of them bury the answer in a full fence estimator.

CalculatorCorners countedGates countedSpacing comparisonActual spacing shownGuide depth
BuildCova (this page)Yes | +1 eachYes | +2 eachYes | 6/8/10 ft tableYesFull guide, standards, worked examples
fencelevel.comYes | shared onceYes | pair per gateYes | by fence typeYesLong guide
nrtechstudio.comYes | shared cornersYesYesNoMedium
onetripdiy.comNo. Straight runsYes | +1 per gateYes | 6 vs 8 ftNoMedium
landscapioai.comYes | +1 eachYes | +2 eachYes | by fence typeNoLong guide
brightcalculator.comNoYes | gate postsYes | by fence typeNoMedium

What beats them here: this is the only page in the top results that shows the spacing comparison (6, 8 and 10 ft) for your exact length with corners and gates included, the actual evened-out spacing, and the closed-loop correction, plus the worked examples for straight, L-shaped and closed-rectangle yards, and the post-length and depth rules that turn a count into an order. Rivals that count a gate as one extra post instead of two will leave you short exactly where the fence is weakest.

Post length and depth

Buy posts 2–3 ft longer than the fence height: a 6 ft fence wants 8–9 ft posts, set 30 in deep, and a 4 ft fence wants 6–7 ft posts, set 24 in deep. The rule is one-third of the above-ground height in the ground, and always below the local frost line. A post that is too short cannot be fixed; a post that is too long can be cut after the fence is built, and most installers set the posts long and cut the tops level afterwards.

Depth is set by the frost line as much as by the height: in cold climates the frost line can demand 36–48 in, and a post set above it will heave in the first winter. Gate and corner posts go at least 6 in deeper than line posts. Set the posts in concrete, or in tamped gravel for split-rail and farm fences, and slope the concrete away from the post so water runs off instead of pooling against the wood.

Use pressure-treated wood rated for ground contact (AWPA standards) for every post that goes in the ground. Untreated wood rots at the ground line in a few years, however much concrete you put around it. The concrete does not protect the wood; the treatment does. Keep soil and mulch off the wood above the concrete, and do not let sprinklers soak the base of the fence every day.

Common post-count mistakes

  • •Forgetting the end post: sections plus one, never sections alone. A 100 ft fence at 8 ft spacing is 14 posts, not 13.
  • •Counting a gate as one extra post. A gate needs two gate posts, one on each side, and a double gate needs four.
  • •Counting a shared corner twice. Two runs that meet at a corner share one corner post; count it once.
  • •Spacing posts at the maximum and leaving a short bay at the end. Even the bays out instead. The calculator does this for you.
  • •Measuring the property line instead of the fence line. The fence is shorter than the boundary wherever it stops at the house or a gate.
  • •Forgetting that a slope makes the fence longer. Measure along the slope, not horizontally, or you will be a post short.
  • •Buying posts exactly fence height. You need 2–3 ft extra for the buried part. A 6 ft fence wants 8–9 ft posts.
  • •Using 10 ft spacing with wood rails. Rails come in 8 ft lengths; a 10 ft bay needs a spliced rail, which sags and looks wrong.

From post count to a full material list

The post count is the first number; the rest of the fence follows from it. Rails: two per section for a fence under 6 ft, three for a 6 ft privacy fence. A 13-section fence needs 26 or 39 rails. Pickets: a 5.5 in picket with no gap is 2.2 pickets per foot, so 100 ft needs about 219 pickets. Concrete: about 1.38 cu ft per 4×4 post in a 10 in hole, 36 in deep. Use the concrete for fence post calculator for the exact bag count in the bag size you will buy.

Panels change the arithmetic: a pre-built 8 ft panel is one section, so the post count is panels plus one, and the last run ends in a cut panel if the length is not a multiple of 8 ft. Use the fence panel calculator for panel jobs, and the fence picket calculator for stick-built picket fences. For chain link, the chain link fence calculator counts mesh, top rail and posts at 10 ft spacing under ASTM F567.

Price the whole job with the fence cost calculator, which turns the material list into a cost per foot. As a planning range for the US in 2026, a wood privacy fence typically runs $15–$35 per linear foot installed, and a picket fence $12–$30. Prices vary by region, material and height, so treat them as planning figures, not quotes.

Order a spare post or two beyond the calculator on any job over 15 posts. A post can split when you drive it, a hole can hit rock and have to move, and a spare post in the garage is cheap insurance. Returning an unopened extra is easy; a second trip to the store with the fence half built is not.

Measuring your fence line

Walk the line with a long tape and a helper, or measure it in sections with a 100 ft tape and add them up. Mark the end posts and every corner with stakes, then run a string line between them: the string is the fence line, and everything is measured from it. Note every gate, every tree, every slope change, and every place the fence meets the house. Each one changes the count.

Check the property line before you measure anything else. A fence on the wrong side of the line is a dispute, and moving a finished fence is far more expensive than a survey. Call 811 before you dig. It is free, and a post hole is exactly deep enough to hit a buried line. Check HOA rules too: some limit fence height, material and placement, and some require the finished side to face out.

Measure twice, in different ways: once along the ground with the tape, once by pacing it off or by measuring from a known landmark. If the two disagree by more than a foot on a 100 ft run, measure again. A post count is only as good as the length it is built on, and a length that is 10 ft short is two posts short at 8 ft spacing.

Assumptions

  • •A straight run cut into n sections needs n + 1 posts, because both ends need one. This is the fence-post problem: sections plus one, never sections alone. The end post is the one people forget, and it turns a tidy order into a second trip to the store.
  • •Each corner gets its own post on top of the spacing count. A corner post is heavier (4×6 or 6×6) and set deeper than a line post, so counting it separately is the safe buy, and it matches how the major fence calculators count corners.
  • •Each gate adds two gate posts, one on each side of the opening. A double-drive gate needs four (two pairs), so count it as two gates in the calculator.
  • •Sections are rounded up, so the actual spacing is the length divided by the section count, always the spacing you picked or less, never more. A 100 ft run at 8 ft spacing is 13 sections at 7.69 ft, not 12 sections at 8.33 ft.
  • •The count is for an open run. If your fence closes into a complete loop with no end posts, a full rectangle around a yard, subtract 1 from the total, because the last post is also the first.
  • •This calculator counts posts only. It does not count rails, pickets, panels, or concrete. Use the fence calculator for the full material list and the concrete for fence post calculator for the concrete per post.

Sources✓ Verified

  • ASTM F567-23 (Standard Practice for Installation of Chain-Link Fence). Post spacing for chain-link fence: 10 ft maximum for line posts, spaced equally.
  • The Home Depot | Wood Fence Kits installation instructions. 8 ft maximum post spacing for wood privacy and picket fences, matching standard 8 ft rail stock.
  • University of Tennessee Extension PB1541 | Planning & Building Fences on the Farm. Post spacing guidance by fence type, including farm and wire fences.
  • American Wood Protection Association (AWPA). Pressure-treated wood standards for posts in ground contact.

Formula reviewed November 2026.

At 8 ft spacing, 100 feet gives 13 sections, so 14 posts, plus 1 for each corner and 2 for each gate. A 100 ft fence with 4 corners and 1 gate needs 20 posts. At 6 ft spacing the same run needs 17 sections and 18 posts before corners and gates (24 with 4 corners and 1 gate); at 10 ft spacing it needs 10 sections and 11 posts (17 with corners and a gate).

Six to eight feet on centre for wood privacy and picket fences. 8 ft is the practical maximum because rails come in 8 ft lengths and a rail has to land on a post. Use 6 ft for tall, solid or windy fences, soft ground, or heavy boards. Chain link goes to 10 ft (ASTM F567), vinyl follows its panel width (usually 8 ft), and farm wire can go 10–12 ft between T-posts.

Yes. Count one extra post per corner on top of the spacing count. A corner post is heavier than a line post (4×6 or 6×6) and set at least 6 in deeper, because it takes the pull of two fence runs. If two runs share a corner and you count each run separately, count the shared corner post once, not twice.

Two gate posts per gate, one on each side of the opening. A single 4 ft walk gate needs 2 extra posts; a double-drive gate (10–12 ft) needs 4, so count it as two gates. Gate posts are the hardest-working posts on the fence: use 6×6 posts, set them deeper, in wider holes, with standard (not fast-setting) concrete so you have time to get them exactly plumb.

The length divided by the section count. A 100 ft run at 8 ft spacing is 13 sections, so the posts are actually 7.69 ft apart (7 ft 8¼ in). The bays are evened out so every bay is equal and none is wider than 8 ft. Never space posts at the maximum and leave a short bay at the end; even spacing looks better and loads every post equally.

At 8 ft spacing, a straight 200 ft run is 25 sections and 26 posts before corners and gates. With 4 corners and 1 gate that is 32 posts. At 6 ft spacing the same run needs 34 sections and 35 posts before corners and gates; at 10 ft spacing it needs 20 sections and 21 posts.

Converters to use with the How Many Fence Posts Calculator

Switch units, compare bulk and bagged quantities, or check coverage, without leaving BuildCova.

Browse all converters

More fence calculators

How Much Fence Stain CalculatorFenceHow Much Fence Stain CalculatorThis how much fence stain do I need calculator works out exactly how much fence stain to buy. Enter the fence length and height, whether you are staining one side or both, and how many coats, and get the gallons per coat and in total, plus the one-coat vs two-coat comparison, the number of 5-gallon pails, and a sealer coat if you want one.Fence Post Depth CalculatorFenceFence Post Depth CalculatorThis fence post depth calculator works out how deep a fence post has to go before you dig the first hole, so posts stay upright through frost heave and high wind. Enter the fence height, your local frost line and the soil, and it compares the two rules that govern depth, the one-third rule from the fence height and the frost-line rule from your climate, and tells you which one wins, how long a post to buy, and how much concrete each hole takes.Fence CalculatorFenceFence CalculatorA fence calculator that turns your fence length, post spacing and rails per section into a post, section and rail count you can shop from. Miss a post and the run sags; order too many and the extras sit in the yard. Plan corners, gates and concrete from the same numbers, so the materials arrive in one trip and the build starts on time.Fence Post Concrete CalculatorFenceFence Post Concrete CalculatorA fence post concrete calculator that works out how much concrete your posts need, in cubic feet, cubic yards and 60 lb bags, from the post count and the size of each hole. Too little concrete and posts lean within a season; too much and you pay for bags you never open. Enter your hole size and buy the count the job actually takes.Fence Panel CalculatorFenceFence Panel CalculatorA fence panel calculator that turns your total fence length and the width of one panel into the number of pre-made panels to buy, how much length they cover and how many posts you need. Panels come in fixed widths, so a rough count leaves a gap at the end of the run or a panel you cannot use. Enter the length and get a panel count that fits.Fence Picket CalculatorFenceFence Picket CalculatorA fence picket calculator that turns your fence length, the width of one picket and the gap between pickets into the number of pickets or fence boards you need. Count by the picket instead of the foot and the last board lands short, leaving a gap you cannot hide. Enter the real widths and get a count that closes the run.

Material requirements can vary based on product specifications and job conditions. Verify quantities with your supplier before ordering.