HyrePest

Pest problems

Gnat infestation: what it means and what to do

Indoor gnats breed in moisture: wet potting soil or the slime inside a drain. Dry out the source and they fade away.

Updated September 28, 2026

Find a Pest Control Company What it costs

Written by HyrePest Research Desk Primary-source research and fact checking

The short answer

A gnat infestation in the house usually means fungus gnats breeding in damp potting soil or drain flies breeding in the slime inside sink and shower drains.

UC IPM says fungus gnats thrive in moist conditions and drain flies develop in decaying matter in drains, so the fix is drying soil and cleaning drains, not spraying.

Key takeaways

Gnats near plants are fungus gnats

UC IPM says they commonly infest potted plants.

Fuzzy flies by the sink are drain flies

UC IPM says they rest with wings held roof-like over their backs.

Neither bites

UC IPM says adult fungus gnats do not bite people, and drain flies do not bite people or animals.

Overwatering is the usual cause

UC IPM advises against overwatering houseplants.

What does a gnat infestation usually mean?

Where they rest tells you which gnat and which source.

Dark, delicate flies on soil and windows

Fungus gnats. UC IPM says they are often 1/16 to 1/8 inch and are drawn to light.

Shiny trails on wet soil

UC IPM says fungus gnat larvae can leave slime trails.

Small fuzzy flies on bathroom walls

Drain flies, about 1/8 inch with hairy wings, making short hopping flights.

Many drain flies in one area

UC IPM says very large numbers point to a breeding site bigger than a few indoor drains.

Flies around fruit

More likely fruit flies. See fruit fly infestation.

What to check today

Test the two likely sources.

Potting soil

Is it wet on top most of the time? Look for larvae near the surface.

Drains

Tape a clear bag over a drain overnight. Flies inside point to that drain.

Rarely used drains

Guest showers and floor drains build slime.

Leaks

Under sinks, behind toilets, wet crawl spaces.

Compost or mulch

UC IPM says fungus gnats also breed in compost and wet mulch.

Safe first steps

Dry it, clean it, trap it.

01
Let soil dry out

Water less and make sure pots drain. UC IPM says to avoid overwatering and give good drainage.

02
Scrub drains

UC IPM says the key to drain flies is removing breeding sites. Scrub the slime out with a brush.

03
Use yellow sticky cards

Near plants to catch adult fungus gnats.

04
Fix leaks

Any constant moisture can breed gnats.

05
Skip bug sprays

Sprays kill adults but not the larvae in soil or drains.

When to call a licensed company

Most gnat problems end with drier soil and clean drains. Call a company when gnats persist after cleaning, when you see very large numbers, or when a hidden leak or broken pipe may be the source.

A plumber may be needed for broken lines. Price depends on finding the source; see what pest control costs.

How gnat control works

What to ask the company

Species

Are these fungus gnats or drain flies?

Source

Where are they breeding?

Plumbing

Could a broken pipe be the source?

Your inquiry

Tell us about the work

Three short steps: the job, your home, and how to reach you. Nothing goes to a pest control company unless you agree.

Free, with no obligation: a person at HyrePest reads it and replies. Matching is not live yet, so this is not a quote or a dispatch line. For an active problem today, call local pest control companies directly and check their license first.

Find a Pest Control Company

Tell us what you have seen and where you are. A person at HyrePest reads it and replies about the next step.

Your details

We reply to every inquiry. Nothing is passed on to anyone you have not asked us to contact.

Questions

Why do I have gnats in my house?
Moisture. Fungus gnats breed in wet potting soil, and drain flies in drain slime. UC IPM says both depend on moist organic matter.
Do gnats bite?
Fungus gnats and drain flies do not bite people, UC IPM says.
How long does it take to get rid of gnats?
A few weeks after the source is fixed. UC IPM says drain fly life cycles take 8 to 24 days, so adults keep appearing for a while.
Are gnats harmful to plants?
UC IPM says fungus gnat larvae mostly eat fungi and organic matter but also chew roots, which can harm seedlings and young plants.
Gnats or fruit flies?
See gnats vs fruit flies. Fruit flies stay near fruit; fungus gnats stay near soil.

Written and audited by

HyrePest Research Desk

Primary-source research and fact checking

We are not a pest control company. We read the pesticide label rule, the agency guidance and the state board record ourselves, and publish each point with its source and the date we retrieved it.

Where a claim cannot be traced to a primary source, we leave it out and say so. We hold no dataset of pest control prices, so we publish no average price.

25
primary-source pages (EPA, CDC, eCFR, state boards) behind the fact base
7
common claims we checked, could not verify, and do not repeat
10
calculators that use your numbers, not a national average
0
average prices published, because we hold no price data

How this desk works

  • Primary sources only. Label law comes from FIFRA and 40 CFR 156, safety guidance from EPA and CDC, licensing from the state board that issues the license. We do not cite an article that cites a source.
  • Every figure carries its retrieval date. Agency pages and board rules change. A statement without the date it was read cannot be checked.
  • Identify before treating. We describe what separates one pest from another and what a good inspection looks at. We never diagnose a species from a description, and we never give pesticide application instructions.
  • What we could not verify is published too. Claims that circulate widely but trace to no current primary source are listed and left out of the pages.

Authorship on this site is organizational: the analysis belongs to the desk rather than to a named individual, and we do not publish credentials we do not hold. Our editorial policy sets out how we source, date and correct what we publish.

Sources & retrieval dates

Pest Notes: Fungus Gnats, University of California Statewide IPM Program. Retrieved October 26, 2026.
Pest Notes: Moth or Drain Flies, University of California Statewide IPM Program. Retrieved October 26, 2026.

Information on this page is general and varies by species, region, construction and your own circumstances. It is not pesticide application advice, and a pesticide label is a legally binding instruction that takes precedence over anything written here.

HyrePest is not a pest control company: we inspect nothing, treat nothing, apply no pesticide and bond no structure. This page explains the work so you can read a proposal and judge the company that wrote it.