CalcTypes
Calculator

Fence Calculator: Posts, Panels, Pickets, Gates & Concrete

Last reviewed: Β· How it works Β· FAQ Β· Sources
Fence materials, post holes and cost

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.
For a corner, add the next straight run; new runs have β€œShares starting post with previous run” ticked, so the connecting post is counted once. Untick it for a separate fence that does not touch the previous run.
The calculator is loading. If no fence run appears below, please enable JavaScript in your browser and reload the page.

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?
Choose panels if you buy complete sections. Choose pickets if you build each bay from individual boards and rails. Chain-link, board-on-board overlaps and masonry fences need a different design.
Your manufacturer controls compatible posts, gates and fixing details.
What does this dimension mean?
The largest distance allowed between post centres. For panels fixed to the face of posts, use the panel’s maximum span. For panels that slot between posts, add the post allowance: a 1.83 m (6 ft) panel in slotted concrete posts sets out at about 1.88 m centres. For individual pickets, use the maximum post spacing for your rails. Each fenced span is divided into whole bays no wider than this.
Applies to material pieces, not to post or gate counts.

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?
QUIKRETE’s fence-post instructions suggest a hole about three times the post width: roughly 10–12 in for a 4Γ—4 post and about 16 in for a 6Γ—6.
Typical depth?
A common starting point is one-third to one-half of the above-ground post height, and below the frost line where the ground freezes. Local code and your product instructions take priority.
A 4Γ—4 is about 3.5 in; a 6Γ—6 about 5.5 in.
Is this the bag weight?
No. Yield is the volume of mixed concrete from one bag. QUIKRETE Concrete Mix lists about 0.30 ftΒ³ (8.5 L) for 40 lb, 0.45 ftΒ³ (12.7 L) for 60 lb and 0.60 ftΒ³ (17 L) for 80 lb. Check your own product; brands and fast-setting mixes vary.
Do I need gravel?
Lowe’s suggests a 4 in (about 10 cm) gravel base in each hole for drainage. Leave 0 if your plan has none. It is estimated as a full cylinder under the post and does not change the concrete depth you entered.
Site check: fence height, wind exposure, frost depth, property lines, buried services (in the US, call 811 before digging), permits and gate-post loads can change the design. Use the footing dimensions specified for your location and product.

Add optional prices from your supplier

Leave unknown prices blank. The result will show a priced-items subtotal, with the missing items listed clearly.
Applied to total run length, including gate openings.

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.

Worked example: two runs, one gate, 8 ft maximum bay
StepRun 1 (60 ft, 4 ft gate at 25 ft)Run 2 (32 ft, connected)
Fenced spans25 ft and 31 ft32 ft
Bays (rounded up)⌈25 Γ· 8βŒ‰ = 4 and ⌈31 Γ· 8βŒ‰ = 4, so 8 bays⌈32 Γ· 8βŒ‰ = 4 bays
Shortened final bays1 ft and 7 ftNone
Posts10, including 2 gate posts5, one of which is shared with Run 1
Project totals12 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.

Straight run, no gates (feet)
Fence length6 ft spacing: bays / posts8 ft spacing: bays / posts
25 ft5 / 64 / 5
50 ft9 / 107 / 8
75 ft13 / 1410 / 11
100 ft17 / 1813 / 14
150 ft25 / 2619 / 20
200 ft34 / 3525 / 26
300 ft50 / 5138 / 39
Straight run, no gates (metres)
Fence length1.88 m centres (1.83 m panel in slotted posts): bays / posts2.4 m centres: bays / posts
10 m6 / 75 / 6
20 m11 / 129 / 10
30 m16 / 1713 / 14
50 m27 / 2821 / 22
100 m54 / 5542 / 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.

Run 1Gate openingShared corner postRun 2
Example only: a gate interrupts one straight run, while the next run turns and shares its corner 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 buyInput that controls the countOutput to check
Ready-made panelsMaximum installed bay width, post centre to post centrePanels, shortened end bays and posts
Wood picketsActual board width, gap and post spacingIndividual boards, rails and posts
GateClear opening start and width on its runGate count and gate posts on either side
Ground-set concreteHole size, post size and mixed yield per bagConcrete 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.

Concrete per post, using QUIKRETE Concrete Mix yields (0.60 / 0.45 / 0.30 ftΒ³)
Post (actual size)Hole diameter Γ— concrete depthConcrete per hole80 lb bags60 lb bags40 lb bags
4Γ—4 (3.5 in)10 in Γ— 24 in0.92 ftΒ³1.52.03.1
4Γ—4 (3.5 in)10 in Γ— 30 in1.15 ftΒ³1.92.63.8
4Γ—4 (3.5 in)12 in Γ— 30 in1.75 ftΒ³2.93.95.8
4Γ—4 (3.5 in)12 in Γ— 36 in2.10 ftΒ³3.54.77.0
6Γ—6 (5.5 in)16 in Γ— 36 in3.56 ftΒ³5.97.911.9
6Γ—6 (5.5 in)16 in Γ— 42 in4.15 ftΒ³6.99.213.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.

Each fenced span: bays = ceiling(span length Γ· permitted bay width).
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.

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