1. Home
  2. Roofing & Carpentry Calculators
  3. Fence Calculator

Fence Calculator

Plan your fence in minutes. Enter the length of each side, height, post spacing and gates, and get the number of posts, rails, pickets and bags of concrete you need, plus the material cost.

Post holes & prices (optional)

How to Use the Fence Calculator

  1. Enter the length of each side of the fence. Click + Add side for more sides.
  2. Enter the fence height, post spacing, number of gates and gate width.
  3. Enter your picket width and the gap between pickets. Use a gap of 0 for a solid privacy fence.
  4. Check the post hole size and add prices to see the total material cost.

Fence Material Formulas

Sections = Fence length (minus gates) ÷ Post spacingRound up to a whole section
Posts = Sections + 1 + Number of gatesEach gate needs its own post on the far side. Add a post for each extra corner.
Pickets = Fence length (inches) ÷ (Picket width + Gap)A 5.5 in picket with a 0.5 in gap covers 6 in of fence

Example: 150 ft Wood Privacy Fence

Fence: 150 ft, 6 ft high, posts every 8 ft, one 4 ft gate

Length minus gate: 146 ft, so 146 ÷ 8 = 18.25, rounded up to 19 sections

Posts: 19 + 1 + 1 gate = 21 posts; Rails: 19 × 3 = 57 rails

Pickets: 146 × 12 ÷ 6 = 292, plus 5% = 307 pickets

Concrete: 21 holes, 10 in wide × 24 in deep, about 52 bags of 50 lb fast-setting concrete

Fence Post Spacing and Depth Guide

Fence heightTypical post spacingRails per section
3–4 ft6–8 ft2
5–6 ft6–8 ft3
8 ft6 ft (often closer)3–4

A common rule is to set posts about one third of their length in the ground, and at least below the frost line in cold climates. Holes are often about three times the post width, so roughly 10–12 inches for a 4×4 post. Check local building codes, HOA rules and your property line before you dig, and call 811 to locate buried utilities.

Tips Before You Build a Fence

Fence Calculator FAQs

How many fence posts do I need?

Divide the fence length (minus gate openings) by the post spacing and round up to get the number of sections. Add 1 post to close the run and 1 extra post for each gate. A 150 ft fence with posts every 8 ft and one 4 ft gate needs about 21 posts.

How far apart should fence posts be?

Most wood fences have posts 6–8 feet apart, measured center to center. Taller fences, windy areas and heavy materials usually need closer spacing.

How many pickets do I need per foot of fence?

Divide 12 inches by the picket width plus the gap. With 5.5 inch pickets and a 0.5 inch gap, each picket covers 6 inches, so you need 2 pickets per foot of fence.

How much concrete do I need per fence post?

It depends on the hole size. A 10 inch wide, 24 inch deep hole with a 4×4 post needs about 0.92 cubic feet of concrete, or roughly 2.5 bags of 50 lb fast-setting concrete. Check the yield printed on the bag you buy.

How deep should fence posts be?

A common rule is to bury about one third of the post length, for example about 2–3 feet for a 6 ft fence. In cold climates, posts should go below the frost line. Always follow local building codes.

Scroll to Top