2 inches is the code for washing machine drain standard size, as established by the Universal Plumbing Code.