Getting rid of flying bugs in your house starts with figuring out what they are and where they’re breeding. Most indoor flying insects fall into a handful of categories: fruit flies, drain flies, fungus gnats, pantry moths, or clothes moths. Each one breeds in a different spot, so the fix depends on the bug. The good news is that nearly all of them can be eliminated without an exterminator once you cut off their breeding source.
Identify What’s Flying Around
Before you start swatting, take a close look at the bugs and where you’re seeing them. The location tells you almost as much as the insect itself.
- Tiny flies near fruit or trash: Fruit flies. They’re small, tan or brown, and hover around ripening produce, compost bins, and recycling containers.
- Tiny flies near sinks or showers: Drain flies (also called moth flies). They look fuzzy with broad, leaf-shaped wings and tend to rest on walls near drains.
- Tiny flies near houseplants: Fungus gnats. They’re dark and mosquito-like, and you’ll see them hovering just above the soil surface.
- Small moths in the kitchen or pantry: Indian meal moths. About 5/8 inch long with reddish-copper wing tips. They breed in stored grains, flour, cereal, pet food, and dried fruit.
- Small buff-colored moths near closets or bedrooms: Clothes moths. They have a 3/8 to 1/2 inch wingspan and lay eggs in wool, silk, and other natural fabrics. Check underneath wool rugs for larvae.
- Winged ants: Flying ants are reproductive forms, brown to black with a pinched waist and two pairs of wings. They can appear from basements, attics, or kitchens and may signal a colony inside the walls.
Fruit Flies: Remove Their Food Source
Fruit flies can go from egg to adult in about a week under warm conditions, which is why a few can become dozens seemingly overnight. They lay eggs on the surface of fermenting organic material, so the core strategy is eliminating every possible breeding spot.
Start by getting all ripe and overripe fruit off the counter and into the refrigerator. Empty kitchen trash cans daily, and rinse out recycling bins, especially bottles and cans that held juice, beer, or wine. Clean up any spills under appliances. Wipe down the inside of your trash can with soap and water, because a thin film of residue at the bottom is enough to sustain them.
To catch the adults that are already flying, fill a small jar with apple cider vinegar and a drop of dish soap. The vinegar attracts them and the soap breaks the surface tension so they sink. Place a few of these traps near problem areas. Within a week of removing food sources and trapping adults, the population should collapse.
Drain Flies: Clean the Pipes
Drain flies breed in the slimy organic buildup that coats the inside of pipes, particularly in drains that don’t get heavy daily use. Bathroom sinks, shower drains, basement floor drains, and laundry room drains are common culprits. If you’re not sure which drain is the source, place a piece of clear packing tape over each suspected drain overnight, sticky side down. Any adults emerging from the pipe will get stuck to it.
Killing drain flies means removing the gooey film their larvae feed on. Pouring bleach down the drain won’t cut it, because it flows past the buildup without dissolving it. Instead, scrub the drain mechanically with a stiff pipe brush, then flush with hot water. Follow up with an enzyme-based drain gel designed to break down organic deposits. These products contain microorganisms that digest the residue and cling to pipe walls for extended contact time. Foaming drain cleaners can also help reach buildup in horizontal pipe sections. For severe cases, professional high-pressure drain cleaning removes organic material along the entire length of the pipe.
No insecticide products are registered for use inside drains or sewer systems, so pouring pesticides down the drain is both ineffective and discouraged. Sticky fly strips or UV light traps can catch some adults in the meantime, but they won’t stop the infestation on their own. Expect to repeat drain cleaning every few days for at least three weeks. That’s how long it takes to break the life cycle by killing each new generation of larvae before they mature.
Fungus Gnats: Dry Out the Soil
Fungus gnats lay their eggs in moist potting soil, and the larvae feed on fungi and organic matter near the surface. The single most important step is changing how you water your plants. Let the top inch of soil dry out completely between waterings. This eliminates the damp conditions the gnats need to reproduce. Alternatively, switch to bottom watering by placing pots in a tray of water and letting the roots draw moisture upward while the surface stays dry.
For a physical barrier, cover the soil with about an inch of coarse sand or fine gravel. This keeps the surface dry and makes it unattractive for egg-laying. You can also use yellow sticky traps near your plants to catch adults and monitor how the population is trending.
For a biological treatment, products containing Bti (a naturally occurring soil bacterium toxic to gnat larvae but safe for plants, pets, and people) can be mixed into your watering routine. Apply with enough water to filter through the soil and reach the larvae. Bti doesn’t affect eggs, pupae, or adults, so you’ll need several applications spaced five to seven days apart to catch each new batch of larvae as they hatch. Expect three to four weeks of modified watering and soil treatment before the gnats are fully under control.
Pantry Moths and Clothes Moths
Indian meal moths in the kitchen mean something in your pantry is infested. Inspect every package of flour, cereal, rice, dried pasta, nuts, dried fruit, pet food, and birdseed. Look for small caterpillars, webbing, or tiny worm-like larvae. Throw away anything infested, even if it’s mostly full. Vacuum the pantry shelves thoroughly, paying attention to cracks and corners, then wipe them down. Store all dry goods in airtight glass or hard plastic containers going forward.
Clothes moths are trickier because the damage happens out of sight. The larvae, not the adults, eat fabric. Check wool sweaters, blankets, scarves, and rugs, especially items that have been stored for a long time. Look underneath wool area rugs for larvae or irregular holes. Infested items can often be saved by laundering in hot water, dry cleaning, or freezing them for at least 72 hours. Vacuum closet floors and shelves regularly to remove eggs and larvae.
Keep Them From Coming Back
Once you’ve dealt with the immediate problem, a few preventive steps will keep flying insects from reestablishing. Start with your home’s exterior. Gaps as small as 1/16 of an inch under doors are enough for insects to slip through. Install door sweeps on all exterior doors, and while lying on the floor, check for any light coming through underneath. If you see light, bugs can get in.
Repair any tears or gaps in window and door screens. Standard mesh screening blocks most flies, gnats, and mosquitoes effectively. Seal gaps around utility openings where pipes and wires enter your home’s foundation, including outdoor faucets, dryer vents, gas meters, and cable lines. Use silicone caulk for narrow cracks around windows and door frames. For larger gaps, urethane expanding foam, steel wool, or copper mesh all work well.
Sliding glass doors often have gaps along the bottom track that you can seal with 1/2 to 3/4 inch foam weatherstripping. Garage doors should have a rubber bottom seal (vinyl gets stiff and gaps in cold weather). Attic, roof, and crawl space vents should be covered with 1/4 inch wire mesh to block larger pests as well.
Natural Repellents That Actually Work
Several essential oils have demonstrated real insect-repellent properties in lab studies, though they work best as a supplement to the source-elimination steps above. Peppermint oil is one of the strongest: it both repels and kills mosquitoes on contact, and shows significant larvicidal activity. Thyme oil has proven highly effective against houseflies. Eucalyptus and lemon eucalyptus oils repel a broad range of biting insects, and the hydrosol (a milder water-based form) provides several hours of protection while being gentler around children and pets.
To use them indoors, add 10 to 15 drops of oil to a spray bottle of water with a small amount of dish soap to help it mix, and spray near entry points, windowsills, and problem areas. You can also place a few drops on cotton balls near drains or fruit bowls. These won’t eliminate an active infestation, but they can discourage new insects from settling in and make your home less inviting to whatever wanders in through an open door.