Fence Calculator: Posts, Panels, Pickets, Gates & Concrete
Plan posts, panels or pickets, gates and post-hole concrete for every straight run of your fence.
Enter each straight run, place gate openings where they belong, choose ready-made panels or a wood picket fence, and add your own supplier prices if you want a cost estimate. Every count is shown step by step, in feet or metres.
Quick answer: A straight run with no gate needs exactly one more post than the number of bays, where bays = run length Γ· maximum post spacing, rounded up. A 100 ft run at 8 ft spacing needs 13 bays and 14 posts. A gate splits the run, so count the spans on each side of it separately; this calculator does that for every run and shows what it counted.
Start planning your fence βPlan your fence, one run at a time
A run is a straight stretch. Add a new run when the fence turns a corner, changes direction or starts elsewhere. Enter its total measured length including gate openings; the calculator subtracts the gates from the fenced length.
New to fencing? Open this short word guide
Post: upright support. Bay: space between two posts. Panel: a ready-made fence section. Picket: an individual board. Rail: a horizontal support for pickets. Gate opening: clear space where the gate goes. Line post: an intermediate post. End, corner and gate posts: posts that finish a run, turn a corner or carry a gate; vinyl and metal systems often sell these as separate parts.
Add every straight fence run and gate
Measure from the centre of the first post to the centre of the last post. For each gate, enter its distance from that starting point and its gate bay width measured between post centres.Choose the fence material and spacing
Use the actual dimension from the product label or quote. A nominal panel size is not always the post-to-post setting-out dimension.Which one should I choose?
What does this dimension mean?
Estimate concrete for ground-set posts
Enter the hole sizes from your installation plan and the yield printed on your concrete bag. The calculator does not choose a safe footing depth.Typical size?
Typical depth?
Is this the bag weight?
Do I need gravel?
Add optional prices from your supplier
Leave unknown prices blank. The result will show a priced-items subtotal, with the missing items listed clearly.Your fence plan and shopping list
See your runs, gate openings and posts
Blue sections receive fencing, orange boxes are gate openings, small dark dots are line posts, large dark dots are end or corner posts and orange dots are gate posts. Each straight run is drawn separately. A connected run shares the end post of the run before it; this diagram is not a survey or a drawing of the actual corner angles.
Materials to buy
The list includes your chosen spare percentage for panels, pickets and rails. Gates and posts are counted as actual positions, split by post type.
How each run was counted
Check the gate positions and shortened end bays here before asking for a supplier quote.
What will this fence cost?
The amount below totals only the prices you entered. Missing prices, delivery and site-specific expenses are not silently treated as free.
Check these points before ordering
The link stores your inputs (including prices and project name) in the URL. For long plans, save Project JSON instead. Check values before sharing.
Scan this plan
Fence calculation rules at a glance
- Bays per span = span length Γ· maximum post spacing, rounded up to a whole number.
- Posts on one straight run with no gates = bays + 1.
- Gates split a run into separate spans; each side of a gate needs its own post.
- Connected corners share one post, so subtract one post per connection.
- Concrete per hole = (Ο Γ hole radiusΒ² β post cross-section area) Γ concrete depth; divide the total by the bagβs stated yield and round up.
- Common spacing is 6 to 8 ft (about 1.8 to 2.4 m) between post centres, but the productβs maximum span always wins.
How do you calculate fence posts and panels?
Divide each uninterrupted fenced span by its allowed bay width, round up to whole bays, and place a post at every bay edge.
A gate divides the run into separate spans, and both sides of a gate need posts. At a connected corner, one post can serve both straight runs when the product and site layout permit.
Here is the worked example that the Load a worked example button loads: a 60 ft run with a 4 ft gate starting 25 ft from the first post, plus a connected 32 ft side run, using 8 ft panels.
| Step | Run 1 (60 ft, 4 ft gate at 25 ft) | Run 2 (32 ft, connected) |
|---|---|---|
| Fenced spans | 25 ft and 31 ft | 32 ft |
| Bays (rounded up) | β25 Γ· 8β = 4 and β31 Γ· 8β = 4, so 8 bays | β32 Γ· 8β = 4 bays |
| Shortened final bays | 1 ft and 7 ft | None |
| Posts | 10, including 2 gate posts | 5, one of which is shared with Run 1 |
| Project totals | 12 bays β 13 panels with 5% spare Β· 14 posts (9 line, 2 end, 1 corner, 2 gate) Β· 1.75 ftΒ³ of concrete per hole Γ 14 = 24.5 ftΒ³ β 41 bags at 0.60 ftΒ³ Β· at $24/post, $85/panel, $7/bag and $160/gate the priced total is $1,888 | |
Why not just divide the total? Run 1 has 56 ft of fencing, and 56 Γ· 8 = 7 panels. That undercounts by one, because the gate leaves a partial bay on each side. Layout tip: the 1 ft bay beside the gate is awkward. Moving the gate to start at 24 ft gives spans of exactly 24 ft and 32 ft, so Run 1 needs only 7 panels and 9 posts with no cut panels. Try gate positions in the calculator before you fix the layout.
For a ready-made panel, β8 ftβ can be a nominal product size. A post-to-post opening and a panelβs physical width may differ, especially when the panel sits between posts instead of on their faces. Use the installed maximum bay dimension specified by the manufacturer, then ask whether a shortened end panel can actually be made.
How many posts and panels for common fence lengths?
For one straight run with no gates, a 100 ft fence needs 14 posts and 13 panels at 8 ft spacing, or 18 posts and 17 panels at 6 ft spacing.
The tables below use bays = length Γ· spacing rounded up, and posts = bays + 1. Add gates and corners in the calculator for your real layout.
| Fence length | 6 ft spacing: bays / posts | 8 ft spacing: bays / posts |
|---|---|---|
| 25 ft | 5 / 6 | 4 / 5 |
| 50 ft | 9 / 10 | 7 / 8 |
| 75 ft | 13 / 14 | 10 / 11 |
| 100 ft | 17 / 18 | 13 / 14 |
| 150 ft | 25 / 26 | 19 / 20 |
| 200 ft | 34 / 35 | 25 / 26 |
| 300 ft | 50 / 51 | 38 / 39 |
| Fence length | 1.88 m centres (1.83 m panel in slotted posts): bays / posts | 2.4 m centres: bays / posts |
|---|---|---|
| 10 m | 6 / 7 | 5 / 6 |
| 20 m | 11 / 12 | 9 / 10 |
| 30 m | 16 / 17 | 13 / 14 |
| 50 m | 27 / 28 | 21 / 22 |
| 100 m | 54 / 55 | 42 / 43 |
Panel counts equal the bay counts before any spare allowance. Most bays in these tables end with one shortened panel; check that your product can be cut.
How do you measure a fence with corners and gates?
Break the proposed fence into straight runs, measure each from its starting post centre to its ending post centre, and mark each gate bay by the centres of its two gate posts.
Measure along the actual intended fence line with a tape or survey plan. Add a separate run after every corner, then mark whether the new run shares the previous runβs end post.
A sloped or stepped boundary needs additional site measurements. This tool uses straight horizontal lengths and does not calculate stepped panel heights, racked panels, retaining structures or ground clearance.
Panels or individual pickets: which estimate should you use?
Use the panel option when purchasing complete fence sections; use the picket option when building bays from separate boards and rails.
The structural layout still depends on the span between posts, but the shopping list changes.
| What you buy | Input that controls the count | Output to check |
|---|---|---|
| Ready-made panels | Maximum installed bay width, post centre to post centre | Panels, shortened end bays and posts |
| Wood pickets | Actual board width, gap and post spacing | Individual boards, rails and posts |
| Gate | Clear opening start and width on its run | Gate count and gate posts on either side |
| Ground-set concrete | Hole size, post size and mixed yield per bag | Concrete volume and bags |
Picket formula: pickets per span = (span + gap) Γ· (picket width + gap), rounded up. An 8 ft (96 in) bay of 5.5 in pickets needs 18 boards butted tight, or 17 with 0.5 in gaps. For a privacy fence built from individual boards, enter a zero gap only if that matches the intended design. Board-on-board and overlapping boards need a different effective coverage width and should be checked separately. For metal, vinyl and composite systems, use the panel option only when the manufacturer allows the entered span and post arrangement.
How much concrete do fence posts need?
About 3 Γ 80 lb bags per post for a 4Γ4 in a 12 in wide, 30 in deep hole, or about 2 bags in a 10 in hole of the same depth.
The volume is the holeβs cylinder minus the buried post, over the concrete depth. Multiply by the number of posts, divide by the mixed yield on your bag and round up to whole bags.
| Post (actual size) | Hole diameter Γ concrete depth | Concrete per hole | 80 lb bags | 60 lb bags | 40 lb bags |
|---|---|---|---|---|---|
| 4Γ4 (3.5 in) | 10 in Γ 24 in | 0.92 ftΒ³ | 1.5 | 2.0 | 3.1 |
| 4Γ4 (3.5 in) | 10 in Γ 30 in | 1.15 ftΒ³ | 1.9 | 2.6 | 3.8 |
| 4Γ4 (3.5 in) | 12 in Γ 30 in | 1.75 ftΒ³ | 2.9 | 3.9 | 5.8 |
| 4Γ4 (3.5 in) | 12 in Γ 36 in | 2.10 ftΒ³ | 3.5 | 4.7 | 7.0 |
| 6Γ6 (5.5 in) | 16 in Γ 36 in | 3.56 ftΒ³ | 5.9 | 7.9 | 11.9 |
| 6Γ6 (5.5 in) | 16 in Γ 42 in | 4.15 ftΒ³ | 6.9 | 9.2 | 13.8 |
Metric equivalents: a 300 mm hole, 600 mm deep, around a 100 mm square post holds about 36 L of concrete (about 2.1 bags at 17 L per bag); a 250 mm Γ 600 mm hole around a 75 mm post holds about 26 L. Bag counts are per post before rounding; round up the project total, not each hole.
The 0.60 ftΒ³ default is the published yield for an 80 lb bag of QUIKRETE Concrete Mix; it is not a universal yield for every 80 lb or fast-setting product. A square wood post and a round steel post displace different amounts of concrete. If your footing includes gravel or an enlarged base, the actual concrete shape also differs.
How deep and wide should fence post holes be?
A common starting point is a hole about three times the postβs width, with one-third to one-half of the above-ground post height buried, and always below the frost line where the ground freezes.
For a 6 ft high fence on 4Γ4 posts, that suggests roughly 10β12 in wide and 24β36 in deep.
- Width: QUIKRETEβs instructions suggest a hole about three times the post width.
- Depth: Loweβs suggests about 1/3 to 1/2 of the above-ground height, or deeper where local code or frost depth requires it.
- Drainage: Loweβs suggests about 4 in of gravel in the bottom of each hole; enter it in Step 3 to estimate the gravel.
- Before digging: locate buried services (call 811 in the US) and confirm property lines and permits.
These are rules of thumb, not a footing design. Fence height, wind, soil, gate loads and the fencing system can all change the right size. Ask the supplier or a qualified installer for the applicable plan and check local rules before digging.
How does this fence calculator work?
It divides each straight run at the gate openings, rounds each fenced span up to whole bays, and counts unique post positions along that run.
It subtracts one duplicated post when you connect the start of a run to the previous runβs end, then labels every post as a line, end, corner or gate post. Prices are multiplied by their item quantities only when entered.
Posts on a run = unique bay boundaries and gate edges.
Connected runs = subtract one shared corner post per connection.
Post type priority: gate post β corner post β end post β line post.
Pickets per span = ceiling((span + gap) Γ· (picket width + gap)).
Panels, pickets and rails to buy = calculated pieces Γ (1 + spare %), rounded up.
Concrete per hole = [Ο Γ (hole diameter Γ· 2)Β² β buried post area] Γ concrete depth.
Concrete bags = ceiling(total concrete volume Γ· product yield per bag).
Gravel per hole = Ο Γ (hole diameter Γ· 2)Β² Γ gravel depth.
For panels, bays are laid out at full panel width from the start of each span, with one shortened final bay when the span is not an exact multiple; the calculator lists each shortened bayβs length and flags very narrow ones. For pickets, posts are spaced evenly within each span because boards and rails are cut to suit. Picket counts are calculated separately for each span, so a short piece beside a gate does not disappear into a project-wide average. A real installer will set out end bays, corners and gates against the actual fence system.
Assumptions and limitations
This is a material estimate for straight fence runs with simple gate openings. Runs are shown separately rather than drawn on a surveyed map. A checked connection shares exactly one endpoint post. It does not close a loop automatically, decide property boundaries, or size the posts, foundations or gate supports. Posts are treated as points at their centres, so measure lengths centre to centre.
For panel fences, the chosen bay width is assumed to be the maximum installable post spacing, and a shorter last bay is assumed possible only if the product can be cut or adjusted. For picket fences, each bay is assumed to use the number of rails you entered; one stock rail per rail position per bay is counted. The concrete model assumes one equal-size cylindrical hole per post, concrete down the entered depth and identical post cross-sections. It excludes excavation variation, bell-shaped or enlarged footings and posts set in other systems. Price totals omit any blank price fields, delivery, waste disposal and permit charges unless included in your entries.
Questions People Ask
Each answer starts with the direct result. Open a question for the details.
How many fence posts do I need?
For one straight run without a gate, posts = bays + 1, where bays = run length Γ· post spacing, rounded up.
A 100 ft run at 8 ft spacing needs 13 bays and 14 posts. A gate needs a post at each edge, and connected runs share a corner post. Enter every run and gate above so the calculator counts them individually.
How many posts do I need for a 100 ft fence?
A straight 100 ft fence with no gates needs 14 posts at 8 ft spacing or 18 posts at 6 ft spacing.
A gate needs a post at each edge; how many additional posts that creates depends on its position. A connected corner shares one post. Use the calculator to place your gates exactly.
How many fence panels do I need?
Divide each uninterrupted fenced span by the installed panel bay width and round each span up.
A straight 100 ft run needs 13 panels at 8 ft or 17 panels at 6 ft. A gate splits one run into two spans, and the calculator adds your spare percentage and lists any end bays that need a shortened panel.
How do I calculate fence panels and posts around a gate?
Measure the fencing before and after the gate separately, round each side up to whole bays, and put a post at both gate edges.
For a 60 ft run with a 4 ft gate at 25 ft, the spans are 25 ft and 31 ft, which need 4 + 4 = 8 panels at 8 ft. Dividing the combined 56 ft by 8 gives only 7, which is one panel short.
How far apart should fence posts be?
Usually 6 to 8 ft (about 1.8 to 2.4 m) between post centres, but always use the maximum spacing your fence product allows.
Preassembled panels are commonly sold in 6 ft and 8 ft widths. For example, Jacksonsβ 1.83 m panel in its slotted post system sets out at about 1.88 m centres; other systems differ.
How deep should fence post holes be?
A common rule is to bury one-third to one-half of the above-ground post height, and to go below the frost line where the ground freezes.
For a 6 ft high fence that is roughly 24β36 in (60β90 cm). Local code, wind exposure and the productβs instructions take priority.
How wide should a fence post hole be?
About three times the post width: roughly 10β12 in for a 4Γ4 post and about 16 in for a 6Γ6.
A wider hole uses more concrete, so enter your real hole diameter in the calculator to see the bag count change.
How many bags of concrete do I need per fence post?
About 3 Γ 80 lb bags for a 4Γ4 post in a 12 in Γ 30 in hole, or about 2 bags in a 10 in Γ 30 in hole, at 0.60 ftΒ³ per bag.
Calculate the holeβs volume minus the post, multiply by the number of posts, divide by your bagβs stated yield and round the total up. Confirm the footing design and the actual bag yield before buying.
How many pickets and rails do I need for a wood fence?
Pickets per span = (span + gap) Γ· (picket width + gap), rounded up; rails = bays Γ rails per bay.
An 8 ft bay of 5.5 in pickets needs 18 boards butted tight or 17 with 0.5 in gaps, plus 2 or 3 rails. Choose βWood pickets / boards on railsβ to see both counts with your spare allowance.
What is the difference between a fence cost estimate and a supplier quote?
This calculator multiplies your entered prices by estimated quantities; a supplier quote covers the specific products and work they agree to supply.
Blank prices are listed as missing, and the priced-items subtotal is never presented as a complete quote.
Can I use this fence calculator in metres in the UK?
Yes. Select metres and centimetres to enter run lengths, gates and post holes in metric units.
Entered values are converted when you switch. Check the actual panel width and gravel board or post system offered by your UK supplier; this tool does not assume a single national panel size.
Can the calculator plan a sloped fence or a closed yard?
It estimates straight horizontal runs, but it does not design racked or stepped panels or automatically join the last run to the first.
For a fully enclosed yard, the last runβs end post is the same post as the first runβs start post, so subtract one post from the total. Measure slope changes with the installer before ordering.
Does the calculation include a gate and its hardware?
It counts each gate opening and its gate posts, and accepts an optional gate price, but it does not size a gate leaf, hinges, latch or heavy-duty gate footing.
Confirm the gate leafβs clear opening and required hardware with the supplier.
Methodology: How This Calculator Works
Each straight run is split at gate openings. Every fenced span is divided by the bay width you allow and rounded up to whole bays, with a post at each bay edge; connected runs share corner posts. Panels or pickets and rails follow from the bays, plus your spare percentage. Concrete per hole is the cylinder volume of the hole minus the buried post, multiplied by the number of posts and divided by your bag yield, rounded up to whole bags.
Sources and reference guidance
Open sources and what they support
Sources accessed and checked on 11 November 2026. They explain inputs and examples; they do not approve a particular fence design or certify your results.
- Outdoor Essentials preassembled-panel estimating worksheet (via Loweβs): panels sold in 6 ft and 8 ft widths, one extra post to finish each run and extra posts for gates. Our planner calculates each gate-separated span and connected run explicitly instead of one project-wide division.
- Loweβs wood-fence installation guidance: post depth of about 1/3 to 1/2 of above-ground height, setting below the frost line or to local code, a 4 in gravel base and calling 811 before digging.
- Jacksons Fencing panel-width guidance: standard 1.83 m (6 ft) panels, about 1.88 m setting-out per panel in slotted posts, and why cut-down panels need care.
- QUIKRETE Concrete Mix product data sheet: yields of about 0.30, 0.45 and 0.60 ftΒ³ for 40, 60 and 80 lb bags.
- QUIKRETE post-setting instructions: a hole roughly three times the post width, with actual depth subject to site and local requirements.
Important disclaimer
This calculator provides an educational materials and priced-items estimate. It does not determine a safe post spacing, footing size, gate structure, property line or code-compliant design. Before digging or buying materials, verify underground services, local requirements, site dimensions, slope, soil, frost, wind loading, product installation details and the supplierβs actual prices and yields. Ask a qualified installer or designer where the fence or gate requires engineering. CalcTypes cannot guarantee that a plan generated from unverified measurements is sufficient for your site. Read the full disclaimer.
Related CalcTypes calculators
Disclaimer
Please read before relying on this page. The Fence Calculator estimates posts, panels and concrete from your run lengths. Panel sizes, gate hardware, slopes and ground conditions change real quantities. Check local rules on height and boundaries, and call before you dig.
Construction. Quantities and costs are planning estimates only; follow local building codes and safety rules.
Your responsibility. Results are estimates for general information and education only, and nothing here is professional advice. You use this page at your own risk; to the fullest extent permitted by law, CalcTypes, its authors and reviewers accept no liability for loss, injury or damage arising from reliance on it. Spotted an error? Use βReport an issueβ or our contact page. Full terms: Disclaimer Β· Terms of use.