ProjectMath

Fence calculators & cost guides

Weathered wooden board fence under a blue sky

Building, replacing or refinishing a fence? Work through these in order: price the fence, count the boards and posts, set the posts, then protect the wood.

Updated 2026-10-25 · 4 calculators and guides

Price it: Fence cost calculator →Materials & shopping list ↓

How to choose

Price the whole fence first. The cost calculator works per linear foot by material and height, and material is the decision that moves the total most. Once you've picked wood, the picket calculator counts pickets, posts and rails for your length, and the post-concrete page tells you how many bags to buy for each hole. The stain calculator is for the end of the job, or for refreshing an existing wood fence.

Every page in this topic follows the same rules: figures link to their source and show the date they were checked, and each calculator shows its formula and what it leaves out. See how we price.

Where to start

  1. Price the fence
    Installed and DIY cost per linear foot by material.
  2. Count pickets, posts and rails
    From fence length, picket width and gap.
  3. Set the posts
    Bags of concrete for every post.
  4. Stain and seal
    Gallons for your wood, or a pro's price.

All fencing calculators & guides

Also useful

Frequently asked questions

How do I estimate a whole fence project?

Get the budget from the fence cost calculator, then count materials with the picket calculator and concrete per post.

How much stain does a fence need?

It depends on length, height, sides and wood. The fence stain calculator uses the manufacturer's coverage figures for each wood type.

Where can I find cheap fence lumber?

See where to buy cheap lumber and the weekly lumber price index.

Other project topics

Sheds · Drywall & Painting · Heating & Insulation · Flooring · Garage Doors · Concrete & Landscaping · Roofing & Exterior · Kitchen & Bath · Decks & Lumber · Winter Home Costs · All calculators

Last reviewed: 2026-10-25 by Craig Antoine, editor. Prices are national planning ranges; get local quotes. How we price.