BuildNook Hub
6 min read·Updated 20 November 2026

How Many Fence Posts Do I Need? Corners, Ends and Gates

Divide the fence length by the post spacing, round up to get sections, add 1 post, then sort out corners, ends and gates. A 60 ft U-shaped fence with 1 gate needs 11 posts.

Published by BuildNook HubMath checked by hand against our published formulas (How we calculate)Last updated: 20 November 2026Found a mistake? Tell us

Sources are listed at the bottom of this page. Prices are never fixed: use your local quote.

Plain-English Words

• Post: the upright piece set in the ground that holds the fence rails and panels.

• Section (or bay): the gap between two posts. An open fence with 8 sections has 9 post spots.

• Post spacing: the distance from the middle of one post to the middle of the next. Many sources use 6 to 8 feet (lowes.com, angi.com).

• Line post: a post in the middle of a straight run.

• Corner post: a post where the fence turns. It takes the place of a line post.

• End post: a post where the fence stops, for example at a house wall or a property edge.

• Gate post: a post on each side of a gate opening. Our calculators add 2 for each gate.

• Open fence: a fence with two loose ends. A closed fence runs all the way around and meets itself.

How to Count Fence Posts in 5 Steps

Our example is a U-shaped fence with three runs of 20 ft, 2 corners, 2 ends at the house wall and 1 gate. The posts are 8 ft apart.

1. Measure the total run in feet: 20 + 20 + 20 = 60 ft.

2. Pick the post spacing. Our calculator starts at 8 ft. Use the spacing your fence panels or rails need.

3. Find the sections: 60 ÷ 8 = 7.5, so round up to 8 sections.

4. Count the post spots and sort them. An open fence with 8 sections has 8 + 1 = 9 post spots. The 2 corners and 2 ends take 4 of them, so 9 − 4 = 5 line posts are left.

5. Add the gate posts: 1 gate × 2 = 2 posts. Total: 4 + 5 + 2 = 11 posts.

Result for the example: order 11 posts (2 corner, 2 end, 5 line and 2 gate).

Chart: How Corners, Ends and Gates Change the Count

Same 60 ft run at 8 ft spacing, which is 8 sections.

• Straight run, 2 ends, no gate: 2 end + 7 line = 9 posts

• Straight run, 2 ends, 1 gate: 2 end + 7 line + 2 gate = 11 posts

• U-shape, 2 corners, 2 ends, 1 gate: 2 corner + 2 end + 5 line + 2 gate = 11 posts

• Closed loop of four 15 ft sides, 4 corners, no ends, no gate: 4 corner + 4 line = 8 posts

A corner does not add a post: it takes the place of a line post. A gate adds 2 posts. A fence that closes back on itself needs one less post than an open fence with the same number of sections, because it has no loose end.

Chart: How Post Spacing Changes the Count

A straight 50 ft run with 2 end posts, no corners and no gate. Closer spacing needs more posts.

• 6 ft spacing: 50 ÷ 6 = 8.33, round up to 9 sections, so 10 posts

• 7 ft spacing: 50 ÷ 7 = 7.14, round up to 8 sections, so 9 posts

• 8 ft spacing: 50 ÷ 8 = 6.25, round up to 7 sections, so 8 posts

Many sources use 6 to 8 feet between posts for most wood fences (lowes.com, angi.com, housedigest.com). The right spacing depends on your fence type, so follow the instructions that come with your fence panels or rails.

Gates and Short Runs: Why Counts Can Differ

• Gates: our calculators add 2 posts for each gate, one on each side of the opening, and they do not take the gate width out of the fence run. Some store guides add 1 post for each gate and take the gate width out of the run (lowes.com), so sources differ and their total can be lower.

• Short runs: our calculators round the total run once. If your fence has several short runs, round each run up on its own. Two 9 ft runs need 2 sections each (9 ÷ 8 = 1.125, round up), so 4 sections. One 18 ft run needs only 3 sections (18 ÷ 8 = 2.25, round up).

• If you are not sure, ask your supplier to check your count before you buy.

Common Beginner Mistakes

1. Stopping at the section count. 8 sections need 9 post spots in an open fence, because there is a post at both ends.

2. Not rounding up. 60 ÷ 8 = 7.5 is not 7 sections. Round up to 8, or the last section will be too wide.

3. Counting corner posts twice. A corner takes the place of a line post, so it does not add a post.

4. Forgetting the gate posts. Each gate adds 2 posts in our calculators.

5. Guessing the spacing. Use the spacing your fence panels or rails need, often 6 to 8 feet, not a number from a different kind of fence.

When to Ask a Pro

Ask your local building office about permits, fence height limits and property line rules before you set posts.

Call your local utility marking service before you dig.

This page counts posts only. Post size and hole depth depend on your fence, your soil and local rules, so ask your supplier or a fence installer, especially for sloped ground, wide gates or very long runs.

Use the Calculator & Related Guides

• Fence Post Calculator: count line, corner, end and gate posts.

• Fence Calculator: posts, rails and pickets for the whole fence.

• Post Hole Concrete Calculator: concrete bags for the post holes.

Related guides:

• How Many Fence Pickets Do I Need?

• How to Calculate Concrete Volume

Frequently Asked Questions

• How many fence posts do I need for 100 feet of fence? For a straight open run with 8 ft spacing and no gate: 100 ÷ 8 = 12.5, round up to 13 sections, then add 1 for 14 posts. Each gate adds 2 posts, so 1 gate makes 16.

• Do corner posts count as extra posts? No. A corner takes the place of a line post. A 60 ft straight run with 2 end posts and 1 gate needs 11 posts, and a 60 ft U-shaped fence with 2 corners, 2 ends and 1 gate also needs 11.

• How many posts does a gate need? Our calculators add 2 posts for each gate, one on each side. Some store guides add 1 post for each gate (lowes.com), so sources differ. A 60 ft straight run with 2 end posts needs 9 posts with no gate and 11 posts with 1 gate in our calculator.

• How many posts do I need for a fence that goes all the way around? A fence that closes back on itself has no loose end, so it needs one less post than an open fence with the same number of sections. In the calculator, set the end posts to 0. A loop of four 15 ft sides with 4 corners, no ends and no gate at 8 ft spacing needs 8 posts, while an open 60 ft run with 2 ends needs 9.

Sources

Post spacing of about 6 to 8 feet and adding 1 post to close an open run (lowes.com, angi.com, housedigest.com). Gate post counts in store guides (lowes.com). Counts use our own calculator formulas and unit conversions.

Interactive Calculator Available

Ready to calculate your material quantities?

Use our free calculators below to work out volume, tons, bags and extra material. Results update as you type.

About These Numbers

These formulas are the same ones our calculators use. Weights, bag sizes and coverage change by brand and supplier, so use the numbers on your delivery ticket or product label.