All free toolsFree toolFree calculator · Updated November 2026

A free fence calculatorfor posts, rails, picketsand concrete.

Enter the fence length, corners, gates, height and post spacing. You get posts, rails, pickets, gate kits, bags of concrete and screws, with a cost, in imperial or metric.

A fence calculator turns a fence line into a material list. Enter the total length, the number of corners and gates, the height and the post spacing, and Contruva’s free fence calculator tells you how many posts, rails and pickets to buy, how many gate kits, how many bags of concrete to set the posts, and roughly how many screws, plus the material cost at your prices.

Use the free tool

Open the free fence calculator in your browser. No login, no email, nothing to pay.

Open the free tool

It’s built for wood privacy and picket fences, works in feet or metres, and needs no login. Below is the math behind each line so you can check it, a worked example, and the site questions a calculator can’t answer for you: frost depth and what’s buried under the yard.

How to use the fence calculator

Step 1
Lay out the fence.

Total length including gate openings, number of corners, number of gates and their width, and post spacing (6 or 8 ft, or 1.8 or 2.4 m).

Step 2
Pick height and rails.

4, 6 or 8 ft. The tool suggests 2 rails per section for a 4 ft fence and 3 for 6 and 8 ft; change it if your design differs.

Step 3
Describe the pickets.

Actual picket width (5.5 in for a 1×6, 3.5 in for a 1×4), the gap between pickets (0 for a tight privacy fence) and a waste percentage.

Step 4
Set the holes.

Post size (4×4 or 6×6), hole depth and diameter, and the concrete bag you’ll use: 80, 60, 50 or 40 lb, or 30 kg.

Step 5
Add prices.

Your supplier’s price per post, rail, picket, gate kit, bag and per 100 screws. The cost breakdown fills in as you type.

Measure first

Walk the line with a wheel or tape and write down each straight run, every corner and where the gates go. A rough “about 150 feet” is how fences come up three posts short.

How many fence posts do I need?

Start with the fence that isn’t gate: total length minus the gate openings. Divide that by the post spacing and round up to get sections. Each section needs a post at one end, the line needs one more to start it, and then the calculator adds:

  • One post per corner. A run rarely divides evenly by the post spacing, so each corner usually leaves one short section and one extra post.
  • One post per gate. A gate opening needs a post on both sides, and the second one isn’t shared with a fence section.
LineFormula
Fence lengthTotal length − (gates × gate width)
Sections(Fence length ÷ post spacing, rounded up) + corners
Posts(Fence length ÷ post spacing, rounded up) + 1 + corners + gates
Post lengthFence height + hole depth, rounded up to the next even foot (8 ft minimum)

A straight 48 ft run with no gates at 8 ft spacing is 6 sections and 7 posts. Add corners and gates and the count climbs, which is why measuring each run matters. If your runs happen to divide evenly, you’ll have a spare post or two, which is cheaper than a second trip.

How many rails and pickets do I need?

Rails are counted per section. At 8 ft spacing, each rail is one 8 ft 2×4. At 6 ft spacing, the calculator assumes 12 ft 2×4s that span two sections, which is how most crews frame a 6 ft bay and saves cutting.

Fence heightUsual rails per sectionWhy
4 ft2Short pickets don’t need a middle rail
6 ft3A middle rail stops pickets from bowing
8 ft3Taller pickets need the support; some designs use 4

Pickets cover the whole run, gates included, because gate frames get the same pickets as the fence. The count is total length in inches ÷ (picket width + gap), plus waste. Use the actual width: a 1×6 picket is 5.5 in, not 6. For a picket fence with spaces, a gap close to the picket width is common; set it to whatever your design or HOA calls for.

Fasteners are two screws or nails per picket at every rail, plus two at each end of each rail, plus 5% spare. Rail brackets, if you use them, aren’t counted.

How much concrete per fence post?

Each hole is a cylinder with a square post in the middle. The calculator works out the cylinder, subtracts the post, and divides by the yield of your bag.

StepFormula
Hole volumeπ × (diameter ÷ 2)² × depth
Minus the postPost width² × depth (3.5 in for a 4×4, 5.5 in for a 6×6)
Cubic feetCubic inches ÷ 1,728
BagsTotal cubic feet for all posts ÷ yield per bag, rounded up
BagApproximate yieldBags per 10 in × 48 in hole (4×4 post)
80 lb0.60 cu ft3.1
60 lb0.45 cu ft4.1
50 lb0.375 cu ft4.9
40 lb0.30 cu ft6.1
30 kgabout 0.014 m³ (0.49 cu ft)3.7

The 40, 50 and 60 lb yields are from Quikrete’s Concrete Mix data sheet and the 80 lb yield from Quikrete’s product information (checked November 2026). Canadian 30 kg bags vary by brand, so read the yield on the bag you’re buying. Fast-setting post mixes often have their own yield and setting instructions; follow the bag.

Worked example: 150 ft of 6 ft privacy fence

A backyard fence 150 ft long with two corners and one 4 ft gate. 6 ft high, posts every 8 ft, 3 rails per section, 1×6 pickets (5.5 in) installed tight with 5% waste. 4×4 posts in holes 10 in across and 48 in deep, 80 lb bags. Sample prices: $20 a post, $8 a rail, $4 a picket, $45 a gate kit, $9 a bag and $10 per 100 screws. These are placeholders to show the math, not market prices.

Fence length
146 ft.

150 − 4 ft gate.

Sections
21.

146 ÷ 8 = 18.25, rounded up to 19, + 2 corners.

Posts
23 posts at 10 ft.

19 + 1 + 2 corners + 1 gate. Height 6 ft + 4 ft in the ground = 10 ft posts.

Rails
63 rails at 8 ft.

21 sections × 3 rails.

Pickets
344.

1,800 in ÷ 5.5 = 327.3, + 5% = 343.6, rounded up.

Concrete
71 bags of 80 lb.

Each hole takes 1.84 cu ft (3.07 bags). 23 holes = 42.35 cu ft ÷ 0.6 = 70.6.

Screws
2,432.

344 pickets × 3 rails × 2 + 63 rails × 4 = 2,316, + 5%.

LineQuantityCost
Posts23$460.00
Rails63$504.00
Pickets344$1,376.00
Gate kit1$45.00
Concrete71 bags$639.00
Screws2,432$243.20
Material total$3,267.20

Switch the same fence to 6 ft spacing and you get 27 sections and 41 twelve-foot rails. Switch to 30 kg bags and the concrete becomes 86 bags. Three bags of 80 lb per hole is a lot of mixing on 23 posts, so it’s worth pricing a short load of ready-mix or a mixer rental against the bags.

Post depth, frost and locates

The calculator sets concrete to whatever depth you enter. Picking that depth is a site decision.

  • Frost. In much of Canada, frost reaches 4 ft (1.2 m) or deeper, and posts set shallower can heave. Several Ontario municipal deck guides use 1.2 m as the minimum footing depth for attached decks (checked November 2026). Fences aren’t decks, but it’s a useful benchmark; ask your municipality what they expect.
  • Hole size. About three times the post width is a common rule of thumb: 10 to 12 in for a 4×4. A bell-shaped bottom resists heave better than a straight cylinder.
  • Drainage. A few inches of gravel at the bottom helps water drain away from the post end. The calculator fills the full depth with concrete, so subtract the gravel depth if you use it.
  • Bylaws. Many municipalities limit fence height and set rules for pool enclosures and corner lots. Check before you quote an 8 ft fence.
Get a locate before you dig

In Ontario, contacting Ontario One Call for a locate before you dig is required by law and free. Other provinces have their own one-call centres, listed at clickbeforeyoudig.com. In the US, call 811. Book it early; locates take days, not hours.

Fence takeoff mistakes

MistakeWhat happensThe fix
Counting posts as length ÷ spacingYou’re short the first post, the corners and the gatesAdd 1, plus corners and gates
Using 6 in for a 1×6 picketAbout 8% fewer pickets than you needEnter the actual width
Forgetting pickets on the gateThe gate is bare on install dayCount pickets over the full length
Posts too short for the hole depthFence ends up lower than quotedPost length = height + depth
Estimating concrete by “a bag a hole”Two or three bags short per postWork out the hole volume
No locate bookedDelays, or a hit gas or hydro lineBook the locate when the quote is signed

From material list to a fence quote

Once the list is right, the quote is material plus delivery and disposal, your crew’s hours, auger or skid steer rental if you need one, and your markup. The markup calculator turns that cost into a price. If the customer wants a deck or a gravel strip along the fence line too, the deck calculator and the construction material calculator cover those.

Contruva is built for fence and deck contractors. Your posts, rails, pickets and labour rates live in a price catalog, so a fence quote goes out from the customer’s driveway, they sign it on their phone and pay the deposit through online payments, and job costing shows whether the fence made the margin you priced. It’s all in Contruva Pro at $249.99 CAD a month. Try it free for 7 days, no credit card needed.

01Questions

Straight answers.

Still unsure? Call us at +1 (647) 922-5436. A real person picks up.

Ask us anything

How do I calculate how many fence posts I need?

Subtract gate openings from the total length, divide by the post spacing and round up, then add 1 for the starting post, 1 per corner and 1 per gate. 150 ft with one 4 ft gate and two corners at 8 ft spacing needs 23 posts.

How many pickets do I need for 100 feet of fence?

Divide 1,200 inches by the picket width plus the gap. With 5.5 in pickets installed tight, that’s 218.2, so about 219 pickets before waste, or 230 with 5% extra.

How many bags of concrete per fence post?

It depends on the hole. A 10 in hole 48 in deep around a 4×4 holds about 1.84 cu ft, which is about 3.1 bags of 80 lb concrete at 0.6 cu ft per bag.

How deep should fence posts be in Canada?

Deep enough to get below frost, which is 4 ft (1.2 m) or more in much of the country. Check with your municipality, and get a locate before you dig.

Should fence posts be 6 or 8 feet apart?

Eight feet is the most common spacing for wood fences and uses standard 8 ft rails. Six feet makes a stiffer fence and suits taller fences, heavy pickets or windy sites, at the cost of more posts.

Does the fence calculator work in metric?

Yes. Switch to metric to enter the fence in metres, pickets in millimetres and holes in centimetres, with 30 kg concrete bags.

Run it yourself.
Or text it.

Free for 7 days. No credit card. Every tool and Contruva AI included.

Start free trial