Which kind of gnat is in your house?
The word gnat covers several tiny flies, and the three you are most likely to find indoors breed in very different places, so identifying yours comes first. Fungus gnats are dark, delicate flies that look a little like mosquitoes. The University of California Statewide IPM Program puts most adults at about 1/16 to 1/8 inch long, with long segmented antennae and light gray to clear wings. They are attracted to light and often show up near windows first, and they tend to stay close to potted plants.
Fruit flies, also called vinegar or pomace flies, are about 1/8 inch long and usually have red eyes. University of Kentucky entomologist Michael F. Potter describes the front of the body as tan and the rear as black, and notes that small flies or gnats seen in a kitchen are probably fruit flies. They are especially common in late summer and fall, when ripe and fermenting produce draws them.
Drain flies are fuzzy, and University of Maryland Extension describes them as 1/16 to 1/4 inch long, pale brownish gray to black and found mostly in kitchens, bathrooms and basements near floor drains. Their larvae live in the gelatinous film inside drains and traps.
How do you find where the gnats are breeding?
Each of these flies spends its early life as a larva in something moist, and UC IPM notes that the most effective control methods work on those immature stages. University of Maryland Extension suggests covering a suspect plant or drain with screen or cheesecloth and checking it over the next several days for flies. For drains and garbage disposals, the Kentucky fact sheet recommends taping a clear plastic food storage bag over the opening overnight, since any adults emerging from the drain will be caught inside. To check potting soil for fungus gnat larvae, UC IPM describes pressing chunks of raw potato into the soil with the cut side down. After a few days, lift the pieces and look for larvae.
Maryland Extension also lists sewer leaks, dirty garbage cans, saucers under potted plants and the condensate pans under refrigerators and air conditioners as places where drain flies can breed. Kentucky adds empty bottles and cans, trash containers, mops and cleaning rags for fruit flies, and notes that a single forgotten rotting potato or onion can breed thousands.