Fence Calculator: Estimate Posts, Panels & Materials

Calculate fence materials, sections, posts, concrete, gravel, boards, rails, panels, gates, fixings, paint and estimated fencing cost from your actual fence dimensions.

Quick Answer

Enter the total fence length, fence height, post spacing and fence style first, then add the post dimensions, hole depth, infill measurements, gates, waste allowance and optional pricing details. The Fence Calculator uses those measurements to estimate the number of fence bays or sections, line posts, gate posts, post length, rails, boards or pickets, panels or mesh rolls, concrete, gravel, fixings, paint or stain and total fence cost. The calculation supports feet (ft), metres (m), yards (yd), inches (in), millimetres (mm) and centimetres (cm) where applicable.

How to Measure Your Fence

Start by measuring each straight fence run from one end point to the other. Record the length (L) of every run, because separate runs can have different dimensions and quantities. Measure the finished fence height (H) above ground, select the desired post spacing from centre to centre, and choose whether the project uses picket or board fencing, ready-made fence panels, post and rail construction, or chain-link fencing.

For accurate material quantities, enter the board width (W) and gap for individual boards, or the panel or mesh roll width for manufactured sections. For the foundation, enter the post width, hole diameter and hole depth, together with any gravel base. The calculator can calculate hole depth from one-third or one-half of fence height, or use a custom depth when a project requires a specific foundation measurement.

L Fence Length Total run length in ft, m or yd.
H Fence Height Finished height above ground.
W Board / Post Width Board width or post width in in, mm or cm.
D Hole Depth Post foundation depth below ground.
Fence Calculator
Posts · Rails · Pickets

Fence Calculator

Length · Width · Height · Depth Posts, panels & gates Concrete & hardware Estimated cost in $

Fence line & height

Length (L) of the run, Height (H) above ground, board Width (W), hole Depth (D)
Step 1
Ground L · Length H · Height D · Depth W · Width
L
LengthRun of the fence line
H
HeightFence above ground
W
WidthBoard or picket width
D
DepthPost hole below ground
Fence style
Each run gets its own end post, so measure straight runs separately.
Elevation preview Enter a run length
Picket or board
Ground level
Bays or sections
Posts in the line
Per bay
Fence face area

Posts, holes & concrete

Hole depth (D) is usually a third of the fence height
Step 2

Boards, rails & gates

Board Width (W) plus the gap sets how many you need
Step 3
Paint or stain

Cost estimate ($)

Price it all-in per foot, or part by part
Optional
All-in fence price
Fencing is quoted per linear foot or metre, per bay, per panel, or per ft² of fence face; labour is usually per linear foot.

How the Fence Calculator Works

The Fence Calculator converts your fence dimensions into practical material quantities by calculating bays from fence length and post spacing, then adding the required line posts, gate posts, rails, boards, panels or mesh, foundation materials, finish and optional costs. Each straight fence run can be entered separately so different lengths and quantities can be handled in the same project.

01

Measure the fence

Enter the length of each run, finished fence height and post spacing.

02

Choose the fence style

Select picket or board, ready panels, post and rail, or chain link.

03

Define the foundation

Add post size, hole diameter, hole depth, gravel base and concrete yield.

04

Review the estimate

Check posts, bays, infill, concrete, gravel, gates, finish and cost.

Fence Calculator Formula

The calculator uses the following core formulas to turn fence measurements into material quantities. The formulas account for post spacing, fence height, hole dimensions, gate openings, board width, board gaps, waste allowance and concrete volume.

Fence Bays / Sections
Bays = Ceiling(Fence Length ÷ Post Spacing)
Each completed run requires one more line post than the number of bays.
Line Posts
Line Posts = Bays + 1
Multiple fence runs are calculated separately and then combined.
Total Posts
Total Posts = Line Posts + Gate Posts
Gate posts are added according to the selected extra-post quantity.
Infill Length
Infill = max(0, Fence Length × (1 + Terrain Allowance) − Gate Width × Gate Count)
Terrain allowance increases the material run for slope or uneven ground.
Boards / Pickets
Boards = Ceiling[(Infill Length ÷ (Board Width + Gap)) × (1 + Waste)]
Board width and the selected gap determine the number of boards required.
Post Length
Post Length = Fence Height + Hole Depth
The calculator can use one-third height, one-half height or a custom hole depth.
Concrete Volume
Concrete / Hole = (Hole Area − Post Area) × Concrete Depth
Concrete depth equals hole depth minus the selected gravel base.
Paint / Stain
Gallons = Ceiling[(Fence Face Area × Coats × Sides) ÷ Coverage]
Coverage is entered in square feet per gallon, with coats and sides selected separately.
Estimated Cost
Total Cost = Materials + Concrete + Gates / Finish + Labour / Removal
Optional pricing can be entered per linear foot, linear metre, bay, panel or square foot.

Fence Calculator Example

A practical example shows how the Fence Calculator combines dimensions and material settings. Consider a straight residential fence run with one gate and standard board fencing.

Sample Residential Fence Project Illustrative calculation
Fence length 80 ft
Fence height 6 ft
Post spacing 8 ft centres
Fence style Picket or board
Post size 4 × 4 in
Hole diameter 12 in
Hole depth rule One-third of height
Gravel base 4 in
Board width 5.5 in
Board gap 0 in
Rails per bay 3 rails
Waste allowance 5%
Gates 1 gate
Gate width 3 ft
Extra posts per gate 1 post
Concrete yield 60 lb · 0.45 ft³
Finish 1 coat · both sides
Paint coverage 200 ft² / gallon
Fence bays 10 bays
Line posts 11 posts
Gate posts 1 extra post

The exact material quantities update automatically when measurements change. The example demonstrates the type of information required; actual board, rail, concrete, gravel, paint and cost quantities depend on the values entered into the calculator.

Helpful Information Before Using the Fence Calculator

01 Measure Every Fence Run

Measure straight runs individually when a fence changes direction, because each run can have a different length. Enter the run length and quantity so the calculator can combine multiple sections into one project total.

02 Use Centre-to-Centre Spacing

Post spacing refers to the distance between post centres. Common settings include 6 ft, 8 ft and 10 ft bays. The calculator rounds the number of bays upward so a run does not require fewer sections than the measured length.

03 Account for Fence Style

  • Board or picket: uses board width, gap and rails.
  • Ready panels: uses panel width and panel clips.
  • Post and rail: calculates rails without board infill.
  • Chain link: uses mesh roll length and fittings.

04 Include Gates Correctly

Enter the number of gates and the width of each gate. Gate openings reduce the infill length, while the selected number of extra gate posts increases the total post quantity.

05 Check the Foundation Dimensions

Post-hole concrete depends on hole diameter, post width and concrete depth. The calculator supports a one-third-height rule, a half-height rule and a custom hole depth. A gravel base reduces the concrete depth used in the volume calculation.

06 Allow for Waste

Cutting, damaged materials, uneven layouts and installation changes can increase material requirements. A 5% waste allowance is a useful starting setting, while complex layouts can require a higher allowance.

07 Understand Paint Coverage

Paint or stain quantity depends on fence face area, number of coats, number of sides and product coverage. For example, 200 ft² per gallon means one gallon covers approximately 200 square feet under the stated coverage conditions.

08 Treat Cost as an Estimate

Material and labour prices vary by fence material, supplier, region, installation method and project conditions. Enter current local prices for posts, rails, boards, panels, concrete, gates, paint, labour and delivery when using the cost estimate.

09 Check Site Conditions

Confirm property boundaries, local requirements and underground services before digging post holes. Slopes, stepped terrain, obstructions and unusual soil conditions can affect the practical installation requirements.

10 Use Consistent Units

Keep length measurements consistent when entering fence dimensions. The calculator supports ft, m and yd for the main dimensions and in, mm and cm for applicable post and foundation measurements.

Related Calculators

Explore other home improvement calculators for planning materials, quantities, measurements and project requirements.

Frequently Asked Questions

Find clear answers to common questions about fence length, post spacing, fence panels, boards, concrete, gates, paint and fencing costs.

01 How do I calculate how many fence posts I need?

Divide the fence length by the selected post spacing and round the result up to determine the number of bays, then add one line post per completed run. Gate posts are added separately according to the selected extra-post setting. For example, an 80-ft straight run at 8-ft centres creates 10 bays and 11 line posts, before any additional gate posts are included.

02 How many fence panels do I need for my fence?

Divide the usable infill length by the selected panel width and round the result up. The Fence Calculator uses the selected panel width, fence length, terrain allowance, gate openings and waste setting to determine the required number of ready-made panels.

03 How is the number of fence boards calculated?

Board quantity is based on board width plus the gap between boards. The calculator divides the usable infill length by that combined board module and applies the selected waste allowance. A wider board or smaller gap generally reduces the number of boards required for the same fence length.

04 How deep should a fence post hole be?

The calculator provides one-third of fence height, one-half of fence height or a custom hole-depth option. The practical foundation depth depends on fence height, local ground conditions, frost requirements, soil stability, wind exposure and applicable construction requirements, so the calculated quantity is an estimate rather than a site-specific engineering specification.

05 How much concrete do I need for fence posts?

Concrete volume is calculated from the hole area minus the post area, multiplied by the concrete depth and total number of posts. The calculator then converts the volume into the selected concrete-bag yield and rounds the number of bags upward, including a small material allowance.

06 Does the Fence Calculator include gates?

Yes. Enter the number of gates, the width of each gate and the number of extra posts required per gate. Gate openings are deducted from the infill length, while gate posts are added to the total post count.

07 Can I calculate fence paint or stain quantity?

Yes. Select the finish option, enter product coverage, then choose the number of coats and sides. The calculator uses fence face area, coverage, coats and sides to estimate the required gallons. For example, 400 ft² of fence face at 200 ft² per gallon requires 2 gallons for one coat on one side before rounding or additional coats are considered.

08 Can I estimate the total cost of installing a fence?

Yes. Enter the applicable prices for the fence system, posts, rails, boards or panels, concrete, gates, paint, labour, digging, removal, fixings and additional costs. The calculator can price the fence system by linear foot, linear metre, bay, panel or square foot of fence face, then combines the entered costs into an estimated project total.

09 Can I calculate a fence with multiple sections?

Yes. Add another run for each separate straight fence section and enter its length and quantity. The calculator calculates each run's bays and posts before combining the results into the total fence length, bays, posts and material estimate.

10 Does the calculator work for chain-link and post-and-rail fences?

Yes. The Fence Calculator supports four fence styles: picket or board, ready panels, post and rail, and chain link. Chain-link calculations use mesh roll length and fittings, while post-and-rail calculations focus on posts and rails rather than board infill.

Scroll to Top