Fungus gnats: how to get rid of them
updated November 16, 2026By Kentia Team
Based on horticulture sources: RHS, UC IPM, University of Maryland Extension, University of Wisconsin Extension. Checked November 16, 2026.
On this page
Short answer: fungus gnats breed in wet potting soil, so the fix is drier soil. Let the top 2 to 3 cm (about an inch) dry out between waterings, empty saucers, catch adults on yellow sticky traps and, if needed, treat the larvae with a Bti product. Expect two to four weeks, because new adults keep hatching from eggs already in the soil.
What are fungus gnats?
Small, dark flies that live around damp potting soil. The adults are a nuisance; the larvae in the soil are what you need to stop.
UC IPM describes them as dark, delicate flies that look like tiny mosquitoes, usually about 2 to 4 mm long, with long legs and antennae. They are weak fliers, so they stay close to the pots, run across the soil or rest on leaves and windows. The RHS notes that the adults don’t damage plants. The larvae are slender, see-through maggots with a shiny black head, up to about 6 mm long, living in the top layer of moist compost.
How do I tell fungus gnats from fruit flies?
Look at where they gather. Fungus gnats hang around plant pots and soil. Fruit flies gather on ripe fruit, bins and drinks, and often have red eyes.
| Fungus gnats | Fruit flies | |
|---|---|---|
| Where you see them | On and around potting soil, near windows | Fruit bowl, bin, sink, open drinks |
| Look | Slim, dark, mosquito-like, long legs | Stockier, tan to brown-black, often red eyes |
| Larvae live in | Wet potting soil | Fermenting fruit and food waste |
| Vinegar trap | Doesn’t work | Works |
The University of Kentucky describes fruit flies as brown-black flies with red or black eyes that breed in fermenting food. Wisconsin Extension adds that the two are often confused, and that vinegar traps for fruit flies don’t catch fungus gnats. With a magnifying glass, fungus gnats show a Y-shaped vein near the wing tip.
What is the fungus gnat life cycle?
Egg, larva, pupa, adult, all in or on the soil, in about 17 days at 75°F. Adults live about a week. That’s why a fix takes more than a few days.
According to UC IPM, at 75°F the eggs hatch in about 3 days, the larvae feed for about 10 days, and adults emerge about 4 days after pupating. Wisconsin Extension gives a slightly longer range: 3 to 4 weeks from egg to adult, with females laying up to 200 eggs in the moist soil surface. Indoors all stages overlap, so you will see new adults for a while after you change your watering. Warm rooms speed everything up.
Are fungus gnats bad for my plants?
Mostly no. Larvae in large numbers can harm the roots of seedlings, cuttings and young plants in very wet soil.
UC IPM notes that a wilting plant with gnats more often has a watering or root rot problem than gnat damage. If your plant wilts while the soil is wet, read root rot next.
How do I get rid of fungus gnats in two weeks?
Dry the soil surface, empty saucers, trap the adults, and treat larvae with Bti if they persist. Keep going for at least two weeks.
Day 1: find and dry
- Put a yellow sticky trap in each pot near the soil, and a few slices of raw potato, cut side down, on the soil. After 3 to 4 days, larvae on the potato show which pots are infested (Wisconsin Extension).
- Empty every saucer and cache pot. University of Maryland Extension advises pouring off standing water to prevent fungus gnats.
- From now on, let the top 2 to 3 cm (about an inch) dry before you water, or water from below so the surface stays dry.
Day 1 to 3: make the soil less inviting
- Cover the soil with a 1 to 2 cm layer of coarse sand or fine gravel. Wisconsin Extension says this keeps the surface drier and less attractive for egg laying.
- Repot badly infested plants into fresh, pasteurized potting mix, as UC IPM advises, and bin the old mix. The RHS suggests a mix made for houseplants. Don’t move infested pots next to clean ones.
Day 3 to 14: treat the larvae if needed
- If potato slices still show larvae, water the soil with a product containing Bti (Bacillus thuringiensis subsp. israelensis). UC IPM says it only affects fly larvae, and that repeat doses about 5 days apart are usually needed; Wisconsin Extension says 5 to 7 days. Follow the label.
- Beneficial nematodes (Steinernema feltiae) are another biological option, sold for soil drenches.
Day 14: check
- Count the adults on fresh traps and check new potato slices. If you still find larvae, carry on for another week or two. Wisconsin Extension says it can take 3 to 4 weeks.
Which fungus gnat treatments are a concern for cats and dogs?
Drying the soil, bottom watering and gravel are fine around pets. Sticky traps, insecticide sprays, meal-based fertilisers and essential-oil home remedies need care or are best skipped.
| Treatment | Concern for pets? | Why |
|---|---|---|
| Let soil dry, water from below, empty saucers | No | Only changes watering. |
| Gravel or sand top layer | Low | Use coarse grit a pet is unlikely to eat; keep pots out of reach of diggers. |
| Yellow sticky traps | Yes, place carefully | Fur, whiskers and paws stick to them. Put them deep in pots your pet can’t reach. |
| Potato slices | Low | Remove them after a few days. |
| Bti drench | No veterinary source found | UC IPM says Bti is toxic only to fly larvae. Keep the product itself out of reach and follow the label. |
| Insecticide sprays (pyrethrins, pyrethroids) | Yes | Pet Poison Helpline says swallowing them can cause drooling, vomiting and, in severe cases, tremors and seizures, and that cats are especially at risk from products meant for other species. Wisconsin Extension says sprays are rarely needed. |
| Organic fertilisers (bone, blood, fish meal) | Yes | Pet Poison Helpline says they upset the stomach and large amounts can block the gut. UC IPM also says they feed gnats. |
| Essential oils (tea tree, cinnamon oil sprays) | Yes | Pet Poison Helpline warns that a few concentrated drops of tea tree oil can severely poison a pet. |
If your pet ate or licked a product, call your vet or an animal poison line. In the US, Pet Poison Helpline ((855) 764-7661) and the ASPCA Animal Poison Control Center ((888) 426-4435) answer around the clock; both may charge a fee.
How do I stop fungus gnats coming back?
Water by need, not by the calendar, use a fresh, free-draining mix, and keep new plants apart for a few weeks.
- Check the soil before every watering. Most houseplants want the top layer dry first.
- Use pots with drainage holes and never leave water in the saucer.
- Use a potting mix made for indoor plants. UC IPM suggests more perlite for better drainage and warns against half-finished compost.
- Keep new plants, and plants coming back in from summer outdoors, apart from the others for a few weeks with a sticky trap.
- Water less in winter, when plants grow slowly and soil dries more slowly.
More on watering: plant care basics.
Sources checked November 16, 2026.
Frequently asked questions
What are fungus gnats?
Small, dark, mosquito-like flies (family Sciaridae) that breed in damp potting soil. The adults are a nuisance and don't bite or damage plants. The larvae live in the top layer of wet soil and feed on fungi and decaying matter, and sometimes on fine roots.
Why do I have fungus gnats in my house?
Almost always because a potting mix stays wet. UC IPM and Wisconsin Extension both name overwatering and poor drainage as the main cause. Plants brought back indoors after summer outside often bring them in too.
How long does it take to get rid of fungus gnats?
Plan on at least two weeks, often three to four. One generation takes about 17 days at 75°F according to UC IPM, and Wisconsin Extension says it can take three to four weeks of changed watering to get them under control.
Are fungus gnats harmful to my plants?
Usually not. The RHS and UC IPM say the adults don't damage plants. Larvae in large numbers can damage roots, mostly of seedlings, cuttings and young plants kept in very wet, rich soil.
Are fungus gnat treatments safe for cats and dogs?
Drying the soil, bottom watering and a gravel top layer carry no pet risk. Keep sticky traps out of reach. Insecticide sprays with pyrethrins or pyrethroids are a concern: Pet Poison Helpline says swallowing them can poison pets, and cats are the most sensitive. Don't use essential oils such as tea tree oil as home remedies around pets.
Do vinegar traps work for fungus gnats?
No. Wisconsin Extension says vinegar traps, which work for fruit flies, don't work for fungus gnats. Use yellow sticky traps for adults and potato slices to check for larvae.
Sources
Pages cited in this article
Kentia Team
PeakMotion Sàrl, Switzerland
The Kentia team writes every guide from published sources, links them next to each claim, has a second person check them, and dates every update.
Related
- Plant care basicsHouseplant care in short steps: how to judge light, when to water, which pot and mix, how much to feed. Plus fixes for fungus gnats, yellow leaves and root rot.
- Kentia palm careHow to grow a kentia palm (Howea forsteriana) indoors: bright, indirect light, water when the top of the mix is dry, light feeding. Fixes for brown tips.
- Monstera careMonstera deliciosa care indoors: bright indirect light, water when the top 2 to 5 cm are dry, a chunky mix and a moss pole. Fixes for yellow leaves.
- Root rot: how to spot it and save your plantWhat is root rot? Soft, brown roots from soil that stays wet. How to spot it, how to save the plant step by step, and how to stop it coming back.
- Yellow leaves on plants: causes and fixesPlant leaves turning yellow? Most often it is too much water. A simple table of symptoms, likely causes and fixes, with extension sources linked.
- ToolIs it toxic to my cat?Type a plant name to see what published sources say about its toxicity for cats, what it does and what to do. Lilies: call a vet now.