Skip to content

Fence Calculator

Outdoor Projects

Fence measurements

Updates as you type

The whole run. Measure each straight leg and add them up.

Above ground. The buried length is added for you.

6–8 ft is normal. Closer where the wind gets at it.

Rails per section

3 rails

Roughly one rail per 24 in of height — the 6 ft standard.

Picket size

1 × 6 picket · 5½ in face

The usual privacy board.

Gap between pickets

Butted tight — privacy

Boards touch. They will still open up as they dry.

Using your measurements

1,200 in ÷ 5.5 in = 219 pickets

Measurement system

Estimates only — confirm against your supplier’s product.

Pickets

219pickets

Suggested order · 10% extra

241 pickets

Posts · 4 × 4
14
Fence sections
13
Post length
8 ft
Post hole depth
2 ft
Rails · 2 × 4
39
Rail lumber
300 linear ft
Concrete for posts
14.5 ft³
60 lb concrete bags
33
80 lb concrete bags
25
Exterior screws
1,470

6 ft fence · posts every 8 ft, set 2 ft deep · 3 rails per section · 1 × 6 pickets butted tight

Estimate cost
Base cost on

Estimated order cost—

Each line is priced on the quantity beside it; where one line replaces another, the total counts the cheaper. Fasteners and hardware are not in this total.

Measurements in, purchasing amount out

How the Fence Calculator works

This tool counts units of a product rather than cubic yards, so the answer depends on the piece size you actually buy. Change the selection and the figure changes with it. The suggested order adds the waste allowance shown beside it, as its own number rather than a multiplier you have to apply.

Using your measurements

1,200 in ÷ 5.5 in = 219 pickets

Assumption: 6 ft fence · posts every 8 ft, set 2 ft deep · 3 rails per section · 1 × 6 pickets butted tight

Same job, next question

What else this job needs

The full breakdown

How to calculate fence materials — posts, rails, pickets, concrete, and costs

The fence calculator above works out a wood fence takeoff: 4 × 4 posts, 2 × 4 rails, pickets, post-hole concrete in 60 or 80 lb bags, exterior screws, and the material cost once you enter prices. It handles a privacy fence with butted boards, a spaced picket fence, and a board-on-board fence with overlapping boards on both faces. For a vinyl or chain-link run, the post count, post length, and hole depth still apply if you set the post spacing to the panel width or line-post spacing; the picket, rail, and screw figures are for wood.

A standard fence takeoff begins by establishing total linear perimeter run and determining post spacing. Posts are typically spaced 6 to 8 feet on-center (o.c.). An 8-foot post spacing is the residential standard for 6-foot privacy fences, while 6-foot spacing is recommended in high-wind regions, sloped yards, or for heavy shadowbox styles. The total number of posts equals: (Total Fence Length ÷ Post Spacing) + 1, plus additional posts for every corner, end, and gate opening.

Post hole depth and embedment are governed by structural leverage and regional frost depth. The rule of thumb the calculator uses is to bury one-third of the fence’s above-ground height, and never less than 2 ft (e.g., a 6 ft fence uses an 8 ft post set 24 inches deep). That is a minimum: in freezing northern climates, post footings must extend 6 inches below the local frost line (often 36 to 48 inches deep) to prevent winter frost heave from jacking posts out of alignment, so dig to whichever is deeper.

Horizontal rails (typically 2x4 pressure-treated lumber) provide structural backing for vertical pickets. Fences up to 4 ft tall require 2 rails; standard 6 ft privacy fences require 3 rails (top, middle, and bottom) to prevent picket bowing; and 8 ft fences require 4 rails. Picket counts depend on nominal board width (1x4 = 3.5 in face, 1x6 = 5.5 in face, 1x8 = 7.25 in face) and board spacing. Butted privacy pickets installed while pressure-treated and wet will naturally shrink by 1/8 to 1/4 inch as they season, creating subtle sightlines unless installed in an overlapping board-on-board pattern.

Fence styles, post spacing & material specifications

Reference dimensions for common residential fence systems. The calculator models the three wood styles at the top; the vinyl, chain-link, and aluminum rows are here for comparison.

FenceFence styles, post spacing & material specifications
6 ft Wood Privacy (1x6 Pickets)3 rails (2x4) · 4x4 posts @ 8 ft o.c. · ≈ 2.3 bags (60 lb) concrete/post · 24 in hole depth
6 ft Board-on-Board / Shadowbox3 rails (2x4) · 4x4 posts @ 6–8 ft o.c. · ~25% extra pickets for 1 in overlap
4 ft Spaced Picket (1x4 Pickets)2 rails (2x4) · 4x4 posts @ 8 ft o.c. · 2 in picket gap · 24 in hole depth
6 ft Vinyl / PVC PrivacyPre-routed 5x5 vinyl posts @ 8 ft o.c. · internal aluminum bottom rail stiffener
4–6 ft Chain Link GalvanizedTerminal posts 2-3/8" OD · Line posts 1-7/8" OD @ 10 ft o.c. · Top rail 1-3/8" OD
4–6 ft Ornamental Aluminum2x2 or 2.5x2.5 posts @ 6 ft o.c. · pre-assembled welded rackable panels

Step-by-step fence installation schedule and construction phases

Follow this sequence to ensure straight, plumb, sturdy, and storm-resistant fence lines.

Property Boundaries & 811 Locate
1–2 weeks before
Locate boundary survey pins, check local zoning/HOA setback rules, obtain permits, and call 811 for free underground utility marking.
Layout & Staking
Day 1
Drive batter boards/stakes at all corners and gate openings. Stretch a tight neon mason line 2 inches inside the boundary to establish true straight runs.
Digging Post Holes
Day 1–2
Auger or dig holes 8–12 inches in diameter to one-third of the fence height (24 in minimum) or below local frost depth, whichever is deeper. Tamp 3 inches of crushed gravel at the bottom for drainage.
Setting Posts & Pouring Concrete
Day 2
Set corner, end, and gate posts first; plumb with a 2-way post level and brace with 2x4s. Set line posts along string line. Pour concrete and slope top collar away from wood.
Installing Horizontal Rails
Day 3 (after 24–48h cure)
Fasten 2x4 rails flat or on-edge with 3-inch exterior structural wood screws or galvanized fence brackets, staggering rail joints across posts.
Hanging Pickets & Building Gates
Days 3–4
Attach vertical pickets 2 inches above bare ground using hot-dipped galvanized or stainless ring-shank nails. Frame gates with diagonal compression cross-bracing.
Staining & Sealing
Weeks 4–8
Allow pressure-treated lumber to dry until wood absorbs water droplets. Apply high-quality penetrating exterior oil stain and UV sealer.

Post hole concrete & material delivery planning

A standard 4x4 wooden post on a 6 ft fence, set in a 10.5-inch diameter by 24-inch deep hole, takes about 1.0 cubic foot of concrete: roughly 2.3 bags of 60 lb mix (or 1.7 bags of 80 lb mix). Corner, end, and gate posts bearing heavy tension or gate swing loads should be set in a 12-inch diameter by 36-inch deep hole, which takes about 2.1 cubic feet: roughly 4.7 bags of 60 lb mix (or 3.5 bags of 80 lb mix).

A standard wooden pallet holds 42 to 48 bags of 80 lb concrete mix (~3,360–3,840 lb) or 56 to 64 bags of 60 lb mix. Pallet delivery requires sturdy flatbed forklift access.

Common fence building mistakes to avoid

Setting post holes above the regional frost line

When moisture in frozen subsoil expands, ground frost grips shallow concrete footings and jacks posts upward by several inches. Always excavate post holes below your local municipality frost line.

Using above-ground rated lumber for buried posts

Lumber rated for Above Ground (UC3B) rots within 3 to 5 years when buried in damp soil. Always verify that wooden fence posts carry Ground Contact (UC4A) pressure-treatment certification.

Spacing posts wider than 8 feet apart

Spanning posts 9 or 10 feet apart causes horizontal 2x4 rails to sag under the dead weight of pickets and wind pressure, creating unsightly wavy fence lines and broken fasteners.

Resting pickets directly on damp soil or mulch

Installing pickets flush against the ground allows wood end-grain to wick soil moisture constantly, triggering fungal rot, insect infestation, and premature warping. Maintain a 2-inch ground clearance.

Building gates without diagonal compression bracing

Wooden gates naturally sag over time under gravity. Always install a diagonal cross-brace extending from the bottom hinge corner upward to the top outer latch corner (in compression) to maintain square geometry.

Frequently Asked Questions

Fence construction, materials, spacing & cost estimates

How to build a fence?

To build a sturdy fence: (1) Check property boundaries, local zoning laws, HOA rules, and call 811 for utility locates. (2) Stake corner and gate posts, stretching a mason line between them. (3) Dig post holes 8–12 inches wide and deep enough to bury one-third of the fence height, at least 24 inches (or below the frost line, whichever is deeper). (4) Add 3 inches of gravel for drainage, plumb posts, and pour concrete. (5) After concrete cures for 24–48 hours, install 2 to 3 horizontal 2x4 rails. (6) Attach vertical pickets 2 inches above ground level with galvanized screws or ring-shank nails. (7) Build and hang gates with heavy-duty hinges and diagonal bracing.

What is the formula for fencing?

The basic fencing formulas are: (1) Number of Posts = (Total Fence Length in ft ÷ Post Spacing in ft) + 1 + Corner/Gate Posts. (2) Number of Rails = Total Fence Sections × Rails per Section (2 for ≤4ft, 3 for 6ft, 4 for 8ft). (3) Number of Pickets = Total Fence Length in inches ÷ (Picket Width in inches + Gap in inches). (4) Concrete Bags = Number of Posts × Bags per Hole (about 2.3 bags of 60 lb mix per line post in a 10.5 in × 24 in hole; about 4.7 per corner, end, or gate post in a 12 in × 36 in hole).

How to estimate fence length?

To estimate fence length, use a 100-foot fiberglass measuring tape or a rolling measuring wheel to measure every straight boundary section where the fence will run. Add all straight segment lengths together and subtract the widths of any gate openings that will not use standard fence panels or pickets.

How much fencing is needed for 1 acre?

A square 1-acre property measures 208.71 feet on each side, requiring approximately 835 linear feet of fencing to enclose all four sides. Rectangular or irregular 1-acre parcels have larger perimeters (e.g., a 100 × 435.6 ft lot requires 1,071 linear feet of fence).

How much does a 6-foot privacy fence cost per foot?

A 6-foot wood privacy fence generally costs between $15 and $30 per linear foot for DIY materials, or $25 to $55 per linear foot professionally installed (including labor, concrete, posts, rails, pickets, and hardware). Pressure-treated pine sits at the lower end ($25–$38/ft installed), while premium western red cedar sits higher ($35–$55/ft installed).

How much does a fence cost?

Total fence installation costs typically range from $1,500 to $4,500 for small yards (100–150 linear feet) and $3,500 to $10,000+ for large yards (200–400 linear feet). Chain link is the most affordable ($12–$25/ft installed), wood privacy is mid-range ($25–$50/ft installed), and vinyl or ornamental aluminum are premium options ($35–$70/ft installed).

How to install a chain link fence?

To install a chain link fence: (1) Stake out the perimeter and dig 8-inch diameter post holes for terminal/corner posts (24–36 in deep) and line posts (18–24 in deep). (2) Set terminal posts (2-3/8" OD) and line posts (1-7/8" OD) in concrete spaced no more than 10 feet apart. (3) Attach terminal post bands, tension bands, and post caps. (4) Slide the top rail (1-3/8" OD) through loop caps on line posts and fasten into rail end caps. (5) Unroll chain link mesh, slide a tension bar through the first diamond, hook it to tension bands, stretch mesh taut with a fence come-along/stretcher bar, attach to opposite terminal post, and secure mesh to top rail and line posts with wire ties every 12–24 inches.

How to install a vinyl fence?

To install a vinyl (PVC) fence: (1) Lay out boundary lines and mark post locations exactly 8 feet apart (center-to-center). (2) Dig 10–12 inch wide holes 30–36 inches deep. (3) Set 5x5 vinyl posts in concrete, ensuring proper height, plumb, and square alignment. (4) Once concrete sets for 24–48 hours, slide pre-routed bottom horizontal vinyl rails into post routed holes and insert internal aluminum stiffeners. (5) Slide vertical tongue-and-groove vinyl pickets into the bottom rail channel. (6) Snap top horizontal rail over pickets into post routings, and glue decorative post caps on top.

How far apart should fence posts be?

Fence posts should be spaced 6 to 8 feet apart on-center for residential wood and vinyl privacy fences. Standard 8-foot spacing maximizes 8 ft or 16 ft 2x4 rail lumber efficiency. In high-wind areas or when using heavy shadowbox pickets, 6-foot spacing is strongly recommended to prevent sagging and rail breakage. Chain link line posts can be spaced up to 10 feet apart.

How much concrete per fence post?

For a standard 4x4 post on a 6 ft fence, in a 10.5-inch diameter by 24-inch deep hole, you need about 1.0 cubic foot of concrete: roughly 2.3 bags of 60 lb mix (or 1.7 bags of 80 lb mix). Corner posts, end posts, and gate posts in 12-inch diameter by 36-inch deep holes need about 2.1 cubic feet: roughly 4.7 bags of 60 lb mix (or 3.5 bags of 80 lb mix).

How to build a fence gate?

To build a sag-free fence gate: (1) Measure the rough opening between gate hinge and latch posts, and subtract 1 to 1.5 inches total for hinge and latch clearances. (2) Construct a rigid rectangular frame from 2x4 lumber using pocket holes or lap joints. (3) Install a diagonal 2x4 cross-brace running from the bottom hinge corner UP to the top latch corner (compression brace). (4) Fasten pickets to match the adjacent fence. (5) Mount heavy-duty galvanized or powder-coated strap hinges to the reinforced gate post, and install a gravity latch or lockable drop rod.

How to calculate the area of a fence?

To calculate fence surface area (for painting, staining, or material estimation), multiply total fence length by fence height: Area (sq ft) = Length (ft) × Height (ft). For example, a 150-foot-long, 6-foot-high fence has a single-face surface area of 900 sq ft (or 1,800 sq ft if painting/staining both front and back sides).

How many posts do I need for 100 ft of fence?

For a straight 100-foot fence with 8-foot post spacing, you need 14 posts: (100 ft ÷ 8 ft spacing = 12.5 sections → rounded up to 13 sections + 1 end post = 14 posts). With 6-foot post spacing, you need 18 posts (100 ÷ 6 = 16.6 → 17 sections + 1 = 18 posts). Add extra posts for separate gates and corners.

How many pickets does a board-on-board fence need?

Divide the fence length in inches by the picket width minus the overlap. The boards go on both faces of the rails, each one overlapping its neighbours on the other face, so a 100 ft run of 1 × 6 pickets (5½ in actual) with a 1 in overlap takes 1,200 ÷ 4.5 = 267 pickets, against 219 for the same fence butted tight. Pick the board-on-board gap option above and the calculator does this for you.