Regardless of the pipe material and your local plumbing code, the drain pipe must be at least 3 inches to deal with the standard modern toilet that makes 1.6 GPF (gallons per flush). Toilets that use more than 1.6 GPF may require a 4-inch pipe.