Skip to content
Fence Post Calculator hero

Fence Post Calculator

Count line, corner and gate posts for any fence.

Enter your fence length and post spacing to get the total number of posts plus a cost estimate.

Choosing wood, steel or vinyl posts? See our fence post buying guide.

๐Ÿ“ฑ More free Android calculators

Fence, deck, roofing, gravel, sod, drywall, tile and insulation estimators from Dixon App Studio โ€” all free on Google Play, all work offline.

๐Ÿ”ง Recommended Fencing Tools & Supplies

Disclosure: As an Amazon Associate I earn from qualifying purchases.

Goovilla 4x4 Post Caps Black(Actual 3.5" x 3.5"), 24 Pack with 48 Screws | Easy Installation Fence Post Caps, Sturdy Waterproof Plastic Deck Post Caps with Frosted Finishing Touch, Protect Wood Post

Goovilla 4x4 Post Caps Black(Actual 3.5" x 3.5"), 24 Pack with 48 Screws | Easy Installation Fence Post Caps, Sturdy Waterproof Plastic Deck Post Caps with Frosted Finishing Touch, Protect Wood Post

$19.99

Check price on Amazon
Instant Anchoring Cement, 10 Pound Bag, Quick Setting, Anchoring Mix | Cement Mix for Setting Posts, Railings, Stepping Stones, Quick Drying, Fast Set Formula, Outdoor, Indoor

Instant Anchoring Cement, 10 Pound Bag, Quick Setting, Anchoring Mix | Cement Mix for Setting Posts, Railings, Stepping Stones, Quick Drying, Fast Set Formula, Outdoor, Indoor

$21.99

Check price on Amazon
VEVOR Post Hole Digger,52cc 1450W Auger Digger,Gas Powered Earth Digger with Two Drill Bit 6''& 10''and 3 Extension Rods,for Farmland,Garden and Plant,EPA Certification,Black+Orange+White

VEVOR Post Hole Digger,52cc 1450W Auger Digger,Gas Powered Earth Digger with Two Drill Bit 6''& 10''and 3 Extension Rods,for Farmland,Garden and Plant,EPA Certification,Black+Orange+White

$159.90

Check price on Amazon
24Pack 4x4 Fence Post Caps, Fits Nominal 4x4 Wood Posts (True 3.5"x3.5")

24Pack 4x4 Fence Post Caps, Fits Nominal 4x4 Wood Posts (True 3.5"x3.5")

$18.99

Check price on Amazon
SIKA Sikacryl Ready-Mix Concrete Repair Patch, Gray, Textured, 1 qt 1-Pack | Repairs spalls and cracks in masonry, Ready-to-use acrylic formula, Durable finish, Easy cleanup and application

SIKA Sikacryl Ready-Mix Concrete Repair Patch, Gray, Textured, 1 qt 1-Pack | Repairs spalls and cracks in masonry, Ready-to-use acrylic formula, Durable finish, Easy cleanup and application

$9.99

Check price on Amazon
Gtongoko 12LB T Post Driver with Handles, Heavy Duty Fence Post Pounder | Black, 2.7" Inner Diameter Fit, Dual Handle Control Grip, Steel Construction with Powder Coating, Fence Installation Support

Gtongoko 12LB T Post Driver with Handles, Heavy Duty Fence Post Pounder | Black, 2.7" Inner Diameter Fit, Dual Handle Control Grip, Steel Construction with Powder Coating, Fence Installation Support

$36.99

Check price on Amazon

Prices as of Oct 19, 2026, 4:37 AM UTC. Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon.com at the time of purchase will apply to the purchase of this product.

๐Ÿ› ๏ธ How This Calculator Works

The calculator divides your fence length by post spacing and adds 1 for the starting post โ€” that is every post position along the run, including the corner and end posts. Corner / end posts (at least 2, one at each end) are taken out of that count, the rest are line posts, and each gate adds two gate posts (one on each side of the opening).

๐Ÿ“ Formula

Line Posts = โŒˆlength / spacingโŒ‰ + 1 โˆ’ corner/end posts; Total = line + corner/end + (gates ร— 2)

๐Ÿ“ Example Calculation

150 ft fence, 8 ft spacing, 1 gate, 4 corner/end posts: Post positions = โŒˆ150 / 8โŒ‰ + 1 = 20 Line posts = 20 โˆ’ 4 = 16 Gate posts = 1 ร— 2 = 2 Total = 16 + 4 + 2 = 22 posts

๐Ÿ’ก Pro Tips from Fence Builders

  • Use 4ร—4 line posts and 6ร—6 posts at corners and gates for stiffness.
  • Standard wood-fence spacing is 6โ€“8 ft; chain link can stretch to 10 ft.
  • Set posts at least 1/3 of the fence height into the ground.
  • Always brace gate posts in concrete โ€” they take the most stress.

โ“ Frequently Asked Questions

How far apart should fence posts be?

6โ€“8 ft on center for wood and vinyl; up to 10 ft for chain link. Closer spacing means a stiffer, longer-lasting fence.

Do gate posts need to be bigger?

Yes โ€” use 6ร—6 posts (vs 4ร—4 for line posts) and set them in extra concrete to handle the swinging gate weight.

How deep should fence posts go?

At least 1/3 the above-ground height, plus 6 inches of gravel for drainage. A 6-ft fence needs 2-ft+ deep holes.

๐Ÿ“ฌ Free Fencing Cost Guide

Get weekly fencing tips, material cost updates, and exclusive calculator guides โ€” straight to your inbox.

No spam, ever. Unsubscribe anytime.