Trace the outline of the toilet onto the subfloor with a marker.
Turn the water off to the toilet and flush it several times to drain out any water. Disconnect the water pipe and remove the ground bolts with adjustable pliers. Pull the toilet out and set it to the side.
Install tack strips on the left and right sides of the location for the toilet. Place the tack strips 1 to 2 inches from the sides of the markings on the subfloor for the toilet. Hammer the tack strips into place.
Install the carpet following normal procedures or hire a professional to install the carpet.
Cut out the carpet with a sharp utility knife starting at the center of the drain. Press down around the location of the toilet to find the drain. Start your cut there. Cut outwards until you reach the mark for the toilet. Cut the carpet along the marks for the shape of the toilet. Remove the cut out section. Cut any loose threads with scissors.
Reinstall the toilet and attach the water lines.