What size drain pipe for a washing machine?

A washing machine needs at least a 2 inch trap and drain under both the International Plumbing Code (IPC) and the Uniform Plumbing Code (UPC). It counts as 2 drainage fixture units under the IPC and 3 drainage fixture units under the UPC. Your state or city may use either code, with amendments.

Washing machine drain size in each document

Trap size and drainage fixture units of the washing machine as printed in each document, by code
CodeTrap, inDFUDocument
IPC22NC Building Code Council / NC Office of Administrative Hearings
UPC23Minnesota Office of the Revisor of Statutes / Dept. of Labor and Industry
UPC23Public Health - Seattle & King County, WA

Which code applies where you live

Under the IPC the same 2 inch trap serves a floor drain. The model codes are adopted state by state. UPC: AK, CA, HI, IA, ID, MN, MT, NM, OR, WA. IPC: CO, FL, GA, IN, LA, MD, MI, NC, NY, OH, PA, TN, UT, VA. Cities and counties can amend them; the local building department has the final word.

Before you plumb the drain

The trap size is the smallest the code allows for this fixture. A drain line that collects several fixtures is sized from the sum of their drainage fixture units, and every drain needs a vent and a minimum slope; see the drain size chart and the drain slope calculator.