A simple, step-by-step guide to stopping fungus gnats with smarter watering, sticky traps and natural biological helpers. No harsh sprays.
You water your favorite plant, and a little cloud of tiny black flies rises from the soil. They drift around the pot, buzz near your face, and gather at the window. You swat a few, but there always seem to be more.
These are fungus gnats. They are one of the most common houseplant pests in America. They are especially common in fall and winter, when plants come indoors and the soil stays damp for longer.
Here is the good news: fungus gnats are one of the easiest indoor pests to beat without harsh chemicals. University of Wisconsin experts say that changing how you care for your plants is the single most important step. They also say chemical controls are not needed unless the problem is severe.
The secret is simple: fungus gnats need wet soil. Take away the wet soil, and you take away their nursery.
In this guide you will learn:
- How fungus gnats live, and why the top inch of soil matters so much
- How to tell fungus gnats apart from look-alike bugs
- A potato trick to check for hidden larvae
- How to water so the gnats can’t breed
- How to use sticky traps and natural biological products
- Which popular home remedies experts do NOT recommend
- A 4-week plan to clean up and track your progress
Know Your Enemy: How Fungus Gnats Live
Fungus gnats are tiny flies, about 1/16 to 1/8 of an inch long. They have long legs and look a bit like baby mosquitoes. But they don’t bite.
The adults are not the real problem. The real problem is their babies, called larvae. Fungus gnat larvae are tiny, clear-to-white worms with shiny black heads. They live in the top inch of potting soil, where they eat fungi, rotting plant bits and sometimes plant roots.
A female gnat lays her eggs on moist soil. The University of Vermont says she can lay 100 to 150 eggs in her short life.
| Stage | How long it lasts (at about 72°F) | Where it happens | How you stop it |
| Egg | 4 to 6 days | Cracks on the surface of moist soil | Let the top inch dry out |
| Larva (a tiny white worm with a black head) | About 2 weeks | Top inch of soil | Dry soil, Bti, beneficial nematodes |
| Pupa (resting stage) | 4 to 5 days | In the soil | Dry soil; repotting in bad cases |
| Adult gnat | Lives about 5 to 7 days | Flying near plants and windows | Yellow sticky traps |
Here is how that time adds up:

Sources: UConn Extension (egg, larva and pupa times at about 72°F) and University of Vermont (adult lifespan). Cooler rooms slow every stage down.
The whole cycle, from egg to adult, usually takes about 3 to 4 weeks in a warm home. Cooler rooms slow it down. Because new eggs are laid all the time, you will have eggs, larvae, pupae and adults in the same pot at once. That is why one treatment never finishes the job.
Do fungus gnats hurt plants?
Mostly, fungus gnats are a nuisance. But Oregon State University notes that the larvae can damage seedlings. UConn Extension adds that larvae are most damaging to seedlings and young plants, and to plants with soft, juicy stems. A big, healthy plant usually handles a few gnats just fine. Seedlings and cuttings need more protection.
Is It Really a Fungus Gnat? Check First
Several tiny flies show up indoors. Each one breeds somewhere different.
| Fungus gnat | Fruit fly | Drain fly | |
| What it looks like | Thin, dark gray or black, long legs, like a tiny mosquito | Tan body, red eyes, rounded shape | Fuzzy, gray, like a tiny moth |
| Where you see it | On and around houseplant soil, near windows | Fruit bowl, trash, recycling | Walls near sinks and tubs |
| How it moves | Weak, zig-zag flight; often walks on the soil | Hovers around food | Short, jumpy hops |
| Where babies grow | Top inch of wet potting soil | Rotting food | Slime inside drains |
| Main fix | Let soil dry; sticky traps; Bti | Remove food; vinegar traps | Scrub the drain |
Quick test: tap the side of the pot or gently stir the top of the soil. If tiny dark flies pop up from the soil, you have fungus gnats.
Step 1: Find Which Plants Have Larvae
You may have many plants, but only a few may be breeding gnats. Finding them saves you time.
The potato slice test
This trick comes from university extension experts, and it works because larvae love to eat raw potato.
- Cut a raw potato into slices or chunks about 1/4 to 1/2 inch thick.
- Press one piece gently onto the soil surface of each plant, or push it partly into the soil.
- Wait 3 to 4 days.
- Lift each piece and look underneath.
If you see tiny white worms with black heads on the potato, that pot has larvae. Throw the potato pieces in the trash (not on the soil) when you’re done. Old potato left in the pot can feed more gnats.
Other signs to look for
| Sign | What it means |
| Gnats rise when you water or tap the pot | Adults are living around that plant |
| Soil stays wet for days after watering | Perfect breeding ground |
| Green or white fuzz on the soil surface | Fungus is growing, which feeds the larvae |
| Standing water in the saucer | Extra moisture that gnats love |
| A leak or damp spot nearby | The University of Vermont says gnats can breed in wet spots under leaks too |
Step 2: Change How You Water (The Most Important Step)
This step does more than any trap or product. Oregon State University says the larvae live in the top half inch or so of potting soil and need moisture. When the top layer dries out, many larvae die, and females stop laying eggs there.
How to water the gnat-proof way
- Check before you water. Push your finger into the soil up to the first knuckle (about 1 inch). If it feels damp, wait. Only water when the top inch is dry.
- Water from the bottom when you can. Set the pot in a tray or sink with an inch or two of water for 15 to 30 minutes. The roots drink from below while the top of the soil stays dry. Then lift the pot out and let it drain.
- Empty the saucer. Oregon State says not to leave standing water in saucers. Pour it out 15 to 30 minutes after watering.
- Water less in winter. Plants grow slower in winter and use less water. Soil stays wet much longer.
- Use pots with drainage holes. A pot with no holes keeps soil soggy.
Is this safe for your plants? For most common houseplants, letting the top inch dry between waterings is normal, healthy care. Plants that need constantly moist soil (like some ferns) may need extra help from the steps below instead.
Step 3: Catch the Adults With Yellow Sticky Traps
Adult fungus gnats are drawn to the color yellow. Small yellow sticky cards catch them and stop them from laying more eggs.
- Where to put them: Stick them on a stake in the pot, near the leaves, or lay them flat right above the soil, where the gnats spend most of their time.
- How many: One or two per affected pot, plus one near a window.
- How often to change them: Oregon State suggests replacing them every few days when they fill up.
- Bonus: Wisconsin experts point out that traps also help you keep track of the numbers over time. Fewer gnats on a fresh card each week means you are winning.
Safety: Sticky traps are very sticky. Oregon State advises care when using them around pets and children. Place them where curious paws and hands can’t reach.
Note: Vinegar traps, like the ones used for fruit flies, don’t work for fungus gnats. Oklahoma State University says so plainly. Use yellow sticky cards instead.
Step 4: Use Natural Biological Helpers (Optional, But Effective)
If drying the soil and using traps isn’t enough, two natural biological products can target the larvae directly.
Bti (Bacillus thuringiensis israelensis)
Bti is a natural soil bacterium. It makes a protein that kills the larvae of certain flies, including fungus gnats and mosquitoes, after they eat it. Choose a Bti product whose label lists fungus gnats or houseplants, such as Gnatrol. Some mosquito granules also list fungus gnats on their labels. Don’t use a pond or mosquito product in your pots unless its label says you can.
How to use it (always follow the label):
- Mix the product into your watering can exactly as the label directs.
- Water the soil with it, using enough water for it to soak down to where the larvae live.
- Repeat every 5 to 7 days for a few weeks.
Why repeat? University of Wisconsin experts explain that Bti does not affect eggs, pupae or adult gnats. It only kills larvae. Repeating it every 5 to 7 days catches each new batch of larvae as they hatch. Wisconsin also says it works best when combined with letting the soil dry.
Safety: Bti targets the larvae of a small group of flies. Still, follow the label, store it where kids and pets can’t reach it, and don’t use more than the label says.
Beneficial nematodes (Steinernema feltiae)
These are microscopic worms that hunt fungus gnat larvae in the soil. UConn Extension says they enter the larvae and kill them in one to two days. You can buy them online or at garden centers. They are alive, so use them soon after they arrive, mix them in water, and water them into moist soil as the package directs. Repeat applications may be needed.
Step 5: Repot Badly Infested Plants
Sometimes the soil is so wet and full of larvae that the fastest fix is a fresh start. A Michigan State University extension expert suggests repotting with fresh indoor potting mix in tough cases.
- Take the plant out of its pot outdoors or over newspaper.
- Gently shake off as much old soil as you can. Throw the old soil in an outdoor trash can, not your compost.
- Wash the pot with hot, soapy water.
- Repot with fresh, bagged potting mix. Oregon State notes most commercial mixes are already heat-treated. That lowers the risk, but no bag is guaranteed gnat-free, so keep it sealed and check new pots for a few weeks.
- Water lightly, then let the top inch dry before watering again.
Extra Care for Seedlings and Cuttings
Seedlings and rooting cuttings need moist soil, which makes them a gnat magnet. They are also the plants most likely to be harmed, because larvae can chew their tiny roots and tender stems. Here is how to protect them while still keeping them happy.
- Start with fresh, bagged seed-starting mix. Don’t reuse old soil from other pots.
- Water from the bottom. Set seed trays in a shallow tray of water for a short time, then drain. The surface stays drier.
- Give them air. A small fan on low, a few feet away, helps the soil surface dry a little faster.
- Put a yellow sticky card next to every tray so you notice gnats early.
- Use Bti early if you see gnats. Because seedlings can’t dry out much, Bti and beneficial nematodes are more useful here than for grown plants.
- Remove fallen leaves and dead seedlings right away. They rot quickly and feed larvae.
Choosing Pots and Soil That Gnats Don’t Like
The right setup makes it much easier to keep the top of the soil dry.
| Choice | Better for avoiding gnats | Why |
| Pot with drainage holes | Yes | Extra water drains out instead of sitting in the soil |
| Pot with no holes | No | Soil stays soggy at the bottom and damp on top |
| Unglazed clay (terracotta) pot | Often better | Clay lets water evaporate through the sides, so soil dries faster |
| Plastic or glazed pot | Fine, with care | Holds water longer, so check the soil before watering |
| Pot the right size for the plant | Yes | A huge pot holds lots of wet soil the roots can’t use |
| Fresh, bagged potting mix | Yes | Most are heat-treated, which lowers the risk, but no mix is guaranteed gnat-free |
| Old, reused or outdoor garden soil | No | May already hold eggs or larvae, and stays wet |
| Mix with added perlite or bark | Often better | Drains faster and dries on top sooner |
You don’t need to replace all your pots. But when you repot, these choices help you avoid gnats for good.
Popular Home Remedies: What the Experts Say
The internet is full of fungus gnat hacks. Some sound natural and harmless, but experts are cautious. Here is the honest picture.
| Remedy | What experts say | Our advice |
| Hydrogen peroxide soil drench | A Michigan State University extension expert says high doses can damage plants and does not recommend it. A University of Maine pesticide educator says the science doesn’t support using pharmacy peroxide on plants. | Skip it. Use dry soil, traps and Bti instead. |
| Cinnamon on the soil | The same Michigan State expert says high doses can damage plants and advises against it. | Skip it. |
| Vinegar traps | Oklahoma State says they don’t work for fungus gnats. | Use yellow sticky cards. |
| A thin layer of sand on top of the soil | Some extension educators suggest it to keep the surface dry. Little research. | Optional. Try it on one plant first. |
| Diatomaceous earth | We found no strong evidence it controls fungus gnats in pots, and it works poorly when damp. | Not a top choice. If used, avoid breathing the dust. |
| Essential oil sprays | No good evidence for fungus gnats; can harm pets, especially cats and birds. | Skip them. |
| Yellow sticky traps | Recommended by many extension services. | Yes. |
| Bti | Recommended by many extension services for larvae. | Yes, with repeat applications. |
Step 6: Habits That Keep Fungus Gnats Away
- Water only when the top inch is dry. This one habit prevents most problems.
- Empty saucers 15 to 30 minutes after watering.
- Remove dead leaves and flowers from the soil. Oregon State says gnats feed on decaying plant parts.
- Use fresh, bagged potting mix, and store opened bags sealed, away from your plants.
- Quarantine new plants. Oregon State suggests keeping new plants apart for a few weeks with a yellow sticky trap, and checking daily.
- Keep a sticky card in your plant area as an early warning.
- Fix leaks and damp spots near plants.
- Water less in winter, when plants grow slowly.
Your 4-Week Cleanup and Check Plan
Why 4 weeks? The fungus gnat life cycle takes about 3 to 4 weeks. Four weeks gives drying, trapping and Bti time to catch each new batch. It is not a guarantee. Gnats can come back if soil stays wet.
| When | What to do | Time needed |
| Day 1 | Put a potato slice on every plant. Add yellow sticky traps. Empty all saucers. | 20 minutes |
| Days 2 to 4 | Stop watering any plant whose top inch is still damp. Check potato slices on Day 4 and remove them. | 5 minutes a day |
| Day 5 | Start Bti on pots that showed larvae (optional). Repot any pot that is soggy and badly infested. | 30 minutes |
| Week 2 | Water only when the top inch is dry, from the bottom when you can. Replace full sticky traps. Second Bti treatment. | 10 minutes a few times a week |
| Week 3 | Same routine. Third Bti treatment. Do the potato test again on problem pots. | 10 minutes a few times a week |
| Week 4 | Put a fresh sticky card out and count what it catches in a week. Few or no gnats is a very good sign. Keep the Step 6 habits. | 10 minutes |
What your sticky traps are telling you
| What you see by Week 4 | What it means | What to do |
| Few or no gnats on a fresh card | Your plan is working | Keep the watering habits |
| Fewer gnats than Week 1 | Getting there | Keep going for another 2 weeks |
| Same number or more | Soil is still too wet somewhere | Recheck every pot, saucer and leak; repot soggy plants |
Common Myths About Fungus Gnats
| Myth | The truth |
| “Fungus gnats bite.” | They don’t. They are a nuisance, though larvae can harm seedlings. |
| “A vinegar trap will catch them.” | Oklahoma State says vinegar traps don’t work for fungus gnats. |
| “Killing the adults solves it.” | Adults live only about a week. The larvae in the soil are the real source. |
| “Hydrogen peroxide and cinnamon are safe, natural fixes.” | Extension experts warn high doses can damage plants and don’t recommend them. |
| “Bti kills everything in one dose.” | Bti only kills larvae, not eggs, pupae or adults. It needs repeat doses. |
| “My plant needs water every few days.” | Most houseplants are healthier when the top inch dries out between waterings. |
Quick Answers to Common Questions
Will fungus gnats kill my plant? Usually not. Big, healthy plants handle them fine. Seedlings, cuttings and soft-stemmed plants are at more risk because larvae can feed on their roots.
Why do I have gnats in winter? In winter, plants use less water, so the soil stays wet longer. That is perfect for gnats.
Can gnats come from new potting soil? They can come in on new plants or from soil that was stored open or damp. Keep opened bags sealed and quarantine new plants.
Can I put my plants outside to get rid of them? It may help in warm weather if the soil dries, but it isn’t needed. Drying the soil indoors works too. Check plants for other pests before bringing them back in.
What about kids and pets? Place sticky traps out of reach. Store Bti and any other products up high and follow their labels. Avoid essential oils around pets, especially cats and birds.
The Bottom Line
Fungus gnats are not a sign that you are a bad plant parent. They are a sign that the soil is staying too wet. Let the top inch dry, water from the bottom, empty saucers, and catch the adults with yellow sticky traps. If you need more help, use Bti or beneficial nematodes to target the larvae.
That is exactly what university experts recommend, and none of it needs a harsh spray. Give it about four weeks and watch your sticky traps. If the numbers keep dropping, you are winning.
Sources
- University of Wisconsin–Madison Extension: Fungus Gnats on Houseplants
- Oregon State University Extension: I have fungus gnats everywhere. Can you help?
- UConn Extension: Fungus Gnats
- University of Vermont Entomology Lab: Fungus Gnat in the Home and Yard
- University of Florida IFAS: Darkwinged Fungus Gnats, Bradysia spp.
- Oklahoma State University Extension: Fungus Gnats
- Michigan State University Extension, via Ask Extension: Fungus Gnats #682491
- Bangor Daily News, quoting University of Maine Cooperative Extension: Hydrogen peroxide and houseplant pests
- ASPCA Animal Poison Control Center: Essential oils and pets

