Basement to Roof

Home Leaks, Damp and Pests

Fungus Gnats and Other House Gnats: How to Get Rid of Them

Updated

A fungus gnat is a dark fly 1/16 to 1/8 inch long that breeds in damp potting soil, and it is the usual gnat found indoors. Fruit flies, drain flies and phorid flies look much the same from across the room. Each one breeds in a different place, and gnats only go away when their breeding site is gone. Sprays aimed at the flying adults barely help on their own.

What a gnat is

"Gnat" is not a scientific category. It's a common name for many small, weak-flying, mostly short-lived flies in the order Diptera, the true flies. Most belong to the suborder Nematocera, the long-antennae flies that also include mosquitoes and midges. Indoors, the word usually means fungus gnats, which come mainly from the families Sciaridae (dark-winged fungus gnats) and Mycetophilidae. Outdoors, it can also mean biting midges ("no-see-ums"), black flies or eye gnats.

Gnats are not one species, and they don't come from one place. The fix depends on which fly is actually in the house. Bigger flies such as houseflies, blow flies and cluster flies need a different approach, starting with their own breeding source.

Identify the fly first

Fly Look Where it hangs out Where it breeds Main fix
Fungus gnat Slender, dark gray to black, long legs and antennae, about 1/16 to 1/8 inch. Looks like a tiny mosquito. Weak, zig-zag flight. Around houseplants and windows. Runs across the soil surface. Top 1 to 2 inches of damp potting soil, peat, mulch, or wet organic debris Dry the soil, Bti, sticky traps
Fruit fly Tan body, usually red eyes, about 1/8 inch, stockier than a fungus gnat Kitchen, fruit bowl, trash, recycling Fermenting fruit, spilled juice or beer, sour mops and rags, trash cans Remove the food source, vinegar traps
Drain fly (moth fly) Fuzzy, gray, moth-like wings held roof-like over the body Bathroom walls near sinks and tubs Organic slime film inside drains and overflows Scrub the drain physically, bio-enzyme drain gel
Phorid fly Humpbacked. Runs in quick bursts instead of flying away. Anywhere. Often near floor drains or basements. Decaying organic matter, sometimes a broken sewer line under the slab Find the rot. May need a plumber.
Outdoor gnats (midges, black flies, eye gnats) Tiny, swarming. Some bite. Yards, near water, at dusk Standing water, wet soil, streams Fix drainage, use repellent, Bti in standing water
Slender black fungus gnat with long antennae, long thin legs and smoky translucent wings perched on a hairy green leaf
A fungus gnat looks like a tiny dark mosquito, with long antennae and legs and a slim black body, unlike a tan, red-eyed fruit fly. Photo: John Tann from Sydney, Australia, CC BY 2.0

Quick field test for fungus gnats: Press a few raw potato slices or chunks cut-side down into the soil of suspect pots. Check the underside after 2 to 4 days. Fungus gnat larvae are translucent white worms up to about 1/4 inch long with a shiny black head. If you find them, that pot is a breeding site.

Fungus gnat life cycle (why the problem keeps coming back)

At typical room temperature, one generation takes about 3 to 4 weeks:

  • Egg: about 3 days. A female can lay 100 to 300 eggs in moist soil during her roughly one-week adult life.
  • Larva: about 10 to 14 days. This is the stage that does damage. Larvae feed on fungi, decaying matter and fine root hairs, and can stunt seedlings and cuttings.
  • Pupa: about 3 to 5 days, in the soil.
  • Adult: about 7 to 10 days. Adults don't bite, carry disease or damage plants directly. They're a nuisance.

Killing adults alone doesn't work because new adults keep coming up out of the soil. Treatment has to run for at least 3 to 4 weeks to break the cycle, and that should be the expectation going in.

Getting rid of fungus gnats: a 4-week plan

1. Dry the soil (the most important step)

Fungus gnats need constantly wet soil. Let the top 1 to 2 inches of soil dry out completely between waterings. For most houseplants that is safe and healthier for the plant anyway.

  • Empty saucers and cache pots within 30 minutes of watering.
  • Bottom watering helps: set the pot in water for 10 to 15 minutes, then let it drain. This keeps the surface drier.
  • Move plants out of dark, humid corners if you can.
  • Get rid of old, rotting potting mix. Store new bags sealed, because opened bags sitting in a garage are a common source of gnats.

2. Treat the larvae with Bti

Bacillus thuringiensis subspecies israelensis (Bti) is a bacterium that kills fly larvae. It's harmless to people, pets, plants and earthworms when used as labeled.

  • Mosquito Bits (Summit) is the common homeowner product and runs about $15 to $23 for an 8 oz container at big-box stores. Some online sellers charge much more.
  • Common use: steep the bits in water, strain, and use that water for every watering. Some labels also allow sprinkling the bits on the soil surface. Follow the directions on the product you buy. Labels and rates differ.
  • Keep it up for every watering for at least 3 to 4 weeks. Bti breaks down quickly, so a single dose won't finish the job.
  • Mosquito Dunks (the donut-shaped version) can be crumbled and steeped the same way.

3. Trap the adults

Yellow sticky cards catch egg-laying females and show you whether the treatment is working.

  • Current pricing is roughly $5 to $8 per pack. Large packs of 40 to 60 cards work out to about 13 to 20 cents per card. Small 3- to 12-packs cost more per card.
  • Cut cards into smaller pieces and stake them just above the soil, or lay them flat on the soil surface.
  • Replace them when they're covered, and count the catch each week. Falling numbers mean the cycle is breaking.

4. Optional extras

  • Hydrogen peroxide soil drench: 1 part 3% hydrogen peroxide to 4 parts water, poured through the soil. It kills larvae on contact and fizzes off as water and oxygen. Use it as a one-time knockdown, not routinely. Test it on sensitive plants first.
  • Top dressing: A 1/2-inch layer of coarse sand or fine gravel over the soil keeps the surface dry and discourages egg-laying.
  • Repotting badly infested plants into fresh, sterile mix, and throwing out the old mix in a sealed bag, is the fastest fix for one or two problem pots.
  • Beneficial nematodes (Steinernema feltiae) and predatory soil mites (Stratiolaelaps scimitus, sold as Hypoaspis) are used by greenhouses and serious plant collectors who have many pots.

What doesn't work well

  • Bug bombs and foggers. They don't reach larvae in the soil, and they leave residue all over the house.
  • Spraying adults with household insecticide. It's temporary at best.
  • Cinnamon, coffee grounds or dish soap alone. Results are inconsistent, and coffee grounds can actually feed fungus.
  • Apple cider vinegar traps catch fruit flies well but fungus gnats poorly. If a vinegar trap fills up fast, the fly is probably a fruit fly, not a fungus gnat.

Gnats with no houseplants in the house

If there are no plants and the gnats keep coming, check these:

  • Drains: Tape a clear plastic cup or a piece of tape sticky-side down over the drain overnight. Flies stuck to it in the morning mean the drain is the source. Boiling water alone rarely fixes this. Scrub the pipe with a stiff drain brush, then use an enzyme or bio-foam drain gel nightly for about a week.
  • Kitchen: Check under the fridge drip pan, garbage disposal splash guards, recycling bins, forgotten potatoes or onions in the pantry, and wet sponges and mops.
  • Moisture problems: Look for plumbing leaks under sinks, wet crawlspaces, damp basement corners, overwatered planters next to the foundation, and clogged gutters spilling onto mulch beds.
  • Persistent phorid flies, especially near floor drains or rising from a slab, can point to a broken drain line or rotting organic material under the floor. That's a plumbing problem first and a pest problem second.
Small fuzzy gray-brown drain fly with broad, hairy, vein-striped wings spread over its body, resting on a beige wall
Look for the fuzzy body and broad hairy wings held like a roof. Drain flies breed in pipe gunk, so scrub the drain. Photo: Gower, CC BY 4.0

When to call a pro, and what it costs

Calling a pest control company makes sense when:

  • The source can't be found after a careful search.
  • Flies are coming from walls, floors, a crawlspace or a slab.
  • It's a commercial space, a greenhouse or a large plant collection.
  • Outdoor biting gnats are making the yard unusable.

Typical current pricing:

Service Typical cost
Minimum service call about $100
One-time gnat treatment about $150 to $300 (national average around $200)
Major infestation up to about $500
Ongoing service about $40 to $70 per month, or $100 to $300 per quarter

A good technician spends most of the visit inspecting: finding the breeding site, identifying the fly and pointing out the moisture problem. A visit that is just a quick spray of the house usually means the gnats will be back in a few weeks.

Gnat bites, plant damage and repeat infestations

Do gnats bite? Fungus gnats, fruit flies and drain flies don't. Some outdoor gnats do: biting midges and black flies bite, and eye gnats are attracted to eyes and tears.

Are fungus gnats harmful? Not to people or pets. Heavy larval feeding can damage seedlings, cuttings and young plants. Established plants usually tolerate them.

How long does it take to get rid of them? Expect 3 to 4 weeks of steady treatment. Adult numbers should drop noticeably within 1 to 2 weeks if the soil is kept dry and Bti is used with every watering.

Why do they keep coming back? Usually because the soil was kept too wet, treatment stopped after the first week, a new plant or bag of potting mix brought them back in, or the actual source was a drain or a leak and not the plants.