• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Backyardscape

Backyard Living Ideas

  • Home
  • Fence
  • DIY & Projects
  • Outdoor Lighting
  • Hot Tubs
  • Fire Pits
  • Landscaping Tips
  • Decks
You are here: Home / Fence / How to Build a Fence for Your Backyard (Step by Step)

As an Amazon Associate I earn from qualifying purchases.

How to Build a Fence for Your Backyard (Step by Step)

Last Updated May 18, 2022 By Christina

shadowbox fence

Building a fence can be a daunting task. There are so many factors to consider, including the type of fence, the materials, the height, and the style.

This article will walk you through everything you need to know about how to build a fence. We’ll discuss the different types of fences available, the materials you’ll need, and the steps to put up your new fence.

diagonal lattice wood fence

Table of Contents

  • Types of Fences
  • Tools and Materials Needed
  • Check property lines and local building codes
  • Plan Your Fence
  • Measure and mark the layout
  • How to Dig Post Holes
  • Position Posts in Concrete
  • Install rails to the posts
  • Attach fence pickets
  • Install the gate
  • Stain or Treat the Wood
  • Conclusion

Types of Fences

There are many different types of fences available on the market today. How much a fence costs will depend largely on the type that you choose. The most common types are wood, vinyl, and chain link. Many people are looking for privacy fence ideas to keep their backyard private and secure when installing a fence.

Popular Stories Right now
7 Ways on How To Hang String Lights in Backyard Without Trees
Can a Hot Tub Sit on Gravel? (And Why to Use It)
What to Feed Squirrels in Backyard

Wood fences are the most popular type of fence. Most wood frames are made from Pressure Treated wood that lasts longer than untreated wood. Wood fences have the most diverse styling choices.

Many also want to install a fence that lasts the longest. Vinyl fences are more expensive, but they require less maintenance than wood fences. Surprisingly fences made with metal corrugated panels last a long time without costing as much as some vinyl fences.

Chain link fences are the cheapest fence to build, but they are not as attractive as wood or vinyl fences. But there are ways to cover fences cheaply, so they don’t look so bad.

We’ll cover what you need to install a wooden fence for this article.

Tools and Materials Needed

  • Pneumatic nail gun
  • Portable air compressor and hose
  • Drill and bits
  • Circular saw
  • Hammer
  • Posthole digger
  • Shovel
  • Tape measure
  • Level
  • Post level
  • Wheelbarrow
  • Ladder
  • Work gloves
  • Eye protection
  • Hearing protection
  • Auger powerhead and bit (optional) Materials 
  • 4 x 4 treated posts or metal posts
  • 2 x 4 treated lumber
  • Concrete mix
  • Exterior screws for rails or rail brackets
  • Mason line
  • Weather resistant fence pickets 
  • Nails, screws, or staples

Check property lines and local building codes

Before installing a fence, it’s important to check your property lines and comply with local building codes. The first step is to find out where your property lines are located. This will also help you find out if a fence is yours.

Popular Stories Right now
Are Backyard Fire Pits Legal?
Best Mosquito Repellent: 10 Plants That Mosquitoes Hate
How to Mulch: The Definitive Guide

You can do this by looking at your deed or contacting your local planning department. Once you know where your property lines are, you can start planning where to put your fence.

It’s also important to familiarize yourself with local building codes, as they will dictate things like the fence height and style. If you have an HOA, you’ll want to get their approval as well as they can fine you if your fence isn’t approved.

To find out the codes in your area, you can contact your local building department or search online. By taking the time to research your property lines and local building codes, you can be sure that your fence will be installed correctly and in compliance with the law. This might also help figure out the easiest fence to install if you’re doing it yourself.

Plan Your Fence

Once you have your property line marked, you can start planning the size and style of your fence. If you have a small yard, you may want to consider a picket fence. If you have pets you’re trying to keep in, then we have in depth fence ideas for your dogs.

For something a little different and with a more modern style, we also have horizontal fence ideas.

For a larger yard or if you don’t like your neighbors looking in your backyard, you may want to choose a privacy fence. Once you have decided on the size and style of your fence, you need to select the materials.

Popular Stories Right now
8 Best Outdoor Towel Warmer for Hot Tub
How to Get Rid of Carpenter Ants in Trees
Hot Tub Dangers: How to Prevent Getting Electrocuted in a Hot Tub

Wood fences are a popular choice because they are durable and easy to customize. However, they require regular maintenance for optimal life span.

Measure and mark the layout

The next step is to mark the fence line. This can be done with string or spray paint, but preferably both. Before you start digging, call 811 (in US) to locate any underground utilities. The last thing you want to do it cut through a cable line or even worst, a water line.

Once the fence line and any utilities are marked, you can begin installing the posts. Corner posts should be set in concrete for a wood fence while the other posts can be set in gravel or concrete. Metal posts will also need to be set in concrete for a vinyl or chain link fence.

How to Dig Post Holes

fence post hole

First, you’ll need to mark out where you want your post holes to be. Typically, they should be spaced 6 feet apart. The easiest way to know where your interior posts should be located is to set your corner posts first.

Once the concrete is set on the corner posts, run a string between the two. Make sure your string is tied on the outside of each post without any slack.

I like my posts to be evenly spaced, rather than a straight 6 feet then possibly 3 feet at the end. Measure the distance between posts, then divide that by 6. For example, the back of my yard is 75 feet across. 75 divided by 6 gives me 12.5. Can’t have a half a post, so if I now divide 75 by 12, I get 6.25.

This means I’ll space each post by 6 feet 3 inches, give or take a few inches for each post. Now I won’t be stuck with a small section at the end. If you’re not sure about the exact location of the post hole, use a plumb bob tied to the fence string to find the vertical placement of the hole.

plumb bob

For six-foot-high posts, your holes should be two feet deep. If you want your fence to go higher, there are ways to extend the fence post heights.

Once you know how deep to dig your holes, it’s time to install the fence posts. If you have a lot of ground to cover, you may want to rent a power auger from your local home improvement store. Only use an auger if you have two people to hold it.

Be careful using an auger if you have a lot of rocks or large tree roots in the ground. The auger can suddenly jerk when it hits one of these and cause injury.

A manual post hole digger also works well and is easier to use by one person. Start by breaking up the soil at the edges of the hole. You want to make an inverted V with your hole. Larger at the bottom and smaller at the top. Many people dig opposite and it causes less secure posts. Dig at least 6 inches more to include gravel at the bottom of the hole.

Position Posts in Concrete

Set your post in the hole on top of the gravel. Attach the post hole level to verify level on both sides. You want your leveled post to just touch the string line to make sure it’s in line with your corner posts. If your post is not level and moves the string considerably, you need to re-position the post.

With one person holding the post in position, mix your concrete and pour it into the holes around the posts. Verify your posts are level and in the correct position again after pouring concrete in the hole. Your post shouldn’t move once concrete is poured but if it does you will need to attach supports to keep it in the proper position.

Be sure to slope the top of the concrete away from the post so water doesn’t sit on top of the concrete. Finally, allow the concrete to cure for at least 24 hours before attaching your fence panels.

There is fast setting concrete that will set in 20-40 minutes if you need to put your fence up quickly. Be careful using it this is your first time setting posts. The concrete can harden quickly before the post is properly positioned.

Adding concrete makes your posts sturdier, but you definitely don’t want to be the one to have to remove the fence posts.

If using gravel only on the internal posts, have someone hold the post while pouring the gravel in the hole. You should tamp the gravel every 6-12 inches in depth to make it rock solid. Check after tamping to verify post is still level and in line with other posts.

If your yard is on uneven ground, there are ways to level fence posts. You can either add more dirt or create a stepped look.

Install rails to the posts

For fences shorter than 5 feet, you only need two rails. A 6 foot high vertical board fence, will need three fence rails. If your fence is 8 foot or taller you might need four rails.

Cut the rails to length, measuring the distance between each set of posts. Don’t cut all the rails assuming the distance is the same throughout the fence line Once the rails are cut, it’s time to attach them to the posts.

If you’re attaching the rails in between your posts, the best way is to use pocket hole joinery with screws or rail brackets. If you’re attaching the rails to the front of the posts, use can use screws or framing nails.

Use a drill to create pilot holes for the screws you will use to attach the rails. Once all of your pilot holes are drilled, you can start attaching the rails. Be sure to use screws or nails that are long enough to ensure a secure connection. I use a minimum length of 3 inches, sometimes 3.5 to 4 inches depending on the situation.

Finally, check all of your rail connections to make sure they are tight before moving on to the next step in your fence installation.

Attach fence pickets

drill installing screw in fence slat

There are a few different ways to attach fence pickets. You can either have a shadowbox fence, a board on board, side by side, or even install wood paneling. Many people go with the shadowbox fence, so they don’t feel like they have to give their neighbors the good side of the fence. With a shadowbox, everyone gets the good side.

Before attaching fence pickets, it is important to choose the right type of wood. Cedar and redwood are good options because they are naturally resistant to rot and insect damage. Once you’ve decided on the style, it is time to attach the pickets to the rails.

There are two main ways to add fence boards: using screws or nails. If you are using screws, certain screws work best for wood fences. Polymer coated exterior screws or stainless steel screws are best for installing fence boards, while exterior rated structural screws are best for attaching fence rails to fence posts. Drill pilot holes first to prevent the wood from splitting.

If you’re using nails, use galvanized nails to prevent rusting. You’ll also want to choose the right gauge nail as well as the nail gun for the fencing project.

Whichever method you choose, ensure that the pickets are evenly spaced and securely attached before moving on to the next step in your fence installation project. The easiest way to keep the same space is to create a jig that will do the spacing for you throughout your project.

Install the gate

horizontal fence gate

Before installing a gate for your fence, you will need to determine where the gate will be located and how wide it needs to be. Once you have these measurements, you can purchase a gate frame kit or build your own.

Most gate kits come with everything you need to install the gate, including the hinges and latch. Before you begin, it is also important to make sure that the posts on either side of the gate are level. The biggest thing is getting a quality gate kit that is well built.

We also have some tips on how to build a fence gate that won’t sag if you decide to build your own gate.

Once your gate frame is put together or built, start by attaching the hinges to one of the posts. If you have a double gate, position the gate and attach to the other fence post. The easiest way to do this is using something underneath for the gate frame to sit on to make it easier to attach the hinges.

With the frame attached to your post, you’re ready to add the pickets. I’m usually building fences by myself and it’s easier to hang a gate without the extra weight but if you have more people, you can certainly do it the other way around as well.

Finally, add the latching mechanism and handle. You can easily install a new gate for your fence with a bit of effort.

Stain or Treat the Wood

After installing a new wood fence, you’ll want to protect it from the elements. One way to do this is to stain or treat the wood. How long you need to wait before staining your fence depends on a lot of factors.

This will help prevent weathering and rot, and it will also give the fence a uniform appearance. There are a few things to keep in mind when staining the wood fence.

First, make sure that the wood is dry before you begin. If it’s damp, the stain or treatment will not absorb properly.

Second, choose a product that is specifically designed for exterior use. Third, follow the manufacturer’s instructions carefully. With proper care, your wood fence will last for many years.

You can also paint a fence if you want more color.

Conclusion

Building a fence doesn’t have to be complicated. With this helpful guide, you can easily install a new fence in your yard. Just follow the instructions carefully and allow the concrete to cure completely before attaching your fence panels. With a little bit of effort, you can have a beautiful new fence that will last for years to come.

PinLikeTweet

Filed Under: Fence

About Christina

Hey there and thanks for coming to our site. We love doing projects in our backyard. We do many of the projects ourselves and it's always a work in progress.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

About Us

jena and christina at beach

Hey There. Thanks for stopping by. You're probably wondering who in the world is writing all about backyards. We're Jena and Christina.  Our friends call us the Inas and now you can … read more about About

  • How to Store Patio Furniture in Winter
  • How To Clean Outdoor Wood Furniture
  • How to Replace Deck Nails with Screws
  • How To Extend the Life of Your Deck
  • How to Replace Deck Boards

Footer

  • Pinterest
  • About
  • Contact
  • Privacy Policy

Copyright © 2022 ยท As an Amazon Associate I earn from qualifying purchases.