Dishwasher Drain Requirements & Code
Dishwasher drain requirements exist for a simple reason: dirty water must leave the dishwasher, flow into the household drain, and never flow back. When the drain is routed incorrectly, wastewater can siphon back into the dishwasher, leaving dirty water on clean dishes and creating a health hazard. The rules cover the drain hose route, backflow prevention, the connection to a garbage disposal or drain tailpiece, and the hose size and length. This guide explains each requirement in plain language, including where local codes differ, so you can plan a compliant installation or spot a problem in an existing one.
How a Dishwasher Drains
A dishwasher pumps wastewater out through a drain hose at the back or bottom of the unit. The pump pushes water through the hose and into the household drain system, usually through the garbage disposal's dishwasher inlet or a branch tailpiece on the sink drain. The hose must rise from the dishwasher to a high point before dropping to the drain connection. This rise is what prevents dirty sink water from flowing backward into the dishwasher when the sink drains or the disposal runs. Without that high point, gravity and suction can pull wastewater back along the hose.
The drain connection must also be downstream of the sink's P-trap or connected through the disposal, so that sewer gases cannot enter the dishwasher. The dishwasher itself does not have a trap, so it relies on the sink drain's trap for protection. That is why the dishwasher hose should never connect directly to a sewer line or to a drain that bypasses the trap. If you are planning a new kitchen layout, confirm the sink and dishwasher positions early, since the hose has a maximum practical length and the drain connection must be within reach. For related sink plumbing, see our kitchen plumbing hub and garbage disposal plumbing requirements.
High Loop vs Air Gap
Backflow prevention comes in two forms: a high loop and an air gap. A high loop is created by routing the drain hose up to the underside of the countertop, securing it there with a clip or zip tie, and then routing it down to the drain connection. The hose's high point must be at least 32 inches above the floor in most codes, and it must be secured so it cannot sag over time. A high loop is simple, inexpensive, and accepted in many jurisdictions, and most dishwasher manufacturers include high-loop instructions in their installation manuals.
An air gap is a small cylindrical fitting mounted on the sink rim or countertop. The dishwasher hose connects to one side of the air gap, and a second hose runs from the air gap to the disposal or drain. If backflow occurs, water spills out of the air gap onto the sink instead of flowing into the dishwasher, which creates a visible, physical break. Many states, including California, require an air gap by code, and some local codes require it even when the manufacturer allows a high loop. An air gap costs $15 to $40 for the fitting plus installation, and it is the safer option wherever it is required or even just permitted. If your dishwasher hose currently runs flat along the cabinet floor with no high point, that is a code violation in most areas and should be corrected.
Connecting to a Garbage Disposal
When a garbage disposal is present, the dishwasher hose usually connects to the disposal's dishwasher inlet, a small port on the side of the unit. Before connecting, the knockout plug inside that inlet must be knocked out and removed; if it is left in place, the dishwasher cannot drain at all and water will stand in the bottom of the tub. This is the single most common mistake in dishwasher installations, and it is easy to check: if a newly installed dishwasher will not drain, the knockout plug is the first suspect. After the plug is removed, the hose is secured to the inlet with a hose clamp, and the hose is routed up to the high loop or air gap.
If there is no disposal, the dishwasher hose connects to a dishwasher branch tailpiece, a section of drain pipe with a side inlet that replaces the standard sink tailpiece. The branch tailpiece connects to the sink drain above the P-trap, and the hose clamps onto its inlet. In either setup, the connection point must be accessible for inspection and maintenance, and the hose must not be kinked, crushed, or routed through a sharp bend. A kinked hose restricts flow and can cause slow draining or standing water. If your sink setup includes a farmhouse sink with a deeper basin, check the drain heights carefully; see farmhouse sink installation cost for how deeper sinks affect drain layout.
Drain Hose Size, Length, and Routing
Most dishwashers use a 5/8-inch or 7/8-inch inside-diameter drain hose, and the hose supplied with the unit is sized for that model. Always use the manufacturer's hose or an approved replacement of the same diameter; a hose that is too narrow restricts flow and strains the pump, while a hose that is too wide may not seal properly at the connections. The standard supplied hose is usually 6 to 10 feet long, which is enough for a dishwasher installed next to the sink. If the dishwasher is further away, an extension hose kit is available, but total hose length should generally stay under 12 to 15 feet, and longer runs increase the risk of slow drainage and backflow.
Routing rules are straightforward but often ignored. The hose should run without sharp bends, should not pass through areas where it can be pinched by a drawer or cabinet door, and should be secured so it cannot sag below the drain connection. If the hose passes through a cabinet wall, the hole should be smooth and large enough that the hose is not compressed. Avoid running the hose across a heat source or alongside a hot water line, which can soften the hose over time. When the dishwasher is installed in an island, the drain hose routing is more complex: the hose must still reach a high loop or air gap, and the island sink's venting arrangement must be planned with the dishwasher drain in mind.
Standpipe and Direct Drain Options
In some installations, particularly laundry-style setups or where the dishwasher is not next to a sink, the drain hose connects to a standpipe: a vertical pipe that rises above the trap and accepts the hose. A standpipe installation must include a P-trap and vent, just like a sink drain, and the hose must be secured so it cannot slip out or siphon. Standpipe connections are less common in modern kitchens but are still permitted in many codes for dishwashers installed away from the sink. The standpipe must be tall enough that the hose's discharge point sits above the trap's flood level, which prevents backflow.
Direct drain connections, where the hose connects to a dedicated drain line without a sink or disposal, follow the same principles: the connection must be trapped, vented, and protected against backflow with a high loop or air gap. Whatever the connection type, the key test is simple: after installation, run a full dishwasher cycle and watch the drain area for leaks, listen for gurgling, and check that no water remains standing in the tub at the end. If water stands in the tub, the drain path is blocked, kinked, or missing its knockout plug removal. If sink water appears in the dishwasher, the high loop or air gap is missing or has sagged. Both problems are fixable, but both should be caught before the installation is considered finished.
Code Variations and Inspection Tips
Dishwasher drain requirements come from the International Residential Code, the Uniform Plumbing Code, and local amendments, and the details vary. The biggest variation is air gap versus high loop: some states require an air gap outright, some accept either method, and a few require both in certain installations. Other variations include whether the dishwasher needs its own trap, whether a dishwasher can share a drain with a disposal, and the minimum height for a high loop. Your local building department or a licensed plumber in your area can confirm the exact rule for your jurisdiction in minutes, and that check is worth making before you buy parts.
For inspections, the inspector will typically check the hose route, the high loop or air gap, the disposal connection and knockout plug, the hose clamps, and the trap and vent arrangement. A clean, accessible installation with secured hoses and no kinks passes easily. Keep the dishwasher installation manual on hand, since inspectors often check that the installation matches the manufacturer's instructions as well as the code. If you are replacing a dishwasher in an existing kitchen, take a photo of the old drain setup before disconnecting it, so you can match or improve the routing. For a broader look at choosing the sink your dishwasher will drain through, see our best kitchen sinks of 2026.