Depends on the type what means I use to replace it CAST Iron/ BRASS / Antimony / PVC / SCREWED TYPE
No, it is not recommended to glue the toilet closet flange to the pipe. The flange should be secured to the floor using bolts or screws, and the toilet is then secured to the flange using wax rings or sealing gaskets. Gluing the flange to the pipe can make it difficult to remove or replace the toilet in the future.
depending on your type of flange and pipe and the damage of the flange, if you have a PVC flange with just the bolt slots busted then you can screw in new bolts to the floor below the flange and still use the flange but if its broken where the wax seal sits then if your flange is lower then the floor you can use a insert flange that fits inside your old toilet flange with thin walls to keep the pipe size maximum. To replace the entire flange can be a job especially if its in concrete or in a floor joist because most of the time you have no room and if its cast iron pipe it can be even more of headache but in order to replace the flange you need to cut it out to where you can reconnect the pipe and flange by using a fernco or a no hub band. Sometimes it is impossible to replace because the flange can be on all close fittings and you pretty much have to replace most of the plumbing drain pipe to replace it properly which is why you want to try repairing your toilet flange rather then replacing it .
You have to take the lead and packing out that is holding the flange in the next piece of pipe. If your flange is broke where the toilet bolts go, this is very common. There is a repair available for this. It consists of two curved pieces of metal that are about 1/3 of the circumference of the flange. They go under the flange and give you a new place to put the bolt. They are a lot easier to use than replacing the whole flange.
Broken toilet flange. Toilet flange bolts may be loose.
With a deep floor flange Or a wax seal with a horn and extra long Brass floor flange bolts
Replace it
Toilet flange.
Usually toilet flange is glued down onto plastic drain pipe. There is a toilet flange that can be glued inside of plastic drain pipe also.
The cost to replace just the toilet flange is around $5. The tricky part is knowing how to install it. If you use an outside source the cost will go up accordingly.
15 inches from outside edge of tub to center of toilet flange.
The easiest solution would be to move the toilet so that it lines up with the waste pipe.
it can cost from as little as 100 to as much as 1000 depending who does it and what is actually wrong. if the flange is cast iron it will be more. if it is glued abs or pvc and the drain is broke thats gonna cost more than 200. you may not need to actually repalce the flange and you may be able to use a metal repair bracket. If the flange is unrepairable its a dirty job and if the flange is glued that means the drain has to get cut back and then coupled and extended. and remember plumbers dont fix walls. so any holes made wont be their resonsiblity to fix.