Calculate how many posts, rails, pickets, or pre-built panels you need for your fence project. Enter the total linear feet, post spacing, and fence style.
Perimeter of the area to fence
Add 5-10% extra for waste and miscalculation. Account for gate openings in your total linear feet if they require separate post pairs.
Choose the fence style - picket/board for individual planks, or panels for pre-assembled 6-8 ft sections
Measure and enter the total linear feet (perimeter) of your fence run, excluding gate openings
Select post spacing, number of rails, and (for picket fences) picket width and gap
Click Calculate to see posts, rails, pickets or panels, and gate count
The number of fence sections equals linear feet divided by post spacing, rounded up. Posts are one more than sections (a fence with 3 sections needs 4 corner/end posts). Pickets are calculated from their combined face width plus gap, converted to feet.
Backyard: 120 linear ft, 8 ft post spacing, 3 rails, 3.5 in pickets with 0.5 in gap
Sections = ⌈120/8⌉ = 15 | Posts = 16 | Rails = 45 | Pickets = ⌈120 ÷ (4/12)⌉ = 360
Result: 16 posts, 45 rails, 360 pickets
Side yard panels: 40 linear ft, 8 ft post spacing, 2 rails, 8 ft panels
Sections = ⌈40/8⌉ = 5 | Posts = 6 | Rails = 10 | Panels = ⌈40/8⌉ = 5
Result: 6 posts, 10 rails, 5 panels
Privacy fence: 80 linear ft, 6 ft post spacing, 4 rails, 5.5 in boards (no gap)
Sections = ⌈80/6⌉ = 14 | Posts = 15 | Rails = 56 | Pickets = ⌈80 ÷ (5.5/12)⌉ = 175
Result: 15 posts, 56 rails, 175 boards
Always call 811 before digging to have underground utilities marked. Hitting a buried gas or electrical line is a serious safety hazard. This free service is required by law in the US and most countries have a similar service.