This free fence calculator estimates every material you need for a wood fence project: posts, rails, pickets, concrete bags, and fasteners. Enter your fence dimensions below to get a complete takeoff with waste-adjusted quantities.
- Select your fence style at the top. Privacy fences use 0-inch picket spacing. Spaced picket fences use 1.5 to 3 inches between boards. Board on board fences overlap pickets on alternating sides.
- Enter your total fence length in feet. Measure each straight run separately between corners and add them up. A backyard with three sides of fencing at 40 ft, 60 ft, and 40 ft equals 140 linear feet.
- Set post spacing. Use 8 ft for most wood privacy fences. Use 6 ft in windy areas or for fences taller than 6 ft. Shorter spacing means more posts but a sturdier fence.
- Enter fence height and rails per section. Use 3 rails for fences 6 ft or taller. Two rails work for 4 ft picket fences.
- Set picket width and spacing. Standard fence boards are 5.5 inches wide (sold as nominal 6-inch). Use 0-inch spacing for a tight privacy layout.
- Add gate count and total gate opening width. The fence calculator subtracts gate openings from picket count but adds 2 extra posts per gate for the frame.
- Click "Calculate fence materials" to see your complete material list.
Pro tip: Keep the 10% waste factor for cutoffs, warped boards, and knots. On my last 150 ft privacy fence build, I used 12% waste and still pulled from the spare pile for two replacements within the first year.
Measuring tips for accurate fence estimates
Measure every fence run separately with a tape measure or laser tool. Do not estimate perimeter from your lot size because lot dimensions rarely match the fenceable area after setbacks and property line adjustments. Walk the fence line and flag each post location, especially at corners and gate openings.
Mark gate positions before measuring. A standard single walk gate is 3 to 4 ft wide. A double drive gate for vehicles is 10 to 12 ft wide. Subtract these openings from your total fence length for the picket count, but remember each gate adds 2 extra posts.
Assumptions and limitations
This fence calculator assumes straight fence runs on level ground. Sloped yards need stepped or racked panels, which change post height and picket count. Corners require extra posts not accounted for by the basic spacing formula. Add 1 post per corner turn.
Post depth assumes 36 inches, which meets most building codes above the frost line. In cold climates (USDA zones 3-5), your local code may require 42 to 48 inches. Always check with your building department before digging. Use ground-contact rated (UC4B) pressure-treated posts for any buried wood. Above-ground rated lumber rots within 2 to 3 years when set in concrete.
Cost estimates reflect 2026 national averages for materials plus professional labor ($15 to $30 per linear foot installed). DIY material-only cost runs roughly $5 to $12 per linear foot depending on lumber species and fence height.
Fence style comparison
| Style | Picket spacing | Privacy level | Boards per 100 ft |
|---|---|---|---|
| Privacy (dog ear) | 0 in | Full | 219 boards |
| Spaced picket | 2 in | Low | 160 boards |
| Board on board | 1.5 in overlap | Full | 300 boards |
| Shadowbox | 3.5 in gap | Partial | 267 boards |
| Split rail | No pickets | None | 0 boards |