A DIY composite fence requires intermediate-level skills and can be completed using standard woodworking tools and basic construction skills. While many tasks can be completed by one person, installation is generally easier with two people. Depending on site conditions and fence complexity, a two-person crew can typically install eight to 12 Trex fence panels in two full days.
The project begins with planning the fence layout, confirming property lines and locating underground utilities. Once the layout is established, post locations are marked and the posts are set in concrete. After the concrete has cured, the rails and pickets are installed to complete each fence section. If the project includes a gate, the gate hardware and gate panel are installed after the fence sections are complete.
On sloped terrain, fence sections may need to be stepped or adjusted to follow the grade while maintaining a consistent appearance. For additional product information, specifications and guidance on how to install composite fencing on a slope, visit this Trex Seclusions® Installation Resources.
There are two primary Trex privacy fence configurations: vertical and horizontal. While the layout and post-installation process are similar for both, the rail and picket installation methods differ, as do the options for handling sloped terrain. Understanding these differences before starting your project can help you select the right fencing style for your property, skill level and site conditions.
Trex Seclusions® features vertical pickets, which is the most common privacy fence styles and generally the most DIY-friendly. Compared to wood fences, Trex Seclusions uses pickets that drop into rail slots to control picket spacing and alignment, so installers spend less time adjusting individual boards during assembly. Another advantage is that the fence has the same finished appearance on both sides, making it an attractive option for shared property lines.
Vertical fencing works well when installing a fence on a slope. On sloped terrain, installers typically choose between the step method or the racked method. With the step method, each fence section remains level, whereas with the racked method, the rails follow the slope's angle.
Horizontal composite fencing has become increasingly popular and offers a clean, contemporary appearance. Systems like Trex Horizons® and Trex Solitudes® feature boards that run horizontally between posts. To maintain level horizontal lines on sloped terrain, horizontal fencing is typically installed using the step method. This creates a larger gap between the bottom rail and the ground near the downhill post, which may be a consideration for homeowners looking to keep small pets contained in sloped backyards.
No. All Trex fence posts should be set in concrete. Also, gate posts require a steel post tiffener for additional strength and stability. Post stiffeners can also be added to fence posts that might be subject to extremely high winds.
Trex recommends setting fence posts in holes at least 30 inches deep and approximately 12 inches in diameter. Unlike deck footings, fence posts typically do not need to extend below the local frost depth because they do not support occupied structures. However, always check with your local municipality to see if your fence post depth requirements are subject to local regulations.
Yes, Trex Seclusions fencing can be installed on sloped terrain using either the step method or a racked installation that follows the contour of the grade.
On flat terrain, Trex Seclusions fence posts can be spaced up to 96 inches on center. Sloped terrain might require reduced spacing depending on the installation method and grade.
Yes, Trex composite fencing components can be cut using a circular saw, miter saw, or other standard woodworking cutting tools.
Check with your local municipality about permit requirements before you start building a composite fence. Most municipalities have restrictions regarding fence height, setbacks and minimum distances from property lines, easements, sidewalks and roads.
For example, many municipalities limit front-yard fences to a maximum height of 4 feet, while backyard privacy fences are often capped at 6 feet tall. If you live on a corner lot, those front yard restrictions may also apply to the side of your backyard that faces the street. In regions prone to high winds or severe weather, additional structural requirements or deeper post embedment may also apply.
Even in rural areas where permits might not be required, you must still comply with setback requirements along easements and road frontages.
If you live in a neighborhood with a homeowner’s association (HOA), check for additional restrictions regarding fence style, color, height, or orientation. Some fencing systems have a more finished “good side” and a less finished structural side, and HOA rules may dictate which direction the finished side must face.
It’s also important to have a conversation with neighbors before building along a shared property line. A new privacy fence can change the look and feel of your neighbor’s backyard. A fence might also add to their yard maintenance or cast shade on their treasured vegetable garden. While fences often improve privacy and property boundaries, a little communication up front can help avoid conflicts later.
One of the first and most important steps is contacting 811 before digging. Calling 811, or submitting a request through Call811.com, is required by law in most areas and allows utility companies to mark the approximate location of buried gas, electric, water, sewer, cable and communication lines on your property. Utility locating services are typically free but may take several business days to complete, so plan accordingly before beginning layout or excavation work. Keep in mind, utility locators won't mark every buried line. Identifying private water lines beyond the meter, irrigation systems, invisible dog fences, low-voltage landscape wiring and private electrical lines are typically your responsibility.
Utility markings indicate the approximate location of buried utilities, not their exact position. Try to stay 18 inches to 24 inches away from paint markings and utility flags when digging.
Ordering a few extra pickets can save time if one is damaged during installation or transportation, gets miscut, or needs to be replaced later.
Before running string lines or digging post holes, sketch the fence layout on graph paper. A simple drawing helps determine your material list, visualize the project and avoid costly mistakes. You can also use the design tool included with the Trex Fence Cost Estimator. Start by locating your property lines and required setbacks, then measure the perimeter and transfer those dimensions to the drawing.
For Trex Seclusions®, the ideal post spacing is 8 feet (96 inches) on center from one post to another. However, fence runs rarely divide evenly into 8-foot sections. When dealing with a fence run that's not divisible by 8, there are two common layout options.
The first option is to keep the center fence sections full size and create two smaller sections at the ends of the run. This approach leaves most fence components at their ideal lengths. It also helps conceal the size difference since shorter sections are less noticeable at the ends or corners of a fence run.
The second option is to divide the entire run into equal sections, so each panel is slightly smaller. For example, if a fence run measures 47 feet (564 inches), dividing it into six equal sections results in post spacing of 94 inches on center.
Don’t forget to account for gate openings during the layout process. Trex gates are fixed in width, so post spacing for gates, as provided in the installation guide, should be included on the drawing before post locations are finalized.
Once the layout has been finalized on paper, transfer it to the yard using stakes and string lines. Drive stakes into the ground and stretch mason’s string tightly between them to establish the fence path. The string will act as a visual guide for post placement and help keep the fence straight.
Install the stakes a few feet beyond the corners so they do not interfere with digging the post holes. In most cases, the string line will need to be temporarily removed while digging, then reinstalled in the exact same position when setting the posts. Leaving the stakes in place makes it easier to restore the string line accurately.
Use a tape measure to mark the location of each post hole along the string line. As each location is measured, mark the center of the post hole with ground-marking paint. Position each mark 2-1/2 inches away from the string (half the width of a 4x4 post). Before digging, pull the string aside or remove it. After the holes are dug, restring it between the same stakes. The offset allows the string to run along the edge of each post while keeping the post centered in the hole.
Renting a post hole digger with a 12-inch auger is easier than hand digging and will save a tremendous amount of time. Rental centers typically offer both one-person and two-person versions. If you choose a one-person model, look for one that includes a long tilting frame with wheels.
Be sure to meet the minimum required depth of 30 inches. There is no harm in digging a couple of inches deeper because the posts are long enough to accommodate the extra depth. However, if you accidentally dig too deep and need to add soil back into the bottom of the hole, thoroughly compact the soil using a tamper or 2x board. Loose soil will settle, causing the post to sink over time.
An auger tip will often skate or wander when it first contacts the ground. Digging a small starter hole with a shovel first helps guide the auger and keeps the holes accurately positioned along your fence line.
It’s easier to cut the posts to their final height before installing the fence panels, so set each post into its hole and verify that it’s tall enough to allow trimming later. Each post must be aligned in three different ways. First, the post must be plumb, meaning perfectly vertical. Second, it must align with the string line running along the fence layout. Third, it must be the proper distance from the adjacent posts.
Use a quality level to check plumb on adjacent sides as you align the post. A 4-foot level is more accurate to use than a shorter 2-foot model. Measure carefully from one post to the next to maintain consistent spacing and use a string line to keep the fence straight. Be sure the string line does not touch the posts, or it will throw the subsequent posts out of alignment.
A post level can make plumbing posts easier by letting you check two sides at once, hands-free. However, these tools are not always perfectly accurate. Before relying on one, place the level on a corner of a wall, note the position of the bubbles and then rotate it 180 degrees and place it back in the same position. If the bubble readings change, the level should not be used.
Using fast-setting concrete that doesn't require premixing before being placed in the hole will save a lot of time and labor. While keeping the post properly aligned and plumb, pour the dry concrete directly into the hole. A hole this size will require four 50-pound bags of concrete per post. Fill the hole to within 3 to 4 inches from the surface of the ground, leaving room for soil on top so grass can grow around the post.
Once each bag of concrete is placed, add the amount of water recommended by the manufacturer (per bag). If the soil is exceptionally dry, spray the sides and bottom of the hole with water before adding the concrete to help ensure proper curing. Use a stick or piece of rebar to work the water into the concrete and eliminate any air pockets. Throughout this process, continuously check that the post remains aligned and plumb. Keep a bucket of water and a brush or rag nearby and clean any concrete off the posts as you install them. Allow the concrete to cure overnight, then verify that each post is solid before beginning panel installation.
It might seem logical to measure up from the ground and trim every post to the desired height. However, even yards that appear flat have subtle rises and dips. Measuring from the ground at each post can create a choppy fence line, while cutting every post top to a perfectly level line can leave large gaps beneath the fence or bury sections of the bottom rail. If the grade changes are minor, you may be able to eliminate small gaps by adding soil, mulch, or other landscaping materials beneath the fence rather than changing the fence angle.
For more significant changes in grade, identify the natural transition points where the slope changes. Have a helper hold one end of a string a few inches above the ground while you hold the other. Move the string along the fence line, watching how the gap between the string and the ground changes. The points where the gap changes noticeably are the natural transition points. For example, the ground might slope downward for 32 feet, remain relatively level for the next 32 feet, then rise for the final 32 feet.
Use these transition points to divide the fence into long, straight sections that follow the overall contour of the landscape. In this example, each straight section would be 32 feet long, with a transition at every fourth post.
The posts at each grade transition point should be trimmed so the top of the post is 74-1/2 inches above the ground. This height accommodates full-length pickets in a 6-foot panel kit while allowing the post to extend 2-1/4 inches above the top rail, leaving room for the post cap. After marking the transition posts, snap a chalk line to establish the height of the posts in between. See Chapter 5: Step 1b for how to find the height of posts on a sloped fence.
Use the chalk line as a reference and mark each side of the post using a speed square as a guide. Trim the posts using a circular saw. If you use a smaller saw, you may have to make a cut on each side of the post.
The bottom of the top bracket should be 5-3/4 inches down from the top of the post, and the bottom of the lower bracket should be installed 73-5/8 inches down from the top. Using the 1-5/8-inch exterior screws supplied with the brackets, attach the fence brackets to the posts, making sure they’re centered. Predrilling holes is not necessary.
Measure up 74-1/2 inches from the ground on the inside/uphill face of each end post in the sloped section and make a mark. From that mark, measure down 5-3/4 inches and draw a line across the post. This line represents the bottom of the upper rail bracket.
Stretch a string tightly between the layout lines on the two end posts. Using a speed square, transfer the string height to each side of the intermediate posts. These marks represent the bottom of the upper rail brackets. Notice that the brackets uphill will be higher than the corresponding bracket on the downhill side. From each upper bracket mark, measure down 67-7/8 inches to locate the bottom of the lower rail brackets. Finally, trim the post to length (level, not at an angle).
Save time and avoid repeated measuring by making two story poles from narrow scraps of wood. Cut one 73-5/8 inches long and make a mark 5-3/4 inches from one end. Use it to quickly locate both the upper and lower rail brackets on straight sections.
For sloped sections, cut a second story pole 67-7/8 inches long. Once you’ve established the upper bracket mark with the string line, use this story pole to transfer that location down to the lower bracket.
If the inside faces of the fence posts are spaced 91 inches apart, the aluminum bottom rail will not need to be shortened. On level fence sections, cut the aluminum rail about 1/2 inch shorter than the distance between the posts to reduce the chances of scratching the posts during installation. It will be easier to see your lines if you use a fine-tipped marker instead of a pencil. Temporarily install the aluminum rail, then hold the rail covers in place and mark them to size. Hold the top rail between the posts at the location of the top brackets and mark it to size.
If the fence section is sloped, the rail components will need to be cut at an angle. To do this, hold each rail component in its installed position and mark the top and bottom edges on each side to establish the correct cutting angle. Check out these additional resources to read about advanced rail cutting techniques.
Use a carbide-tipped saw blade with a high-tooth count to make the cuts. A 7-1/4-inch blade with 60 teeth, a 10-inch blade with 80 teeth, or a 12-inch blade with 100 teeth will all produce a clean cut on both the composite and aluminum portions of the rails. Until you get used to the process, it’s best to cut each component a bit long and trim it back to size instead of cutting anything too short. Always wear eye and ear protection when operating power tools.
If your schedule and budget allow, installing pavers or poured concrete at least 6 inches wide directly below the fence line will reduce time spent on future maintenance by eliminating the need for trimming the grass below the rails. It’s much easier to do this before you assemble the panels.
Slide the bottom rail covers over the aluminum rail and position the assembled rail onto the lower fence brackets with the deeper channel facing downward. Move carefully and slowly. Don't force the rail into place. Forcing the assembly can scratch the inside faces of the posts. The bottom rail does not require fasteners once properly seated in the brackets.
The two outside pickets, closest to the posts, must be cut shorter than the center pickets. To determine their length, fully seat each picket into the bottom rail pocket and use the bottom of the top rail bracket as a reference mark. Once cut to size, fasten the pickets to the center of the fence posts using three of the 1-5/8-inch exterior-grade screws provided with the brackets. Using a bit extender will make this easier.
If the fence posts are spaced the full 96 inches on center, both outside pickets will face the same direction. For shorter fence sections, the two end pickets might face opposite directions. If you're not sure which way the last picket will face, install one end picket and work toward the opposite post. Leave the last picket off until most of the others are installed.
The factory-length pickets must be trimmed so they’re flush with the top of the top brackets across the panel. Alternate the orientation of the pickets as you insert them into the bottom rail channel so they interlock. Depending on the panel width, the last picket might need to be slid down from above between the two adjacent pickets. If they are cut too short, the top rail could sag. On sloped panels, begin installing pickets on the high side. Any slack between the pickets will be corrected after the top rail is installed.
Working from one side to the other, settle the top rail over the pickets and brackets. Once fully seated, drive one 1-5/8-inch screw through the top of the top rail into the top of the rail bracket on each side.
If the pickets are not tightly interlocked after installation, pull the second picket from one end toward the nearest post until all the pickets are snug. Before fastening, make sure the gap between the second picket and the post is even from top to bottom. Then secure it through the top and bottom rails with 1-1/4- to 1-1/2-inch galvanized finish nails or 18-gauge brads. Drive the bottom fastener through the very top of the rail cover to avoid hitting the aluminum rail.
For a more balanced appearance, divide the slack between both ends of the panel. Pull the second-to-last picket at one end to remove about half the slack and secure it. Then pull the second-to-last picket at the opposite end to remove the remaining slack and secure it. If desired, add fasteners to every other picket to help prevent rattling.
Place the post caps onto the tops of the posts and secure them using galvanized finish nails or brads. Or you could dab exterior-grade adhesive on the top of the post at each corner before installing the cap.
Install the gate posts the same way you installed the other fence posts. Refer to Chapter 04 for post installation instructions. For a standard-size Trex Seclusions gate panel, the opening between the posts should measure 46-1/4 inches from the inside face of one post to the inside face of the other. It’s important that the inside faces of the posts are parallel with each other. For the larger Trex gate panel, the opening should measure 65-3/4 inches wide.
Insert the post stiffener into the hinge-side post, with the open side of the stiffener facing away from the gate opening. If the stiffener extends above the top of the post, mark it, cut it to length using a reciprocating saw with a metal cutting blade and slide it back into the post.
Trex gate panels come preassembled and include self-drilling screws for attaching the hardware. Pre-drilling 3/16-inch pilot holes can make installation easier. While Trex gate can be positioned to swing either in or out, if your gate is on a slope, ensure it swings downhill. Otherwise, it may hit the ground before fully opening. Using a 3/8-inch nut driver in a drill or driver, attach the hinges to the gate panel approximately 6 inches from the top and bottom of the gate using the 1-1/2-inch self-tapping screws provided with the hardware. Make sure the hinges are pressed tightly against the gate, so the screws are secured to the metal frame inside the gate.
Insert the post stiffener into the hinge-side post, with the open side of the stiffener facing away from the gate opening. If the stiffener extends above the top of the post, mark it, cut it to length using a reciprocating saw with a metal cutting blade and slide it back into the post.
On a flat section, place the gate panel into the opening and adjust it so the top rail aligns with the top of the adjacent fence panels. On a slope, position the gate so it has enough clearance underneath to fully open, but not so much that small pets can pass under. Set the gate on blocks to keep it in place during installation. Fasten the outside corner of each hinge to the gate post containing the stiffener using the 1-1/2-inch-self-tapping screws provided. Then open the gate panel and fasten the inside corner of each hinge bracket to the hinge post using 1-1/2-inch self-tapping screws.
If the gate is not evenly positioned within the opening, loosen the hinge nuts using an 11/16-inch wrench, adjust the gate until properly aligned and retighten the nuts.
Orient the latch so the catch faces the gate and attach it to the latch-side post approximately 36 inches above the ground using 1-1/2-inch self-tapping screws included with the hardware.
Attach the striker to the gate panel with the 1-1/2-inch self-tapping screws, ensuring the striker rod aligns properly with the catch on the latch post.
Install the handles vertically above the striker, positioning them approximately 1-3/4 inches from the outside edge of the gate panel. Stagger the inside and outside handles slightly so they are offset approximately 1 inch higher or lower. This helps prevent the mounting screws from interfering with one another inside the gate panel. Fasten the handles using the 1-inch screws provided.
This content was partially or fully generated by AI and has been reviewed by our team to ensure accuracy and relevance.