Fence sections
—spaces between postsFree fencing tools
Fence material calculator
Plan a straight fence run and estimate the pickets, fence posts, sections, and rails you may need before you buy materials.
Best for a simple straight run without gates, corners, or direction changes.
See the measurements

Step 01 · Add your measurements
Describe your fence project
Step 02 · Review your estimate
Your estimated fence materials
Results are rounded up so the full fence run is covered.
Fence posts
—one post at each endPicket fence pickets
—based on width and gapRails
—across all fence sectionsHow we calculated this
A simple starting point
How to use the fence calculator
Use the calculator as a practical first step. Gather the length of each straight run, the planned distance between fence posts, and the size of your picket or board before entering the numbers.
- 01Use the measurement guide.
Check the diagram to see how fence length, post spacing, picket width, picket gap, and rails per section are measured.
- 02Enter length and post spacing.
Enter the total straight fence run in feet and the center-to-center distance between fence posts. Measure each straight run separately when your layout has corners or gates.
- 03Add picket details and rails.
Enter the width of one picket and the space beside it in inches. Then choose how many rails sit between each pair of posts.
- 04Review the material estimate.
Select Calculate fence materials to see sections, fence posts, picket fence pickets, rails, and coverage. Open the calculation details to check the math.
Understand the estimate
How does this fence calculator work?
This fence calculator uses five simple inputs: total fence length, post spacing, picket width, picket gap, and rails per section. It converts the measurements into a practical estimate for a straight fence run, so you can compare a layout before buying timber, boards, or hardware.
For example, a 120-foot run with fence posts every 8 feet needs 15 spaces when the division is exact, plus one post at the end. If the length does not divide evenly, the calculator rounds the number of sections up so the final space is not left uncovered.
The picket calculation uses the width of one board plus its gap. That makes the result useful for privacy boards, spaced pickets, garden borders, and other simple wood fence designs.
The math in plain English
How to calculate fence materials
A fence section is the space between two adjacent fence posts. Sections are rounded up because a short final section still needs support. A straight run then needs one more post than the number of sections.
For picket fence pickets, convert the fence length from feet to inches. Divide that total by the effective picket width, which is the picket width plus the gap. Round up again because you cannot buy part of a picket.
These formulas give a dependable starting estimate, but they do not include waste, cuts, gates, corner posts, braces, concrete, fasteners, or local construction requirements.
CEILING(Fence Length ÷ Post Spacing)Sections + 1Picket Width + Picket GapCEILING((Fence Length × 12) ÷ Effective Picket Width)Sections × Rails per SectionExample: a 100-foot picket fence
With fence posts every 8 feet, 6-inch picket fence pickets, no gap, and 2 rails per section:
Sections = CEILING(100 ÷ 8) = 13
Posts = 13 + 1 = 14
Pickets = CEILING((100 × 12) ÷ 6) = 200
Rails = 13 × 2 = 26Estimate: 13 sections · 14 fence posts · 200 picket fence pickets · 26 railsPlan spaced board designs
Picket fence pickets and picket spacing
A picket fence calculator helps you plan how many boards will fit across a run. The important detail is not only the width of each picket, but also the space between pickets. A small change in the gap can change the total by several boards.
Enter the actual width of one picket in inches. For a close privacy design, enter a gap of 0. For an open garden fence, enter the planned space between boards. The result is rounded up to give you a whole number of picket fence pickets.
If you searched for “picket picket,” you may be comparing picket sizes, spacing, or the number of boards in a picket fence. Use the same width and gap that you will use in the finished design.
Build a stronger layout
Fence posts and post spacing
Fence posts carry the rails and boards, so post spacing affects both the material count and the strength of the fence. A wider spacing may reduce the number of posts, but it can require stronger rails or posts depending on the fence height, wind, soil, and local rules.
Measure post spacing from the center of one post to the center of the next. Use the same unit throughout the length and spacing fields. Add separate allowances for corners, ends, gates, and braces because a straight-run estimate does not know where those features will be placed.
For agricultural planning
Can it help with cattle fencing?
This tool can help with an early cattle fencing estimate when you know the total length, planned post spacing, and number of rails or fence lines. It can show how many straight sections and fence posts may be needed before you compare livestock fencing materials.
Cattle fencing often needs different wire, rails, braces, corner assemblies, and post depths than a decorative picket fence. Use the calculator as a planning aid, then confirm the design with agricultural guidance, terrain conditions, animal pressure, gates, and local requirements.
Prepare before building
Fencing tools and materials to check
Good fencing tools make the layout easier to measure and the installation more consistent. Depending on the project, you may need a tape measure, string line, level, post-hole tool, shovel, saw, drill or driver, fasteners, gloves, and protective equipment.
The calculator estimates the main repeating parts: sections, fence posts, picket fence pickets, and rails. Create a separate shopping list for concrete, gravel, hinges, latches, corner hardware, braces, wire, waste, and replacement boards. Buying a small extra allowance can help cover cuts and damaged materials.
A practical first estimate
Plan the fence before you shop
Start with one straight run and enter measurements that match your planned materials. Review the section count, fence posts, picket fence pickets, and rails together instead of looking at one number alone.
When your plan includes gates, corners, slopes, cattle fencing, or several fence styles, calculate each simple run separately and combine the results. Then check the final list against your drawing, supplier advice, and local building requirements.
Questions, answered
Fence calculator questions
How many fence posts do I need?
For a straight fence run, divide the fence length by post spacing and round up. Then add one: fence posts = sections + 1. Add separate posts for corners, gates, and braces.
How many picket fence pickets do I need?
Convert the fence length to inches, then divide it by the picket width plus the gap between pickets. Round up to a whole board and consider adding extra pickets for cuts or damage.
What does picket picket mean?
Picket picket is often a repeated search phrase for picket fence pickets. It usually refers to the individual boards used to build a picket fence.
What is a good spacing for fence posts?
Many simple fence designs use a planned center-to-center spacing such as 6 to 8 feet, but the right spacing depends on fence height, material, wind, soil, and local requirements. Follow your project plan.
Can I use this calculator for cattle fencing?
Yes, for an early straight-run estimate of sections and fence posts. Cattle fencing often needs special wire, braces, gates, and deeper posts, so confirm the final design with agricultural guidance.
What fencing tools do I need?
Common fencing tools include a tape measure, string line, level, post-hole tool, shovel, saw, drill or driver, fasteners, gloves, and safety equipment. The exact list depends on your fence material and ground conditions.
Should I use 2 or 3 rails per section?
Two rails are common for many basic fence designs, while three rails can add support for taller or heavier fences. Use the number in your plan and local requirements.
Does this calculator include gates or corners?
No. It estimates a simple straight fence run without gates, corners, braces, or direction changes. Calculate those features separately and add them to your materials list.