Turn off the main water supply to the home. The turnoff might be in a basement, crawl space or on the home's exterior. Turn on a faucet, such as the kitchen sink or an outside hose, to clear the water supply lines.
If the pipe is buried, excavate the ground to expose the pipe on all sides. Contact your utility company to ensure you don't damage buried utility lines. In some cases, the old cast iron pipes might be exposed in the basement of your home so digging would be unnecessary.
Inspect the pipe by hand to determine the sections of the pipe that need to be replaced. Feel for weak sections in the metal. In some cases, the damage will be obvious to the eye.
Mark the pipe with a pencil or marker on either side of the damaged area.
Measure the space between each mark to determine the size needed for the replacement pipe. The replacement pipe should be 1/4-inch shorter than this measurement to allow 1/8-inch at each end for a better fit with the couplings.
Cut through the pipe with a reciprocating saw at both marked sections; use a carbide blade with the saw to ensure it is strong enough to cut through the metal. Place a bucket under the pipe to catch any standing water left in the drain.
Slide a Fernco rubber coupling over each open end of the cast iron pipe. Push it back a few inches onto the pipe to allow enough room to add the new pipe.
Hold the new section of pipe in place and slide the couplings up so they cover the new and old sections of pipe equally.
Tighten the clamps on the bands evenly, using a nut driver or screwdriver. Ensure that all clamps are turned an equal number of times.