How to Use the Wood Fence Calculator
Use Simple for a straight run or Advanced layout for connected runs and gate openings. Measure each run from the center of one end post to the center of the other. Gate openings instead use the clear distance between the inside faces of their two posts. Enter actual post and picket widths, the maximum center-to-center post spacing, rails per bay and the length of the stock rail boards.
Choose a privacy or picket style to start with an illustrative gap, then edit it to suit your materials. Enter a waste percentage for pickets and rails. Enable concrete or fasteners only if you want those quantities included. Prices are optional and remain in USD when switching between Imperial and Metric.
The tool estimates vertical boards between posts and horizontal rails between posts. It does not choose a safe design, generate a cutting plan or size the posts or foundations. The sample dimensions are for explaining the calculation, not installation recommendations.
How Many Fence Posts Do I Need?
For a straight run, divide the center-to-center length by the maximum spacing and round up to get the number of bays. Add one post. For example, 100 ft divided by 8 ft yields 12.5, so the layout has 13 bays and 14 posts. The bays are distributed evenly: approximately 7.6923 ft on center.
For several runs, calculate the bay count separately. At a shared end, count the same post once. A gate opening connects two posts but adds no regular fence bay. A closed sequence shares the first and last post.
How Many Fence Pickets Do I Need?
Subtract the actual post width from each bay’s center-to-center spacing to find the space between the posts. Divide that clear width plus the target maximum gap by the actual picket width plus the gap, then round up to a whole board. Multiply by the number of bays for that run, and add the run quantities.
The extra gap in the numerator accounts for the absence of a gap beyond the last picket. The last board may require ripping and the final gap may need adjustment. The calculation estimates stock counts, not equal decorative spacing or a cut list. If your pickets cover the fronts of the posts, the model does not describe that installation.
How Many Fence Rails Do I Need?
Multiply the regular bay count by the number of rails you plan to use in each bay. Every rail requires one stock board that is long enough to span the clear bay. The tool does not join short boards or reuse offcuts. Purchased length includes waste and unused ends; installed length measures the actual spans.
Choose the rail count and connection details separately based on your materials, the design and local requirements.
How to Calculate Concrete for Fence Posts
Enable the optional concrete estimate and enter a hole diameter, the actual concrete fill depth and the finished volume provided by one bag. The model assumes identical cylindrical holes and square posts extending through the fill depth. It subtracts the post’s volume before multiplying by the total post count.
Enter the product’s yield rather than guessing from the bag weight. For example, the QUIKRETE Concrete Mix No. 1101 product page links to technical information; its published data sheet gives about 0.60 ft³ (17 L) for an 80 lb bag of that specific mix. Other mixes or sizes may differ.
The hole diameter must exceed the diagonal of the square post. Depth and diameter are inputs, not dimensions selected by the calculator. Gravel, irregular holes and extra allowance are excluded.
Wood Fence Calculator Formulas
Use one consistent length unit. Let L be the length of an individual run, S the maximum post spacing, P actual square post width, B actual picket width, G the maximum target gap, R the rails per bay and W the waste percentage.
- Bays per run = ceil(L / S).
- Actual spacing = L / bays per run.
- Clear bay width = actual spacing − P.
- Pickets per bay = max(1, ceil((clear bay width + G) / (B + G))).
- Base pickets = sum of bays × pickets per bay for each run.
- Base rails = total regular bays × R.
- Open layout posts = total regular bays + gate openings + 1.
- Closed layout posts = total regular bays + gate openings.
- Extra pickets = ceil(base pickets × W / 100).
- Extra rails = ceil(base rails × W / 100).
For a gate with clear width A, the center-to-center length is A + P. Add these lengths to the fenced runs for total layout length. Outer end post overhangs are excluded.
For hole diameter D and concrete depth H, the net concrete volume per hole is (π × D² / 4 − P²) × H. Total volume equals that result times the number of posts. Bags equal the total volume divided by the bag yield, rounded up once after summing all holes.
Picket fasteners equal base pickets × R × fasteners per picket-to-rail connection. Rail fasteners equal base rails × 2 × fasteners per rail end. Spare lumber and gates do not receive fasteners in this model.
Wood Fence Calculation Example
For a 96 ft straight run, use 8 ft maximum spacing, a 3.5 in square post, 5.5 in actual picket width, no gap, three rails per bay, 8 ft stock rails and 10% lumber waste.
- Bays: ceil(96 / 8) = 12.
- Posts: 12 + 1 = 13.
- Clear bay width: 96 − 3.5 = 92.5 in.
- Pickets per bay: ceil(92.5 / 5.5) = 17.
- Base pickets: 12 × 17 = 204; extra pickets: ceil(20.4) = 21.
- Base rails: 12 × 3 = 36; extra rails: ceil(3.6) = 4.
Shopping list: 13 posts, 225 pickets and 40 rail stock boards.
Installed rail length is 277.5 linear ft. Purchased stock length is 320 linear ft, including waste and unused ends.
With identical settings on a 100 ft run, there are 13 bays, 14 posts, 221 base pickets and 244 pickets with waste. There are 39 base rails and 43 stock rails with waste.
If you choose 12 in diameter holes, 24 in of concrete fill and 0.60 ft³ yield per bag in the 96 ft example, the net volume is about 18.21 ft³ for all 13 holes. Round up to 31 bags. This is a mathematical example, not a footing recommendation.
Fence Layouts, Corners and Gate Openings
Enter each straight section separately. A 48 ft run, a 4 ft clear gate opening and another 48 ft run produce 12 regular bays and one gate opening at the sample spacing. The open sequence needs 14 posts. The total center-to-center layout length is 100 ft 3.5 in, but no pickets or rails are allocated to the gate opening.
For four connected 8 ft runs in a closed loop, the first and last post are the same. At the default dimensions and without waste, this means four posts, four bays, 68 pickets and 12 rails.
Advanced layout is a sequence of connections. It does not determine angles, property lines, slope, gate swings, whether a loop closes geometrically or whether gate posts need a different size. Adjacent gate openings sharing a single post are not modeled. A closed sequence requires at least three regular runs.
Privacy Fence vs. Picket Fence
A privacy fence commonly uses close-set boards; a picket fence uses intentional spaces. Choose the actual width and target maximum gap for your chosen product. Presets merely change the illustrative gap.
For a 10 ft center-to-center run, 8 ft maximum spacing yields two 5 ft bays. With 3.5 in posts, each clear bay is 56.5 in. With 5.5 in pickets and a 0.5 in target gap, ceil((56.5 + 0.5) / 6) = 10 pickets per bay, or 20 before waste.
The calculator does not assess privacy performance, wood movement, minimum clearance, ventilation, child safety, wind resistance or installation spacing requirements.
Wood Fence Material Cost
Enter a unit price for each material you intend to buy. The total includes the purchased pickets and rails with their respective waste quantities. Post, concrete and fastener quantities have no automatic extra allowance. Blank prices are excluded and clearly labeled; a price of zero is treated as an explicit zero.
For the 96 ft example, at $18 per post, $3 per picket and $8 per rail stock board, the estimated lumber cost is $1,229.00. If you enable concrete or fasteners and leave their prices blank, the result becomes a partial subtotal.
Labor, gate leaves and hardware, delivery, tax, finishing, demolition and other materials are not included. Check prices and actual stock availability before ordering.
Nominal vs. Actual Lumber Dimensions
A nominal 4×4 is a trade size, not a promise that every post measures exactly four inches square. Standard dressed dry softwood dimension lumber has minimum dressed dimensions under PS 20-25, American Softwood Lumber Standard, Table 3. Green lumber and some species have different provisions.
A fence picket may have product-specific dimensions. Use a measured width or the manufacturer’s specification instead of assuming a nominal width. See the Lumber Sizes Reference for common standard dimensions.
Common Fence Material Calculation Mistakes
- Measuring outer-to-outer rather than center-to-center without converting the dimension.
- Using one rounded bay count across disconnected or differently oriented runs.
- Counting a shared corner post twice.
- Deducting a gate opening from board coverage but forgetting its boundary posts.
- Using nominal board width or adding an exterior gap after the last board.
- Ordering rail stock shorter than the clear span.
- Applying lumber waste to concrete bags or fasteners automatically.
- Using the wrong bag yield or counting gravel depth as concrete.
- Treating an unpriced material as free.
Frequently Asked Questions
How many pickets do I need for a 100-foot fence?
With the illustrative settings above, 244 pickets including 10% waste. Other widths, gaps, post sizes and layouts change the count.
How many posts do I need for a wood fence?
An open straight run needs one more post than bays. A connected closed sequence shares its first and last post. Gate openings add a connection but no regular rail-and-picket bay.
How is fence post spacing calculated?
The number of bays is rounded up from run length divided by maximum center-to-center spacing. The run is then divided into equal bays. This is a geometric allocation, not a structural spacing recommendation.
How many rails do I need per fence section?
Enter your planned rail count per section. The calculator multiplies it by the bay count; it cannot decide how many rails your particular fence needs for safety.
How do gate openings affect material quantities?
Enter the clear opening as a separate segment. Adjacent runs share the opening’s boundary posts. No gate leaf, brace or gate hardware is included.
How many bags of concrete do I need per fence post?
It depends on hole diameter, fill depth, post size and the actual bag yield. The optional concrete estimate subtracts the post volume and rounds the combined quantity of bags up once.
Should I use nominal or actual picket width?
Use the actual face width. Nominal sizes and product labels may differ from the dimension you measure.
Can I calculate a fence with corners?
Yes, by entering the connected runs in Advanced layout. The tool counts shared posts but does not calculate angles or site geometry.
How much extra lumber should I buy?
Choose a waste allowance based on your material quality and cutting plan. The example uses 10% for demonstration only; the tool adds whole spare pickets and rail stock boards.
Does this calculator include gate materials?
Only the modeled boundary posts. Gate leaves, their wood, hinges, latches, braces and special posts need separate planning.
Does the calculator determine building-code compliance?
No. Verify the design, materials, footing dimensions, property boundaries and applicable local requirements separately. Before excavating in the United States, contact your local 811 service and follow its instructions.
Calculation Limitations and Sources
The geometry assumes identical square posts, straight runs with equal bays, vertical boards within clear bays, one stock board per rail, and identical holes if concrete is included. It excludes prefabricated panels, horizontal boards, overlapping boards, shadowbox fences, slope adjustments, joinery, offcut optimization, post length, and foundation or connection design.
The formulas are geometric derivations. For practical planning context see Lowe’s wood fence planning guide and post, rail and picket installation overview. The QUIKRETE Concrete Mix data sheet provides product-specific yield information. For excavation safety in the US, see the Utility Safety Alliance homeowner guidance and follow the instructions of your own state’s 811 center.
Explore the Board Foot Calculator for lumber volume, Deck Board Calculator for straight decking, or the Calculators Directory for all five tools.