Backyard Numbers

Home › Guides › Cedar vs pressure-treated fence

Cedar vs pressure-treated fence: which is better?

A pressure-treated pine fence costs roughly half as much to build, about $10–$25 a foot installed against $18.50–$46.50 for cedar. Cedar lasts longer (15–30 years vs 10–15), stays straighter and needs less help to look good, so over its life the yearly cost is close. Most good wood fences use both: pressure-treated posts in the ground and cedar boards above it.

Side by side

Pressure-treated pineCedar
Installed cost$10–$25 per linear ft (Ergeon)$18.50–$46.50 per linear ft (Angi); about $33 typical (Ergeon)
Materials only$1–$5 per linear ft (Angi)$8.50–$16.50 per linear ft (Angi)
Lifespan10–15 years (Lowe's)15–30 years (Lowe's)
Rot and insectsChemically treated; best in the groundNatural oils resist both above ground; posts rot in soil
Warping and shrinkingShrinks and can twist as it driesResists warping, splitting and shrinking
Look when newPale yellow with a green tintWarm red-brown
AgingGrays; stain hides the greenSilvers to gray unless sealed
First stainOnce fully dry: weeks to monthsAfter 6–8 weeks (Lowe's)
RestainEvery 2–3 yearsEvery 2–3 years (Lowe's) to 3–5 (Angi)
WeightHeavy and wet when newLight, easy to handle and cut

The sources don't fully agree on lifespans: Angi says a well-kept pressure-treated fence can reach 40 years and Ergeon's own figures range widely. The ranges above from Lowe's are the most conservative and the most often quoted.

Cost per year: closer than the price tag suggests

Take a 150 ft privacy fence, a typical back and two sides:

Pressure-treatedCedar
Installed, 150 ft$1,500–$3,750$2,775–$6,975
Midpoint$2,625$4,875
Midpoint lifespan12.5 years22.5 years
Cost per yearabout $210about $217

Both need staining every few years either way, so the maintenance roughly cancels out. That makes the choice less about money and more about how long you'll own the house: staying 5–10 years, pressure-treated is the cheaper way to get a fence; staying 20, cedar avoids a rebuild halfway through. Get a shopping list for your own length with the fence calculator, and see every fence type's price in the fence cost guide.

Why cedar fences use pressure-treated posts

Cedar's natural oils protect it in the air, but buried in damp soil it rots. Angi notes that cedar has poor soil resistance and that "most fence installations use pine posts even when the panels are made of a different species of wood". Treated pine, by contrast, does well in the ground and in concrete footings. So the usual build is pressure-treated 4×4 posts rated for ground contact (the end tag says so) with cedar pickets and often cedar rails. You get a fence that looks like cedar and lasts like it, without the weak point at the ground line. Set the posts with the fence post concrete calculator; it counts bags per hole.

When to pick pressure-treated

  • Budget comes first, or the fence is long: on a 300 ft farm or boundary fence the gap is thousands of dollars.
  • You plan to paint or stain a solid color anyway, so cedar's grain wouldn't show.
  • Boards will touch the ground, such as a rot board along the bottom or a fence on a slope with low gaps.
  • You're selling within a few years and need a sound, tidy fence for the listing.

When to pick cedar

  • You want a natural wood look with only a clear or lightly tinted sealer.
  • Straight boards matter: shrinking and twisting treated pickets open gaps in a privacy fence.
  • You'll be in the house long enough to see the longer life pay off.
  • You're building yourself: cedar is lighter to carry and cut, and treated lumber is heavy and wet when new.

Staining either one

New treated lumber is too wet to take stain; Lowe's says it can take from a few weeks to several months to dry. Sprinkle water on it: if it beads, wait; if it soaks in, it's ready. Cedar can be stained after about 6–8 weeks. Either way, wash the fence yearly and restain every 2–5 years depending on sun and the product. The deck stain calculator uses the same coverage figures, so you can work out gallons by treating each side of the fence as a deck area (length × height × 2 sides). If the fence has already turned gray, a wood brightener before staining brings back most of cedar's color.

Worked example: what the 150 ft fence needs

  1. Posts every 8 ft: 150 ÷ 8 = 18.75, round up to 19 sections, so 20 posts (plus one for a gate). Pressure-treated either way.
  2. Pickets at 5½ in wide, side by side: 150 × 12 ÷ 5.5 ≈ 328 pickets, plus about 5% spare.
  3. Rails: three per section for a 6 ft fence, 57 rails of 8 ft.
  4. Materials are where the woods differ most: $1–$5 a foot for treated pine against $8.50–$16.50 for cedar (Angi), and Angi puts installer labor at about $10–$30 a foot for either wood.

Sources: Lowe's, best wood for a fence (updated April 2026) (pressure-treated 10–15 years, cedar 15–30, stain every 2–3 years, wait 6–8 weeks for cedar, treated lumber drying time); Ergeon, best wood for fencing (updated May 2026) (pressure-treated $10–$25 per foot installed, cedar about $33); Angi, cedar fence cost (2026) (cedar materials $8.50–$16.50 and all-in $18.50–$46.50 per foot); Angi, cedar vs pine fencing (pine materials $1–$5 per foot, labor $10–$30 per foot, cedar posts rot in soil, pine posts used under other woods, staining every 2–3 vs 3–5 years, appearance); Angi, cedar vs pressure-treated wood (warping and shrinking, ground contact, stain on new treated wood). Cost per year and the 150 ft example are our own arithmetic.

Frequently asked questions

Is cedar or pressure-treated better for a fence?

Cedar looks better, stays straighter and lasts longer (15–30 years vs 10–15). Pressure-treated pine costs about half as much and is better in the ground. The best of both is pressure-treated posts with cedar boards.

How much more does a cedar fence cost than pressure-treated?

Roughly double installed: about $18.50–$46.50 a foot for cedar against $10–$25 for pressure-treated. On a 150 ft fence that's about $2,800–$7,000 vs $1,500–$3,750.

Should cedar fence posts be pressure-treated?

Yes. Cedar rots when buried in damp soil, so most cedar fences use pressure-treated posts rated for ground contact, with cedar pickets and rails above.

How long does a pressure-treated fence last?

Typically 10–15 years, according to Lowe's, and longer if it's kept stained and the posts are well set. Cedar usually lasts 15–30 years.

Do you have to stain a cedar fence?

No, but without a sealer it weathers to silver-gray. To keep the red-brown color, seal it about 6–8 weeks after building and every few years after that.

Reviewed by the Backyard Numbers team. Last updated 2026-12-01. Figures are typical averages; confirm with your local supplier. How we source our numbers.