Fence Calculator
Calculate fence posts, rails and pickets from fence length, post spacing and picket width.
Your inputs
See the method ↓Enter quantities in the labelled units. Unit changes keep the entered number; calculate again.
Loading calculator… If this message remains, reload the page.
HOW THE CALCULATION WORKS
Transparent fence calculator method
- Sections = ceiling(fence length ÷ maximum post spacing), spaced evenly.
- Posts = sections + 1 + extra posts (corners, gate posts); rails = sections × rails per section.
- Pickets = ceiling(length in inches ÷ (picket width + gap) × (1 + waste ÷ 100)).
Worked example
150 ft at 8 ft max: 19 sections (7.89 ft each), 22 posts with 2 extra, 57 rails; 5.5 in pickets with 1/4 in gaps: 1,800 in ÷ 5.75 = 313.0; +5% = 329 pickets.
Defaults and assumptions
- Length, spacing and rails start blank. Extra posts, gap and waste default to 0. Pickets are optional.
- Changing a unit keeps and reinterprets the entered number; recalculate. Reset restores the displayed configuration defaults, including any explicitly named customer defaults. The example is demonstration data.
- Numeric inputs accept decimals, fractions, mixed numbers, grouped commas and scientific notation within 80 characters. Each field shows its supported range. Some tools accept negative values; required divisors must be nonzero or positive as stated. These bounds are not safe-use recommendations.
Limitations
- Straight runs only; enter extra posts for corners and gates and subtract gate widths from pickets if needed.
- Concrete, hardware and post depth are separate (see the fence post concrete calculator). Check local fence rules.
Precision and rounding
Supported arithmetic uses exact fractions. Formulas involving logarithms, trigonometry, statistical functions or simulations can use numerical approximations; storing an approximation as a fraction does not make it exact. Decimal display rounds to at most 6 fractional places, so very small values can appear as approximately zero. Time displays round to the nearest second where shown. Whole-item rounding follows the stated formula.
Sources
Use the assumptions, worked example and sources to interpret your result. Estimates do not replace professional advice.
How to use this calculator
- Enter the measured quantities in the labelled units; inspect any named customer defaults.
- Check the units, dates and selected options. Where a tool asks for a rate, price or product specification, use a value appropriate to your situation.
- Calculate and compare the result, exact details, assumptions and worked example.
Common questions
Are the example values recommendations?
No. They demonstrate the arithmetic. Use measurements, product labels and supplier information appropriate to your situation.
What happens when I change units?
The entered number stays the same and is reinterpreted in the new unit. The old result is cleared; calculate again.
Are inputs sent to a server?
No. Calculations stay in your browser. A calculation record is downloaded only when you request it.
Report a problem or suggest a calculator
Found a confusing result, a missing option, or an idea for a new calculator? Send it privately to the site owner.
Opening the form loads Cloudflare Turnstile, a spam check that processes connection and device information. Privacy details.
Related tools
Fence Picket Calculator
Count pickets from clear spans with fixed or maximum gap layouts.
Open calculator →Fence Post Concrete Calculator
Calculate concrete bags to set fence posts.
Open calculator →Board Foot Calculator
Tally lumber volume and cost with explicit measurement and supplier conventions.
Open calculator →