How to Get Rid of Gnats in the House (Fast and for Good)
November 7, 2026 · 5 min read · Mercatus Apertus
Gnats in the house almost always trace back to drains, plant soil, or ripe fruit. Find and fix the source, then use these fast and natural steps to clear them out for good.
Gnats in the house come from somewhere specific, usually a drain, a houseplant's damp soil, or a piece of ripe fruit left on the counter. Find that source and remove it, and most gnat problems clear up within a few days without any spray.
First, figure out which gnat you have
Not all tiny flying bugs in your kitchen are the same, and that matters for how you get rid of them.
- Fruit flies are tan or brown with red eyes and hover around ripe produce, trash cans, and recycling bins.
- Drain flies are fuzzy and moth-shaped, and they cling to walls near sinks, tubs, or floor drains.
- Fungus gnats are thin and dark, and they hang around houseplants, especially ones that stay moist.
All three get lumped together as "gnats," and the fixes below cover each type.
Step 1: Remove the source, not just the bugs
Spraying the bugs you see does almost nothing if the breeding site is still active. Work through this list and check each one.
- Check the fruit bowl and counters. Toss any very ripe or soft fruit, or move it to the fridge. Rinse sticky residue off counters and the inside of your trash can.
- Empty and rinse all trash and recycling bins. Juice and food residue at the bottom of a bin is a common hidden source. A lid helps too.
- Inspect your houseplants. Fungus gnats breed in the top inch or two of damp potting soil. Let the soil dry out more between waterings, and remove any mushy or rotting plant debris from the surface.
- Look at your drains. Kitchen sinks, bathroom sinks, tubs, and floor drains can build up a gel-like layer of organic gunk that drain flies breed in. Run hot water down slow drains and physically scrub the drain opening with an old brush if you can reach it.
- Check for other damp spots. A leaking pipe under a sink, a damp mop left in a bucket, or a dish rag left wet for days can all host gnats.
Until the source is gone, new gnats keep showing up no matter what else you try.
How to get rid of gnats in the house fast
If you need results in a day or two, combine source removal with a trap:
- Do the full source check above first. This is the step that actually stops the cycle.
- Set out a vinegar trap (see below) near the worst spot overnight.
- Wipe down counters, the trash can, and any spill areas with soapy water or a mild cleaner.
- Run drains with hot water and dish soap, then a scrub if you have time.
Most houses see a noticeable drop within 24 to 48 hours once the source is handled.
Home remedies that actually work
You do not need anything from a store to knock down a gnat population. A few options:
- Apple cider vinegar trap: Pour a little vinegar into a small bowl, add a drop of dish soap, and cover with plastic wrap poked with a few holes. Gnats go in, the soap breaks the surface tension, and they can't get back out.
- Without apple cider vinegar: Use any sweet liquid instead, such as leftover wine, beer, or sugar water with a drop of dish soap. The dish soap is the part that actually traps them, not the vinegar itself.
- Hot water and dish soap down drains: A nightly pour of hot water with a squirt of dish soap disrupts the gunk layer drain flies lay eggs in.
- Baking soda and vinegar for stubborn drains: Pour baking soda down the drain, follow with vinegar, let it fizz for 10 minutes, then flush with hot water.
None of these are instant, but run consistently for a few days they work on fruit flies and drain flies without any chemical spray.
How to get rid of gnats in house plants
Fungus gnats in potting soil respond best to changing the conditions they need to breed:
- Let the top layer of soil dry out between waterings. Water from the bottom when you can.
- Add a thin layer of sand or gravel on top of the soil. It dries out fast and gnats have a harder time laying eggs in it.
- Remove any dead leaves or plant debris sitting on the soil surface.
- If one plant is heavily infested, consider repotting with fresh soil.
What keeps gnats out of your house going forward
Once you clear the current batch, a few habits keep them from coming back:
- Rinse fruit when you bring it home and don't let it sit past ripe.
- Take out kitchen trash every day or two, especially in warm weather.
- Run a little hot water down rarely used drains (like a guest bathroom) once a week so they don't build up gunk.
- Keep houseplant soil on the drier side.
- Keep screens on windows in good repair so new gnats don't fly in from outside.
Where a UV trap helps
A UV light trap won't fix a fruit bowl full of overripe bananas or a drain that needs scrubbing, no trap can replace source removal. But once the breeding sites are handled, a trap is a simple way to catch the flying adults that are already in the house, including ones that wandered in from outside.
The GnatGone Rechargeable UV Insect Trap is one option for this. It's a quiet, rechargeable UV light trap that draws in gnats, mosquitoes, and other small flying insects at night, with no sprays, no sticky paper sitting on the counter, and no smell. It charges over USB, so you can run it in the kitchen tonight and move it to the bedroom or patio tomorrow. For fruit flies specifically, use it alongside removing the source, since the trap catches flying adults but won't do anything about a fruit bowl that's still the real problem.
When to call in more help
If gnats keep coming back heavily even after you've cleared fruit, cleaned drains, and dried out plant soil, you may have a hidden moisture source, like a slow leak behind a wall or under a dishwasher. At that point it's worth having a plumber or pest control professional take a look, since the fix is likely structural rather than something a trap or spray can handle.
Questions people ask
- How do you get rid of gnats in the house fast?
- Start by removing the source: toss overripe fruit, empty and rinse the trash can, and clean out sink drains with hot water and dish soap. Set a vinegar-and-dish-soap trap overnight while you clean, and most houses see a big drop within a day or two.
- How do you get rid of gnats in the house naturally, without apple cider vinegar?
- Dish soap is the key ingredient, not the vinegar, so you can swap in leftover wine, beer, or sugar water with a drop of dish soap in a small bowl covered with punctured plastic wrap. Combine this with cleaning drains and removing ripe fruit for the best results.
- How do you get rid of gnats in house plants?
- Let the top inch or two of soil dry out between waterings, since fungus gnats need moist soil to breed. Adding a thin layer of sand on top of the soil and removing dead leaf debris also helps break the cycle.
- What will keep gnats out of your house long term?
- Rinse and refrigerate ripe fruit promptly, take out kitchen trash every day or two, and run hot water down rarely used drains weekly so they don't build up residue. Keeping houseplant soil on the drier side and window screens in good shape also helps keep new gnats out.
This guide is general information, not medical or veterinary advice. If pain or symptoms persist, see a doctor or your vet.
