Tips for Installing Sprinkler System Pipes, Tubes and Wires

This page outlines the minimum requirements,  along with tips and tricks, for installing the pipes, tubes, and wires for your new irrigation system.  Summary of major points:

  • Wet areas to be trenched a couple days in advance.
  • Consider hiring someone to dig the trenches.
  • Install mainline pipes 18 inches deep.
  • Install lateral pipes 8 to 12 inches deep.
  • Make provisions for winterizing the system in cold winter climates.
  • Use proper methods for gluing PVC fittings to prevent future leaks.
  • Use good quality fittings for PEX.
  • Don’t forget to install wires in the trenches!
  • Sleeve the wires if you have aggressive critters.


A day or two before you begin digging the trenches, water the soil thoroughly to soften it, but try not to create mud.  An inexpensive soaker hose works great for slowly wetting the trench areas or use a sprinkler on the end of a hose to wet the entire area.  As you trench, periodically water down the area to keep down the dust.  Airborne dust is a serious health risk, it’s better to be safe than sorry!  Do-it-yourselfers should seriously consider hiring someone to do the trenching if you have more than 100′ or so to trench. You can often hire someone to do it for little more than the cost of renting a trencher.  Ask at a professional irrigation or plumbing store, often they know of people who own or have access to a trencher and dig trenches on the side.   Let someone else hurt their back, a trencher machine can beat you up bad if you aren’t used to using it!  Note that in very rocky soil often a backhoe is the best way to dig trenches.  You can often rent a small excavator with a backhoe on it.  Bonus, if you aren’t a professional equipment operator who operates one every day for a living, an afternoon digging with a backhoe can be a lot of fun!

See the previous discussion of best tools for irrigation installation for more on trenching equipment and recommended tools.

If you are digging the trenches by hand, consider doing it in sections. This has a couple of advantages, first you don’t completely wear yourself out digging, second it reduces the danger of having lots of open trenches at the same time. The bottoms of the trenches need to be as level and smooth as possible. If the trenches were dug by a machine don’t think you’re going to avoid all the shovel work! You will still get a good work out.  The trenching machines leave a lot of dirt in the bottom of the trenches that you may need to remove. You will need a narrow blade trenching shovel for this. If you have someone dig the trenches with a machine, have them over-excavate the trench depth by an extra 2″. They may charge you more for the deeper trench but then you can just leave the loose dirt in the bottom of the trench and save a lot of hand shoveling!

Trench Depth, Pipe Materials

Note that the minimum pipe depth in some areas of the western and southern USA are set by government ordinances as part of water conservation ordinances.  The reason is that broken pipes waste water and so they require a minimum depth to protect the pipes from accidental damage.

The depth of the trenches will vary dependent on a number of factors. All plastic mainline pipe should be at least 18″ deep as measured from the top of the pipe to the soil surface.   Because a mainline always has pressurized water in it you do not want it to be shallow where it is easily damaged.  So if you are installing a 1 1/2″ mainline the trench is going to need to be about 20″ deep.  Any mainline pipe that is not buried at least 18″ deep should be metal, such as copper, brass, or steel. In most areas this is required by law (the Uniform Plumbing Code) but it just makes good sense to do it everywhere. All plastic eventually weakens when exposed to sunlight, even the plastic that is labeled “UV resistant.”  Also you don’t want to accidentally break a plastic pipe with a shovel when planting a new shrub or weeding!  As a side note if you use steel pipe, be sure to either use the plastic coated type or wrap the pipe with a special protective plastic tape (ask your supplier for the tape). Even the galvanized steel pipe will rust with time, so wrap it with plastic tape just to be safe.

To determine the type of pipe or tube to use for your mainline see the discussion of this under the Irrigation Mainline section of this tutorial.  Quick summary, SCH 40 PVC is most often used for mainlines in none freezing climates, PEX is most often used where hard frosts occur in winter.  Using polyethylene for mainline pipes is not recommended as it is weaker and typically has a low pressure rating, it may burst.  There was a time when poly was extensively used so you may see it on older systems, but now there are better products available.  If you need a more flexible tube for your mainline, PEX tubing is the way to go, it is more flexible than PVC and also holds up better in freezing weather.

Lateral pipes and tubes for home irrigation systems can usually be about 8-10″ deep.  (The pipes or tubes between the control valves and the sprinkler heads are called laterals.) For commercial systems the standard is that the lateral pipe is 12″ deep, so if you really want to do it right, the trench needs to be about 14″ deep. So how deep should you bury it? For the do-it-yourselfer the argument is more work now or more work later. The deeper the pipe, the less likely it is to be damaged.  Note that some sources recommend 6″ deep, however at that depth the pipe/tube often gets damaged by standard yard care operations like aerating and dethatching.

Freezing Climates & Winterization

See the full tutorial on Winterizing Your Irrigation System. In areas where freezing temperatures occur precautions must be taken to prevent water from freezing in the pipes, valves, emitters, and sprinkler heads.  There are a couple ways to do this, please see the separate Winterization Tutorial for details.  This is very important as major and expensive damage can result from freezing!

Assembling PVC Pipe

The easiest way to install the pipe is to start at the water source and work out to the valves, then continue to the end of each lateral. Assemble the pipe outside of the trench and then lower the assembled sections into the trench as you move along. Try to avoid getting dirt into the pipe as you assemble it. The best way to do this is to keep the open end of the last pipe section glued out of the trench. Unfortunately it will want to fall into the trench if you don’t hold it. A good way to prevent this is to place a couple of short pieces of scrap pipe cross-ways across the top of the trench to hold the last section of pipe up out of the trench while you glue the new length of pipe or fitting onto it. If you need to stop work for the night stuff a rag into the open pipe end to keep out dirt and small animals. Just don’t forget to remove the rag before you start work again! Unfortunately, many problems with new sprinkler systems turn out to be caused by a rag left in one of the pipes! Important! PVC cement, PVC primer, and acetone are flammable. Do not use them around any ignition source. Do not breath the vapors. Close the containers when not in use. Avoid contact between these chemicals and your skin. Don’t get any of these in your eyes and avoid getting them on your clothes. You are working with an aggressive chemical solvent, so use common sense! One last warning. Look inside the pipe lengths before you connect them together and make sure nothing is in there. It is not uncommon to find rocks, cloth, and toy cars inside pipe that has been stored where kids play.

  1. Cut the pipe ends square using a hacksaw or preferably, a PVC pipe cutter. It is extremely important that all the burrs be removed from the cut pipe end. These burrs will scratch the pipe as the sections are pressed together creating small channels that will become leaks someday. Smooth the burrs and rough edges using a pocket knife, file, or a piece of sandpaper.
  2. Insert the pipe end about 1/4″ into the end of the fitting to check the fit, then pull it back apart. Sometimes the pipe isn’t perfectly round or isn’t the correct diameter, and it won’t go into the fitting. Now is the time to discover this, not when it’s coated with glue. Don’t push it together any farther than 1/4″ or it will be very hard to remove. Fittings are made so that the back of the fitting socket is smaller in diameter than the front. This is true of both threaded and solvent welded fittings, metal and plastic. The reason is to create a tighter joint which is less likely to leak. This is also the primary reason that it becomes harder and harder to press the male end into the female the farther it goes into the fitting!
  3. This step is optional, many people don’t use primer. But almost every professional installer does, so does this suggest anything to you? In cold weather (if you need to wear a jacket) you should always use primer as it makes the glue work better in cold temperatures. Coat the mating surfaces of both the pipe and the fitting with PVC primer where they will be joined. Use the primer like it was paint, don’t allow it to puddle or drip. The purpose of the primer is two fold. First it helps clean any foreign materials off of the pieces. Second it starts to soften the PVC plastic, or in industry terms, it “breaks the glaze.”  When PVC pipe is extruded a thin, hard layer of plastic develops on the surface which is known as glaze. This is what gives the pipe that shiny look. PVC primer is pretty much just acetone with a pretty purple dye in it so you can see where you’ve used it. If you’ve been paying attention as you read this tutorial (wake up!!!) then you know that acetone is the solvent for PVC plastic. If you place a piece of PVC pipe in acetone it will get softer and softer until it pretty much just melts into a blob. Acetone will also melt most other plastics, so watch that you don’t spill it (or the primer) onto anything you don’t want melted.
  4. Coat the outside of the pipe and the inside mating surfaces of the fitting with PVC cement. Be generous with the cement but if it starts to drip or run off you’re using too much. The goal is to use the thickest layer of cement possible without it running or dripping off. Press the pipe and fitting together using a twisting motion so that the pipe makes a 1/4 circle turn as it goes into the fitting. Twisting helps distribute the cement more evenly. Remember the cement dries extremely fast so don’t waste any time and be sure to get the fitting aligned the way you want it before the cement sets. If you have never glued pipe before it is strongly suggested that you buy a few extra couplings and use some scrap pipe to practice with before taking on the real thing. Press the pipe into the fitting all the way until it bottoms out. If you don’t get it all the way in before it sets, you greatly increase the chances of a leak. So practice, practice, practice! Hold the glued joint in place for about 30 seconds after shoving it together to allow the cement to set up. Try not to put any major stress on the joint for another few minutes after gluing (its OK to lay it down, just don’t yank on the ends or twist the pipe). You really shouldn’t put water into the pipes for 24 hours after gluing, but this isn’t always practical in the real world. The reality is that the joint develops the majority of its strength in just a few minutes.
  5. Too much glue can be just as bad as too little. Remember the glue is a solvent, it works not just by bonding the pipe like standard glue, but by also melting the pipe and fitting together as well. But it will also melt a hole through the pipe if a large amount of it sits in one place for a long time. Why tell you this? After all, you’re not planning to put a large gob of cement on the pipe! As you shove the pipe into the fitting the end of the pipe pushes a “bead” of glue in front of it, much like a bulldozer bushes dirt. If you use way too much glue this bead gets very large. It is not unusual for a beginner or someone being careless to create beads so large that they completely blocked the flow path through a 1/2″ fitting!  Besides blocking the flow the bead also creates a weak point in the PVC. A small bead is normal and is expected. But if a glob of cement drips off from the joint when you push the pipe into the fitting, then you are using too much cement. Remember, too little glue is also a problem so don’t over-react! If the cement doesn’t drip you’re OK. If you can’t get the pipe fully into the fitting before the glue sets, then you’re probably not using ENOUGH glue.

Assembling Polyethylene Tube or PEX

Assembling polyethylene tubing and/or PEX tube is pretty simple. There are two types of fittings available for poly tube and PEX.

Barbed Fittings:  Old school method.  Press the barbed ends of the fittings into the tube and place a clamp on the tube directly over the barbs. Tighten the clamp to hold the pipe on the barb. That’s pretty much it. If the tube is cold and stiff you can soften it by leaving it in the sun, or dipping it in hot water, but don’t use a flame of any kind. Once the pipe is assembled you can place it in the bottom of the trench. For sprinkler systems install the sprinkler risers, but not the sprinkler heads. Temporarily place threaded caps on the risers.

Locking Fittings:  Latest technology.  These are fittings that you insert the tubing into.  A toothed “lock” inside the female end “bites” into the soft poly tube and holds tube in place.  To seal the connection there is a rubber washer in the fitting.  Very easy to use, much easier than the barbed type, especially if the tube is cold.  For PEX mainlines use the more expensive household plumbing quality fittings made for PEX, not the cheaper ones made for irrigation systems.   The irrigation fittings are great for your laterals but don’t use them on mainlines.


Don’t forget to install the control wire for the valves while the trenches are open (unless, of course, you don’t plan to bury the wire.) The wire should be at least two inches away from the pipe, and either next to, or under the pipe. Never place the wire above the pipe. Most pro maintenance people (it’s the maintenance people that have to deal with wires getting accidentally cut, not the installer) prefer that the wire be 2-4″ below the pipe. This way the pipe protects the wire from damage and you are less likely to accidentally cut the wires when making repairs to the pipe. If you are using numerous single wires rather than a multi-wire cable, it is easier to handle the wires if you tape them together into a bundle every 10′ or so. The size of each wire is determined from a chart provided by the valve manufacturer. Every valve model is different, but we can make some generalizations. For residential systems where the wire length between controller and valve (not the distance from controller to valve, but the length of the wire between the controller and the valve) is less than 200′, #18 wire size will work. #18 is the size of wire provided in most multi-wire (or multi-conductor) irrigation cable.   Check the wire packaging or look at the small print on the wire itself to find the wire gauge (size). The standard wire gauge for commercial irrigation systems is #14 or sometimes #12. As the numbers get smaller the wire gets bigger, so #12 wire will carry more current further than #14. The wire should be made for direct burial in the ground, the correct direct burial wire will be labeled “UF-AWG” on the wire insulation. If you don’t mind a little extra expense, place the wire in a PVC pipe sleeve to protect it. If there are a lot of burrowing rodents (like gophers, moles, and ground squirrels), in the area putting it in a sleeve will save you a lot of headaches later.  Rodents will chew on the wire and cause you no small amount of grief. While we’re talking about wiring this is a good time to warn you against a common temptation that has disastrous results. Never connect the wires to the irrigation controller and then “spark” the wires against each other to test them! This can damage the circuits in many of the irrigation control clocks. If you need to test the wire circuits the best cheap way to do it is to connect a valve to the wire with the controller turned off, then have someone turn on the controller station while you listen for the valve solenoid to click when the circuit is activated. The best professional way is to use an ohm meter or an irrigation test unit to test the wire continuity.

This article is part of the Sprinkler Irrigation Installation Tutorial Series
<<< Previous Page ||| Tutorial Index ||| Next Page >>>
By using this tutorial you agree to be bound by the conditions and limitations listed on the Terms of Use page.