Home › Calculators › Fence Calculator

Fence Calculator

Enter the fence length, post spacing, rails per section, picket size and gates to get a full materials list: posts, rails, pickets and the bags of concrete needed to set the posts, in feet or metres.

Last updated:

Fence layout

Pickets

Post holes and concrete

Fence posts–
Sections–
Rails–
Pickets–
Concrete bags–
Concrete volume–
Fenced length–

Section preview

Advertisement

How to use the Fence Calculator

  1. Choose feet or metres at the top.
  2. Enter the total length, height and post spacing (8 ft or 2.4 m is common) and how many rails each section has.
  3. Add gates with their width; gate openings get no rails and an extra post each.
  4. Enter the picket width and gap (use a gap of 0 for a solid privacy fence) and a waste allowance.
  5. Set the post size, hole size and concrete bag, then press Calculate to see posts, rails, pickets and bags of concrete.

Fence calculation formulas

  • Fenced length = total length − (number of gates × gate width).
  • Sections = fenced length ÷ post spacing, rounded up.
  • Posts = sections + 1 + number of gates.
  • Rails = sections × rails per section.
  • Pickets = length to cover ÷ (picket width + gap), rounded up.
  • Concrete per post = π × (hole diameter ÷ 2)² × depth − post cross-section × depth.

Worked example: 100 ft picket fence with one gate

  1. Fenced length: 100 − 4 = 96 ft. Sections: 96 ÷ 8 = 12.
  2. Posts: 12 + 1 + 1 gate post = 14 posts. With 2 rails per section: 24 rails.
  3. Pickets (5.5 in wide, 0.5 in gap), gate covered too: 100 × 12 = 1,200 in ÷ 6 in = 200 pickets.
  4. Concrete: a 10 in × 24 in hole holds π × 5² × 24 = 1,885 in³, minus a 3.5 × 3.5 in post (294 in³) = 1,591 in³ = 0.92 ft³. For 14 posts that is 12.9 ft³, or 22 bags of 80 lb concrete at 0.6 ft³ each.

Concrete bag yields

Bag sizeApproximate yieldBags per 4×4 post (10 × 24 in hole)
40 lb0.30 ft³3.1
50 lb0.375 ft³2.5
60 lb0.45 ft³2.0
80 lb0.60 ft³1.5
25 kg≈ 11.7 L (0.0117 m³)about 2.0 for a 100 mm post in a 25 × 60 cm hole

Frequently asked questions

How many fence posts do I need?

Divide the fenced length (without gates) by the post spacing and round up to get the number of sections, then add one post for the end and one extra post per gate. A 100 ft fence with one 4 ft gate and 8 ft spacing: 96 ÷ 8 = 12 sections, so 12 + 1 + 1 = 14 posts.

How far apart should fence posts be?

6 to 8 feet (1.8 to 2.4 m) is standard for wood fences. 8 ft suits most picket and privacy fences built with 8 ft rails; use 6 ft for tall fences, windy sites or heavy boards. Chain link posts are usually up to 10 ft apart.

How many pickets do I need?

Divide the length to cover by the picket width plus the gap. For 96 ft of fence with 5.5 in pickets and 0.5 in gaps: 96 × 12 = 1,152 in ÷ 6 in = 192 pickets. For a privacy fence with no gap, use a gap of 0.

How many bags of concrete per fence post?

For a 4×4 post in a 10 in wide, 24 in deep hole, the concrete needed is about 0.92 ft³, so roughly 1.5 bags of 80 lb concrete (0.6 ft³ each) or 2.5 bags of 50 lb. The calculator multiplies this by the number of posts and rounds up.

How deep should fence post holes be?

A common rule is one third of the post's above-ground height, plus about 6 inches of gravel at the bottom for drainage: about 2 to 3 ft for a 6 ft fence. In cold climates go below the frost line. Holes should be about three times the post width.

How many rails does a fence need?

Fences up to about 4 ft high usually use 2 rails per section. 5 to 6 ft privacy fences use 3 rails to stop the boards warping, and 8 ft fences often use 4.

Do I need extra posts for corners?

This calculator assumes one continuous run. Every corner should have its own post, so if a corner does not fall on a regular post position, add one post per corner or enter each straight side separately and add the results.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Concrete CalculatorEstimate concrete volume, bags and cost.Square Footage CalculatorTotal sq ft and m² for rooms of any shape, with cost estimate.Mulch CalculatorFind how much mulch you need in cubic yards and bags.Gravel & Crushed Stone CalculatorWork out cubic yards, tons and bags of gravel or crushed stone.Board Foot CalculatorAdd up board feet and lumber cost for any list of boards, nominal or actual size.Deck Stain CalculatorGallons of deck stain or sealer for the floor, railing and stairs, by coats and wood condition.Feet to CMConvert feet to centimeters (ft to cm) instantly, with formula and chart.KM to FeetConvert kilometers to feet (km to ft) instantly, with formula and chart.Paint CalculatorHow much paint for a room, minus doors and windows, in gallons or liters.Tile CalculatorHow many tiles and boxes you need for a floor or wall, with waste.Flooring CalculatorWork out flooring area, boxes needed and cost with waste allowance.Drywall CalculatorCount drywall sheets, screws, joint compound and tape for walls and ceilings.Brick CalculatorEstimate bricks, mortar volume and mortar bags for a wall, minus openings.Deck CalculatorDeck boards, joists, posts, screws and total cost from your deck size.Wallpaper CalculatorWork out how many rolls of wallpaper you need, with pattern repeat and waste.Stair CalculatorFind riser height, tread run, stringer length and angle, with IRC code checks.Insulation CalculatorFind the R-value to add for your climate zone and how many batts or blown-in bags to buy.Moving Cost CalculatorCompare DIY truck, full-service movers and container costs, with truck size and packing estimates.Concrete Block CalculatorCount concrete blocks (CMU) for a wall, minus doors and windows, plus mortar bags.Roof Pitch CalculatorConvert rise and run or an angle to roof pitch x/12, degrees, slope % and rafter multiplier.TV Size CalculatorFind a TV or monitor's width, height and area from its diagonal and compare two screens.TV Viewing Distance CalculatorBest seating distance for your TV size and resolution (SMPTE, THX, 4K), or the best TV size.Price per Square Foot CalculatorFind price per sq ft or m², total price or area, and compare several homes by value.House Flipping CalculatorFix-and-flip profit, ROI and 70% rule max offer from purchase, rehab, holding and sale costs.Stud CalculatorCount wall studs and plates from wall length, spacing, corners and openings.Carpet CalculatorCarpet for your rooms in sq ft and sq yd from a 12 or 15 ft roll, with padding and cost.Baseboard CalculatorLinear feet of baseboard and number of pieces for your rooms, minus doorways.Grout CalculatorGrout in kg, lb and bags from tile size, joint width, depth and area.Asphalt CalculatorTons of asphalt from area and thickness at 145 lb/ft³, with volume and cost.Sand CalculatorSand in cubic yards, m³, tons and bags for any area and depth.Siding CalculatorSiding squares, panels and J-channel from walls and gables minus doors and windows.Concrete Steps CalculatorConcrete volume and bags for poured steps from step count, rise, run, width and landing.Baluster Spacing CalculatorNumber of balusters and exact gap and on-center spacing for a railing under the 4-inch rule.Caulk CalculatorCaulk volume and number of 10.1 oz cartridges or squeeze tubes from joint length and size.Ceiling Fan Size CalculatorCeiling fan blade span, downrod length and minimum airflow (CFM) for any room.Concrete Mix Ratio CalculatorCement bags, sand, gravel and water for any concrete mix ratio (1:2:3, 1:2:4, M15, M20).Curtain Size CalculatorCurtain length, panel width and number of panels from your window size and fullness.Dehumidifier Size CalculatorPints-per-day dehumidifier capacity for your room size and dampness, old and new ratings.AC Running Cost CalculatorFind what your air conditioner costs to run per hour, day and month from BTU, SEER and your rate.Balloon Garland CalculatorHow many balloons for a garland or arch: counts by size and color, packs, helium and build time.Bathroom Remodel Cost CalculatorEstimate a bathroom remodel by size, type and finish, with itemized tile, vanity and labor.Board and Batten CalculatorBattens, spacing, linear feet and cost for a board and batten accent wall or siding.CFM CalculatorFind the CFM a fan needs for a room from its size and air changes per hour.Christmas Lights CalculatorLight strands, bulbs, watts and strands per circuit for a tree, roofline or shrubs.Cost to Build a House CalculatorEstimate the cost to build a house by size, stories, quality, garage, basement and region.House Painting Cost CalculatorEstimate paint gallons, supplies and labor cost to paint a house inside or out.Countertop CalculatorSquare footage and installed cost of countertops, including L/U shapes and backsplash.Crown Molding CalculatorMiter and bevel settings for crown molding plus linear feet, pieces and a cut list.Cut List OptimizerLay out plywood and MDF parts on sheets with kerf and grain, and print the cutting diagrams.Deck Footing CalculatorConcrete volume, 40–80 lb bags and form tubes for round or square deck footings.Dumpster Size CalculatorEstimate cubic yards and tons of debris and pick the right 10–40 yard roll-off dumpster.Heat Pump Savings CalculatorCompare your gas, propane, oil or electric heating cost with a heat pump and see the payback.Kitchen Remodel Cost CalculatorEstimate a kitchen remodel by size, finish level and scope with an itemized cost breakdown.Metal Roofing CalculatorPanel count and cut lengths, screws, ridge cap and trim for a metal roof.Moving Truck Size CalculatorCount your furniture and boxes to get cubic feet and the right moving truck, 10 to 26 ft.Projector Throw Distance CalculatorThrow distance, screen size and image height from your projector's throw ratio.Roof Replacement Cost CalculatorEstimate the cost of a new roof from footprint, pitch, material and tear-off layers.Rug Size CalculatorFind the right rug size for a living room, bedroom or dining room, with a placement preview.Solar Panel Output CalculatorDaily, monthly and yearly kWh from your solar panels, and what that power is worth.Space Heater Cost CalculatorCost to run a space heater per hour, day, month and season, high vs low vs eco.Storage Unit Size CalculatorList your furniture and boxes to find the right storage unit, 5x5 to 10x30, with fill %.Event Table CalculatorHow many tables and chairs for a wedding or party, with head table, linens and floor space.Attic Ventilation CalculatorFind the attic net free vent area (1/150 or 1/300) and how many ridge, soffit and box vents.Concrete Weight CalculatorWeight of a concrete slab, block or cylinder in lb, kg and tons, with hauling loads.Deck Railing CalculatorPosts, rails, balusters, post caps and hardware for your deck railing runs.Drywall Mud CalculatorJoint compound buckets, tape rolls and drywall screws from square feet or sheets and finish level.Even Spacing CalculatorSpace shelves, posts, pickets or pictures evenly: equal gap, on-center spacing and every mark.HVAC Replacement Cost CalculatorEstimate the installed cost and tonnage of a new AC, furnace, heat pump or mini-split.
See all 99 Home & Construction Calculators →