TikoTools

Fence Calculator – Posts, Rails, Pickets & Concrete

Plan a wood or picket fence: enter the fence length, post spacing, corners and gates to get the number of posts, rails, pickets and bags of concrete for the post holes.

Formula checked 23 Oct 2026 Free · no sign-up
Was this calculator helpful?

Found a bug or have a suggestion?

Leave it here and we will fix it and reply to you.

Embed this calculator on your website (free)

Copy this code into your page. It stays free and updates automatically.

How to use the fence calculator

  1. Enter the total fence length and the number of straight runs (each corner starts a new run).
  2. Set the post spacing, rails per section, and your picket width and gap.
  3. Add any gates and their width.
  4. Enter the post hole size and bag size to get the concrete.

Fence formulas

Sections = Fence length ÷ Post spacing → round up Posts = Sections + Straight runs + Gates Rails = Sections × Rails per section Pickets = (Fence length − Gate widths) ÷ (Picket width + Gap) Concrete per post = π × (hole ÷ 2)² × concrete depth − post area × concrete depth

Worked example

A straight 100 ft privacy fence, 4 × 4 posts every 8 ft, two rails, 5½ in boards with no gap, 10 in holes 30 in deep with 6 in of gravel:

  • Sections = 100 ÷ 8 = 12.5 → 13; posts = 13 + 1 = 14
  • Rails = 13 × 2 = 26 (8 ft long)
  • Pickets = 1,200 in ÷ 5.5 in = 218.2 → 219
  • Concrete per post = 1.09 − 0.17 = 0.92 ft³ → 12.9 ft³ total → 22 bags of 80 lb

Common fence layouts

Fence typeTypical post spacingRailsBoards
6 ft privacy (wood)6–8 ft31 × 6 boards, no gap
4 ft picket8 ft21 × 4 pickets, 2–3 in gap
Shadowbox / board-on-board6–8 ft3Overlapping boards on both sides
Horizontal slat4–6 ft—Boards fixed to posts

For shadowbox or board-on-board fences, roughly double the board count, because boards go on both sides of the rails.

Buying lumber for the fence

Posts for a 6 ft fence with 2 ft in the ground need to be 8 ft long; a 4 ft fence uses 6 ft posts. Rails are usually 2 × 4s cut to span from post to post, so with 8 ft spacing buy 8 ft rails (or 16 ft rails to span two sections and stagger the joints). Buy about 5–10% extra pickets for split or warped boards.

Fence building tips

  • Check property lines and permits before you dig, and call 811 (US) to locate buried utilities.
  • Set corner and end posts first, then run a string line between them for the line posts.
  • Crown the concrete at the top of the hole so water runs away from the post.
  • Use ground-contact rated lumber for posts, and galvanized or stainless fasteners.
  • Gate posts carry the most load — use 6 × 6 posts or set them deeper.
  • Leave a gap at the bottom of boards (about 2 in) so they don’t sit in wet soil and rot.

Frequently asked questions

How many fence posts do I need?

Divide the fence length by the post spacing and round up to get the number of sections, then add one post for each straight run (the end post) and one for each gate. A straight 100 ft fence with posts every 8 ft has 13 sections and 14 posts.

How far apart should fence posts be?

6–8 ft (1.8–2.4 m) is standard for wood fences. Use closer spacing for tall privacy fences in windy areas, heavy boards or soft ground. Chain-link posts are usually up to 10 ft apart.

How many pickets do I need for a fence?

Divide the fence length by the picket width plus the gap. For a 100 ft privacy fence with 5½ in boards and no gap: 1,200 ÷ 5.5 = 218.2 → 219 boards. Subtract the width of any gates.

How deep should fence post holes be?

A common rule is one-third of the post’s above-ground height, but at least 24 in, and below the frost line in cold climates. Add about 6 in of gravel at the bottom for drainage. Hole width is usually about three times the post width.

How many bags of concrete per fence post?

For a 4 × 4 post in a 10 in hole with 24 in of concrete, each post needs about 0.92 ft³ — about 2½ bags of 50 lb or 1½ bags of 80 lb. The calculator subtracts the post’s own volume.

How many rails do I need?

Usually two rails per section for fences up to about 5 ft tall and three rails for 6 ft privacy fences, so rails = sections × rails per section.

How we checked this calculator

We test this tool against worked examples before every release (last check: 23 Oct 2026, version 1.0.0). Results are estimates for planning — confirm critical figures with your supplier or a qualified professional.

References: