PDF download Download Article PDF download Download Article

Few insects are quite as pesky as gnats. Fortunately, dealing with them is relatively easy. If gnats have been buzzing around your sinks and drains, scrub away grimy deposits in the pipes where they lay their eggs. Traps can cut down the number of adult flies and help you monitor the infestation's severity. Cutting off gnats' food supply is crucial, so store food in sealed containers, wipe up spills, and keep your trash bins covered and clean. With a little diligence, you can turn your home into a fly-free zone.

Household Fixes

If you have gnats that you want to deal with right now, you may already have everything you need at home:

Method 1
Method 1 of 4:

Dealing with Gnats in Sinks and Drains

PDF download Download Article
  1. Grime that builds up inside drain pipes is the perfect breeding ground for gnats. Use a wire brush or pipe cleaner to scrape away stubborn deposits of organic matter.[1]
    • After scrubbing the drain, bring a pot of water to a near boil, then pour it down the drain to clear the debris you’ve scraped.
    • Bleach, ammonia, vinegar, and other cleaning products won’t cut through deposits in your drain pipes.
  2. If you can’t access your drain pipes with a wire brush, there are foaming products designed to eat away organic matter. Look for a product with "enzymatic" in its name or description at a hardware store. Pour it down the drain according to the label’s instructions, then let it sit overnight.
    • After letting the cleaner sit, pour near-boiling water down the drain.
    • Foaming products work better than liquid cleaners.
    • If you’re concerned about putting chemicals down your drain, there are eco-friendly, non-toxic enzymatic drain cleaners available.[2]
    Advertisement
  3. Pouring hot water down your drain every night is the best way to keep your pipes clear. Aside from enzymatic drain cleaners, you should avoid pouring chemicals down your drains.
    • Bleach, ammonia, vinegar, and other household products can erode pipes, especially older cast iron pipes.
    • Additionally, cleaning products can react with other chemicals in your pipes. A harmful reaction could produce dangerous fumes or pressure strong enough to burst a pipe.
    • Don’t pour insecticide down the drain, as harsh pesticides can have negative environmental impacts.[3]
  4. Advertisement
Method 2
Method 2 of 4:

Making Gnat Traps

PDF download Download Article
  1. Find a used can or jar, and fill it about halfway with apple cider vinegar. Mix in a drop of dish soap to break the surface tension, which will help prevent trapped gnats from escaping. Leave the jar in an area you've seen gnats buzzing about, such as your kitchen or dining room.[4]
    • After you fill your can or jar, you could seal the lid and poke small holes in it with a nail or screw. That way, any gnats that don’t drown in the vinegar can’t escape.
    • You could also cut a 2 liter (0.53 US gal) plastic bottle in half, and add vinegar to the bottom half. Place the top, or the part with the narrow nozzle, upside down into the base. It should look like a funnel when you're done. Gnats will follow the vinegar scent to find their way into the trap, but they'll have a hard time getting out through bottle's narrow top.
    • If you don't have apple cider vinegar on hand, any type of vinegar will do. Other effective baits include beer or mashed banana.
  2. Fill a small cup about halfway with red wine, then mix in a drop of a dish soap. Leave the cup out on your table or countertop to attract pesky gnats.[5]
    • The next time you have friends over for drinks, pour an extra cup of wine with dish soap to keep gnats away from your guests’ glasses. Just make sure you clearly mark the cup that has dish soap to avoid confusion.
  3. Traps can help you monitor an infestation and decrease the number of adult gnats in your home. However, on their own, traps aren’t an effective way to manage an infestation.
    • In order to eliminate gnats completely, you’ll need to combat all stages of their life cycle. Traps only kill adult gnats; they do nothing to fight eggs or larvae.
  4. Advertisement
Method 3
Method 3 of 4:

Preventing Gnat Infestations

PDF download Download Article
  1. Tidy your kitchen and dining room regularly, wipe up spills immediately, and promptly wash used pots, dishes, and utensils. Store fruit, especially ripened fruit, in the refrigerator.[6]
    • Always keep food in airtight containers stored in a closed cabinet or refrigerator.
    • Keep your eye out for sneaky spills, such as a little fruit juice by the fridge or a forgotten onion in the back of the pantry. Unnoticed messes could breed thousands of gnats.
  2. Keep all of your bins covered, including those outside. Check their exteriors for spills and food residue regularly, and wipe away any messes with a mild bleach solution.
    • Avoid keeping full bags of trash in the house overnight.
    • It’s wise to rinse out empty bottles and cans before throwing them in your recycling bin.
  3. Repair any tears in window screens, and add weatherstripping to gaps around doors and window frames. Avoid leaving doors and unscreened windows open. Look for holes and vents on your home’s exterior, and seal them with caulk or fine mesh screens.[7]
    • Some gnats are small enough to fit through mesh screens, so you might want to keep your windows closed, even if they’re screened.
  4. Gnats thrive in moist places, so look out for damp corners in the kitchen, bathroom, and other areas of the house. Wipe damp spots down with a mild bleach solution or household cleaner, then dry them with a clean cloth. Store wet towels and clothes in a lidded hamper, and wash dirty mop heads thoroughly before hanging them to dry.
    • Check the areas beneath kitchen and bathroom sinks, and repair any leaks you find.
    • Keep your blinds and curtains open to let sunlight into your home. Daylight can help prevent dampness.
    • You could also use a humidity monitor and dehumidifier to keep humidity levels in your home below 50%.
  5. Advertisement
Method 4
Method 4 of 4:

Keeping Gnats out of Your Plants

PDF download Download Article
  1. Soil that’s constantly damp attracts pests, including gnats, and promotes mold growth. While you shouldn’t let your plants wilt or turn yellow, try to hold off watering until the soil is completely dry.
    • To test the soil, stick your finger about 1 to 2 inches (2.5 to 5.1 cm) into the surface. If dirt sticks to your finger, it’s probably best to hold off watering, unless your plants look sad.
    • It’s also best to use containers with drainage holes in the bottom. If your pots sit on saucers that collect excess water, be sure to drain them after you water your plants.
    EXPERT TIP
    Kevin Carrillo

    Kevin Carrillo

    Pest Control Specialist, MMPC
    Kevin Carrillo is a Pest Control Specialist and the Senior Project Manager for MMPC, a pest control service and certified Minority-owned Business Enterprise (MBE) based in the New York City area. MMPC is certified by the industry’s leading codes and practices, including the National Pest Management Association (NPMA), QualityPro, GreenPro, and The New York Pest Management Association (NYPMA). MMPC's work has been featured in CNN, NPR, and ABC News.
    Kevin Carrillo
    Kevin Carrillo
    Pest Control Specialist, MMPC

    Our Expert Agrees: Gnats are attracted to oversaturated soil; let the soil in your potted plants dry out completely before watering them again. You can also scoop off the top inch of soil. Doing this, you'll notice that your gnat population will decrease after a couple of weeks.

  2. Nematodes are tiny worms that eat the larvae gnats, fleas, and other pests. You can purchase them at a garden center; look for a product labeled for gnat control that contains the nematode species Steinernema feltiae.
    • Typically, you mix beneficial nematodes with water, then add the mixture to your soil. Check your product’s label for specific instructions.
    • Beneficial nematodes are safe for people, plants, and pets, so try not to get grossed out or worry about harmful health effects.
  3. Mix a teaspoon or less of gentle hand or dish soap with a 1 US pint (470 mL) of lukewarm water. Add the mixture to a spray bottle, then spritz your plants’ leaves. After 2 or 3 hours, rinse the leaves thoroughly with water.[8]
    • While they’re more expensive, you can also purchase insecticidal plant soaps at a garden center.
    • Using a homemade soap spray increases the risk of leaf damage. It’s wise to test the spray on a small area before spraying an entire plant. As a rule of thumb, if a soap dries out or irritates your skin, it’s probably too harsh for your plants.
  4. Repot your plants if other methods don’t work. If you haven’t had success keeping flies out of your plants, it’s time to transplant them. Water the plant, remove it from the old pot, then gently shake away as much soil as possible from the root system.
    • Fill a new pot nearly to the top with fresh potting soil. Dig a hole in the center large enough to accommodate the roots, bury them, then cover them with soil.
    • If your gnat problem persists after transplanting, you might need to resort to chemical treatment. Head to your local garden center for a plant-safe liquid insecticide labeled for flying insects.
  5. Advertisement

Join the Discussion...

WikiDesertJumper764
16
I have fungus gnats in every single one of my poor plants!! I desperately want to get rid of them. What's the most effective way to get rid of th... Read More
Kevin Carrillo
Kevin Carrillo
Pest Control Specialist, MMPC
The fastest way to get rid of gnats is going to be to figure out what it is that is attracting them and get rid of it. With flying insects, it's... Read More
WikiDesertJumper764
I know that damp soil can lead to gnat infestations, so I've been bottom watering my plants because it doesn't leave the topsoil wet. I just plac... Read More

Expert Q&A

Search
Add New Question
  • Question
    Where are the gnats in my home coming from?
    Kevin Carrillo
    Kevin Carrillo
    Pest Control Specialist, MMPC
    Kevin Carrillo is a Pest Control Specialist and the Senior Project Manager for MMPC, a pest control service and certified Minority-owned Business Enterprise (MBE) based in the New York City area. MMPC is certified by the industry’s leading codes and practices, including the National Pest Management Association (NPMA), QualityPro, GreenPro, and The New York Pest Management Association (NYPMA). MMPC's work has been featured in CNN, NPR, and ABC News.
    Kevin Carrillo
    Pest Control Specialist, MMPC
    Expert Answer
    Gnats can enter your home through open doors and windows or holes in your screens. They can also hitch a ride on produce or houseplants. Once they’re established in your home, gnats can breed in areas such as drains, trash cans, or the soil in plant pots.
  • Question
    Does hydrogen peroxide get rid of gnats?
    Kevin Carrillo
    Kevin Carrillo
    Pest Control Specialist, MMPC
    Kevin Carrillo is a Pest Control Specialist and the Senior Project Manager for MMPC, a pest control service and certified Minority-owned Business Enterprise (MBE) based in the New York City area. MMPC is certified by the industry’s leading codes and practices, including the National Pest Management Association (NPMA), QualityPro, GreenPro, and The New York Pest Management Association (NYPMA). MMPC's work has been featured in CNN, NPR, and ABC News.
    Kevin Carrillo
    Pest Control Specialist, MMPC
    Expert Answer
    Yes, hydrogen peroxide applied to the soil of houseplants can help destroy the larvae of fungus gnats. However, you will need to dilute it so you don’t damage your plants. Use a 3% solution and dilute it with water (1 part hydrogen peroxide to 4 parts water), then pour it around the base of the plant as if you were watering it. Do this once a week until the gnats are gone.
  • Question
    What are gnats attracted to?
    Kevin Carrillo
    Kevin Carrillo
    Pest Control Specialist, MMPC
    Kevin Carrillo is a Pest Control Specialist and the Senior Project Manager for MMPC, a pest control service and certified Minority-owned Business Enterprise (MBE) based in the New York City area. MMPC is certified by the industry’s leading codes and practices, including the National Pest Management Association (NPMA), QualityPro, GreenPro, and The New York Pest Management Association (NYPMA). MMPC's work has been featured in CNN, NPR, and ABC News.
    Kevin Carrillo
    Pest Control Specialist, MMPC
    Expert Answer
    Gnats love moisture and plant food sources, such as fruits, vegetables, and flowers. They also love honey and vinegar, which is why they make effective bait for traps. Fungus gnats are attracted to damp soil. Gnats also like the heat and moisture produced by human bodies, which is why they tend to swarm you! If you’re wearing hair or skin products that smell like fruit or flowers, they’ll find you even more enticing.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Reader Videos

Tips

  • If your problem persists despite your best efforts, it might be time to call a professional exterminator.
  • From fungus gnats to fruit flies, there are countless species of pesky, tiny flies. In general, management strategies will work for any species.
Show More Tips


  • If your problem persists despite your best efforts, it might be time to call a professional exterminator.
Show More Tips

Tips from our Readers

  • I used an equal amount of water and bleach to spray down my counters and kitchen when I noticed them. Killed almost instantly. No more gnats!
  • Try boiling cinnamon sticks to get rid of gnats. They hate the smell and will do everything to get away from it.
  • If you have non-poisonous spiders in your home, avoid killing them right away. Gnats make great spider food.
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

You Might Also Like

Get Rid of EarwigsGet Rid of Earwigs
Get Rid of Bed BugsA Complete Guide to Getting Rid of Bed Bugs
Get Rid of Common House GeckosGet Rid of Common House Geckos
Get Rid of RoachesThe Best Ways to Get Rid of Cockroaches in Your Home
Tell What Animal Is in My WallDo You Have Animals in Your Walls? Dealing with Animals in Your Walls or Attic
Identify Bed Bug DroppingsIdentify Bed Bug Droppings
Get Rid of Roaches with Borax Kill Roaches with Borax or Boric Acid
Get Rid of SilverfishThe Best Ways to Get Rid of Silverfish Once and for All
Know if You Have Dust MitesKnow if You Have Dust Mites
How Do Exterminators Get Rid of MiceMice Extermination: How Experts Eliminate Mice & How Long It Takes
Get Rid of Pantry BugsThe Most Effective Ways to Get Rid of Pantry Pests for Good
Get Rid of Ladybugs Remove Ladybugs from Your Home and Yard
Get Rid of Bats Remove Bats from Your Home
Make Bed Bugs Come Out of Hiding Draw Bed Bugs Out of Hiding
Advertisement

About This Article

Kevin Carrillo
Co-authored by:
Pest Control Specialist, MMPC
This article was co-authored by Kevin Carrillo. Kevin Carrillo is a Pest Control Specialist and the Senior Project Manager for MMPC, a pest control service and certified Minority-owned Business Enterprise (MBE) based in the New York City area. MMPC is certified by the industry’s leading codes and practices, including the National Pest Management Association (NPMA), QualityPro, GreenPro, and The New York Pest Management Association (NYPMA). MMPC's work has been featured in CNN, NPR, and ABC News. This article has been viewed 15,820,033 times.
56 votes - 92%
Co-authors: 48
Updated: August 16, 2024
Views: 15,820,033
Article SummaryX

To get rid of gnats, first locate the source of the gnats. Gnats tend to lay eggs in drain pipes. If they're coming from the sink, pour boiling water down the drain. If that doesn't work, try making a gnat trap. Find a used can or jar and fill it about halfway with apple cider vinegar. Then, mix in a drop of dish soap to break the surface tension. Seal the jar and poke small holes in the covering. That way, any gnats that don’t drown in the vinegar can’t escape. If you don't have apple cider vinegar on hand, substitute it with any type of vinegar, wine or beer. Gnats are also attracted to overripe food, so you can make an even simpler trap by mashing a banana into the jar instead. Leave the trap in an area you've seen gnats buzzing about, such as your kitchen or dining room. To prevent gnats, make sure you tidy your kitchen, cover your garbage, and eliminate damp spots in your home. If you want to learn how to prevent getting gnats in the first place, keep reading!

Did this summary help you?

Thanks to all authors for creating a page that has been read 15,820,033 times.

Reader Success Stories

  • Cheryl Blake

    Cheryl Blake

    Sep 12, 2016

    "It sounds good. I didn't think about my plant, I have a majesty palm that I am just learning to grow so the..." more
Share your story

Did this article help you?

Advertisement