Fence Calculator

Calculate the total materials needed for a fence project including posts, rails, pickets, and concrete. Enter your fence dimensions and style to get a complete material list.

TOTAL POSTS NEEDED
--
Pickets (1x6)
--
Rails (2x4)
--
Concrete Bags
--
Est. Cost
--

What is a Fence Calculator?

A fence calculator helps homeowners and contractors determine the exact quantity of materials needed for a fencing project. Building a fence involves multiple components -- posts, rails, pickets or panels, concrete for post setting, fasteners, and sometimes gate hardware. Under-ordering means project delays and additional delivery costs, while over-ordering wastes money and leaves you with unused lumber.

This calculator uses standard construction practices to estimate the number of posts based on your spacing preference, the number of horizontal rails and pickets based on the total fence length, and the amount of concrete needed to set each post securely in the ground. It also accounts for gates, which require their own posts and hardware.

Fence Material Formulas

Posts = (Total Length ÷ Post Spacing) + 1 + (Gates × 1)
Rails = Number of Sections × Rails per Section
Pickets = Total Length ÷ (Picket Width + Gap)

Each gate requires an additional post for proper hinging. The standard gate width is 3-4 feet for pedestrian access and 10-12 feet for vehicle access. Rail lengths are typically 8 feet, so each section between posts requires the number of rails specified (2 or 3). Picket count assumes standard 1x6 dog-ear pickets (5.5 inches actual width) with a 0.25-inch gap.

Common Fence Types

Fence StyleHeightPost SpacingRailsCost/LF
Privacy (wood)6 ft8 ft OC3$15-25
Picket (wood)3-4 ft6-8 ft OC2$10-18
Split Rail3.5 ft8-10 ft OC2-3$8-14
Chain Link4-6 ft10 ft OC1 top rail$8-15
Vinyl Privacy6 ft6-8 ft OC2-3$20-35

Post Sizing Guide

Fence posts are the structural backbone of any fence. The most common size for residential privacy fences is 4x4 pressure-treated lumber. For fences over 6 feet tall, corners, and gate posts, upgrade to 6x6 posts for added strength. Post length should be the fence height plus the buried depth -- typically one-third of the total post length below ground, with a minimum of 24 inches in the ground for a 6-foot fence.

Fence HeightPost SizePost LengthHole DepthConcrete per Post
4 ft4x47 ft24-30"1 bag (50 lb)
6 ft4x49 ft30-36"2 bags (50 lb)
8 ft4x4 or 6x612 ft36-48"3 bags (50 lb)

Worked Example

A 150-foot privacy fence at 6 feet tall with 8-foot post spacing, 3 rails, and 1 gate:

Sections = 150 ÷ 8 = 18.75 → 19 sections
Posts = 19 + 1 + 1 (gate) = 21 posts
Rails = 19 × 3 = 57 rails (8 ft 2x4s)
Pickets = 150 ÷ (5.5 + 0.25) × 12 = 313 pickets
Concrete = 21 × 2 bags = 42 bags (50 lb)

At approximately $20 per linear foot for materials, this 150-foot fence would cost roughly $3,000 in materials alone. Labor for professional installation typically adds $15-30 per linear foot.

Frequently Asked Questions

How deep should fence posts be?

The general rule is to bury one-third of the total post length below ground. For a 6-foot fence using a 9-foot post, that means 3 feet in the ground. In cold climates, posts should extend below the frost line -- typically 36-48 inches. Check your local building codes for specific requirements in your area.

How many bags of concrete per fence post?

For a standard 4x4 post in a 10-inch diameter hole, use two 50-lb bags (or one 80-lb bag) of fast-setting concrete for a 6-foot fence. For 8-foot fences and gate posts, use three 50-lb bags per post. Pre-mixed concrete is convenient but ready-mix is more economical for projects with many posts.

Do I need a permit to build a fence?

Most municipalities require a building permit for fences over 6 feet tall, and many require permits for any fence. You must also verify your property lines with a survey, check for underground utilities by calling 811, and comply with setback requirements. HOA communities often have additional restrictions on fence style, height, and material.

How far apart should fence posts be?

Standard post spacing is 8 feet on center for most wood privacy fences using standard 8-foot rails. Some builders prefer 6-foot spacing for added rigidity, especially in areas with high winds. Vinyl fence panels are typically 6 or 8 feet wide and dictate the post spacing. Never exceed 10 feet between posts for any residential fence.