Construct a Custom Fence and Gate

A rugged design that's easy to build and looks great on both sides of the fence

This article tells how to build a durable, good-looking fence, from start to finish. We designed it to be strong, using sandwich construction, and yet easy to assemble. It looks good on both sides, so that it'll complement your home and the neighborhood and not be an eyesore.

By the DIY experts of The Family Handyman Magazine






Over $500

Overview: Project scope, design and key tools

Good fences may make good neighbors, but an ugly, flimsy or poorly built one won't make anyone happy. This fence, on the other hand, is durable, handsome and sure to please everyone. Rules in most regions require that the best sides face out (toward the neighbors), but our fence is designed to look good from both sides.

We used treated 4x4s for long-lasting posts and “sandwich” construction for the panels for strength and easier assembly. This fence isn't cheap compared with the cost of a fence built from preassembled panels from a home center. But this fence has thicker, higher quality wood, more detail and better fasteners than any store-bought selection. And we designed it so anyone who can handle a circular saw and level can build it.

In this article, we'll show you how to line up and set posts, build sturdy panels and construct elegant, no-sag gates that are wide enough for a lawn tractor to pass through. We'll also share tips on achieving solid footings, secure connection and fastening methods and staining that'll ensure trouble-free decades of service. This project doesn't require a pickup load of expensive tools either. Aside from the standard posthole digging implements and basic carpentry tools, you'll only need a circular saw, a screw gun and a 4-ft. level. But to really speed up assembly, get a 15-gauge trim nailer with 1-1/2-in. galvanized nails to nail on the pickets and panel boards (Photos 11 and 12). The nails hold everything together until you permanently screw the upper and bottom rail pieces together (Photo 13). A table saw also comes in handy for ripping panel boards to width where needed (Photo 11).

Step 1: Get design approval and mark property lines

Start with city hall. Most likely you'll need to apply for a fence permit from the local building inspections department, so begin by picking up the application along with the local fence regulations. The regulations will include setback requirements from your property lines to the fence and maximum allowable heights. These details will likely vary for front and backyard fences and can even be different for houses on corners or adjacent to busy streets, so study them carefully. You'll probably be required to submit a fence plan with the completed application. The plan should be a dimensioned overview of your property that clearly shows your property lines along with your proposed fence outline and its heights and distances from the property lines. Any other details that are required will be covered in the regulations or permit application.

If you live in a “planned” community or subdivision, you may also have to submit the same information to a planning committee for approval. The committee's regulations can be even more rigorous than the city's and may govern materials choices, colors and even the final design. Ignore regulations at your own peril. Build a fence without either planning committee or city approval and you risk having to tear it down and rebuild it.

Mark your property lines
Start by finding and marking your property stakes. One will be found at each corner and anywhere your property makes a jog. You can either find the stakes on your own or hire a surveyor. It's not hard to find and mark them yourself by renting a metal detector and scanning the areas where you think they are. If the detector indicates one, dig down to make sure it's a steel stake instead of some other buried metallic object. A good tip is to go to city hall and ask for a copy of the “Certificate of Survey.” It will show the exact stake locations.

While you're waiting for the permit, call to have underground utility lines marked. (The building department will have one number for you to call to have all lines marked.) Everyone but the cable company marked their lines for us, and guess what? Shortly after starting the postholes, there was no more History Channel for a while.

Figure A: Fence Assembly Details

Note: You can download Figure A and enlarge it in Additional Information below.

Fence assembly details

Step 2: Lay out the fence posts

With permit in hand and your property lines staked, begin laying out your post locations. String your lines 1-3/4 in. away from the fence center line to mark the edge of the 4x4 posts (Photo 1).Drive stakes every 6 ft. to mark the center of each posthole. Set aside the string and dig 3-ft.deep, 8-in.wide postholes; tamp the bottom of each hole to firm up any loose soil; and pour about 6 in. of gravel into each hole. Then reattach the string and mark the exact post locations at 6-ft. increments (Photo 2).Mark one side of each post rather than the center so you can line up post edges when setting them (Photo 2).

Strive for evenly spaced posts, and don't forget to position posts spaced to fit each gate size. The object is to space all posts about the same distance apart, which may mean adding or subtracting a full panel and lengthening or shortening the other panels. In our case, we added short, slightly different panels on both sides of the gate to make up the difference in the side part of the yard (opening photo). Our fence design will work well for any fence panels up to 8 ft. wide, but you'll have to adjust your materials list accordingly if you choose a panel width other than 6 ft.

Step 3: Set the posts

Plan on enlisting some help for this step, since it's practically impossible to set, plumb and brace posts on your own. Rest each 10-ft. long 4x4 on the gravel base, and then screw a couple of 1x4 braces near the top of the post and drive stakes into the ground near the end of the braces (Photo 3). Line up the post edge with the string line mark and plumb the post in both directions while your helper screws the braces to the stakes. This takes some patience. Most likely you'll have to unscrew the braces and make fine adjustments. Take your time: Nicely aligned posts make for a professional looking fence. When each side is complete, stand behind one of the end posts, shut one eye and look for posts that are misaligned— there are bound to be a couple of rogues! Perfection isn't necessary, but fix any posts that are more than 1/2 in. out of alignment.

Posts that flank gates demand extra care during plumbing and bracing. It's nearly impossible to build smooth-swinging gates between posts that are out of plumb or misaligned.

With everything aligned, mix concrete and pour it around each post, heaping it about 1 in. or so above grade (Photo 4).Use a trowel or wide putty knife to smooth and slope the top slightly away from the post to shed water. Wait until the next day so the concrete can set up before you move on to the next step: building the panels.

Prestain the wood for durability and a clean look
Make no mistake about it: Staining your fence will take nearly as long as assembling the panels! Stain the wood before cutting and assembly and you'll not only get a cleaner look with better coverage but also save hours of staining time. You can coat all the edges super fast before the boards are installed.

One way to speed up the process is to use a roller with a 1/2-in.nap sleeve. Pour a couple of gallons of stain into a 5-gallon pail and hang a roller screen ($3) from the side of the pail to load the stain onto the roller. Lay out the boards on sawhorses and stack five or so boards side by side on edge to roll several edges at once, then flip them over and stain the other edge. Roll out both of the flat sides and roll out any runs. Then set the boards aside on a couple of long 2x4s to dry. Apply the second coat. To help your fence last rot-free for years, brush stain on the edges and ends of the boards after cutting. That'll keep water out of the end grain where most rot begins.

It takes a lot of stain to cover rough-sawn cedar. Figure on about a gallon of high-quality latex stain for every 12 ft. of fence.

Step 4: Level and install the lower rails

Our panels average 6 ft. high, depending on the grade. That's high enough for visual privacy but low enough so you can visit with neighbors through the “jail bars” near the top. You can vary the height if you wish, but you'll have to figure out the best length of 1x6 and 1x4 panel boards to buy for cutting efficiency. Likewise, the spacing between the ground and the panels can be higher or shorter depending on your needs. In our case, we kept the bottom about 3 in. above the top of the grass. Make it less if you want to keep micro dogs in (or out) of your yard. If easy mowing is a priority, make it slightly higher than the wheels on your lawn mower.

Get started by nailing 1x4 cedar boards to the insides of the posts (Photo 5).Don't nail higher than 6 ft. Otherwise you may hit the nails with the saw blade when cutting the posts to height. Leave at least a 1/2-in. space between the concrete and the 1x4 to keep the bottoms from rotting.

Make marks 10 in. above the post bases and then hold the 2x6 bottom rails even with the marks and scribe lines using the posts as your guide (Photo 6).The bottom rails follow the slope of the yard, so this establishes the exact cutoff angles. Cut the 2x8s to fit and use them as patterns to cut matching 1x8 bottom rails to install later (Photo 13). Screw angle brackets to the posts 2 in. below the marks (Photo 7) with 1-1/4 in. joist hanger screws. Then screw the 2x8s to the brackets using the marks as a guide for the proper height.

Step 5: Lay out and cut the top rails

Next, mark the top of the fence panels on each post (Photo 9). There's no magic number for height unless you have a perfectly flat yard. We strove for an average height of 6 ft., but some areas were less, some more, because of the contours of the yard. Between each pair of posts, use a 4-ft. level and straight board to mark each post. Step panels down or up to accommodate grade changes and keep the height about 6 ft. If you're unsure, tack boards to the tops of each pair to simulate the panel heights before settling on final heights.

Lay out a top rail, cutting a 1x8 pattern for the top rails as we show in Photo 8. Use a knot-free 1x2 as a guide to create a smooth curve and then cut it with a jigsaw. (If you have more than one panel width, make separate patterns.) Then draw the curves on all of the top rail 1x8s and cut them out. Center the rails between the posts even with the top layout marks and then scribe and cut both sets (front and back) to length for each panel (Photo 9).

Screw 12-in. long 1x2 cleats just a little below the layout marks with three 3-in. deck screws (drill pilot holes first to prevent splitting).

Step 6: Install the top rails and fence panels

Screw one pair of upper and lower rails to the cleats with two 2-in.deck screws at each end (Photo 11). Cut a 1x6 panel board to length, center it in the panel and tack it into place with a couple of 1-1/2 in. galvanized finish nails at each end (Photo 11).Be sure to angle the nails when driving them in or the tips may project through the other side. After you've driven in the first fence board, check the other side to make sure you're angling them enough. Then cut and tack the rest of the boards into place using a carpenter's pencil as a spacer and alternating 1x4s and 1x6s. (We also alternated rough and smooth sides so the fence would look identical on both sides.) Most likely you'll have to rip the end boards of each panel to width.

Cut and install the top 1x2 pickets (Photo 12).Then screw the last two top rails and the bottom 1x8 rail into place with two 2-in.deck screws into the 1x2 cleats at the end and then into the rails on the other side spaced about every 6 in. These screws clamp all sections together.

Step 7: Cut the posts and add the trim

Cut the posts to length 4 in. above the panel tops (Photo 14) and add the 1x6 facing on both sides of the posts (Photo 15).Finally, add the 1x4 top caps and post caps (Figure A and lead photo).

Step 8: Build the gates

We give the dimensions for our 6-ft.wide double gate in Figure B. But in reality, it's unlikely your gate will be the same dimensions. When you build your gate(s),be sure you make your double gates about 1 in. narrower (both gates together) than the opening (or a single gate about 3/4 in. smaller) to allow for opening clearances. The key to our no-sag gate is using panel boards that are angled at 45 degrees (Photo 17).Each functions as a brace to keep the panel from sagging over time. The outer frame on each side also overlaps in opposite ways at each corner to make the gate even more solid. Cut and assemble the gate frames on a flat surface using Photo 16 – 18 and Figure B as guides. If your gate is the same size as your fence panels, you can use the top rail pattern to mark and cut the curved top. Otherwise you'll have to make a new pattern. Push both sides together and square them as a unit by shifting them until the diagonal measurements are equal (Photo 16). The frames are fairly pliable, and it's easy to do if you have a partner to anchor the corner opposite the one you're pushing against.

To panel each gate, begin with 1x6 boards cut with a 45-degree angle at one end (Photo 17).Once you scribe and nail the boards, the frames will be rigid and you can simply fill the panels by scribing and cutting the rest of the boards. Use the assemblies to measure and cut the frame for the other side of the gate, remembering to overlap the ends in the opposite direction. Screw the parts together with 2-in.deck screws. Predrill when driving screws near board ends.

Figure B: Gate Assembly Details

Note: You can download Figure B and enlarge it in Additional Information below

Gate assembly details

Step 9: Hang the gates

Here's the secret to hanging gates successfully. With the gates spaced 1/2 in. apart, screw two 2x4 or 2x6 “holding” boards to the gates, overhanging the ends several inches. Then carry the assembly over to the opening and rest it on blocks at each end. Be sure to block the gates high enough to clear the ground when they swing open. Once you center the assembly in the opening, it's simple to mount the hinges to the posts and gates (Photo 19).

Finish by installing the rest of the hardware. If you choose double gates, it's best to “fix” one side and leave a “people” side that opens for everyday pedestrian traffic. Plan on using a foot latch to anchor the fixed gate when it's not needed (Photo 19). Screw the foot latch to the bottom edge of the fixed side and then, with the gates closed, drop the “foot” and mark the ground. Drive a 12-in. long, 1-in. thick chunk of PVC piping into the ground with a maul. The pipe will fill up with soil, so it's best to pull it out every few inches of driving and remove the dirt before driving it farther. Our latch operates similarly to a front door lockset. It can be locked from the inside or left unlocked.

Additional Information

Back to Top

Required Tools for this Project

Have the necessary tools for this DIY project lined up before you start—you’ll save time and frustration.

  • Hammer
  • Tape measure
  • Circular saw
  • Drill/driver, cordless
  • Hearing protection
  • Jigsaw
  • Wheelbarrow
  • One-handed bar clamps
  • Posthole digger
  • Safety glasses
  • Speed square
  • Table saw

Level, 4-ft.
You'll also need a shovel, stringline, air-powered finish nailer and a power auger.

Similar Projects

Popular How-To Videos