In my house they had to go from carpet to tile and lino.
Install baseboard or carpet first.
This could result in a tight fit based upon how close to the wall the tack strips are placed normally the old tack strips are not replaced when installing new carpet.
Baseboard installed on top of carpet should be installed at approximately the same height with this exception.
Some professionals may have a strong preference but ultimately baseboards can be installed before or after carpet.
There may be instances where you want to put the carpet down first.
The first is to install the baseboards flush to the subfloor prior to carpet installation.
If you re in one of these situations follow these instructions to install the trim after the carpet.
Generally the installation of carpet or baseboard is easier for whoever installs first.
How to install carpet first.
Many builders do not install flush to the floor compensating for height of carpet.
A really thick shag carpet can make it difficult to judge how high to place the trim.
Ask your carpet installer their preference to begin the discussion.
The baseboard goes in first always the carpet installers don t like this if they have to install new thicker baseboard for the customer they have to remove the old tack and install new this is very time consuming and their usually on piece work.
Nice taller baseboards should frame the room first prime caulk and base coat as above before you install carpet.