Fungus gnats in houseplants caught on a yellow sticky trap staked in a potted plant on an apartment windowsill

Fungus Gnats in Houseplants: How to Get Rid of Them in an Apartment

Fungus gnats in houseplants come from larvae living in damp, organic-rich potting mix, so the fix starts with the soil: let the top layer dry between waterings, catch the adults on yellow sticky traps, and treat the larvae if the problem persists. Adult fungus gnats don’t bite people or damage plants, according to UC IPM, but large numbers of larvae can harm roots, especially on seedlings and young plants. Expect several weeks of consistent changes rather than an overnight fix.

Affiliate Disclosure: This article may contain affiliate links. If you purchase through one of these links, we may earn a commission at no additional cost to you. As an Amazon Associate, we earn from qualifying purchases.

What Are Fungus Gnats?

Fungus gnats are small, dark, delicate flies, usually about 1/16 to 1/8 inch long, that look like tiny mosquitoes and hover around potted plants and windows (they’re attracted to light, per UC IPM). UC IPM’s fungus gnat guide identifies them by their slender legs and long, segmented antennae. Their larvae live in the soil and have a shiny black head and a whitish to clear body (UC IPM).


PestWhat to look forWhere it breeds
Fungus gnatSlender, dark, mosquito-like; long antennae; often rests on soil or walks across itMoist potting mix and organic matter
Shore flySturdier body; short, bristle-like antennaeAlgae and decaying organic matter in wet areas
Fruit fly (vinegar fly)About 1/12 to 1/8 inch; brown to yellowish body with red eyesDamaged, fermenting, or overripe fruit

Fruit flies are often mistaken for fungus gnats, but UC IPM notes their larvae feed in damaged or fermenting fruit, not potting mix.

How to confirm the source. University of Maryland Extension suggests covering a plant or drain with screen or cheesecloth for several days to see where the flies emerge. UC IPM notes that raw potato chunks placed cut side down on the soil are sometimes used to check for larvae.

Comparison of a slender dark fungus gnat with long antennae, a shore fly with short bristle-like antennae, and a fruit fly

Why Your Houseplants Keep Getting Fungus Gnats

Houseplants keep getting fungus gnats because the potting mix stays wet and rich in organic matter, which is where the larvae feed on fungi. The common causes, according to UC IPM and University of Maryland Extension, are:

  • Overwatering and poor drainage, which keep the top of the soil damp
  • Organic-rich mixes, especially those with incompletely composted material
  • Decaying plant matter such as rotting roots or bulbs in the pot (Colorado State Extension)
  • Moving infested plants near clean ones, which lets adults spread to other pots
  • Bringing plants back indoors in fall after summer outside, when UW–Madison Extension says fungus gnats often become more of a problem

Gnats can also breed in drains with moist debris (UMD), so a soil-only fix won’t help if the flies are coming from the sink.

The Fungus Gnat Life Cycle (and Why Timing Matters)

A fungus gnat can go from egg to egg-laying adult in about 17 days at 75°F, according to UC IPM. Warmer rooms speed this up and cooler rooms slow it down.


StageApproximate time at 75°F (UC IPM)Where it is
EggHatches in about 3 daysDamp potting mix
LarvaAbout 10 daysTop layer of soil; Colorado State says usually the top 2–3 inches
PupaAbout 4 daysIn or on the soil
AdultLays eggs to restart the cycleFlying around plants and windows

Timing matters because generations overlap. Killing the adults you see doesn’t stop the larvae already in the soil, and treating the soil once won’t catch eggs laid afterward. UW–Madison Extension says it may take three to four weeks of modified watering to get fungus gnats in check.

Diagram of the fungus gnat life cycle: egg about 3 days, larva about 10 days, pupa about 4 days, adult; about 17 days per generation at 75°F, per UC IPM

How to Get Rid of Fungus Gnats in Houseplants

The most effective way to get rid of fungus gnats in houseplants is to change watering habits so the soil surface stays dry, then add traps and, if needed, a larva-targeting biological control. UW–Madison Extension calls changing the plant’s conditions “the single most important step.”


ControlLife stage it targetsSource
Letting the top of the soil dryEggs and larvaeUW–Madison, Colorado State, UC IPM
Bottom wateringEggs (keeps surface dry)UW–Madison
Coarse sand or fine gravel top layerEgg-laying adultsUW–Madison
Yellow sticky trapsAdultsUC IPM, Colorado State
Repotting in fresh mixLarvae and pupae in old soilUC IPM, Colorado State
Bti biological controlLarvae onlyUC IPM, UW–Madison

Chart matching fungus gnat controls to life stages: dry topsoil for eggs and larvae, sticky traps for adults, Bti for larvae

Let the Top of the Soil Dry Out

Letting the top of the potting mix dry between waterings is the core fungus gnat control. UW–Madison Extension recommends letting the top inch dry before watering, and Colorado State Extension says the top 1 to 2 inches. Dry soil reduces egg survival and makes the pot less attractive to egg-laying females. Don’t let plants wilt; N.C. Cooperative Extension advises simply adding a day or more between regular waterings and emptying excess water from saucers. For general schedules, see our guide on how often to water container plants.

Switch to Bottom Watering

Bottom watering helps against fungus gnats because roots get moisture while the soil surface stays drier, according to UW–Madison Extension. Set the pot in a tray of water, let it soak up what it needs, then empty the tray. University of Arizona Extension cautions against leaving water puddled for long periods, which can lead to root rot.

Use Yellow Sticky Traps to Monitor and Catch Adults

Yellow sticky traps catch adult fungus gnats and show whether your other controls are working. UC IPM suggests cutting traps into small squares on skewers placed in pots; Colorado State notes traps placed under the plant canopy or on container edges can help mass-trap egg-laying females. Traps don’t reach larvae, so they work alongside soil controls, not instead of them.

Quarantine and Check New Plants

Keeping an infested plant away from the rest stops adults from spreading to new pots. UC IPM advises not moving infested plants to new areas. Check new plants and plants coming back inside from a balcony for adults on the soil before setting them with your collection.

Replace or Repot Badly Infested Soil

Repotting into fresh potting mix helps when soil has broken down and holds too much water, according to Colorado State Extension. UC IPM recommends pasteurized potting mix and notes that in some cases you may choose to discard severely infested plants. Remove decaying roots or bulbs while repotting.

Bti (Larva-Targeting Biological Control): Short Overview

Bacillus thuringiensis subsp. israelensis (Bti) is a naturally occurring bacterium that UC IPM describes as toxic only to fly larvae, including fungus gnats. It does not affect eggs, pupae, or adults (UW–Madison). Bti products labeled for houseplants are applied with water to the soil, and because Bti does not persist indoors, repeat applications are usually needed. Use only a product labeled for houseplants, and follow its label exactly. If the plant is an edible herb, check that the product label covers that use before applying. For a closer look at one Bti product and its label directions, see our review of a Bti granule product for fungus gnats.

Home Remedies for Fungus Gnats: What the Evidence Says

Most popular home remedies for fungus gnats either lack extension support or work only on part of the problem. The table below covers only remedies addressed by university extension sources.


RemedyWhat extension sources sayAGG stance
Coarse sand or fine gravel top layerUW–Madison: a ½- to 1-inch layer helps keep the surface drier and less attractive for egg-layingReasonable, alongside drier watering
Hydrogen peroxide drenchIn an Ask Extension expert answer about using hydrogen peroxide on soil pests, an Extension expert says it works only on contact, has no residual effect, doesn't reach eggs below the soil surface, and can kill beneficial insects and fungi; home remedies are unregulated and lack proven instructions.Not recommended; use cultural controls and products labeled for houseplants.
Neem oil or insecticidal soapColorado State Extension: short-persisting contact products that need repeat applications every couple of days against adults, and don't affect larvae in the soilNot recommended as a main control
Dish soap (dish detergent)Iowa State Extension: dish soap is a detergent, not a true insecticidal soap; its effect on pests is limited and highly variable, and it is more likely to damage plants. UF/IFAS notes detergents can strip the protective wax from leavesNot recommended
Diatomaceous earthUniversity of Arizona Extension (AZ1531) cites research finding that DE placed on or in the soil does not control fungus gnat adults or larvae. Some extension tips list it as a surface barrier, but coarse sand or fine gravel does that job.Not recommended as a control.

Cinnamon and vinegar traps are not included because we did not find extension coverage for them.

Apartment Tips: Plant Clusters, Humidity, and Small Spaces

Fungus gnats spread easily in apartments because many plants share one room or windowsill, so treat a cluster as a group.

  • Treat the whole group. Check every pot on the same sill or shelf for adults on the soil; one wet pot can keep restocking the rest.
  • Watch damp rooms. Bathroom and kitchen plants and plants sitting in saucers stay wet longer.
  • Self-watering pots. Self-watering planters feed water into the potting mix from a reservoir, so the mix can stay moist for long stretches. If gnats appear, check these pots first: the extension advice to let the top of the mix dry between waterings still applies.
  • Repot without a yard. Repot over newspaper on a balcony or in the bathtub, bag old soil promptly, and don’t store it opened indoors.
  • Herb gardens count too. Windowsill indoor herb gardens are common gnat spots because herbs are often watered often.
  • Place traps sensibly. Set sticky traps low in pots where they catch gnats near the soil and won’t be brushed against.
  • Check drains. If gnats persist with dry soil, UMD suggests cleaning the drain trap.

How to Prevent Fungus Gnats from Coming Back

Preventing fungus gnats comes down to keeping potting mix from staying constantly wet and avoiding bringing larvae in. UC IPM and Colorado State recommend:

  • Let the soil surface dry between waterings and use pots with drainage
  • Use pasteurized, bagged potting mix, and store it sealed
  • Avoid incompletely composted material and heavy organic fertilizers in pots
  • Repot when old mix breaks down and stays soggy
  • Clear decaying leaves and roots from pots
  • Check plants for gnats before bringing them in from a balcony in fall

When you travel, choose a method that doesn’t flood pots; see watering plants while you’re away.

Find Your Apartment Gardening Essentials

Looking for practical tools to make gardening in a small space easier? Explore our Apartment Garden Guide Amazon Storefront for handpicked gardening supplies, including containers, indoor growing systems, watering essentials, and plant care accessories.

Shop Our Apartment Gardening Favorites on Amazon →

FAQ

Will fungus gnats eventually go away?

Fungus gnats rarely go away on their own while the potting mix stays wet, because the larvae keep developing in the soil and producing new adults. With drier watering, UW–Madison Extension says it may take three to four weeks to get them in check.

Should I throw away a plant with fungus gnats?

Most plants with fungus gnats don’t need to be thrown away; drying the soil or repotting in fresh mix usually solves the problem. UC IPM notes that you may choose to discard severely infested plants in some cases.

What do fungus gnats hate the most?

Fungus gnats are least suited to dry soil surfaces. Extension sources consistently name letting the top of the potting mix dry between waterings as the most important control.

What time of year are fungus gnats most active?

Indoors, fungus gnats can breed year-round. UC IPM says they can occur any time of year indoors, and Colorado State Extension describes continuous reproduction on indoor plants, with adults most noticeable in late fall and winter. UW–Madison Extension notes problems often rise in fall, when houseplants that spent the summer outdoors come back inside.

Does hydrogen peroxide kill fungus gnats immediately?

Hydrogen peroxide kills only the insects it directly contacts and leaves no residual effect, according to an Ask Extension expert answer about soil pests, which adds that it won’t reach eggs below the surface and can harm beneficial soil organisms. AGG does not recommend it; drying the soil surface and labeled products are better-supported options.

Will Dawn dish soap kill fungus gnats?

Dish soap isn’t a reliable fungus gnat control. Iowa State Extension says dish soap is a detergent whose effect on pests is limited and highly variable and that is more likely to injure plants than insecticidal soap. Colorado State Extension adds that even insecticidal soaps are short-lived contact products for adults that don’t reach larvae in the soil.

Facebookpinterestchatgpt

Similar Posts