How to Get Rid of Gnats in House? | 9 Effective Ways

Written by George Climer

Despite being so tiny, gnats are certainly a massive nuisance. They’re irritating, unsanitary, and can even lead to health problems if left unchecked. But how do you get rid of the annoying little things?

How to get rid of gnats in house? To get rid of gnats in the house, you can set traps to lure and catch them, then dispose of them. You can also create or buy sprays to eliminate them, try using flypapers, or installing bug zappers. For the best results, however, calling a professional pest control service is recommended especially if you have severe infestations.

For this article, we’ve pulled together all the best ways to help get rid of gnats in your home, using natural and chemical means. First, let’s talk a little about how and why gnats find their way into your home in the first place.

Gnat Infestation in House

Gnat Infestation in House

Gnats are tiny, and they can get into a house through almost any opening, including the holes in window screens if they’re large enough. Once you get a few gnats inside your home, it doesn’t take long for more to follow. One or two gnats can quickly turn into an infestation, but why do they come inside?

Why Do I Have Gnats in My House?

Gnats find their way inside your home for several reasons. Sometimes, you may bring them in when you bring in a new houseplant. Additionally, some of them come in through cracks in your house because they’re attracted to the light. 

Gnats are more of a problem during the day than at night. However, when they do come out at night, your home is like a shining beacon in the dark.

What Attracts Gnats in the House?

What Attracts Gnats in the House

Gnats come in because they’re attracted to all the exciting smells from inside your house. They love fruit, even rotting fruit, but they also like garbage, houseplants, and other sweet-smelling things. Likewise, they’re attracted to warm, moist areas like kitchens and bathrooms. 

So if you have lots of houseplants or keep plenty of fruit, don’t be surprised if you start seeing gnats swarming around them. Once they get inside, they also like to hang around drains, particularly those in the kitchen sink, though the bathroom sinks aren’t off-limits either.

How Do Gnats Get in Your House?

The term “gnats” is a catch-all word for any number of small flying insects. These can include species such as midges, no-see-ums, sand gnats, fruit flies, and others. Most of these insects are no more than ⅛ to ¼ of an inch (3.175 – 6.35 mm) long. Things that small can get in practically anywhere. 

They can fly through open doors, come in along with houseplants, fly through cracks around windows, or come through window screens. If gnats want in, they’ll find a way. 

Additionally, you could be bringing home gnats whenever you bring home produce from the supermarket. Sometimes they’ve already laid their eggs in produce, and when you bring it home, the gnats hatch and swarm inside your home.

Where Do Gnats Come From in the House?

Once gnats get into a home, they look for moist, dark places to hang out when they’re not feeding. Some of them like to stay in drains because they’re dark and full of decomposing matter for them to eat. Kitchen drains are especially coveted. 

They also make their homes in pantries, fruit bowls, garbage cans, and anywhere else that’s dark, moist, and not too hot or too cold. 

Types of Gnats in House

Types of Gnats in House
Top from Left to Right: Fruit flies, Fungus gnat, Biting midge
Bottom from Left to Right: Drain fly, Buffalo gnat, Midge

Because “gnats” is such a catch-all term, there’s no single specific type of gnat that comes inside. Instead, the gnats in your house could be any number of tiny, flying bugs. However, a few types of “gnats” are more likely to come inside than others. Those include:

Related: Flying Insects | Identification, Habitat, and Behavior

9 Ways on How To Get Rid of Gnats Inside the House

Now that you’ve learned what types of bugs come inside your house and why they’re attracted to it, let’s talk about what’s really important: Getting rid of them! There are numerous ways to do this. Some are natural, and others involve using chemicals or pesticides. Take your pick:

Lure Gnats Into Rotten Fruit Jars

One way to catch gnats in a trap is to use their love of rotten fruit against them. If you have a rotten banana, apple, or another piece of fruit, don’t trash it! Instead, mash it up and put it in a fruit jar with a lid. 

Put the lid on, and stretch a piece of thin plastic, such as the Glad Cling Wrap. Poke holes in the top so the gnats can get to the fruit. The enticing smell will draw them in, and they’ll be able to squeeze through the tiny holes. However, once they’re in, the plastic wrap won’t allow them to get back out again.

Use Diluted Bleach in Your Drains

Use Diluted Bleach in Your Drains

If you’re having a problem with gnats in your drains, use diluted bleach to eliminate them. Mix a half-cup of bleach with a gallon of warm water, and slowly pour the mixture down the drains where the gnats stay.

This mixture should get rid of them and whatever enticing smells are drawing them there in the first place. You may also want to wash the entire sink with the mixture for good measure.

Place Homemade “Gnat Traps” Near Fruit

If you notice that gnats are swarming around your fruit bowls or a particular area within your pantry, you can set up homemade traps for them. The rotting fruit trap also works, but if you don’t like the smell of rotting fruit in your house, try this instead.

All you need is some apple cider vinegar, a small container, and your favorite dish detergent. We recommend the Sunlight Dish Detergent, which was used in the video below. We’ve also had equally impressive results with Dawn, so use whichever you like best.

This video shows you how to make the trap:

Install Fly Paper

Although it isn’t attractive and no one likes looking at it, flypaper can be effective for gnats. You can hang it in affected areas in your home. If gnats are hanging out around your plants, you can use sticky traps similar to flypaper made for potted plants.

Here are some tried-and-tested products that we’ve proven effective:

Stingmon 36 Pack Fruit Fly Trap for Indoors, Fungus Gnat Killer Indoor Sticky Traps for Mosquito and Flying Insects, Bug Pest Insect Catcher Killer for Houseplant Non-Toxic
  • Fruit Fly Trap: bright color attract flying insects, and high...
  • Easy to use: the fruit fly traps for indoors with sharp bottom...
  • Safe and non-toxic flying insect trap: gant traps for house...
  • Warm prompt: the temperatures rise in the summer, maybe causes...
  • Long lasting: gnats killer indoor trap paper with a very strong...
Sale 1
TERRO T2503SR Ready-to-Use Indoor Fruit Fly Killer and Trap with Built in Window - 4 Traps + 180 day Lure Supply
  • Works Fast – This fast-acting traps eliminate fruit fly...
  • Long-Lasting Lure – The ready-to-use, non-staining lure...
  • Discreet Design – The attractive, apple-shaped trap design will...
  • Monitor Catches – Each fruit fly trap has a built-in window,...
  • Locate Breeding Areas – These traps are most effective when...
Sale 2
Safer Home SH502 Indoor Plug-In Fly Trap for Flies, Fruit Flies, Moths, Gnats, and Other Flying Insects – 400 Sq Ft of Protection
  • Works Fast – The trap starts working immediately to attract,...
  • Contains no chemical insecticides
  • Ideal for Your Home – These traps are the perfect choice for...
  • Protects Large Rooms – The UV LED light naturally attracts...
  • Discreet Design – Trapped insects are hidden on the back of the...

Make Your Own Homemade Zapper Spray

To make this zapper spray, you’ll need the following items and ingredients:

  • A plastic spray bottle
  • 2tbps apple cider vinegar
  • 1L of water
  • 1tbsp Sugar
  • Dish detergent

Mix water, apple cider vinegar, sugar, and a few drops of dish detergent, and pour it into your spray bottle. Then, you can shoot the offending pests on sight. It’ll get rid of them, but it won’t harm your plants, and it isn’t toxic or dangerous to you, your children, or your pets.

Get Gnats Drunk

Get Gnats Drunk

Many people wondering how to catch gnats are surprised to learn the answer is as simple as red wine. You can use the same type of plastic-covered container used with the rotten fruit, but instead of fruit, fill it with red wine.

Gnats are attracted to the scent of the wine. They fly in, and the plastic wrap keeps them from flying out. Additionally, you could use dish detergent to hold them in instead.

Hang a Bug Zapper

Hanging a bug zapper is another way to get rid of gnats, although it’s not the most attractive way to do it. The gnats are attracted to the light of the zapper, especially if it’s the only light in a dark room, and will fly into it and fry themselves. Again, not pretty; but nevertheless, it’s simple and effective. 

Use Chemicals

If getting rid of gnats naturally isn’t important to you, there are plenty of chemical sprays you can buy. Just be sure to read the warning labels carefully since some of these products aren’t safe for humans, plants, or animals.

Here are great options you can try out:

Ortho Home Defense Flying Insect Killer Aerosol 16 oz
  • Kills flies; Gnats; mosquitoes and Small flying moths
  • Also kills listed insects on Ornamental plants
  • Indoor and outdoor use
  • Kills mosquitoes that may transmit West Nile virus and kills...
  • Kills aphids; whiteflies; Japanese beetles; mealy bugs;...
Kate's Garden Plant Spray Bottle for Insects (16oz) Garden Plant Care Peppermint Oil Spray for Bugs, Fruit Flies, Spider Mites. Fungus Gnat Killer for Indoor Plants & Outdoors
  • PLANT CARE SPRAY WITH ESSENTIAL OILS: Test spray on 1-2 leaves...
  • INDOOR & OUTDOOR PLANT PEST CONTROL: Use our Plant Mister Sprayer...
  • SAFE GARDENING: Our Plant Spray is gentle on plants and safe to...
  • NATURAL INGREDIENTS: Made with natural ingredients in the USA. A...
  • NATURALLY EFFECTIVE. Protect against spider mites, fungus gnats,...
SUMMIT CHEMICAL CO 101-6 5,000 Square Feet, 32fl.oz. Summit.Responsible Solutions Summit Mosquito and Gnat Barrier Covers, 32-oz, Clear
  • Kills & repels mosquitoes for up to 4 weeks
  • Also kills fleas, gnats, ticks and other insect pests
  • Spray paths and wooded areas to kill ticks
  • Simply attach a garden hose to the bottle and spray.
  • Harmless to garden plants

Call the Professionals

If your gnat infestation has gotten out of control, call a professional pest control company, and let them deal with your gnat problem for you. Again, be sure to ask them about the safety of their products, especially if you have indoor pets or young children.

What To Use To Get Rid of Gnats in House? | Insecticides Guide

As mentioned, if you’re looking for a non-natural way to get rid of gnats yourself, there are plenty of options available. Aside from the ones we’ve already mentioned, here are a few other products you can consider:

Fruit Fly Goodbye Gel Drain Treatment | Drain Fly Killer | Fruit Fly Killer | Drain Flies Treatment | Fruit Flies Treatment | Drain Fly & Fruit Fly Eliminator (1 Gallon)
  • KILL FRUIT & DRAIN FLIES: Fruit Fly Killer is a convenient...
  • SAFE FOR PIPES & SEPTIC SYSTEMS: Fruit Fly Killer is a...
  • CITRONELLA-BASED GEL: This thick gel product is made from a...
  • EASY TO APPLY: Just apply approximately 8 ounces (1 cup) of...
  • 30 DAY HASSLE FREE RETURNS: We value our customers and we stand...
Fruit Fly & Drain Fly Killer - Simple Commercial Drain Gel Treatment – Eliminates Gross Fruit Flies, Drain Flies, Sewer Flies & Gnat Infestations From Any Drain. Fast & Easy - 1 Gallon (128 Ounces)
  • FAST ACTING & EASY TO USE - Simply Pour This Specially Formulated...
  • HOW IT WORKS SAFELY-This Thick Gel Treatment Clings & Sticks To...
  • HARMLESS & LONG LASTING - Harmless To Drains, Pipes, Septic...
Ortho Home Defense Flying Bug Killer with Essential Oils 14 oz.
  • Safe and strong essential oil formula (Safe to use around kids...
  • Safe to use around kids and pets when used as directed
  • Tested and proven to start killing flying bugs in seconds**...
  • Use indoors or outdoors
  • Spray at all angles

These are products with which we’ve had success. Give them a try or do some experimenting with the many products available in stores or online. 

How To Get Rid of Gnats in My House Plants?

There are plenty of commercial sprays you can use that are safe for houseplants. You can also use the homemade mixture of apple cider vinegar and dish detergent to spray them. Our favorite way to get rid of gnats on houseplants is with the sticky traps discussed earlier.

How To Get Rid of Gnats in House Naturally?

The best way to get rid of gnats in the house naturally is to use one of the safe, homemade methods mentioned above. The rotten fruit in the jar, red wine, and apple cider vinegar mixtures are natural ways to rid yourself of gnats.

Gnats also aren’t fond of peppermint, so soak peppermint essential oil on cotton balls then dab it around areas where you know gnats frequent is also a good idea.

Best Home Remedies To Get Rid of Gnats in House

Best Home Remedies To Get Rid of Gnats in House

There are plenty of gnat control home remedies and homemade traps you can make to help you get rid of gnats in your house. Since we’ve already mentioned the most effective ones, we won’t go over all of them again.

However, we thought we’d add a few other things in addition to peppermint oil that gnats don’t like. Burning candles with the following essential oils in them can help repel gnats:

  • Lemon
  • Citronella
  • Vanilla
  • Lavender

Related: How to Get Rid of Gnats and Fruit Flies Using Essential Oils | No-Nonsense Guide

How To Keep Gnats Out of House?

Once you get rid of gnats, you want them to stay gone. The best ways to ensure they don’t come back is to:

  • Keep everything clean.
  • Regularly use the diluted bleach mixture in your sinks and drains.
  • Throw fruit outdoors when it starts to go bad.
  • Take out your trash regularly.
  • Don’t give the gnats any incentive to come back in, and most of the time, they won’t. 
  • Don’t forget about the peppermint, lemon, lavender, vanilla, and citronella repellents, either.


Gnats are a nuisance. They’re aggravating and unsanitary, and they make your home look nasty, even when it’s not. Luckily, there are plenty of ways to get rid of them, and most of them are relatively inexpensive and easy. Try the above-listed methods and see if you have any luck. If all else fails, you can always call professional pest control for help.

List of Sources

Bethke, J. A., & Dreistadt, S. H. (2013). Pests in Gardens and Landscapes: Fungus Gnats.
Cranshaw, W. S., & Peairs, F. B. (2017). Flies in the Home.
Potter, M.F. (1994). Fruit Flies.
Townsend, L. (1997). Midges and Gnats.
Waldvogel, M., Alder, P., & Crawley, S. (2016). Fungus Gnats Indoors.