Quick Answer
A 100-foot fence with 8-foot post spacing, 8-foot panels, 6-foot height, and one 4-foot gate requires 15 posts, 12 panels, and 36 rails.
Common Examples
| Input | Result |
|---|---|
| 100 ft, 8 ft spacing, 8 ft panels, 6 ft tall, 1 gate | 15 posts, 12 panels, 36 rails |
| 150 ft, 8 ft spacing, 8 ft panels, 6 ft tall, 2 gates | 22 posts, 18 panels, 54 rails |
| 200 ft, 8 ft spacing, 6 ft panels, 6 ft tall, 0 gates | 26 posts, 34 panels, 102 rails |
| 50 ft, 6 ft spacing, 6 ft panels, 4 ft tall, 1 gate | 11 posts, 8 panels, 16 rails |
| 80 ft, 8 ft spacing, 8 ft panels, 6 ft tall, 0 gates | 11 posts, 10 panels, 30 rails |
How It Works
The Formulas
Fenceable Length = Total Length - (Number of Gates x Gate Width)
Gate openings are subtracted from the total length because those sections are filled by gates, not panels.
Posts = ceil(Fenceable Length / Post Spacing) + 1 + (Gates x 2)
You always need one more post than the number of sections (like how a 3-section fence needs 4 posts). Each gate requires two additional posts (one on each side of the opening).
Panels = ceil(Fenceable Length / Panel Width)
Panels fill the spaces between posts. If the panel width matches the post spacing, the number of panels equals the number of sections.
Rails = Panels x Rails per Section
Horizontal rails run between posts and support the fence boards or panels. Fences up to 4 feet tall typically use 2 rails per section. Fences taller than 4 feet use 3 rails for structural stability.
Post Length
Fence posts are typically buried one-third of their total length in the ground, or at least 2 feet deep. For a 6-foot fence, posts are usually 8 feet long (6 feet above ground plus 2 feet buried). For areas with frost, posts are set below the frost line, which may require 3 feet or more of buried depth.
Materials Overview
Common fence types include wood privacy (dog-ear or flat-top), wood picket, vinyl, chain link, and aluminum. This calculator provides a general material count suitable for wood fence construction. Vinyl and metal fences may use different panel configurations.
Worked Example
For a 150-foot fence with 8-foot post spacing, 8-foot panels, 6-foot height, and 2 gates (4 feet wide each): Fenceable length = 150 - (2 x 4) = 142 feet. Posts = ceil(142 / 8) + 1 + (2 x 2) = 18 + 1 + 4 = 23 posts. Panels = ceil(142 / 8) = 18 panels. Rails per section = 3 (since the fence is 6 feet tall, more than 4 feet). Rails = 18 x 3 = 54 rails.
CalculateY