A round pipe fitting connecting your toilet to the pipe running into the sewer and to the floor is known as a toilet flange.
Even though it is not so easy, you can do it with the right knowledge and tools.
Shut the water supply to your toilet by turning the shutoff valve in a clockwise direction. Then, flush the toilet and allow let it to refill.
Keep flushing until the water is completely drained from the bowl. Then, detach the supply hose from the toilet.
Remove the Toilet
Using an adjustable wrench, take out the two bolts attaching the toilet to the floor.
Ensure to keep them close, as you will need them for the reinstallation. Now comes the fairly difficult part.
The best option is to get help from someone around, could be a family member, neighbor or friend.
Rock the toilet back and forth a bit so as to loosen the wax seal before lifting.
Make sure you use your legs, and not your back, when lifting. Lift up straight and position carefully on a newspaper.
Toilet Flange Replacement: Remove the Flange
Use a multi-head screwdriver to loosen the screws fastening it to the floor. Keep these screws properly for later. Wipe the flange clean and stuff and old cloth into the sewage escape pipe to stop any nasty smells or gases from the sewer. Take a measurement of the sewer pipe diameter to determine the right flange size. Then, bag your old one and visit the nearest home improvement or hardware store.
Buy a Flange
Confirm that the new flange is the same shape and size before purchasing. You will also need a new wax ring in addition to the flange. The toilet flange usually comes with the right bolts and nuts, and if they aren't included for any reason, the ones you previously saved can be reused. You will only need new bolts and nuts if those saved aren't usable anymore.
Toilet Flange Replacement: Replace the Flange
Once you return home, remove the cloth from the escape pipe. Position your new flange on the pipe and ensure there isn't any space between the floor and flange. Attach it using your new or used bolts and nuts. At this point, there should be two bolts in place awaiting the toilet.
Replace the Toilet
Position the toilet on its side and apply the new wax ring around the mouth which sits on the flange. Fit the toilet in place where the two bolts meet the holes on the base of the toilet. Press down on the toilet to seal the wax ring on the flange. Screw the nuts back on the bolts.
Toilet Flange Replacement: Reconnect Water
Reattach your supply hose and open the shutoff valve to turn the water back on. When the toilet bowl gets filled, flush a few times to confirm it's working properly and there aren't any leaks. Check that the toilet is not shaking and the floor is dry. If so, you have successfully replaced your flange and saved yourself a good amount of money!