If you’ve noticed tiny black flies hovering around your houseplants, you’re dealing with fungus gnats. They’re annoying, but the good news is they’re not dangerous to you or your plants in most cases. The bad news? They multiply fast if you ignore them.
Fungus gnats love one thing above all else: moist soil. When you water your plants a little too generously or your pot doesn’t drain well, the top layer of soil stays damp. That’s where these pests lay their eggs. Within days, you’ve got larvae wiggling through the soil and a new batch of adults flying around your living room.
The usual advice involves chemical sprays or treatments that might worry you if you’re renting, have pets, or just prefer to keep things natural. But here’s the thing: you don’t need harsh products to get rid of fungus gnats. Simple adjustments to how you water, what you put on top of your soil, and a few clever traps can break their life cycle quickly.
This guide walks you through practical steps that work in apartments and rental homes. No special equipment. No expensive products. Just straightforward methods that address why fungus gnats showed up in the first place and how to make your plant pots a place they won’t want to stick around.
Make sure you’re dealing with fungus gnats
Before you start any treatment, take a moment to confirm what you’re actually dealing with. Fungus gnats are tiny dark flies, usually black or dark gray, that hover lazily around your plant pots. They’re small enough that you might mistake them for specks of dirt at first glance.
The biggest giveaway is where they hang out. Fungus gnats live in and around your potting soil. When you water your plants, you’ll often see a little cloud of them suddenly lift off from the soil surface. They’re weak fliers, so they tend to stay close to the pot rather than zooming around your kitchen.
If you gently move the top layer of soil aside, you might spot their larvae. These look like tiny translucent worms with black heads, usually hanging out in the top inch or two of damp potting mix.
Now here’s where people often get confused. Fruit flies look similar in size, but they’re more interested in your bananas and wine glasses than your plants. You’ll find them circling your fruit bowl or trash can, not your ficus.
Drain flies are another lookalike. They’re slightly fuzzy or moth-like in appearance and tend to appear near sinks, showers, or anywhere water sits and drains. If the flies are coming from your bathroom or kitchen drain rather than your planter, you’re dealing with a different problem entirely.
The simple test: if the flies are consistently hovering near your plant soil and you see more of them after watering, you’ve got fungus gnats. Time to take action.
Change watering so the top of the soil dries out
Fungus gnats love wet soil because that’s where they lay their eggs. The tiny larvae hatch and feed on decaying organic matter in the damp top layer of your potting mix. If that layer never dries out, you’re basically running a gnat nursery.
The fix is simple: let the top inch or so of soil dry out between waterings. This breaks the gnat life cycle because the eggs and larvae can’t survive without constant moisture. The roots below are still getting water, but the surface becomes hostile territory for pests.
To check if it’s time to water, stick your finger into the soil up to your first knuckle. If it feels dry at that depth, water thoroughly until it drains out the bottom. If it’s still damp, wait another day or two.
When you do water, make sure you’re not leaving standing water in saucers or cache pots. Empty them about fifteen minutes after watering. Sitting water keeps the soil soggy and gives gnats exactly what they want.
If you’re worried about stressing your plants, watch for their signals. Most houseplants will tell you when they’re thirsty by drooping slightly or losing their perkiness. Once you see that, water right away. You’ll quickly learn each plant’s rhythm without following a rigid schedule.
Better airflow around your pots also helps the soil surface dry faster. If your plants are packed together on a shelf or tucked in a corner, try spacing them out a bit. Even a small fan nearby can make a difference in an apartment with limited ventilation.
Catch the flying adults to stop the cycle from continuing
The flying gnats you see are actively laying eggs in your soil right now. Each female can lay hundreds of eggs in her short life. So catching these adults gives you a quick win and slows down the whole problem.
Yellow sticky traps are your best friend here. Fungus gnats are drawn to the color yellow, and once they land on the sticky surface, they’re done. You can find these at most garden shops or online for a few dollars. They look like little yellow cards or stakes.
Place them right at soil level, not up high. The gnats tend to hang out near the soil surface where they’re looking to lay eggs. Stick one or two traps in each affected pot, pushed into the soil so the yellow part sits just above the surface.
You’ll start seeing results within a day or two. Don’t be alarmed when the traps fill up quickly at first—that’s actually good news. It means you’re catching the egg-layers before they can make your problem worse.
Some people also use a small dish trap with a few drops of dish soap in water, placed near the pots. The soap breaks the water’s surface tension so gnats that land on it sink. This works, but it’s messier and your cat might knock it over, so sticky traps are usually easier in apartments.
Here’s the important part: traps alone won’t solve your fungus gnat problem. They catch adults, but they don’t stop the larvae already living in your soil. Think of traps as part of the solution, not the whole answer. They buy you time while you address what’s happening in the soil itself.
Make the soil surface unfriendly to larvae
Fungus gnat larvae live in the top layer of your potting soil, feeding on organic matter and plant roots. If you make that zone less welcoming, they struggle to complete their life cycle. The goal is simple: keep the surface drier than they like it.
One of the easiest tricks is adding a layer of coarse sand or fine gravel on top of your soil. This creates a dry barrier that larvae can’t move through easily. The sand drains fast and doesn’t hold moisture the way potting mix does. You only need about half an inch to make a difference. Aquarium sand or horticultural grit both work well and won’t hurt your plants.
Bottom watering is another renter-friendly approach. Instead of pouring water on top, you set your pot in a tray of water and let the soil soak it up from the drainage holes. This keeps the surface layer dry while the roots still get what they need. It takes a bit longer, but it’s a solid option if you have the counter space.
If you’re dealing with an active infestation, a diluted hydrogen peroxide drench can help as a reset. Mix one part three-percent hydrogen peroxide with four parts water and pour it gently over the soil. It fizzes as it breaks down, releasing oxygen that kills larvae on contact. Use this sparingly, maybe once, and let your plant recover before repeating.
Pick the method that fits your routine. You don’t need to do all three at once. Even one change can disrupt the gnats enough to break the cycle.
Reduce reinfestation from new soil, drains, and plant clutter
Once you’ve cleared up a fungus gnat problem, the last thing you want is for them to come right back. The good news is that a few simple habits can keep your apartment pest-free without a lot of fuss.
Start with your potting soil. That bag you bought months ago and left open in the closet? It’s probably already hosting gnat eggs. Store any unused soil in a sealed container or a tightly rolled bag with a clip. If you’re not sure how long a bag has been sitting around, consider freezing small amounts for a day or two before using it. That kills off any hitchhikers.
When you bring home a new plant, give it a week or two in a separate spot before placing it near your other plants. This quarantine period lets you spot any gnats that might emerge without risking your whole collection. Check the soil surface and the drainage holes for any tiny flies.
Dead leaves and plant debris sitting on top of the soil are like a welcome mat for gnats. They love decaying material. Make it a quick habit to pluck off any fallen leaves or trim away anything brown and musty.
Finally, take a look around your space for other damp spots. Drip trays that stay wet, a kitchen compost bin without a lid, or even a sponge that never dries out can all harbor gnats. Empty excess water from saucers after watering, and keep your counters reasonably dry. These aren’t dramatic changes, but they remove the little pockets where gnats like to regroup.