You don t need to.
Install doors before carpet.
In my article hanging pre hung interior doors jul 16 i discussed the process i ve developed for installing interior doors in a fast and efficient manner.
By having all the doors and trim up first the painters can come in and spray everything out and get the first coat of color on the walls.
On a professional job all the doors are hung first then cased.
I don t like for the doors to drag on the carpeting but i do like it when they are as tight as they can be to the floor.
A really thick shag carpet can make it difficult to judge how high to place the trim.
Install the carpet install the carpet all the way against the wall.
I enjoyed john spier s article on installing pre hung doors what about when the floors will be carpeted.
John spier owner of spier construction a building and remodeling company on block island r i responds.
Baseboard goes down then the 2nd coat of paint goes on.
The important consideration particularly for pre hung doors is how high to install it above the subfloor.
The standard procedure is to install carpet after the doors and trim are installed.
This is for timing.
If you re remodeling your closet and installing sliding doors you may be concerned when it comes to installing the bottom brackets on your carpeting.
Baseboards are often installed before flooring since they must be finished in place with either stain or paint and this is much easier without worrying about staining the hardwood tile or carpet.
The last time i had new carpet installed i ended up removing all of the doors and trimming them down on a case by case basis.
Sliding doors can be confusing to install on carpet because instead of small corner brackets they typically are installed with track brackets that run the width of the closet opening.
Or you may be replacing the baseboards but leaving the carpet.