Little Flies in House
Little flies in the house are fungus gnats, fruit flies, or drain flies. This US guide identifies each type and shows how to eliminate them fast.
Key takeaways
- Three species cause most small fly problems in US homes: fungus gnats (near plants), fruit flies (near fruit and compost), and drain flies (near sinks and floor drains)
- Fungus gnats live in overwatered houseplant soil — the fix is letting soil dry out between waterings, not spraying insecticide
- Yellow sticky traps catch adult fungus gnats and help you measure how bad the infestation is before treatment
- Fruit flies breed in fermenting organic material — locating and removing the source eliminates them faster than traps alone
- Drain flies breed in the organic biofilm inside pipes — a boiling water flush or enzymatic drain cleaner removes their breeding ground
Identifying the three common small fly species
Before treating small flies in your home, identify which species you have. The three most common types — fungus gnats, fruit flies, and drain flies — look similar but breed in completely different locations. Treating the wrong place wastes time and does not solve the problem.
All three are small, dark, and easy to confuse at a glance. The location where you see them most often is the fastest identification clue.
| Fly | Size | Color | Where you see them | Breeding location |
|---|---|---|---|---|
| Fungus gnat | 1/8 inch | Black or gray | Hovering near houseplant pots | Moist potting mix |
| Fruit fly | 1/8 inch | Tan/yellow-brown with red eyes | Near fruit, trash, compost | Fermenting organic matter |
| Drain fly | 1/16–1/8 inch | Gray; moth-like fuzzy wings | Near sinks, on bathroom walls | Inside drain pipe biofilm |
| Phorid fly (humpback fly) | 1/16–1/8 inch | Dark brown | Near drains or decaying matter | Decaying organic material, drains |
Looking at where the flies rest when not moving is one of the clearest identification cues. Drain flies often sit motionless on walls and ceilings near water sources, wings held flat and slightly apart, resembling tiny moths. Fruit flies are active, darting away quickly when disturbed. Fungus gnats are poor fliers and tend to stay near soil, walking or flying erratically just above the pot surface.
Fungus gnats: the houseplant problem
Fungus gnats are the most common houseplant pest in the US. Adults are harmless to humans but their larvae feed on plant roots and organic matter in moist potting soil. The core problem is overwatered soil, not the gnats themselves.
Fungus gnat adults live about a week. They lay 100–200 eggs in the top inch of moist potting mix. Eggs hatch in 3–6 days. Larvae feed on fungal growth, organic debris, and fine roots in the soil for about 2 weeks. Then they pupate in the soil for 3–7 days before emerging as adults. The whole cycle takes about 3–4 weeks.
This cycle continues indefinitely as long as the soil stays moist. Breaking the cycle requires breaking the moisture condition, not just killing adults.
Why overwatering causes fungus gnats
Consistently moist potting mix creates ideal conditions for the fungi and organic matter that fungus gnat larvae eat. It also keeps eggs and larvae from desiccating. The University of Florida IFAS extension reports that letting soil dry between waterings — the standard advice for avoiding root rot — is also the most effective fungus gnat prevention. Plants that need consistent moisture (ferns, peace lilies) are more susceptible than drought-tolerant plants (succulents, snake plants).
For a detailed look at fungus gnats in houseplant contexts, see how to get rid of gnats in plants and gnats in my house.
Eliminating fungus gnats: step by step
Step 1: Let soil dry out. For most houseplants, let the top 2 inches of soil dry completely between waterings. For plants sensitive to drought, aim for the top 1 inch drying. Repeat this over 2–4 watering cycles. Larvae in the dry soil die from desiccation within the normal 2-week larval period.
Step 2: Use yellow sticky traps. Place yellow sticky cards horizontally at soil level, or vertically just above the pot. Adult gnats are attracted to yellow. Traps catch adults, prevent them from laying more eggs, and let you track population decline over time. Traps do not eliminate the infestation alone — they are a monitoring and control tool while soil drying breaks the larval cycle.
Step 3: Address chronic overwatering. If a plant needs constant moisture (like a fern), consider a well-draining potting mix with higher perlite content. This slows water retention without changing the watering frequency dramatically. For most popular houseplants, a soil mix with 25–30% perlite dries faster than standard nursery potting mix.
Optional treatments:
-
BTi (Bacillus thuringiensis israelensis): A naturally occurring soil bacterium sold as Gnatrol or in mosquito dunks dissolved in water. Applied as a soil drench, it kills larvae but not eggs or adults. Non-toxic to humans, pets, and beneficial insects. Needs repeated applications every 7–10 days through 2–3 generations.
-
Beneficial nematodes (Steinernema feltiae): Microscopic soil organisms that parasitize and kill insect larvae. Applied as a soil drench. Best used when infestations are severe. Available online and at some garden centers.
-
Neem oil soil drench: Made from pressed neem seeds, neem disrupts the larval life cycle. Mix at the label rate in water and apply to soil. Repeat weekly for 3–4 weeks. Less effective than BTi but commonly available.
-
Hydrogen peroxide drench: Mix 1 part 3% hydrogen peroxide with 4 parts water. Apply to soil instead of regular water. Kills larvae on contact through oxidation. Safe for most plants at this dilution. Repeat once per week for 2–3 weeks.
What does NOT work well: General insecticide sprays aimed at adult gnats kill adults but leave larvae unaffected. Since adults live only 7 days and larvae are the damaging, reproducing stage, killing only adults provides temporary relief but does not break the cycle.
For soil mix recommendations that reduce overwatering risk and gnat pressure, see best soil for indoor plants.
Fruit flies: the kitchen and compost problem
Fruit flies breed in fermenting organic material — overripe fruit, vegetable scraps, spilled juice, damp mop heads, and uncovered compost bins. Finding and removing every breeding source is the only lasting solution.
Fruit flies (Drosophila melanogaster) are attracted to fermentation. They can detect ripe or rotting fruit from 100 feet away. A single overripe banana on the counter is enough to attract dozens of fruit flies within hours during US summer. Females lay 400–500 eggs on or near fermenting material. Eggs hatch in 24–30 hours. The entire cycle from egg to adult takes 8–10 days at room temperature.
Finding fruit fly breeding sources
Check each of these common locations:
- Fruit bowl (particularly overripe bananas, tomatoes, peaches, berries)
- Trash can (especially if it has food residue; damp interior; no lid)
- Kitchen drain (fruit flies also breed in drain biofilm)
- Recycling bin (juice and soda containers with residue)
- Countertop damp areas (under appliances, near the coffee maker)
- Potatoes, onions, or garlic stored uncovered in a cool cabinet
- Compost bin or countertop compost container
Eliminating these sources eliminates the food supply and breeding substrate. No source removal = no lasting control, regardless of how many adult flies you catch in traps.
Fruit fly traps
Traps catch adults and reduce the visible population while you address sources. They do not solve the infestation without source removal.
Apple cider vinegar trap: Fill a small bowl with 1–2 inches of apple cider vinegar. Add a drop of dish soap (breaks the surface tension so flies sink). Cover with plastic wrap and poke 5–10 small holes. Fruit flies enter the holes and cannot escape. Replace every 3–4 days.
Commercial fruit fly traps: TERRO Fruit Fly Traps, Aunt Fannie’s FlyPunch, and similar products use attractant lures in a ready-made container. Performance is comparable to homemade vinegar traps. See homemade gnat trap for DIY versions that work for both fungus gnats and fruit flies.
Red wine trap: A nearly empty wine bottle left out overnight attracts and traps fruit flies similarly to apple cider vinegar.
Fruit fly timeline
With all breeding sources removed and traps deployed, fruit fly populations in US homes typically drop to undetectable levels within 5–14 days. Eggs already in place will hatch and larvae will complete development — you will continue seeing adults for up to 10 days after full source removal. This is normal. Persistence is the trap.
Drain flies: the plumbing problem
Drain flies (Psychoda spp.) breed in the organic biofilm that coats the inside of drain pipes, specifically in P-traps and slow or infrequently used drains. They do not breed in soil or food — they breed inside your pipes.
Drain flies are sometimes confused with fungus gnats because of their small size, but they look distinctly different: they have broad, rounded wings and a hairy or moth-like appearance. They rest motionless on walls and ceilings near sinks. They are weak fliers and rarely move more than a few feet from their breeding drain.
Identifying drain fly drains
To confirm you have drain flies and identify which drain is infested:
- Cut a piece of clear tape or use a piece of sticky trap material.
- Place it over the drain opening (sticky side down) at night.
- Leave overnight or for 12–24 hours.
- If drain flies are active in that drain, they will stick to the tape as they try to exit.
Common drain fly breeding drains: kitchen sink, bathroom sink, floor drains in laundry rooms or basements, rarely-used guest bathroom drains, and shower drains.
Eliminating drain flies
Step 1: Clean the drain mechanically. Use a drain brush or pipe cleaning brush to scrub the inside of the drain pipe, especially the sides. The biofilm is the breeding medium — physically removing it removes the breeding site. Pour boiling water down the drain after scrubbing to flush debris.
Step 2: Enzymatic drain cleaner. Products like Green Gobbler, Bio-Clean, or American Bio-Sciences sell enzymatic formulas that digest the organic biofilm. Pour down the drain at night (when no water will run for 8+ hours). Repeat weekly for 2–4 weeks. These work more thoroughly than boiling water alone because enzymes break down the biofilm at the molecular level rather than just flushing it.
Step 3: For severe infestations. A drain fly inspection plumber or pest control technician can camera-inspect the drain to locate the biofilm accumulation and apply professional-grade drain treatment. This is rarely necessary for kitchen and bathroom sink drains but may be warranted for floor drain infestations in basements.
Step 4: Regular drain maintenance. After clearing an infestation, monthly enzyme treatment of all drains prevents biofilm from reestablishing. Run water regularly in infrequently used sinks — stagnant P-trap water is the prime drain fly habitat.
Comparison: fastest fix for each fly type
| Fly type | Fastest fix | Time to elimination |
|---|---|---|
| Fungus gnats | Let soil dry completely between waterings | 2–4 weeks (must break larval cycle) |
| Fruit flies | Remove all fermenting food sources | 5–14 days after full source removal |
| Drain flies | Mechanically scrub drain + enzyme treatment | 2–4 weeks with repeated enzyme treatment |
Are small flies harmful?
None of the three most common small fly species in US homes bite, sting, or transmit disease to humans under normal conditions. Fungus gnats damage plant roots in severe infestations. Fruit flies and drain flies are nuisances only.
Fruit flies are occasionally linked to surface contamination of food — their feet can carry bacteria from rotting material to fresh food — but they are not significant disease vectors under typical US household conditions. The primary harm is annoyance.
Fungus gnats cause genuine plant damage when larval populations are high. Dense larval feeding strips fine root hairs and can cause wilting and decline in stressed plants. Seedlings are most vulnerable — heavy gnat pressure can kill seedlings by root destruction. For banana-peel-based natural treatments sometimes recommended for houseplant care, see banana water for plants.
For broader pest prevention in houseplants, see best indoor plants for air quality for varieties that are less susceptible to gnat pressure due to their watering needs.
When to call pest control
Small fly infestations in US homes are almost always solvable without a pest control professional. Call a professional if:
- Drain flies persist after 6 weeks of enzymatic treatment — a deep pipe infestation or plumbing defect may require inspection
- Fruit flies cannot be eliminated after thorough source searches — there may be a hidden leak or rotting material inside a wall cavity
- Phorid flies (humpback flies) appear — they sometimes breed in decaying rodent or bird carcasses inside walls or attics, or in sewer line breaks
In most US homes, the combination of correct identification, source removal, and patience resolves small fly problems within 2–4 weeks without professional intervention.
Sarah Mitchell is a Master Gardener and garden writer based in the Pacific Northwest. She has been growing food and flowers for over 15 years across USDA zones 7 and 8.