Skip to main content
Fence Calculator

Pressure-Treated Fence Calculator

Plan pine privacy fences with accurate counts for pressure-treated pickets, ground-contact posts, rails, and concrete bags.

Fence calculator

Enter your specs. Every result updates live and shows its formula.

ft
Advanced settings
Local prices (optional)

Enter your own local unit prices to see a cost estimate. Leave blank to skip cost.

Saved quotes

No saved quotes yet.

Enter your fence length to see the full material and cost breakdown.

Overview

Pressure-treated pine (PT pine) is the most popular, cost-effective fencing material in North America. Chemical preservatives forced deep into wood fibers protect against termite infestation, fungal decay, and fungal rot.

Because pressure-treated lumber arrives moist from the chemical treatment plant, pickets must be installed tightly butted together since they shrink as they dry in outdoor sun.

Assumptions

  • Posts are rated UC4A Ground Contact pressure-treated southern yellow pine or fir.
  • Pickets are 1x6 dog-ear or flat-top boards spaced butted tightly edge to edge.
  • Concrete calculation uses standard dry weight bags (60 lb mix) based on cylindrical hole volume.
  • Includes standard 10 percent material allowance for natural board bowing and jobsite cuts.

Common mistakes

  • Leaving wide gaps between wet pressure-treated pickets during installation, resulting in huge unsightly cracks after the wood shrinks.
  • Purchasing Above Ground (UC3B) rated posts instead of Ground Contact (UC4A) rated posts for below-grade installation.
  • Applying exterior paint or water-sealant before wet pressure-treated lumber has fully dried out over several months.
  • Using interior screws that corrode quickly from copper chemical reactions inside pressure-treated lumber.

Fence calculation formulas

The same math the calculator runs, in plain terms. Nothing here is a black box.

  • Sections

    sections = max(ceil(effective run / post spacing), 1)

  • Post count

    posts = (sections + 1) along the run, minus named corner and end posts already placed, plus 2 gate posts per gate

  • Effective run

    effective run = total length - sum of gate widths

  • Rail count

    total rails = sections x rails per section

  • Picket count

    pickets = ceil(run in inches / (picket width + gap)); total = ceil(raw x (1 + waste %))

  • Board-on-board pitch

    pitch = picket width - 1 in overlap

  • Panel count

    full panels = floor(run / panel width); add 1 cut panel if the remainder is over 0.01 ft; total = ceil(raw x (1 + waste %))

  • Concrete volume

    per-hole = pi x (diameter / 2)^2 x depth; total = per-hole x posts; bags = ceil(total / bag yield)

  • Slope-adjusted run

    slope run = effective run / cos(atan(slope % / 100)); shown alongside, counts use the flat run

  • Cost

    materials = (posts x post price + rails x rail price + infill x unit price + 60 lb bags x bag price) x regional multiplier; labor = effective run x labor per ft x terrain multiplier x regional multiplier; installed total = materials + gate hardware + removal + permit + labor

Every number the calculator shows comes from these formulas applied to your inputs.

In-depth guides

Buying guide

Pressure-treated pine is the most common, lowest-cost wood fencing material in North America, with chemical preservatives forced into the wood fibers to resist termites and fungal decay without relying on a naturally rot-resistant species like cedar or redwood. It uses the same post, rail and picket formulas as the general wood fence calculator, but with one real difference to plan around: the lumber arrives wet from the treatment plant and shrinks as it dries outdoors, so boards are commonly installed tightly butted to avoid unsightly gaps once that shrinkage happens.

A butted privacy layout is the most common style built in pressure-treated pine, and a stockade fence with pointed pickets and zero gap is a close cousin of the same idea. Rating matters more than species choice here: posts embedded in soil or concrete need Ground Contact rated lumber, while rails and pickets kept above grade only need the lighter Above Ground rating, and mixing the two up is a common and avoidable mistake on a pressure-treated job.

Posts need gravel at the bottom of the hole so water drains rather than sitting against the end grain, and the fence post calculator is where to confirm spacing and count for the species and height chosen. Once hole size is set, the concrete bags calculator converts that into a bag count for the order, using the same cylindrical hole volume math that applies no matter which wood species sits above the footing.

Against the premium species on this site, cedar costs more but needs no chemical treatment and dries less, while pressure-treated pine stays the budget default for most residential jobs. How much does a wood fence cost and the fence cost guide give a starting range before local pricing is entered here, and how to install a wood privacy fence along with the wood fence installation guide cover the build sequence, including the waiting period before staining wet lumber. The wood fence calculators hub links every other species and style this site covers.

Pressure-treated lumber is also graded by its retention level, the amount of preservative chemical per cubic foot of wood, and a higher retention level is required for ground contact than for above-ground use for the same reason the UC3B and UC4A ratings exist: more sustained soil moisture contact needs more preservative to resist decay over the same service life. Checking the retention level or UC rating stamped on a board, rather than assuming all pressure-treated lumber at a yard is interchangeable, is worth the extra minute at the point of purchase.

Treated lumber can also vary noticeably in straightness and moisture content between bundles, which is part of why the waste allowance on a pressure-treated job is often set a bit higher than on kiln-dried cedar or redwood: expect to sort through and set aside a slightly larger share of bowed or twisted boards on a pressure-treated order than on a drier species, and plan the waste factor accordingly rather than using the same percentage across every species.

Micronized copper preservatives used in modern pressure-treated lumber are corrosive to plain steel, so fasteners need to be hot-dipped galvanized or polymer-coated specifically for treated lumber rather than whatever interior-grade screws happen to be on hand. This is a detail that does not show up in a material quantity take-off but shows up a year or two later as rust streaks and loosening fasteners if it gets skipped.

Staining too early is the most common mistake on a pressure-treated job, since the wood needs to dry out, commonly 2 to 6 months, before an oil-based finish will absorb properly rather than sitting on top of residual moisture. A simple field test, sprinkling water on the board and watching whether it beads or soaks in, is a practical way to check readiness without guessing at a calendar date, and it does not require any special equipment beyond a cup of water.

Pressure-treated lumber is also available in different wood species depending on region: southern yellow pine is the most common base species in the southeastern and central United States, while other treated softwoods appear more often in other regions, and the treatment process matters more to performance than the base species does, provided the rating matches the application. Checking the UC rating stamp rather than assuming a species name guarantees a particular performance level is the more reliable approach regardless of region.

Some jurisdictions also restrict certain older preservative chemicals from residential use, so a pressure-treated product bought today uses a different formulation than lumber treated decades ago. That history does not affect current material counts or formulas, but it is a reasonable question to ask a supplier if comparing new lumber against an older existing fence on the same property.

Storing pressure-treated lumber off the ground and under cover between delivery and installation also helps it dry more evenly, which reduces the amount of twisting and cupping that shows up once the boards are in full sun on the finished fence.

Frequently asked questions

How long should you wait before staining pressure-treated pine?

Wait 2 to 6 months until the wood passes the splash test: sprinkle water drops on the board, and if they soak in rather than beading up, the wood is ready for oil-based stain.

Why do pressure-treated pickets shrink after installation?

PT lumber is saturated with water and preservative solutions during manufacturing. As boards dry in outdoor air, pickets shrink across their width by up to 1/8 to 1/4 inch.

What is the difference between UC3B and UC4A ratings?

UC3B is rated for Above Ground use only (like rails and pickets). UC4A is rated for Ground Contact and must be used on posts embedded in earth or concrete.

How many posts are needed for 150 feet of pressure-treated fence?

At standard 8-foot post spacing, 150 feet requires 19 sections, meaning 20 line and end posts, plus additional posts for gate openings.

Do pressure-treated fence posts require gravel beneath them?

Yes. Placing 4 to 6 inches of crushed gravel at the bottom of each post hole lets surface water drain away and stops the bottom end grain from soaking in stagnant water.

Can pressure-treated lumber cause fastener corrosion?

Yes. Micronized copper preservatives are corrosive to plain steel. Always use hot-dipped galvanized (ASTM A153) or polymer-coated exterior wood screws.

How long does a pressure-treated pine fence last?

A pressure-treated pine fence regularly maintained and sealed every 2 to 3 years typically lasts 15 to 20 years before requiring structural rail or post replacement.

What size rails should be used on a 6-foot PT fence?

Use three 2x4 horizontal backer rails per 8-foot bay. Two rails are insufficient and allow 6-foot pickets to bow and cup in direct sun.