Installing a toilet is a manageable DIY project that takes about 2—3 hours. Whether replacing an old toilet or installing one in a new bathroom, the key is a proper seal between the toilet and the closet flange. A well-installed toilet should last decades without leaks, rocking, or clogs. This guide covers both two-piece and one-piece toilets.