How to Fit a Washing Machine in a Bathroom: Setup and Plumbing Guide

A washing machine can go in a bathroom when the room has a proper standpipe drain, hot and cold shutoff valves, and a GFCI-protected receptacle.

Water and electricity share tight quarters in a bathroom, so whether the room can take a washer comes down to three things: a drain sized for the machine’s discharge, hot and cold supply valves, and a receptacle the electrical code accepts. The pipe dimensions and circuit rules below cover how to fit a washing machine in a bathroom so it passes inspection, plus the hookup order that keeps water off the floor.

Renters and condo owners should check the lease or HOA rules first, since a new standpipe usually needs a permit. Everyone else can start with the numbers.

Bathroom Washing Machine Plumbing: Requirements That Apply Today

A laundry drain is not a sink drain. The IRC requires a standpipe at least 2 inches in diameter that rises 18 to 42 inches above the trap weir, with the trap set within 18 inches of the finished floor.

Two details get missed most often. The standpipe has to stay open at the top and reachable for snaking, and the drain hose should slide no more than 8 inches into it and be secured so it can’t jump out mid-spin. The trap arm also needs a vent within the distance your adopted code allows — a common IRC 2024 summary lists 6 feet for a 1.5-inch trap and 8 feet for a 2-inch arm, but state amendments and the local inspector’s reading can tighten that.

Where the machine sits in the room matters too. Keep it clear of the shower’s spray and the door’s swing, and leave the shutoff valves reachable without hauling the washer out of its alcove.

Requirement Typical Spec Why It Matters
Standpipe diameter 2 inches minimum Handles a washer’s fast discharge without backing up
Standpipe height 18–42 inches above the trap weir Keeps suds and gray water from overflowing
Trap location Within 18 inches of the finished floor Standard placement for a laundry drain
Drain hose depth No more than 8 inches into the standpipe Prevents siphoning and hose pop-out
Trap arm vent distance About 6 ft (1.5-inch trap); 8 ft (2-inch arm) Confirm against your adopted code
Branch circuit 20 amps for laundry receptacles Matches the load a washer draws
Receptacle protection GFCI in bathrooms Required in dwelling units; may apply in laundry areas too

Does A Washing Machine In A Bathroom Need GFCI Protection?

Yes — bathroom receptacles in a dwelling unit require GFCI protection, and a washer outlet in that room generally has to satisfy bathroom and laundry rules at the same time. NEC-based summaries also call for a 20-amp branch circuit for receptacle outlets serving laundry equipment.

The exact combination depends on where the outlet sits and which code edition your state adopted. An outlet near the sink raises the stakes, and some jurisdictions add laundry-area GFCI rules on top of the bathroom requirement. The International Association of Electrical Inspectors explains GFCI rules for washing machine receptacles, and that page is worth reading before you buy a breaker.

Keep the device reachable either way. A GFCI you can’t press to test or reset — because it’s buried behind the machine — fails its purpose and usually fails inspection too.

Moving The Washer In And Reconnecting It

Once the plumbing and outlet pass inspection, the hookup is a short job. Work in this order, and keep a towel and a bucket within reach.

  1. Shut off the hot and cold supply valves behind the old machine, or the main if they’re seized.
  2. Unplug the washer and lift the drain hose out of the standpipe before disconnecting anything.
  3. Disconnect the supply hoses, drain the leftover water into the bucket, and slide the machine out.
  4. Roll the new washer into place, leaving a few inches behind it so the hoses aren’t pinched.
  5. Thread the hot and cold hoses onto the shutoff valves — hot to hot, cold to cold — hand-tighten, then a quarter turn with pliers.
  6. Feed the drain hose 6 to 8 inches into the standpipe and clip or strap it so it can’t move.
  7. Open the valves slowly and watch each connection for a minute; a drip means the hose gasket needs another quarter turn.
  8. Plug in, run a short rinse cycle, and check the standpipe area for overflow.

If the standpipe and the floor under the machine are still dry after that rinse, the job is done.

Level the machine before the first real load, too. An out-of-balance washer walks during the spin cycle, and a walking washer is how drain hoses get yanked out of standpipes. Check the feet with a level and snug the lock nuts.

Tight rooms come down to footprint as much as plumbing — the best bathroom washing machines for small spaces we tested covers compact and all-in-one models that fit beside a vanity.

Not every bathroom works. If there’s no room for a 2-inch standpipe and a vent within code distance, a stacked unit in a closet or a utility sink may be the better plan.

FAQs

Can A Washer Drain Into The Bathroom Sink?

A sink drain isn’t built for a washing machine’s discharge. A washer empties several gallons in seconds, and the IRC expects a 2-inch standpipe with its own trap for that flow. Tying the hose into a sink trap risks backup, siphoned water, and a failed inspection. If a standpipe isn’t possible, the honest answer is that this bathroom may not be the right spot.

How Much Clearance Does A Washer Need?

Leave a few inches behind the machine so the supply and drain hoses aren’t kinked, plus enough room in front to open the door and pull the unit out for service. Top-loaders need clearance for the open lid. Measuring the alcove before delivery beats wrestling a machine into a space it doesn’t fit.

Does Adding A Washer To A Bathroom Need A Permit?

Usually yes, because new drain and supply connections count as plumbing work, and some jurisdictions treat the added circuit as electrical work too. Call the local building department before cutting anything and ask what your adopted code requires. Inspectors focus on standpipe sizing, trap placement, venting, and GFCI protection, so plan those first.

References & Sources

Please use a real email you check. If it's fake or mistyped, your message won't reach us and we can't reply — wrong addresses are rejected automatically.

Mo Maruf

Mo Maruf

Founder

I am a dedicated home cook and appliance enthusiast. I spend hours in my kitchen testing real-world storage methods, reheating techniques, and kitchen gear performance. My goal is to provide you with safe, tested advice to help you run a more efficient kitchen.