HomecalcTool

Fence Calculator

Calculate posts, pickets, rails, and concrete for any wood fence. Get a complete material list in seconds.

Price per Linear Foot (optional)

$

Contractors quote installed fencing per linear foot. Enter your quote for a total cost estimate.

How to Use This Calculator

Enter your total fence length in feet: this is the full perimeter run you want to fence, not individual sides. Set post spacing: 8 feet is standard for most wood fences. Use 6 feet for shorter fences or soft ground. Set rails per section: 2 for fences under 5 feet, 3 for 6-foot privacy fences. Enter picket width in inches: a dog-ear cedar or pressure-treated picket is typically 3.5 inches for a 1×4, or 5.5 inches for a 1×6. Set gap to 0 for a privacy fence with no gaps. For a picket fence with spacing, enter the gap width (typically 1 to 3 inches). For board-on-board fencing where boards overlap, enter a negative gap (overlap amount). Use the quick-pick buttons for common fence styles.

How to Calculate Fence Materials

Formulas: Posts = (Fence Length / Post Spacing) rounded up, plus 1 end post. Pickets = (Fence Length in inches) / (Picket Width + Gap) rounded up. Rail linear feet = Fence Length × Number of Rails. Concrete bags = Posts × 2 (two 60-lb bags per post, standard for 10-inch diameter hole at 30-inch depth).

Example: 100-foot privacy fence, 8-ft post spacing, 3 rails, 3.5-inch boards, no gap. Posts = ceil(100 / 8) + 1 = 14 posts. Pickets = ceil(100 × 12 / 3.5) = 343 pickets. Rail feet = 100 × 3 = 300 linear feet. Concrete = 14 × 2 = 28 bags.

For board-on-board, enter a negative gap. With 5.5-inch boards and a 1-inch overlap (gap = -1): Pickets = ceil(100 × 12 / (5.5 - 1)) = ceil(1200 / 4.5) = 267 boards. Board-on-board uses fewer boards than tight-spaced privacy fencing at the same board width.

Fence Tips

Dig post holes deep enough. Industry standard: 1/3 of total post length in the ground, plus 6 inches below the frost line in cold climates. For a 6-foot fence you need 9-foot posts: 3 feet underground, 6 feet above grade. In frost-prone regions, add the local frost depth to the in-ground portion. Contact your local building department for the frost depth in your area.

Use ground-contact rated pressure-treated lumber for any post section that goes underground. Look for UC4B or UC4A treatment ratings on the tag. Standard deck-grade pressure-treated lumber (UC3B) is rated for above-ground use only and will rot much faster in direct soil contact. The treatment rating is printed on a tag stapled to the post.

Space posts consistently for visual uniformity. Measure from corner post to corner post and divide evenly rather than letting the last section be a short stub. For a 100-foot run at 8-foot spacing, the last section would be 4 feet; adjust to 7.7-foot spacing for uniform sections. Most people never notice the difference from the street.

For concrete in post holes, use fast-setting concrete (Quikrete Fast-Setting or Sakrete) poured dry into the wet hole and soaked with water. No mixing required. Sets in 20 to 40 minutes so posts stay plumb while you work. Two 60-lb bags per post handles a standard 10-inch diameter hole at 30-inch depth.

What to Buy

For post material: 4×4 pressure-treated posts rated UC4B (ground contact) in 8-foot or 10-foot lengths. For a 6-foot fence, use 9-foot posts. Home improvement stores stock 8-foot and 10-foot; order 9-foot from a lumber yard if needed or cut 10-foot posts.

For rail material: 2×4 pressure-treated lumber cut to your section length. Precut 8-foot 2×4s work for standard 8-foot post spacing. For custom spacing, buy 10-foot or 12-foot boards and cut to length.

For pickets: dog-ear cedar or pressure-treated pine pickets sold in 6-foot lengths. Cedar costs more but takes stain well and resists rot naturally. Pressure-treated pine is cheaper and durable. Avoid using untreated pine for exterior fence pickets.

For concrete: two 60-lb bags of fast-setting Quikrete or Sakrete per post. Costs about $6 to $9 per post. Total concrete cost for a 14-post fence: around $90 to $130 in concrete alone. This is the cheapest part of the fence and not worth skimping on.

Frequently Asked Questions

How many posts do I need for my fence? +
Formula: Posts = (Fence Length / Post Spacing) rounded up to the nearest whole number, plus 1 for the final end post. For a 100-foot fence at 8-foot spacing: ceil(100 / 8) + 1 = 13 + 1 = 14 posts. Corner posts count separately. If your fence turns a corner, add 1 post per inside corner and 1 per outside corner.
How many pickets do I need for a 100-foot fence? +
It depends on picket width and gap. For a privacy fence with 3.5-inch boards and no gap: 100 ft × 12 in / 3.5 in = 342.9, rounded up to 343 pickets. For a picket fence with 2.5-inch boards and 1.5-inch gap: 100 × 12 / (2.5 + 1.5) = 300 pickets. For board-on-board with 5.5-inch boards overlapping 1 inch: 100 × 12 / (5.5 - 1) = 267 boards.
How deep should fence posts be in the ground? +
The standard rule is 1/3 of total post length in the ground, plus 6 inches below the local frost line. For a 6-foot fence, you need 9-foot posts: 3 feet in the ground, 6 feet above grade. In areas where the frost depth is 24 inches, you need 3 feet + 6 inches = 42 inches (3.5 ft) in the ground, which means 9.5 to 10-foot posts for a 6-foot fence. Check local building code for your frost depth.
How much concrete do I need per fence post? +
Two bags of 60-lb fast-setting concrete per post is the standard for a 4×4 post in a 10-inch diameter hole at 30-inch depth. For a 4×6 post in a 12-inch hole: use 3 bags of 60-lb. For a deeper hole (36 inches) in frost country, increase to 3 bags of 60-lb. Using fast-setting dry-pour concrete means you pour the dry powder into the wet hole and add water on top; no mixing needed.
What is the standard spacing between fence posts? +
8 feet on-center is the industry standard for wood privacy and picket fences. Shorter spacing (6 feet) is used for heavy fences, chain link fences, or in areas with high wind loads. Spacing wider than 8 feet increases rail sag, especially on 6-foot tall fences with 2×4 rails. Pre-made fence panels come in 6-foot and 8-foot widths and dictate 6-foot or 8-foot post spacing.
How many rails does a 6-foot privacy fence need? +
A 6-foot privacy fence needs 3 horizontal rails: one near the top (6 inches down), one in the middle (3 feet up), and one near the bottom (6 inches up). Two rails are only sufficient for fences 4 feet and under. Three rails prevent warping and bowing of tall picket fences over time. Some builders add a fourth rail mid-height for 8-foot fences.
What is a board-on-board fence and how does it affect picket count? +
Board-on-board fencing alternates pickets on both sides of the rails, with each board overlapping the adjacent board by 1 to 2 inches. This creates a shadow pattern and allows airflow. Because boards overlap, you need more boards than a solid privacy fence: for 5.5-inch boards with 1-inch overlap, effective coverage per board = 4.5 inches. For 100 linear feet: 100 × 12 / 4.5 = 267 boards per side of the rails. Board-on-board typically uses 15 to 20 percent more material than a standard privacy fence.
How much does a wood fence cost per linear foot? +
A professionally installed 6-foot cedar privacy fence costs $15 to $35 per linear foot, including posts, concrete, rails, pickets, and labor. A DIY install using pressure-treated pine costs $6 to $14 per linear foot in materials. Chain link fence runs $8 to $18 per linear foot installed. Prices vary by region, material cost, and fence height. Get at least two contractor quotes for projects over 100 linear feet.

Related Calculators