
Willem Warmbold
Learn how to build a wood fence that lasts decades, then see why Black Locust Lumber ships rot-resistant decking and fencing lumber nationwide. Get a sample.

Learning how to build a wood fence comes down to three things: setting posts below the frost line, bracing the gate so it won't sag within a year, and choosing a wood species that won't rot out before the kids graduate college. Most guides cover the first two and skip the third, which is exactly where most fences fail. This guide walks through the full build from layout to gate, then compares pine, cedar, and naturally rot-resistant hardwoods like black locust decking, so you know which wood is worth the extra cost up front and which one you'll be replacing in a decade.

Before digging a single hole, pull together your tools and materials and handle the paperwork that protects you later.
| Category | What You Need |
|---|---|
| Tools | Post-hole digger or power auger, 4-foot level, circular saw, drill with bits and driver, tape measure, chalk line, speed square, clamps |
| Materials (per 8-ft panel, 6-ft fence) | One 4x4 post, three 2x4 rails, six to eight 1x6 pickets, two 80-lb bags fast-setting concrete |
Measure your full property line in linear feet and divide by eight to get your panel count, then add roughly 10 percent extra on pickets to cover cuts and mistakes. Buying everything in one trip beats a mid-project hardware store run you hadn't budgeted for.
Two calls matter more than any tool on that list:

Walk the property line before you buy anything.
Drive a stake at each corner, then run a string line between them so you can see exactly where the fence will sit and where the ground slopes. Mark each post location along the line, spacing posts 6 to 8 feet on center. On sloped ground, decide up front whether to stair-step the panels for a cleaner look or rack them to follow the grade, which works better on steep, uninterrupted slopes.
Treat the gate as its own system, not an afterthought. Start with the opening itself:
| Gate Type | Clear Opening Needed |
|---|---|
| Standard pedestrian gate | 36-48 inches |
| Vehicle gate | 10-12 feet |

With the layout marked and materials on site, the build breaks into three stages: setting the posts, framing the fence, and building a gate that will still swing true in ten years.
Most gate failures trace back to two mistakes: a diagonal brace running the wrong direction, and hinges sized for looks instead of load.

Species matters more than any finish you put on top of it, and it's the step most guides skip past fastest. Rot resistance comes down to density and natural extractives inside the wood itself, the oils and tannins that make a species inhospitable to decay fungi and insects. Pressure-treated pine gets that resistance from a chemical bath after milling. Cedar and black locust are born with it.
| Species | Typical Lifespan | Maintenance | Chemical Treatment Needed |
|---|---|---|---|
| Pressure-treated pine | 10-15 years | Moderate | Yes |
| Cedar | 15-20 years | Moderate | No |
| Black locust | 40+ years | Low | No |
Choosing black locust over an imported tropical hardwood like ipe works a lot like buying a tomato from a farmer's market instead of one flown in from across the world: comparable quality, but a shorter, more traceable supply chain grown and milled on the same continent where it ends up installed.
Replacement cycle. A pine fence installed today for around $2,500 in materials often needs replacing within 12 years. Black locust is built to skip that second build entirely.
Track record. Black Locust Lumber backs every order with a 50-year rot resistance warranty on untreated wood, built on 25 years of sourcing, milling, and finishing black locust exclusively, in work you can see in completed projects ranging from university campuses to luxury residential builds. The same wood also supplies black locust siding for the same kind of decades-long outdoor use.

| Species | Material Cost (per linear ft) | Installed Cost (per linear ft) |
|---|---|---|
| Pressure-treated pine | $10-$15 | $30-$65 |
| Cedar | $14-$22 | $34-$72 |
| Black locust or comparable hardwood | $20-$30 | $40-$80 |
For a typical 150-foot backyard run, total project cost lands somewhere between $1,500 and $4,500 for a DIY pine build, or $4,500 to $12,000 and up for a professionally installed hardwood fence.
The number that actually matters is the 25-year number, not the first invoice. A pine fence replaced once or twice over that span adds its full material and labor cost back on top of the original, while a fence built from a species rated for 40-plus years in ground contact gets built once and stays built. That's the same math commercial and institutional buyers use when they specify lumber for public projects, where a replacement cycle means scaffolding, crews, and downtime, not just a trip to the lumber yard.

If your gate is dragging, scraping the ground, or sitting crooked against the latch post, the cause is almost always one of three things, and none of them require tearing out the whole fence.
| Cause | Fix |
|---|---|
| Brace running the wrong way | Run the diagonal from the bottom hinge corner up to the top latch corner. Reversed, it works in compression instead of tension and will keep failing no matter how many times you tighten the hardware. |
| Hinges undersized | Hinges rated below the gate's actual weight stretch and loosen over time, especially on heavier solid-board gates. Upgrade to hinges rated well above actual weight. |
| Post leaning, not gate failing | A sagging gate is sometimes a post problem wearing a gate's symptoms. A post that's started to lean usually means its concrete footing wasn't deep or wide enough to begin with. |
A gate built with the brace running the right direction and hinges sized for the actual load rarely needs this kind of troubleshooting in the first place, which is why that step gets its own section earlier in this guide instead of an afterthought at the end.
A wood fence is a straightforward weekend project once the layout is marked, the posts are set right, and the gate is braced in the correct direction. The piece that actually decides whether you're doing this again in twelve years is the wood itself.
Bury about one-third of the post's total length plus 6 inches below your local frost line. A 9-foot post for a 6-foot fence typically goes about 3 feet into the ground, though exact frost depth depends on your region.
Yes, as long as the two posts on either side of the opening are reset or reinforced to carry a gate's swinging weight. Standard line posts aren't deep or thick enough on their own to support hinges and a latch long term.
Installing lumber before it has acclimated to outdoor humidity is the usual cause, especially with pressure-treated pine, which still carries a lot of moisture at the lumber yard. Letting boards sit on site for a few days before installation, and sealing cut ends where moisture enters fastest, cuts down on warping significantly.
No. Black locust is naturally rot and insect resistant without chemical treatment, which is also why it carries a 50-year rot resistance warranty untreated.
It costs more per linear foot up front than pine or cedar, but it's rated to last roughly twice as long as cedar and more than three times as long as pressure-treated pine, which changes the real cost once a second or third build is factored in.
Continue Reading

Wood Boardwalk Guide: How to Choose and Build One

Deck Wood Alternatives: Black Locust vs 6 Other Materials

Luxury Decking Materials: What High-End Decks Are Built From

Natural Wood Deck or Composite? What Each Actually Costs