HomeCalcTool

Fence Calculator

Calculate fence posts, pickets, rails, and concrete bags for wood privacy, picket, or board-on-board fences. Get a complete material list instantly.

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 fills a standard 8-inch diameter hole at 24-inch depth; deeper or wider holes require 3 bags).

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 fills a standard 8-inch diameter hole; use three bags for 10-inch diameter holes or holes deeper than 30 inches.

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 for a standard 8-inch hole; three bags for a 10-inch hole or deeper installations. Costs about $6 to $9 per post at two bags. Total concrete cost for a 14-post fence: around $90 to $130. 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 fills a standard 8-inch diameter hole. For a 10-inch hole or a hole deeper than 30 inches, use 3 bags of 60-lb. For a 4×6 post in a 12-inch hole, use 4 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.
How do I calculate the cost of a wood fence? +
Break the estimate into five line items: posts, concrete, rails, pickets, and hardware. Quick estimates: posts at $15 to $20 each, 2 bags concrete per post at $9 each, rails at $0.80 to $1.20 per linear foot, pickets at $1.50 to $3.50 each. For a 100-foot privacy fence: 14 posts ($210) + 28 concrete bags ($252) + 300 LF rail ($270) + 343 pickets ($857) + $100 hardware = roughly $1,690 in materials. Use the calculator counts and your local lumber yard prices for a precise budget.
What is the cheapest type of wood fence? +
Pressure-treated pine is the least expensive wood fencing material at $6 to $10 per linear foot DIY. Cedar costs 20 to 40 percent more than treated pine but naturally resists rot without chemical treatment. For a budget fence, use pressure-treated pine pickets with UC4B treated posts. Always use ground-contact rated (UC4B) posts regardless of picket material; this is the most important durability decision in any wood fence project.
Do I need a permit to build a fence? +
In most US jurisdictions, a permit is required for fences over 6 feet tall and often for any fence in the front yard. HOAs may restrict height, style, or materials separately from local codes. Call your local building department before buying materials; a $50 to $100 permit is far cheaper than removing non-compliant sections after installation. Some cities require permits for any fence; others exempt fences under 6 feet entirely. Always check before starting.
How long does it take to build a fence? +
A 100-foot fence with 14 posts typically takes 2 to 3 days for one or two people. Day 1: dig and set all post holes, plumb and brace posts. Day 2: after concrete cures overnight, install rails and boards. Gates add 1 to 2 hours each. Fence contractors typically install 100 to 150 feet per day with a two-person crew. The longest wait is the concrete cure time: fast-setting concrete holds posts in 20 to 40 minutes, but a full 24-hour cure before loading is best practice.
How do I build a wood fence? +
Basic sequence: mark post locations, call 811 to check for buried utilities, dig holes to the correct depth (1/3 of total post length, below frost line), set corner posts first with a string line between them to guide the rest, set line posts at your spacing, let concrete cure 24 to 48 hours, then install rails and pickets. Use a level at every post and a chalk line or string for consistent picket height. For a 100-foot fence with 14 posts, allow 2 to 3 days total.

Related Calculators