Skip to main content
constructionStandard Reference Formulas

Fence Calculator – Posts, Rails & Pickets

Estimate fence posts, horizontal support rails, and vertical pickets required for wood, vinyl, or chain link boundary fences.

4x4 Fence Posts
21 Posts
Every 8 feet
2x4 Horizontal Rails
60 Rails
2 rails per bay
Vertical Pickets
350 Pickets

How It's Calculated: The Exact Mathematical Formula

We display the exact algebraic formula used by our JavaScript engine so you can verify results manually.

Post, Rail & Picket Material Formula
Posts = ⌈Perimeter / Spacing⌉ + 1; Rails = (Posts - 1) × 2 or 3; Pickets = ⌈(Perimeter × 12) / Picket Width⌉

Estimates structural posts, 2x4 horizontal stringer rails, and vertical wood pickets for residential perimeter fencing.

Post Spacing:Standard 6 ft or 8 ft intervals

Step-by-Step Worked Examples

160 Linear Feet of Privacy Fence (8 ft spacing, 5.5 in pickets)Example #1

"Backyard wooden privacy fence installation."

Given Inputs:
Perimeter:160 ft
Spacing:8 ft
Picket:5.5 in
Calculation Steps:
  1. Posts = (160 / 8) + 1 = 21 posts
  2. Rails (2 per section) = 20 * 2 = 40 rails
  3. Pickets = (160 * 12) / 5.5 = 350 pickets
Final Output:21 Posts, 40 Rails, 350 Pickets

Important Considerations & Limitations

  • •Gate posts and terminal corner posts require additional corner bracing.

Frequently Asked Questions

Clear, practical answers to common questions about this calculation.

Posts should be buried at least 1/3 of their total height (e.g. 24 to 30 inches deep for a 6 ft privacy fence) and below the local frost line.

Related Calculators & Converters