Side by side
| Pressure-treated pine | Cedar | |
|---|---|---|
| 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) |
| Lifespan | 10–15 years (Lowe's) | 15–30 years (Lowe's) |
| Rot and insects | Chemically treated; best in the ground | Natural oils resist both above ground; posts rot in soil |
| Warping and shrinking | Shrinks and can twist as it dries | Resists warping, splitting and shrinking |
| Look when new | Pale yellow with a green tint | Warm red-brown |
| Aging | Grays; stain hides the green | Silvers to gray unless sealed |
| First stain | Once fully dry: weeks to months | After 6–8 weeks (Lowe's) |
| Restain | Every 2–3 years | Every 2–3 years (Lowe's) to 3–5 (Angi) |
| Weight | Heavy and wet when new | Light, 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-treated | Cedar | |
|---|---|---|
| Installed, 150 ft | $1,500–$3,750 | $2,775–$6,975 |
| Midpoint | $2,625 | $4,875 |
| Midpoint lifespan | 12.5 years | 22.5 years |
| Cost per year | about $210 | about $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
- 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.
- Pickets at 5½ in wide, side by side: 150 × 12 ÷ 5.5 ≈ 328 pickets, plus about 5% spare.
- Rails: three per section for a 6 ft fence, 57 rails of 8 ft.
- 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.