Call Now and Get Up To $350 Off

Call Now and Get Free Attic Inspection

Call Now and Get $39 off Your Initial Service

My Branch: Select your location
Change

How to Identify, Treat, and Stop Gnats in House

Daniel Baldwin

Scientifically reviewed by Daniel Baldwin, BCE, CCFS, CP-FS

Published on March 27, 2023

Updated on October 13, 2026

Finding gnats in house can be frustrating, especially when dozens of tiny flying bugs suddenly appear around your kitchen, bathroom, or indoor plants. You may clean your counters, take out the trash, and swat every gnat you see, only to discover more flying around the next morning.

If you're wondering, "Why do I have so many gnats in my house?" the answer usually involves moisture, accessible food, or decaying organic matter. These conditions allow small flies to reproduce quickly, sometimes creating a noticeable gnat infestation before you realize where the insects are coming from.

The key to getting rid of gnats is identifying the type of insect, locating its breeding source, and addressing the conditions that allow it to reproduce.

Here's what causes gnats in the house and how to eliminate them.

What Causes Gnats in the House?

Gnats are attracted to environments that provide moisture, food, and suitable places to lay eggs.

Although several different insects are commonly called gnats, the most frequent indoor problems involve fungus gnats, fruit flies, and drain flies.

Overwatered Houseplants

Fungus gnats thrive in moist soil containing fungi and decomposing organic matter.

When you water plants too frequently, the consistently damp soil creates favorable conditions for fungus gnat larvae to develop.

Overripe Fruit and Food Scraps

Fruit flies are attracted to overripe fruit, fermented liquids, and food residue.

A banana left on the counter or an unwashed recycling container can provide enough food for a growing population.

Dirty Kitchen and Bathroom Drains

Drain flies reproduce in the organic material that accumulates inside sink drains, shower drains, and garbage disposals.

Even a clean-looking sink can contain buildup deeper inside the drain.

Excess Moisture

Leaky pipes, standing water, damp mop heads, and refrigerator drip pans may provide moisture and breeding opportunities for small flies.

Understanding what causes gnats in your house starts with identifying these hidden sources.

Why Do I Suddenly Have So Many Gnats in My House?

A gnat infestation can seem to appear overnight because these insects reproduce quickly.

You may bring fungus gnats indoors with a new plant or introduce fruit fly eggs on produce. Once the insects find suitable breeding conditions, multiple adults may emerge within a short period.

The adults you notice flying around are often only one stage of the infestation.

Eggs and larvae may still be developing in potting soil, drains, or decaying material.

This explains why killing visible gnats does not always solve the problem.

Types of Tiny Flying Bugs in Your House

Before choosing a treatment, identify which small flies are present.

Different insects require different control methods.

Fungus Gnats

Fungus gnats are small, dark flies that resemble mosquitoes.

They typically measure approximately 1.6–4 millimeters in body length and have slender legs, narrow wings, and relatively long antennae.

Fungus gnats are commonly found around house plants because their larvae develop in moist potting soil.

If you notice small gnats in house plants or see insects flying when you disturb the soil, fungus gnats are a likely explanation.

Adult fungus gnats generally do not damage healthy plants. However, large populations of fungus gnat larvae may feed on tender plant roots, particularly affecting young plants and seedlings.

Fruit Flies

Fruit flies are small, tan, brown, or yellowish flies, often with noticeable red eyes.

They are attracted to overripe fruit, fermenting vegetables, sugary liquids, and food waste.

Fruit flies may gather around kitchen counters, trash cans, recycling bins, and garbage disposals.

If you're unsure whether you're dealing with fruit flies or fungus gnats, read Hawx's guide to fruit flies vs. gnats.

Drain Flies

Drain flies are small, fuzzy insects with broad, moth-like wings.

They are commonly found around bathroom sinks, showers, floor drains, and kitchen plumbing.

Unlike fungus gnats, which usually develop in plant soil, drain flies breed in the moist organic matter coating drain interiors.

Hawx's drain fly identification and prevention guide explains how to recognize these insects and address their breeding sites.

Midges and Other Small Flies

Some tiny flying bugs in house environments are midges or other small fly species.

Midges often gather near lights and may enter through open doors or damaged window screens.

Correct identification matters because a treatment that works for fruit flies may do little to address fungus gnats or drain flies.

Where Do Gnats Come From in the House?

If you're asking, "How do gnats get in your house?" there are several possibilities.

Some enter from outdoors, while others arrive as eggs or larvae in materials you bring inside.

New Indoor Plants

A newly purchased plant may contain fungus gnat eggs or larvae in its potting mix.

Once indoors, adult gnats emerge and may move between nearby plant pots.

Fresh Produce

Fruit flies can enter with produce or fly indoors after detecting fermenting food.

Store fruit appropriately and inspect produce for damage or decay.

Open Doors and Windows

Small flies can enter through damaged screens, gaps, and open doors.

Existing Indoor Breeding Sites

Gnats may already be reproducing in drains, damp soil, or hidden food residue.

If you're repeatedly finding little gnats in house environments, focus on locating where the next generation is developing.

How to Find the Source of a Gnat Infestation

Finding the breeding source is the most important step in getting rid of gnats.

Start by noting where the insects gather.

Check Your Houseplants

Gently disturb the soil surface and watch for small flies.

Look for fungus gnats near drainage holes, plant saucers, and damp potting soil.

Inspect Your Kitchen

Check produce, trash cans, recycling containers, and spills beneath appliances.

Even small amounts of decaying organic matter can attract fruit flies.

Examine Sink and Shower Drains

Look for small flies resting near drain openings.

A temporary clear tape test over part of a suspected drain opening can help identify emerging drain flies. Leave enough opening for airflow and avoid obstructing a drain that needs to be used.

Check Hidden Moisture Sources

Inspect refrigerator drip pans, damp cleaning supplies, leaking plumbing, and other damp areas.

If the gnat problem persists, repeat your inspection rather than relying exclusively on traps.

How to Get Rid of Gnats in Your House

The fastest way to get rid of gnats is to combine adult trapping with treatment of the breeding source.

A single homemade trap may catch visible insects, but it will not eliminate eggs and larvae developing elsewhere.

1. Remove Food Sources

Discard overripe fruit and clean food residue from counters, containers, and trash cans.

Store fruit in the refrigerator when appropriate and keep food containers sealed.

Empty recycling containers and take out garbage regularly.

These steps help eliminate food sources that support fruit flies.

2. Use Apple Cider Vinegar Traps

Apple cider vinegar is particularly useful for attracting fruit flies.

Pour a small amount of apple cider vinegar into a bowl or jar and add a few drops of dish soap.

The dish soap reduces surface tension, making it harder for insects to remain on the liquid.

You can also cover the container with plastic wrap and create several small holes.

Place the trap near fruit fly activity, away from food preparation surfaces.

Important: Apple cider vinegar traps are generally more effective for fruit flies than fungus gnats.

3. Use Yellow Sticky Traps

Yellow sticky traps are useful for catching adult fungus gnats near houseplants.

Insert the traps into plant pots or place them near areas where the insects gather.

Sticky traps help reduce the adult population and monitor activity, but they do not directly kill gnat larvae developing beneath the soil surface.

Replace traps as needed until activity declines.

4. Let Potting Soil Dry Between Waterings

Overwatering is one of the leading causes of a fungus gnat infestation.

Allow the upper layer of potting soil to dry between waterings when appropriate for the plant species.

Keeping the soil dry near the surface makes it less favorable for fungus gnats to reproduce.

Avoid allowing plants that require consistently moist conditions to become excessively dry.

Check drainage holes and empty standing water from plant saucers.

5. Treat Fungus Gnat Larvae With Bti

If drying the soil and using sticky traps are not enough, consider a product containing Bacillus thuringiensis israelensis (Bti).

Bti is a biological larvicide used in products such as Mosquito Bits and Mosquito Dunks.

When a product is labeled for the intended application, it can be used to target fungus gnat larvae in potting soil.

Follow the product's instructions for preparing and applying a soil drench.

Mosquito Bits or Mosquito Dunks do not replace moisture management, and repeated applications may be necessary.

6. Consider a Hydrogen Peroxide Soil Treatment Carefully

Some homeowners use diluted hydrogen peroxide as a soil drench to address fungus gnat larvae.

However, concentrated hydrogen peroxide or repeated applications can damage sensitive plant roots and beneficial soil organisms.

Because plants vary in tolerance, a labeled Bti product and improved watering practices are generally more predictable approaches.

Avoid mixing hydrogen peroxide with other household cleaning products.

7. Clean Sink and Shower Drains

If drain flies are the problem, physically remove the organic buildup where larvae develop.

Use a drain brush or an appropriate enzymatic drain cleaner according to its label.

Clean garbage disposals, including accessible areas beneath the splash guard.

Baking soda and vinegar may help loosen some residue, but they are not reliable substitutes for physically removing the breeding material.

Hot water alone may also fail to reach all the buildup inside a drain.

Never mix bleach with vinegar, ammonia, or other drain-cleaning chemicals.

8. Remove Other Damp Breeding Materials

Wash mop heads and allow them to dry completely.

Repair plumbing leaks and clean refrigerator drip pans when safely accessible.

Remove decaying material from trash cans and nearby storage areas.

A successful treatment addresses the conditions supporting the infestation, not just the adult insects.

How to Kill Gnats in House Plants

If the insects are concentrated around your plants, fungus gnats are a likely cause.

To kill fungus gnats effectively, use several methods together.

Place yellow sticky traps near affected plants to catch adult gnats.

Allow the soil surface to dry appropriately between waterings.

Use a labeled Bti product when necessary to kill fungus gnat larvae.

For severe infestations, replacing heavily contaminated potting soil may help, although unnecessary repotting can stress plants.

Inspect nearby plants because fungus gnats may spread between containers.

A raw potato slice placed on the soil can sometimes help reveal larvae feeding near the surface, but it is a monitoring technique rather than a complete treatment.

How to Prevent Gnats From Coming Back

Once you've reduced the adult population, focus on preventing another gnat infestation in house environments.

Water Plants Properly

Check soil moisture before watering.

Avoid leaving plant pots in standing water and use containers with adequate drainage.

Inspect New Plants

Examine leaves, stems, and soil before bringing new plants indoors.

Keep potentially infested plants separate until you can confirm they are free of pests.

Keep Kitchens Clean

Store fruit properly, remove food scraps, and clean spills promptly.

Take out garbage regularly and rinse recycling containers.

Maintain Drains

Clean sink drains, shower drains, and garbage disposals to remove accumulated organic matter.

Address slow drains and plumbing leaks that create persistent damp conditions.

Monitor With Traps

Use sticky traps near plants or apple cider vinegar traps near suspected fruit fly activity.

Continued trapping can help reveal whether adults are still emerging.

How Long Does It Take to Get Rid of a Gnat Infestation?

The time needed to get rid of gnats depends on the species, infestation size, and whether the breeding source has been eliminated.

You may notice fewer adult gnats within several days after removing food sources and placing traps.

However, eggs and larvae can continue developing after the visible adults are gone.

A fungus gnat infestation may require several weeks of moisture management, trapping, and larval treatment.

If the problem persists, inspect for another breeding source or consider professional pest control.

Get Help With a Gnat Infestation From Hawx Pest Control

Dealing with little flying bugs in house environments can become frustrating when homemade traps and cleaning efforts don't resolve the problem.

Whether you're finding fungus gnats around houseplants, fruit flies in the kitchen, or drain flies in the bathroom, identifying the source is essential for lasting control.

Hawx Pest Control provides residential pest control services to help homeowners address unwanted pests and reduce conditions that contribute to recurring infestations. Contact the team to discuss your gnat problem and confirm available treatment options.

Request a free estimate from Hawx Pest Control today.

Frequently Asked Questions About Gnats in the House

Why Do I Have So Many Gnats in My House?

Large numbers of gnats usually indicate a nearby breeding source, such as overwatered plants, decaying produce, or organic buildup inside drains.

What Are the Tiny Flying Bugs in My House?

They may be fungus gnats, fruit flies, drain flies, or midges. Their appearance and location can help identify the species.

What Causes Gnats to Suddenly Appear?

A sudden increase often occurs when multiple adults emerge from eggs and larvae developing in a hidden breeding site.

Where Do Gnats Lay Their Eggs in a House?

Fungus gnats lay eggs in moist soil, fruit flies reproduce around fermenting food, and drain flies develop in organic buildup inside drains.

Can Gnats Infest Your Bed?

Common household fungus gnats and fruit flies do not typically breed in bedding. If small insects are concentrated around your bed, inspect nearby plants and consider whether another pest is present.

What Smell Do Gnats Hate Most?

There is no single scent that reliably eliminates every type of gnat. Removing breeding sites is more dependable than relying on essential oils or scented repellents.

Does Dawn Dish Soap and Vinegar Get Rid of Gnats?

Apple cider vinegar mixed with a few drops of dish soap can trap fruit flies. It is less effective against fungus gnats and does not eliminate larvae in soil.

Why Do Gnats Exist?

Gnats and related small flies play ecological roles by helping decompose organic material, serving as food for other animals, and, in some species, pollinating plants.

How Do I Get Rid of Gnats When I Can't Find the Source?

Place traps in different rooms and monitor where insects accumulate. Inspect plant soil, produce, drains, trash cans, and hidden moisture sources.

Can You Permanently Get Rid of Gnats?

You can eliminate an existing indoor infestation by addressing its breeding source. However, new gnats can enter later if suitable conditions return.

Background

Ready To Start Protecting Your Home Or Business From Pests?

Schedule today and get a service plan tailored to your property. Receive a detailed report with pictures after each service is completed.

Call Us: (855) 739-0061

Check Out These Related Articles

Apartment Pest Control
March 27, 2023

How to Get Rid of Silverfish in the Bathroom

See All Articles
house outline

Ready To Protect Your Home For Good?