Fence calculator

Updated Nov 30, 2026 How we calculate Free · no sign-up · runs in your browser

Enter your fence length and height to get the posts, rails, pickets and post-hole concrete you need, with a cost estimate you can adjust to your local prices.

Free Fence calculator by TapeMeasure Calc ↗

Your fence

How do I measure?
gate (counts in length) corner yard (top view) total length = all sides added up
  1. Walk the whole fence line with a tape or measuring wheel and add up every side, in feet.
  2. Include gate openings in the total. Enter the number of gates separately.
  3. Count each place the fence changes direction as a corner.
ft
Fence style
gates
corners
Materials and prices
in
A 1x6 picket is 5.5 in wide.
in
ft
%
in

Unit prices (edit to match your store):

$
$
$
$
$

Material list

For your fence
–

Good week to pour concrete?

Check your 7-day forecast for freezing nights, rain and heat before you pour.

    General guidance from typical product and industry rules; always follow the instructions on your bag or can. Forecast data: Open-Meteo.

    How to use the fence calculator

    1. Measure the full fence line in feet, including the gates. Walk it with a measuring wheel or tape and add up every side.
    2. Pick the height and style. Privacy fences have pickets touching; spaced picket fences leave a gap (2–3 in is typical).
    3. Enter gates and corners. Each gate opening is removed from the picket count and adds a post. Each corner can add a section because sides rarely divide evenly by the post spacing.
    4. Check the prices under “Materials and prices” and change them to what your local store charges. The list updates as you type.

    How the numbers are worked out

    The calculator assumes a standard wood fence: 4x4 posts set in concrete, 2x4 rails running between posts, and vertical pickets nailed to the rails.

    sections = ⌈(fence length − gate openings) ÷ post spacing⌉ + corners
    posts = sections + 1 + gates
    rails = sections × rails per section (2, 3 or 4 by height)
    pickets = ⌈(length × 12) ÷ (picket width + gap)⌉ + gate pickets + extra %
    concrete per post = (π × (hole width ÷ 2)² − 3.5²) × depth

    Example: a 100 ft, 6 ft tall privacy fence with one 4 ft gate and posts 8 ft apart needs 12 sections, 14 posts (8 ft long), 36 rails and 230 pickets including the gate and 5% extra. Setting each post 2 ft deep in a 10 in hole takes about 0.92 cu ft of concrete, or 3 bags of 50 lb mix per post.

    Fence material quick reference

    Fence heightPost lengthBurial depthRails per section
    3–4 ft6–8 ft2 ft2
    5–6 ft8 ft2 ft3
    7 ft10 ft2.5 ft4
    8 ft12 ft3 ft4

    Tips before you buy

    Setting posts in concrete? Use the concrete calculator to size a footing or a larger batch. Building a deck next to the fence? Try the deck calculator.

    Last updated November 30, 2026.

    Embed this calculator on your website (free)

    Run a fence, deck or roofing business, or a DIY blog? Paste this code into your page and your visitors get the full calculator, free, no sign-up. It resizes itself to fit.

    Frequently asked questions

    How many fence posts do I need for 100 feet?

    With posts 8 feet apart, a straight 100 ft fence has 13 sections and needs 14 posts. At 6 ft spacing it needs 18 posts. Add one post for each gate and one section for each corner.

    How deep should fence posts be buried?

    A common rule is one third of the above-ground height, and never less than 2 feet. A 6 ft fence needs posts about 2 ft deep (8 ft posts); an 8 ft fence needs about 3 ft (12 ft posts). In cold climates, go below your local frost line.

    How many bags of concrete per fence post?

    A 10 inch wide hole, 2 ft deep, around a 4x4 post holds about 0.92 cubic feet of concrete. That is 3 bags of 50 lb fast-setting mix, 3 bags of 60 lb or 2 bags of 80 lb.

    How many pickets are in an 8 foot fence section?

    With standard 5.5 in wide pickets installed edge to edge, an 8 ft (96 in) section takes 18 pickets. With a 2.5 in gap between pickets it takes 12.

    Should fence posts be 6 or 8 feet apart?

    Eight feet is the standard for wood privacy fences because rails come in 8 ft lengths. Use 6 ft spacing in windy areas, on slopes, or for heavier materials like vinyl or composite.

    How many rails does a fence need?

    Two rails for fences up to 4 ft tall, three rails for 5–6 ft fences, and four rails for 7–8 ft fences. More rails keep pickets from warping.