AjapaReporter

Home life · Updated

How to Get Rid of Small Black Flies in House

Time it takes30 min
Steps6in the list below
LevelEasyno special skills
Official sourceUniversity Extension Servicescheck it for changes

Quick answer To get rid of small black flies in your house, find and remove their breeding source (usually overripe fruit, damp organic matter, or houseplant soil), then use traps and preventive measures to stop them returning.

Small black flies in the house are almost always one of two pests: fruit flies (Drosophila) or fungus gnats. Fruit flies hover around kitchen counters, trash bins, and fruit bowls; fungus gnats are weak fliers that stay near houseplant pots and windows. The fix is the same in principle: remove the food or moisture source, kill the adults, and break the breeding cycle. This guide walks you through locating the source, eliminating it, and setting up simple traps—no harsh chemicals needed.

What You’ll Need

  • Apple cider vinegar or red wine vinegar
  • Dish soap
  • Small bowls or jars
  • Plastic wrap (optional) and a rubber band
  • Sticky tape or flypaper strips
  • Rubbing alcohol (isopropyl) or a mild soapy water spray
  • Fine mesh or a cloth for covering drains (if needed)
  • Potting soil and a small pot (if repotting plants)
  • Clean cloths and a spray bottle

Step-by-Step

  1. Identify the type of fly. Look closely at the flies. Fruit flies are tan or brown with red eyes and are about 1/8 inch long; they tend to hover in the air. Fungus gnats are darker, almost black, with long legs and antennae, and they crawl on soil or fly slowly near windows. This tells you where to focus.
  2. Find and remove the breeding source. Fruit flies breed in fermenting organic matter: overripe fruit, spilled juice, empty cans, trash, or a garbage disposal. Fungus gnats breed in moist soil of overwatered houseplants. Check every room—especially the kitchen, pantry, and any plant areas. Throw away any rotting produce, take out the trash, wipe down counters and shelves, and clean the drain with hot water and a brush. For plants, stop watering until the top 2 inches of soil dry out.
  3. Clean thoroughly. Vacuum or wipe up any residue, crumbs, or sticky spots. Pay attention to the undersides of counters, the back of the fridge, and the area around the sink. Empty and clean recycling bins. For fungus gnats, scrape off the top 1–2 inches of soil from each pot and replace with fresh, dry potting mix.
  4. Set up vinegar traps. Fill a small bowl or jar with about 1 inch of apple cider vinegar (or red wine vinegar). Add 2–3 drops of dish soap and stir gently—the soap breaks the surface tension so flies sink. Cover the top with plastic wrap, poke a few small holes, and place near the source. Replace the trap every 2–3 days. You can also use a narrow-necked bottle without the wrap.
  5. Use sticky traps for fungus gnats. For fungus gnats, place yellow sticky traps (or homemade tape strips) near the base of affected plants and in windows. These catch adults and help you monitor the problem. For fruit flies, you can also hang flypaper strips near the kitchen.
  6. Prevent re-infestation. Store fruit in the fridge or in sealed containers. Take out trash regularly and keep bins covered. Clean drains weekly by pouring boiling water down them. For houseplants, let the soil dry out between waterings and avoid leaving standing water in saucers. Consider watering from the bottom to keep the topsoil dry.

Common Mistakes

  • Only killing adults, not the source. If you just swat flies or use traps without removing the breeding site, new flies will keep emerging.
  • Overwatering plants. Fungus gnats thrive in constantly moist soil. If you keep watering on a schedule without checking soil dryness, they’ll never go away.
  • Using bleach in drains. Bleach can be harsh and may not remove the organic film that fruit flies breed in. Hot water and a brush are more effective.
  • Leaving dirty dishes or open drinks. Even a small amount of leftover soda or wine can attract flies.
  • Forgetting the garbage disposal. Food particles inside the disposal are a prime breeding spot. Clean it with ice and salt or a baking soda scrub.

Tips

  • If you can’t find the source, place a vinegar trap near each potential area and see which one catches the most flies—that’s your hotspot.
  • For fruit flies, try the “funnel method”: roll a piece of paper into a cone and insert it into a jar with vinegar. The flies can get in but can’t get out.
  • For fungus gnats, place a 1-inch layer of sand or gravel on top of the soil to prevent adults from laying eggs.
  • Take out the compost bin more often if you keep one indoors.
  • Keep windows and doors screened to prevent new flies from entering.

Troubleshooting

If the flies persist after a few days, you may have missed a hidden source. Check these often-overlooked spots:

  • Under appliances. Move the fridge, microwave, or toaster and clean any spills underneath.
  • Inside trash cans. Even with a liner, residue can accumulate. Wash the can with soapy water.
  • Near drains. Pour boiling water down the sink and bathtub drains, then scrub the sides with a stiff brush.
  • In pantry items. Check for overripe onions, potatoes, or garlic that may be rotting.
  • Plant saucers. If you have standing water in saucers, empty them immediately.

If you’ve done all this and still see flies, they may be coming from outside or from a neighbor’s unit. Seal cracks around windows and doors, and consider using a fan to keep air moving—flies are weak fliers and avoid drafts.

Frequently Asked Questions

How long does it take to get rid of small black flies?

Usually 3–7 days. Once you remove the breeding source, the adults die within a few days, and traps catch the rest. Fungus gnats may take longer if you have many plants.

Are these flies harmful?

No. Fruit flies and fungus gnats are nuisance pests; they don’t bite or damage structures. They can, however, spread bacteria from dirty surfaces to food, so it’s best to eliminate them.

Why do I keep getting fruit flies even though I don’t have fruit out?

They may be breeding in a drain, a damp sponge, a recycling bin, or even a forgotten piece of produce in a cabinet. Clean all potential sources thoroughly.

What is the best homemade trap for fruit flies?

A bowl of apple cider vinegar with a drop of dish soap, covered with plastic wrap and poked with holes, is very effective. The smell attracts them, and they drown.

Can I use chemical sprays?

Yes, but they only kill adults and won’t solve the source. If you use a spray, choose one labeled for indoor use and follow the instructions. Always ventilate the area.

How do I prevent fungus gnats in the future?

Water plants only when the top inch of soil is dry, use well-draining soil, and avoid letting water sit in saucers. You can also add a layer of sand on top of the soil.

Sources: University Extension Services. Menus and buttons can differ slightly by version. Spotted something out of date? Tell us.