A leaking PEX pipe can turn a small repair into a soggy ceiling or damaged floor if you leave it alone. The good news is that replacing a short, accessible section is often a manageable DIY job—provided you shut off the water, use fittings that match your pipe, and test the repair before closing anything up. Here’s how to approach it safely, and how to recognize when it’s time to call a plumber.
Table of Contents
First, Decide Whether You Can Handle the Repair
Replacing PEX is most realistic when the damaged section is easy to reach, such as in an unfinished basement, utility room, or accessible cabinet. A short section of straight pipe with clear room to work is much simpler than a pipe hidden behind tile or running through several floors.
Before you start, consider what caused the damage. A nail or screw may have pierced the pipe, while a freeze can split a longer section. If the pipe is brittle, discolored, crushed, or leaking in several places, replacing only the visible damage may not solve the problem. Look for nearby problems and consider having a plumber assess the full run.
- A DIY repair may suit you: The leak is accessible, you can shut off the right water supply, and you can identify the pipe and fitting system.
- Call a plumber: The leak is inside a finished wall or slab, the main shutoff won’t close, several pipes are damaged, or you’re unsure how to make a safe, code-compliant connection.
Local plumbing rules vary. Some areas require permits or limit which fittings can be used in concealed spaces. Check your local requirements before cutting into a water line, especially if the repair will be hidden behind a wall or ceiling.
What You’ll Need to Replace a PEX Pipe
Gather the tools and materials before shutting off the water. The exact items depend on your pipe and connection system, so take a photo of the existing pipe and fittings or bring a cut sample to a plumbing supplier if you need help identifying them.
- Replacement PEX pipe of the same nominal size and an approved type for the job
- Compatible couplings, rings, or clamps
- A PEX cutter designed to make a clean, square cut
- The matching connection tool, such as a crimp tool or expansion tool
- A measuring tape, marker, and suitable pipe supports
- A bucket, towels, and eye protection
Don’t assume that fittings from different systems work together just because they look similar. Check the fitting and pipe manufacturer’s instructions. A connection that seems tight but is made with the wrong tool or components can leak under pressure.
Know Which PEX Connection You Have
PEX-A, PEX-B, and PEX-C describe different ways the tubing is manufactured. They don’t, by themselves, tell you which fitting system is installed. Identify the actual connection method by looking at the existing joints and any markings on the pipe.
| Connection method | How it works | What to check |
|---|---|---|
| Crimp | A copper ring is compressed around the pipe and fitting. | Use the correct size ring and tool, then check the finished crimp with the appropriate gauge. |
| Cinch or clamp | A stainless-steel clamp tightens around the pipe and fitting. | Use the clamp size and cinch tool specified for the system. |
| Expansion | The pipe end and expansion ring are expanded so they can fit over a compatible fitting; the pipe then contracts around it. | Use a compatible pipe, ring, fitting, and expansion tool, following the manufacturer’s steps. |
| Push-to-connect | A listed fitting grips and seals the pipe when it is inserted to the required depth. | Confirm the fitting is approved for PEX and for the location; follow the insertion-depth and support instructions. |
For a repair that will be hidden, use fittings approved by your local code and the product manufacturer for that location. Push-to-connect fittings can be convenient, but convenience doesn’t make every model suitable for every concealed installation.
How to Replace a PEX Pipe Step by Step
1. Shut Off the Water
Close the shutoff valve for the affected fixture or branch if you’re certain it controls the damaged pipe. Otherwise, shut off the home’s main water supply. Open a nearby faucet at a low point to relieve pressure and let water drain from the line. Keep a bucket and towels under the repair area; water often remains in the pipe even after the pressure is released.
If you’re working on a hot-water line and need to drain a water heater, switch off its heat source according to the manufacturer’s instructions before draining it. A tank water heater must not be heated while empty. Don’t turn it back on until it has been refilled and air has been cleared from the hot-water lines.
2. Locate and Mark the Damaged Area
Dry the pipe and inspect the entire accessible section. Mark the damaged area, then plan where to cut so the new pipe can join sound, undamaged tubing. Leave enough room on each end for the fittings and the tool you’ll use.
Whenever possible, replace the damaged run with one continuous piece of PEX between accessible connection points. That reduces the number of joints, and every extra joint is another place that could leak. If you need to install a short patch, make sure you have enough straight, healthy pipe at both ends for secure connections.
3. Cut Out the Damaged Pipe
Use a PEX cutter to make clean, square cuts. An angled, crushed, or ragged end can prevent a fitting from sealing properly. Avoid twisting the pipe while cutting, and don’t cut so close to a wall or fitting that you can’t properly seat the replacement connections.
Once the damaged piece is out, inspect the remaining pipe ends. If they’re split, deformed, or marked by the same damage, cut back farther until you reach sound tubing. A fitting should connect to a clean, round pipe end—not a section that is already compromised.
4. Measure and Cut the Replacement
Measure the gap between the connection points and cut the new PEX squarely. Allow for the amount of pipe that enters each fitting; don’t simply cut a piece exactly as long as the visible gap. Check the fitting instructions for insertion depth or expansion requirements.
Keep the pipe away from sharp edges and follow the required bend radius. Don’t force a tight bend or leave a kink in the line. A kink can restrict water flow, and trying to hide it behind a wall won’t make it a sound repair. Use suitable supports and bend guides where needed, following local code and the pipe manufacturer’s recommendations.
5. Make the Connections
Prepare the pipe and fittings according to the connection system you’ve identified. With crimp fittings, place the correct ring in the specified position and compress it using the matching tool. Use the gauge if the system calls for one. With a clamp system, position and tighten the clamp as directed. For expansion fittings, follow the tool’s instructions carefully; the sequence and number of expansions can depend on the equipment and product.
For a push-to-connect fitting, cut the pipe cleanly, check that the end is free of burrs, and mark the required insertion depth if the manufacturer recommends it. Push the pipe in fully. A fitting that is only partly seated may look fine at first and still leak later.
Don’t use glue, tape, or solder directly on PEX pipe. If the new PEX must connect to copper or another material, use an approved transition fitting designed for those materials. Support the pipe so the new section isn’t pulling sideways on the joints.
6. Turn the Water Back On Slowly
Before restoring water, make sure all connections are complete and any tools or temporary plugs are removed. Open the main shutoff gradually. Turning it on slowly helps reduce the sudden pressure change in the line. Open a nearby faucet to let trapped air escape, then close it once water flows smoothly.
Dry each joint and inspect it closely. Check again after several minutes, then return later to look for slow drips or dampness. If the repair is near a wall, floor, or cabinet, place a dry paper towel beneath it during the first check; tiny leaks are easier to spot on paper than on a dark or textured surface.
Common Mistakes to Avoid
- Mixing incompatible components: A ring, clamp, fitting, or tool that doesn’t match the system can create a weak joint.
- Leaving damaged pipe in place: Cut back to sound tubing rather than attaching a fitting over a split, crushed, or kinked section.
- Making an awkward hidden patch: If you can’t reach the connection properly or inspect it, get professional help before closing the wall.
- Skipping the leak check: A joint can appear dry immediately and start seeping once the line is pressurized.
- Ignoring the cause: If freezing, abrasion, or a sharp edge damaged the pipe, address that problem too or the replacement may fail again.
When to Call a Plumber
Get professional help if water is spreading near electrical wiring, the pipe is inaccessible, or you can’t stop the flow. A plumber is also the safer choice if the damage involves a main supply line, multiple leaks, unusual fittings, or a repair that must meet specific local rules.
Even for a straightforward repair, it’s reasonable to ask a licensed plumber to inspect your work if you’re uncertain. A small service call can be cheaper than repairing water damage caused by a joint that was installed incorrectly or hidden before it was tested.
Read more related posts:
- How to unclog a sink drain Without Harsh Chemicals
- how to repair a small copper pipe leak simple tools
- 10 ways to unclog a bathroom drain without harsh chemicals work
Frequently Asked Questions
Can I replace a short section of PEX pipe myself?
Often, yes, if the pipe is accessible, you can shut off the water, and you have the correct compatible fittings and tools. Follow local code, and don’t hide the repair until you’ve tested it for leaks.
Can I use a different type of PEX for the replacement?
Sometimes, but don’t choose by type name alone. Check the pipe and fitting manufacturers’ compatibility instructions, the connection method, and local code. When in doubt, match the existing system or ask a plumbing supplier or plumber to identify it.
How do I know if a PEX fitting is leaking?
Dry the joint completely, restore water pressure, and look for droplets or fresh moisture. Check again after several minutes and later on. A dry paper towel placed beneath the fitting can reveal a slow seep.
Do I need to replace the whole PEX line if it leaks?
Not always. A single, accessible puncture may only require a short section to be replaced. If the pipe has several damaged spots or signs of freezing, wear, or repeated kinking, have the full run assessed before making a small patch.
Conclusion
Replacing an accessible PEX section comes down to a few careful steps: shut off and drain the line, identify the connection system, cut back to healthy pipe, use compatible fittings, and test every joint before putting the repair out of sight. Take your time with the connections. If the pipe is hidden, the damage is widespread, or anything about the system is unclear, calling a plumber is the safer move.






