A fence that leans after the first big storm — or no fence at all where you need privacy from the neighbors — is the problem this guide solves. Here is the quick verdict: a standard 150-foot wood privacy fence installation costs $4,500–$7,500 installed by a pro crew, or $2,250–$3,750 in materials if you build it yourself over one long weekend. The posts decide everything. Get the depth and the concrete right and the fence stands straight for 20 years; get them wrong and it leans within two winters.
Table of Contents

How Much Does Fence Installation Cost?
For a typical fence installation, the material you choose moves the price more than anything else. A 150-foot wood privacy fence is the most common job in the US, so use it as your baseline. Prices below are 2026 national averages per linear foot.
| Material | Materials only (per ft) | Professionally installed (per ft) | 150-ft fence, installed |
|---|---|---|---|
| Pressure-treated pine privacy | $15–$25 | $30–$45 | $4,500–$6,750 |
| Cedar privacy | $20–$35 | $40–$60 | $6,000–$9,000 |
| Vinyl privacy | $25–$40 | $45–$75 | $6,750–$11,250 |
| Chain-link (4 ft) | $8–$15 | $15–$25 | $2,250–$3,750 |
| Aluminum ornamental | $25–$45 | $50–$80 | $7,500–$12,000 |
Three things push a quote above these ranges: a gate (a standard 4-foot walk gate adds $300–$600 installed; a double drive gate adds $800–$1,500), a slope (stepped panels add 15–25%), and rocky soil or old concrete footings that must be dug out ($50–$100 per old post). The biggest variable in fence installation pricing is the gate and the ground, so always get the quote broken down by line item — materials, labor, gates, haul-away — before you compare two bids.
Diagnose Your Fence Situation First
Before you buy a single board, work out which job you are actually doing. A fence installation is not one project; it is five different ones, and the fix depends on the symptom.
| Symptom | Likely cause | The fix |
|---|---|---|
| Old fence leaning after wind | Posts rotted at the ground line or set too shallow | Replace posts; set new ones 30–36 in. deep in concrete |
| Pickets warping and cupping | Cheap pine, or pickets nailed tight with no gap | Use cedar or pressure-treated pickets; leave a 1/4-in. gap |
| Gate sagging and dragging | Gate posts not concreted, or hinges too small | 6×6 gate posts in concrete; adjustable strap hinges |
| Fence line disputed by a neighbor | No survey; fence built on assumption | Stop and get a survey before digging |
| Water pooling at the fence base | Low grade; posts sitting in standing water | Regrade the soil; gravel at post bases; keep pickets 2 in. above soil |
If your old fence is leaning, do not try to straighten and re-nail it. A post rotted at the ground line has lost its strength where it matters most, and bracing it only buys one season.
Fence Installation: DIY or Hire a Pro?
A DIY fence installation saves roughly half the total cost, but only on the right yard. Use this table to decide honestly before you rent the auger.
| Your situation | Verdict | Why |
|---|---|---|
| Flat lot, under 150 ft, wood panels | DIY | Two people, one weekend, $1,200–$3,000 in materials |
| Slope over 15% or stepped ground | Hire a pro | Stepped panels and racked rails need experience to look right |
| Rocky soil, ledge, or old concrete footings | Hire a pro | A jackhammer rental and a day of digging eats your savings |
| Gate wider than 4 ft, or a double gate | Hire a pro for the gate | Gate posts carry real weight; a sagging gate never fixes itself |
| Pool fence, or any fence under a strict code | Hire a pro | Height, gaps, and latch rules are inspected — mistakes mean a rebuild |
| Boundary in dispute | Surveyor first, then decide | A fence built 6 inches over the line can cost thousands to move |
DIY cost for a 150-foot cedar privacy fence: materials $3,000–$5,250, tool rental (two-person auger $75–$100 per day), concrete $150–$250, and your time — 2 to 3 days for two people, plus 24–48 hours of concrete cure time before you hang rails or a gate. A pro crew does the same fence installation in 1–2 days. If you hire out your fence installation, the saving from DIY is real money — $2,000–$4,000 in labor — but only if you value your weekend at less than that.
Do You Need a Permit for Fence Installation?
Yes, often — and this is the step most DIYers skip. Most US cities require a permit for fences over 6 feet tall, for any fence in a front yard, and for fences around pools, where the rules are strictest. Backyard fences under 6 feet often need no permit, but “often” is not a guarantee. Call your city or county zoning office before you buy materials, and check your HOA rules too — an HOA can limit height, material, and color even when the city does not care.
Three checks before you dig:
- Property line. Use your lot survey, not the old fence and not the neighbor’s guess. If you cannot find your survey pins, hire a surveyor. A fence built on your neighbor’s land is your problem to move.
- Height and setback rules. Most cities cap backyard fences at 6 feet and front-yard fences at 3–4 feet, and some require a setback from the sidewalk or street. Corner lots have extra sight-line rules.
- Call 811. Before you dig a single hole, call 811 (free, nationwide) at least 2–3 business days ahead. The utility companies mark buried gas, electric, water, and cable lines. Hitting a gas line is not a mistake you get to make twice, and in most states digging without calling is illegal.
Fence Post Depth and Concrete Rules
Getting fence installation post depth wrong is the single most expensive mistake in this whole project, because you cannot fix a shallow post without digging it out and starting over. The rule is simple: bury one-third of the post’s height, plus 6 inches of gravel at the bottom — and always go below your local frost line, or frost heave will push the post up a little every winter until the fence leans.
| Climate / frost line | Minimum hole depth | Post for a 6-ft fence |
|---|---|---|
| Warm (frost under 12 in. — TX, FL, AZ) | 24 in. | 8-ft post |
| Moderate (frost 12–24 in. — VA, NC, TN) | 30 in. | 9-ft post |
| Cold (frost 24–36 in. — IL, OH, PA) | 36 in. | 9-ft post |
| Very cold (frost 36–48 in. — MN, ME, ND) | 42–48 in. | 10-ft post |
Hole diameter should be about three times the post width — 12 inches across for a standard 4×4 post. Put 4–6 inches of gravel in the bottom for drainage, set the post, and fill with concrete: roughly one to two 50-lb bags of fast-setting mix per post. Dome the top of the concrete so water runs away from the post instead of pooling against the wood — a flat top holds water against the post and rots it from the outside in. In well-drained soil, packed gravel alone works for line posts and drains better than concrete; reserve concrete for gate posts and freestanding end posts, which need the extra grip.
The 7-Step Fence Installation Process
Step 1: Mark the Line and Call 811
Start every fence installation by marking the line. Drive stakes at the corners and run a mason’s line between them, pulled tight. Walk the line and look for buried sprinkler heads, tree roots, and anything the survey shows. Call 811 and wait for the marks. Then measure the run and divide it into 6- to 8-foot sections so your posts land evenly — an odd 2-foot leftover section at the end looks like a mistake.
Step 2: Set the Corner and End Posts First
Corners and ends take the most strain, so set them first and let them cure while you work. Dig to the depth in the table above, add gravel, set the post, check plumb on two faces with a 4-foot level, and brace it with two diagonal 2x4s staked to the ground. Do not trust a single level reading: check your level by holding it against the post, noting the bubble, then flipping it 180 degrees — if the reading changes, the level is lying to you.
Step 3: Run String Lines and Mark Every Post
Stretch a mason’s line between the corner posts at the height your rails will sit. Mark each post spot with spray paint, keeping spacing at 6 to 8 feet. Here is the detail that separates a straight fence from a wavy one: sight down the string line from one end before you dig. A post that is half an inch off the line is invisible up close and obvious from 100 feet away.
Step 4: Dig the Holes
Dig each hole to frost depth with a post-hole digger or a rented two-person auger. Keep the hole the same width all the way down — a hole that narrows at the bottom gives the concrete nothing to grip. Toss the spoil on a tarp so your lawn survives the job. If you hit a root thicker than your wrist, cut it cleanly with a saw rather than tearing it out; a torn root invites rot into the tree.
Step 5: Set the Posts in Concrete
Place 4–6 inches of gravel in each hole, set the post, and pour in the concrete mix. Check plumb on two faces, brace it, and move on — do not keep adjusting a post after the mix starts to set. Keep the bottom of the post 2 inches above the finished concrete so the end grain is not sitting in water. Let the concrete cure 24–48 hours before you hang anything heavy on the posts. If you are patching old footings, see our guide to repairing cracked concrete.
Step 6: Attach Rails, Then Pickets or Panels
Fix the rails to the posts with galvanized screws — screws, not nails, because screws still hold when the wood shrinks in its first dry summer. Use two rails for a 4-foot fence and three for a 6-foot privacy fence. Then attach pickets one at a time with a spacer block to keep gaps even, or hang pre-built panels between posts. Leave pickets 2 inches above the soil so the bottoms never sit in wet grass. The rail stage of a fence installation goes fast once the posts are set — a spacer block cut to your exact gap width keeps 100 pickets looking like they were set by one person.
Step 7: Hang the Gate, Add Caps, and Seal
Hang the gate last, after the posts have cured. Use adjustable strap hinges so you can correct sag later, and leave a 1/2-inch gap under the gate for ground movement. Add post caps — they keep rain out of the end grain, which is where posts rot first. Then seal or stain the wood: wait 4–6 weeks for pressure-treated lumber to dry, but stain cedar right away. A wood fence that is never sealed turns gray in a year; cleaning it first with a pressure washer is the right prep, as our pressure washer guide explains.
Fence Installation Mistakes That Cost You Later
The most expensive fence installation mistake is not a bad cut — it is a skipped check. These five account for almost every fence that leans, rots, or has to be rebuilt within five years.
- Skipping the 811 call. A cut gas or fiber line costs thousands and can shut down your street. The call is free.
- Posts too shallow. A 6-foot fence with posts 18 inches deep will lean after the first wet winter. Follow the frost-line table.
- Flat-topped concrete. Water pools against the post and rots it. Dome the top so water sheds away.
- Pickets touching soil. Wood in constant contact with damp ground rots from the bottom up. Keep 2 inches of clearance.
- Building on the line without a survey. If the fence is over the line, you move it at your own expense — and your neighbor does not have to be polite about it.
When to Call a Pro — Stop Box
Call a licensed fence contractor for your fence installation instead of DIY when any of these apply: the soil is rocky ledge that needs a jackhammer; the slope is over 20% and needs stepped or racked panels; the fence encloses a pool and must pass inspection; the boundary is disputed or the survey is missing; the gate is wider than 8 feet; or your permit requires a licensed installer. Also stop and call a pro if you uncover an unmarked utility line, smell gas while digging, or find contaminated fill.
Frequently Asked Questions
These are the fence installation questions homeowners ask most.
How much does fence installation cost per linear foot?
A wood privacy fence installation costs $30–$50 per linear foot installed by a pro, or $15–$25 per foot in materials if you build it yourself. Vinyl runs $45–$75 per foot installed, and chain-link $15–$25. For a standard 150-foot wood privacy fence, expect $4,500–$7,500 installed, plus $300–$600 for a walk gate.
How deep should fence posts be?
Bury one-third of the post’s height plus 6 inches of gravel, and always go below your local frost line. That means 24 inches in warm climates, 30 inches in moderate ones, 36 inches where winters are cold, and 42–48 inches in the far north. A post set above the frost line will heave upward a little every winter until the fence leans.
Do I need a permit to build a fence?
Often yes. Most cities require a permit for fences over 6 feet, front-yard fences, and pool fences. Backyard fences under 6 feet often need none, but rules vary by city and HOA. Check with your zoning office and HOA before buying materials, and call 811 at least 2–3 business days before digging.
What is the easiest fence to install yourself?
A panel-style wood fence installation on a flat lot is the easiest DIY option. Pre-built 6- or 8-foot panels hang between posts in minutes, the materials are sold at any home center, and two people can finish 150 feet in a weekend. Stick-built picket fences take longer but let you follow slopes more neatly.
How long does it take to install a fence?
A pro crew installs a 150-foot wood fence in 1–2 days. A DIY build takes 2–3 days for two people, plus 24–48 hours for the concrete to cure before rails and gates go on. Add a day if the ground is rocky or you are removing an old fence first.
Final Thoughts
A well-planned fence installation is one of the best returns on a DIY weekend: a straight, solid fence adds privacy, keeps pets and kids in, and lasts 20 years when the posts are set right. The work is not complicated, but it is unforgiving — depth, drainage, and the property line are decided before the first picket goes on, and they cannot be fixed later without starting over. Measure twice, call 811, set your posts below the frost line, and the fence will still be standing straight long after you have forgotten what it cost. If carpentry is new to you, the measuring and cutting skills in our barn door guide transfer directly to fence rails and pickets. For a second opinion on materials and fence styles, This Old House’s fence guide is a solid reference.