HomeBlogGet Rid of Gnats

How to Get Rid of Gnats Once and For All

A bowl of fruit that can attract gnats
Photo by Couleur on Pixabay
DG
Reviewed by Derek Giordano
Licensed Pest Control Operator · 15+ years experience
April 28, 2026✓ Expert Reviewed

Table of Contents

  1. \"Gnats\" Is Four Different Pests
  2. Quick Identification Table
  3. Fungus Gnats — From Houseplant Soil
  4. Fruit Flies — From Overripe Produce
  5. Drain Flies — From Pipe Biofilm
  6. Phorid Flies — From Decomposing Material
  7. Why Gnats Keep Coming Back
  8. The Universal Anti-Gnat Checklist
  9. Treatment Cost Breakdown
  10. Frequently Asked Questions

"Gnats" Is Four Different Pests

When someone says "I have gnats," they could mean any of four different insects — each breeding in a completely different source and requiring a completely different treatment. Treating for the wrong one wastes time while the real source continues producing hundreds of new gnats daily.

This is the single most important thing to understand about gnats: killing adults accomplishes nothing if the breeding source remains. A single female fruit fly lays approximately 500 eggs. The lifecycle from egg to adult takes 8–10 days. Traps and sprays reduce adult numbers temporarily, but the source produces a fresh wave every week.

Step one is always identification. Our fruit fly vs gnat ID guide covers the visual differences, or upload a photo to the AI Bug Identifier.

Quick Identification Table

TypeAppearanceWhere FoundBreeding SourceKey Giveaway
Fungus gnatDark, mosquito-like, ~2mmHovering near houseplantsWet potting soilAlways near plants; weak fliers
Fruit flyTan body, red eyes, ~3mmKitchen, near produceOverripe fruit, fermentationRed eyes; attracted to vinegar
Drain flyFuzzy, moth-like, ~4mmBathrooms, near drainsPipe biofilmFurry wings; very slow fliers
Phorid flyTan, humpbacked, ~2mmFloors, wall basesDecomposing organic matterRuns rapidly on surfaces; erratic flight

Fungus Gnats — From Houseplant Soil

Fungus gnats are tiny, dark, mosquito-like flies that hover around potted plants. Their larvae feed on roots, fungi, and organic matter in wet soil. Overwatering is the direct cause — consistently wet soil creates the perfect breeding environment.

Elimination Protocol

Let soil dry between waterings. Fungus gnat larvae cannot survive in dry soil. Allow the top 1–2 inches of soil to dry completely before watering again. This alone stops the lifecycle.

Apply Bti as a soil drench. Bacillus thuringiensis israelensis is a naturally occurring bacterium that kills gnat larvae in soil without harming plants, pets, or beneficial insects. Mix according to label directions and use as your watering solution for 2–3 watering cycles. Available at garden centers as Mosquito Bits or Gnatrol.

Use yellow sticky traps. Place them at soil level near plants to catch adults. This reduces the breeding population while the soil dries out and Bti works on larvae.

Top-dress soil with sand. A half-inch layer of coarse sand on the soil surface prevents adult gnats from laying eggs in the soil — they cannot burrow through sand to reach the organic matter below. According to the UC IPM Program, this physical barrier is one of the most effective long-term preventive measures.

Fruit Flies — From Overripe Produce and Fermentation

Fruit flies have distinctive red eyes and are attracted to ripening fruit, vinegar, beer, wine, and any fermenting organic material. They breed in overripe produce, forgotten fruit, wet mops, damp sponges, recycling bins with residue, and even wine bottle dregs.

Elimination Protocol

Remove every breeding source. Check behind counters and under the refrigerator for fallen fruit. Empty and rinse recycling bins. Clean the garbage disposal. Wring out sponges and hang mops to dry. Remove wine bottles, beer cans, and kombucha containers that have residue.

Trap adults. Apple cider vinegar + a drop of dish soap in a small jar attracts and drowns adult fruit flies. The vinegar lures them; the soap breaks the surface tension so they sink. Place traps near the heaviest activity.

Clean drains. Fruit flies often breed in organic film inside kitchen sink drains and garbage disposal housings. Run the disposal with cold water for 30 seconds after each use. Apply enzymatic drain cleaner (InVade Bio Drain) nightly for 5 days to break down organic buildup.

Store produce properly. Refrigerate ripe fruit. Keep bananas in a sealed paper bag. Empty compost bins daily or use a sealed countertop compost container.

The hidden source check: Fruit flies often breed in sources you have forgotten about — a potato that rolled behind the pantry shelf, an onion going soft in a bin, a half-empty juice box in a child's room, or a wet mop head stored in a bucket. Do a thorough check of every room, not just the kitchen.

Drain Flies — From Pipe Biofilm

Drain flies (moth flies) are fuzzy, moth-like, and distinctively slow-flying. They breed exclusively in the organic biofilm coating the inside of drain pipes — a slimy layer of bacteria, grease, soap scum, and organic debris that accumulates over time.

The Tape Test

Cover the suspect drain with clear tape overnight (leave a few small gaps for airflow so the flies can still attempt to emerge). Emerging drain flies will stick to the tape, confirming which specific drain is the source. Test each drain separately — the source is not always the drain you expect.

Elimination Protocol

Enzymatic drain cleaner applied nightly for 5–7 days. Products like InVade Bio Drain or Green Gobbler use enzymes and bacteria to biologically break down the organic biofilm. Pour according to label directions — typically 2–4 ounces per drain per night.

Mechanical cleaning with a drain brush works faster for accessible drains. A long pipe brush physically removes the biofilm where larvae live.

Bleach does not work. Despite common advice, bleach does not dissolve the organic biofilm inside drain pipes — it passes through without breaking down the gelatinous layer where larvae live. According to the Penn State Extension, enzymatic cleaners that specifically target organic buildup are far more effective than bleach for drain fly elimination.

Phorid Flies — From Decomposing Organic Material

Phorid flies (humpbacked flies) are small, tan, fast-running flies that breed in decomposing organic matter — broken sewer lines, dead animals in walls, wet soil around foundations, saturated insulation, or contaminated soil under slab foundations.

Phorid flies are the most difficult of the four to eliminate because their breeding source is often hidden and structural. If you have ruled out fruit flies and drain flies, and the tiny flies seem to come from the floor, wall base, or a specific area near the ground, suspect phorid flies.

Common phorid fly sources: broken sewer pipe under the slab (the most common cause in slab-on-grade homes), dead rodent in a wall void, saturated insulation in a crawl space, failed toilet wax ring seal, or decomposing organic matter in a sub-slab void.

What to do: Finding the source often requires a plumber or pest control professional. A smoke test or camera inspection of the sewer line may be necessary. Phorid fly infestations that originate from broken sub-slab sewer lines require plumbing repair — no amount of trapping or spraying eliminates the problem until the source is fixed.

Why Gnats Keep Coming Back

If you have been fighting gnats for weeks without success, one of three things is happening:

1. You are killing adults but not eliminating the source. Traps, sprays, and vinegar bowls catch adults while the breeding source produces hundreds more. Find the source.

2. You have misidentified the species. Treating for fruit flies when you actually have drain flies — or vice versa — means you are targeting the wrong source entirely. Re-identify using the table above.

3. There is a second source you have not found. Multiple breeding sites are common — fruit flies in the kitchen drain and in a forgotten potato; drain flies in the bathroom and in the basement floor drain. Test every drain and inspect every room.

The Universal Anti-Gnat Checklist

Regardless of species, do all of the following:
1. Identify which of the four types you have — the treatment is species-specific
2. Find and eliminate the breeding source — traps alone only catch adults while the source produces hundreds more
3. Clean all drains with enzymatic cleaner (InVade Bio Drain or Green Gobbler) — even if you think the source is elsewhere, drains are the most commonly overlooked breeding site
4. Remove overripe produce and all fermenting organic material. Check behind shelves, under furniture, and in trash cans
5. Let houseplant soil dry between waterings. Apply Bti soil drench if fungus gnats are present
6. Place yellow sticky traps near activity areas to monitor and reduce adults while source elimination takes effect
7. Run exhaust fans and reduce indoor humidity — all four gnat types thrive in moist environments

See our complete indoor gnat guide for detailed protocols.

Treatment Cost Breakdown

TreatmentDIY CostProfessional Cost
Apple cider vinegar traps (fruit flies)$0–$3
Yellow sticky traps (12-pack)$6–$10Included in service
Bti soil drench (Mosquito Bits)$8–$12
Enzymatic drain cleaner (InVade Bio Drain)$15–$25Included in service
Professional gnat/fly treatment$100–$200
Sewer line camera inspection (phorid flies)$150–$400
Sub-slab sewer repair (phorid flies)$1,500–$5,000+
Most gnat problems cost under $30 to solve. Fungus gnats: $8 in Bti + free soil drying = done. Fruit flies: $0 (remove produce) + $3 vinegar trap = done. Drain flies: $20 enzymatic cleaner = done. Only phorid flies from structural issues require significant professional expense. See our complete cost guide.

Frequently Asked Questions

Why do I have gnats in my house?

Because a moisture-rich breeding source exists somewhere inside: wet houseplant soil, overripe produce, pipe biofilm, or decomposing organic matter. Identify which of the four gnat types you have, then eliminate the specific breeding source.

Why won't my gnats go away?

You are killing adults without eliminating the breeding source. One fruit fly lays 500 eggs with an 8–10 day lifecycle. Traps reduce numbers temporarily; only removing the source stops production permanently.

Does vinegar kill gnats?

Apple cider vinegar traps catch adult fruit flies only — not fungus gnats, drain flies, or phorid flies. Vinegar traps are a helpful supplement but never the sole treatment. Eliminate the breeding source first.

How long does it take to get rid of gnats?

With the source eliminated: 2–3 weeks. Remaining adults die within 7–10 days, and any existing larvae take 8–14 days to emerge. If gnats persist beyond 3 weeks, the source has not been fully eliminated.

Do gnats bite?

Indoor gnats (fungus gnats, fruit flies, drain flies, phorid flies) do not bite. If tiny flying insects are biting you indoors, they are likely fleas, biting midges, or mosquitoes, not gnats.

Does bleach kill drain flies?

No. Bleach does not dissolve the organic biofilm where drain fly larvae live. Use enzymatic drain cleaner (InVade Bio Drain) applied nightly for 5–7 days to biologically break down the biofilm.

Related Reading

DG
Derek Giordano
Certified Pest Control Operator · Former Business Owner
Derek ran his own pest control company in Florida for several years, servicing thousands of regular customers. All content is based on hands-on field experience and current EPA & university extension guidelines.

Why pest control 'tips' from generalist sources often mislead

Lifestyle and home-improvement publications routinely cover pest control topics, but the quality of advice varies dramatically and the most popular tips often perform worse than less-publicized alternatives. Specific examples of commonly-published advice that doesn't hold up: cinnamon, peppermint oil, and other natural deterrents for ants (work briefly in laboratory conditions but don't produce meaningful field control); bleach in drains for fly elimination (doesn't address the biofilm where flies actually breed); ultrasonic pest repellers (extensive peer-reviewed testing shows minimal to no efficacy); diatomaceous earth applied broadly to carpets and floors (works in dry voids but loses efficacy when wet or vacuumed, and creates inhalation concerns when applied broadly); and dryer sheets stuffed in vents as rodent deterrents (no peer-reviewed evidence of efficacy). The pattern: most universal-home-tip pest advice prioritizes appeal and shareability over efficacy. Better sources for residential pest decisions include cooperative extension publications, peer-reviewed entomology literature (often accessible through extension publications that summarize it), and pest management association educational materials, which represent professional consensus on actual evidence.

Reading product labels: the parts that matter and the parts that don't

Pesticide product labels are legal documents with specific use directions, but the parts that matter most for residential decisions aren't always the parts that get attention. The active ingredient and its concentration are essential — they determine what category of pest the product targets and how it compares to alternatives. The 'Directions for Use' section is binding (using a product against label instructions is technically a federal violation and may void product liability), but most homeowners skim it. The 'Precautionary Statements' section tells you exposure risks and required PPE. The 'First Aid' section matters in an emergency. What matters less in practice: marketing copy on the front of the package, brand-specific claims about superiority (federal regulations sharply limit what these can say), and 'natural' or 'organic' labeling (which can be technically accurate while still describing a product with meaningful exposure considerations — pyrethrin from chrysanthemums is 'natural' but still a neurotoxin in concentration). Reading labels critically — focusing on active ingredient, concentration, target pest list, application method, and precautions — gives a clearer picture than retail-shelf comparison ever does.

How structural moisture issues drive pest problems most homeowners miss

A surprising fraction of pest problems are downstream of moisture issues that go uncorrected because they don't produce obvious damage. Subterranean termites require moist soil contact; correcting drainage and downspouts often reduces termite pressure more than any chemical treatment. Carpenter ants nest in damp or previously-damp wood; the colony moves in only after moisture has softened the substrate. Drain flies, fungus gnats, and springtails are all moisture-driven and resolve when the moisture source resolves. Mold mites and booklice indicate humidity that exceeds about 70%, often in unventilated bathrooms or basements. Even rodent activity correlates with moisture: rodents need accessible water and follow water-supply intrusions to bring themselves into structures. The diagnostic question worth asking on any chronic pest problem: is something wet that shouldn't be? Common offenders are clogged gutters, downspouts that drain near the foundation rather than away from it, condensate lines from HVAC systems and water heaters, slow plumbing leaks under sinks, sweating cold-water pipes in unconditioned spaces, and crawlspaces without adequate vapor barriers. Fixing the underlying moisture issue typically yields permanent improvement that chemical treatment alone cannot match.

How to read pest control content critically

Pest control content on the internet has grown dramatically in volume but not in average quality, and the signals that distinguish reliable sources from unreliable ones are worth knowing. Reliable content typically cites specific products by active ingredient rather than only by brand, references regional variation in pest pressure and treatment efficacy, acknowledges treatment failures and the conditions under which they occur, and avoids absolute claims about results. Unreliable content tends to make universal claims, recommend specific brand products without identifying alternatives, omit the conditions under which advice applies or fails, and write in a tone optimized for affiliate conversion rather than reader understanding. The other useful signal is whether the source discusses cost-benefit and threshold thinking — at what point does treatment become worth doing — versus only providing how-to instructions with the assumption that treatment is the right answer. Sources that engage with the decision dimension are usually more reliable than sources that skip past it. None of these signals are perfect, but applied consistently they filter out a meaningful portion of the lower-quality content that dominates search results for many pest topics.

How regional pest pressure should shape what you buy

The retail pest control aisle is largely undifferentiated by region, but pest pressure is enormously regional, and the disconnect leads to predictable purchasing mistakes. A homeowner in the Gulf Coast facing year-round subterranean termite pressure and large peridomestic cockroach populations has dramatically different needs from a homeowner in the upper Midwest facing rodent invasion in October and bed bugs in apartments. The product mix that makes sense for each is different, the level of investment that's justified is different, and the cadence of application is different. Generic shopping advice and product reviews tend to wash out these regional patterns by averaging across users. The better approach is to identify the two or three pests that actually drive pressure in your specific area, then build a product and treatment plan around those rather than around the broad category. Local cooperative extension publications, state agricultural department pest fact sheets, and regional pest control company blog content tend to be more useful sources of guidance than national review sites, precisely because they're calibrated to the conditions you're actually treating.

Pest control warranties: reading the fine print before signing

Pest control warranties are not standardized, and the differences between contracts that look superficially similar can be enormous. Termite warranties in particular vary across at least three significant dimensions: whether they cover retreatment only or also include damage repair, whether the damage coverage is capped or unlimited, and whether the warranty is transferable to subsequent owners. A retreatment-only warranty on a property with significant termite pressure is much weaker than a damage-inclusive warranty, and the difference matters most precisely in the situations where the warranty is most likely to be needed. General pest control service agreements often have similar gradations — some include unlimited callbacks during the service period, some include a fixed number, and some charge for any visit outside the regular schedule. Before signing, the question to ask is not whether the contract has a warranty, but exactly what the warranty covers, what triggers a callback at no charge, and what the renewal terms are. Companies rarely volunteer this clearly; reading the document carefully and asking specific questions is on the homeowner.