Home / Free tools / Fence calculator

Fence calculator

Divide the fence length by the post spacing and round up to get sections. Posts are sections plus one, plus one more for each gate. Rails are sections times rails per section. Pickets are the length in inches divided by picket width plus gap. A 100 foot fence with posts 8 feet apart has 13 sections, 14 posts, 39 rails with 3 per section, and 219 pickets 5-1/2 inches wide.

How do I use this for my fence?

Your posts, rails and pickets show here.

This is an estimate, not a professional takeoff or an engineering stamp.

What is here for crews who do this work?

Sponsored links. We may earn a commission if you sign up through them.

How to figure a wood fence

Run = fence length - gate widths. Sections = run / post spacing, rounded up. Posts = sections + 1 + gates. Rails = sections x rails per section. Pickets = run (in) / (picket width + gap), rounded up.

Each gate breaks the line, so it adds one post. Gate hardware and the gate itself are not counted here. Each corner is already a post in a straight-line count, but a run that turns many times may need more posts than this shows.

Post spacing

Set the spacing to the length of your rails or panels, and check any local fence rules or HOA limits on height and placement before you dig. Call 811 before digging so buried lines get marked.

Setting posts in concrete? The concrete calculator has a round column mode for post holes. Need a temporary fence for a job site instead? Try the temporary fence panel calculator.

What should I know about this: Fence calculator questions?

The details below are already published on this page. Confirm anything current with the official source or by talking it through with Glen.

How many fence posts do I need?

Divide the fence length, minus gates, by the post spacing and round up to get sections. Add one post to close the last section and one post for each gate.

How many pickets for a 100 foot fence?

With 5-1/2 inch pickets and no gap, 100 feet is 1,200 inches, divided by 5.5 is 218.2, so 219 pickets.

How many rails do I need?

Multiply the number of sections by rails per section. Taller fences often use 3 rails. A 100 foot fence with 13 sections and 3 rails needs 39.

Does the calculator include gates?

It subtracts the gate width from the run and adds one post per gate. It does not count the gate frame, hinges or latch.

Does the calculator save my numbers?

No. The math runs in your browser and nothing you type is stored or sent anywhere.

Build fences for a living?

Findable Contractor builds clear websites for fence contractors, so homeowners can find you when they search.

Get started

Or email glen@findablecontractor.com