How To Get Rid Of Gnats

To get rid of gnats, identify the type of gnat, eliminate the source of the infestation, use natural remedies, employ commercial insecticides, and keep your living space clean and dry.

How To Get Rid Of Gnats

Gnats are small, pesky insects that can quickly become an annoyance. These tiny creatures love the moisture and humid air, which is why they often hang around damp areas like drains, garbage disposals, and wet soil. There are several ways that you can get rid of gnats, from natural remedies to commercial insecticides, depending on your preferences, budget, and the severity of the gnats infestation.

Here are some tips on how to get rid of gnats:

1. Identify the type of gnats

The first step to getting rid of gnats is to determine the type of gnat that you're dealing with. Some common types of gnats include the fungus gnat, the fruit fly, and the drain fly. Different types of gnats have different habits and preferences, which might affect the way you tackle the infestation.

Fungus gnats, for example, thrive in moist soil and are attracted to indoor plants, while fruit flies usually breed in overripe or rotting fruits and vegetables. Drain flies, also known as sewer gnats, thrive in damp environments like drains and sewage systems.

Identifying the type of gnat is necessary because it might help you determine the source of the infestation and what type of control measure you should employ.

2. Eliminate the source of the gnats

Once you've determined the type of gnat, you need to find and eliminate the source of the infestation. For instance, if you're dealing with fruit flies, you need to search your kitchen for any overripe fruits or vegetables and throw them away.

If it's a fungus gnat, you may need to replace the soil of any houseplants that are infested. Drain flies, on the other hand, require you to inspect your drains and pipes for any clogs or standing water.

By removing the source of the gnats, you are effectively cutting off their breeding ground, thus reducing their population. This step is crucial because it prevents the gnats from multiplying, making it easier for you to get rid of them.

3. Use natural remedies

If you prefer to use natural methods to get rid of gnats, there are several home remedies that you can try. These remedies are not only cost-effective, but they're also safe and don't pose any risk to your health.

Vinegar Trap

One popular natural remedy for gnats is the vinegar trap. Fill a small container with apple cider vinegar and cover it with plastic wrap, poking a few small holes in the top with a toothpick. The gnats will be attracted to the vinegar's scent, but once they enter the container, they will get trapped inside and eventually drown.

Essential Oils

Essential oils such as lavender, peppermint, and tea tree oil are known to repel gnats and other flying insects. You can mix a few drops of your preferred oil with water in a spray bottle and use it to spray around your living space. Alternatively, you can place some cotton balls soaked in essential oil near the infested area.


Another effective remedy is beer. Place a shallow dish filled with beer near the affected area. The gnats will be attracted to the beer's scent and will eventually drown.

4. Use commercial insecticides

If you've tried the natural remedies without any significant success, it might be time to resort to insecticides. While commercial insecticides can be effective in killing gnats, they contain harmful chemicals that might pose health risks to you and your family.

When shopping for insecticides, look for those that are specifically designed to kill gnats. Some of the commonly used insecticides include:


Pyrethrin is a natural insecticide derived from chrysanthemum flowers. It's effective in killing gnats but doesn't leave any residue behind.


Permethrin is a synthetic insecticide that's effective in killing gnats and other flying insects. However, it's highly toxic to cats and fish, so you need to be cautious when using it.

5. Keep your living space clean and dry

Finally, to prevent future gnat infestations, you need to maintain a clean and dry living area. Gnats thrive in damp environments and dirty surroundings, so by keeping your space clean, dry, and well-circulated, you make it less likely for them to take root.

Some of the measures you can take include:

Regularly disposing of garbage.

Ensuring that you don't leave any food crumbs lying around.

Fixing any leaky taps and pipes.

Wiping down any wet surfaces like countertops and sinks.


Getting rid of gnats can be a daunting task, but with the right approach and measures, it's doable. Identifying the type of gnat, eliminating the source of the infestation, using natural remedies, employing commercial insecticides, and keeping your living space clean and dry are some of the things you can do to get rid of gnats.

Remember, prevention is key to avoiding gnats infestation. By maintaining a clean and dry environment, you make it less likely for them to invade your space.