Small flies in your kitchen are almost certainly one of four species: fruit flies, drain flies, fungus gnats, or phorid flies. Each one breeds in a different spot, so identifying which you have is the fastest way to eliminate them. The good news is that all four can be controlled without professional pest treatment once you cut off their breeding source.
Which Small Fly Do You Have?
All four common kitchen flies are roughly 1/8 inch long, about the size of a sesame seed. But they look and behave differently enough that you can usually tell them apart just by watching them for a few seconds.
Fruit flies are the most common kitchen invader. They have brown-black bodies with distinctive red eyes (sometimes dark), and they hover in midair with quick, erratic movements. You’ll typically spot them circling a fruit bowl, near a trash can, or around anything fermented like vinegar, beer, or juice.
Drain flies look like tiny moths. Their bodies and oversized oval wings are covered in fine hair, and they hold their wings roof-like over their backs when resting. They’re weak fliers that move in short, sluggish hops and tend to rest on walls near sinks and drains. If you see small dark flies sitting motionless on your kitchen wall close to the sink, these are likely the culprit.
Fungus gnats resemble miniature mosquitoes, with slender black bodies, long legs, and long antennae. They stay close to the soil of potted plants and are drawn to light, so you’ll often find them hovering near a sunny window. If you have houseplants in or near your kitchen, these are a strong possibility.
Phorid flies are the trickiest to identify because they resemble fruit flies in size and shape. The key difference: phorid flies lack red eyes, have a noticeable hump on their upper back, and when disturbed, they run rapidly across surfaces rather than flying away. This “scuttling” behavior is their signature.
Where They’re Breeding
Killing the adults you see won’t solve the problem. Each species lays eggs in a specific environment, and the population will keep regenerating until you eliminate that breeding site.
Fruit flies lay eggs on ripe, fermenting, or decaying organic matter. A forgotten banana, a splash of juice in the recycling bin, a damp sponge, a dirty garbage disposal, even an empty beer bottle can host a new generation. A single female can lay up to 100 eggs per day, and at room temperature the entire life cycle from egg to flying adult takes just 10 to 12 days. That’s why a handful of fruit flies can become a swarm within two weeks.
Drain flies breed in the slimy biofilm and sludge that coats the inside of drainpipes. Eggs are laid on the surface of this moist organic buildup, and larvae live inside it. Kitchen sink drains, overflow holes, and garbage disposals are all common sites. If your drain hasn’t been deeply cleaned in a while, the organic layer inside the pipe may be thick enough to support a continuous population.
Fungus gnats breed exclusively in moist soil. Their larvae feed on fungi and decaying plant material in the top layer of potting mix. Overwatered houseplants are the classic source. You’ll rarely see fungus gnats far from a pot.
Phorid flies breed in moist, decaying organic matter of almost any kind: the lining of trash cans, rotting potatoes or onions stored in a cabinet, food that has dropped behind or under an appliance, dirty mop heads, and drain buildup. They can also breed in pet waste and compost bins. If you’re seeing phorid flies, it’s worth pulling out your stove and refrigerator to check for hidden food debris.
Getting Rid of Fruit Flies
Start by removing every possible breeding source. Throw out overripe produce, rinse recycling containers, clean your garbage disposal, empty and wash trash cans, and replace wet sponges and dishrags. Fruit flies don’t just eat fruit. They’re attracted to spilled juice, crumbs, fermented residues, and any organic film on surfaces. Wipe counters thoroughly and dry them.
While you’re cutting off breeding sites, a simple trap can knock down the adult population. Fill a small jar with about a quarter cup of apple cider vinegar and add a few drops of liquid dish soap. The vinegar’s fermented scent draws the flies in, and the soap breaks the surface tension of the liquid so they can’t land without sinking. Punch a few small holes in the lid or cover the jar with plastic wrap poked with tiny holes to let flies enter but make escape difficult. Place it near your fruit bowl or wherever you see the most activity.
Because the full life cycle is 10 to 12 days at typical kitchen temperatures, you’ll need to maintain clean conditions and keep traps out for at least two weeks to catch adults emerging from eggs and larvae already present when you started.
Getting Rid of Drain Flies
Drain flies require cleaning the inside of the pipe, not just running water down it. The slimy biofilm coating the drain walls is where larvae live, and simply pouring liquid through won’t remove it.
Start by flushing the drain with boiling water to kill eggs and larvae near the surface. For a deeper clean, pour half a cup of baking soda into the drain, follow it with a cup of vinegar, and let the mixture sit overnight. Flush with boiling water in the morning. A stiff drain brush pushed into the pipe and rotated can physically scrape away the biofilm layer that standard cleaning leaves behind.
Don’t overlook the overflow hole in your sink. These hidden channels trap moisture and organic matter and serve as a secondary breeding site that people rarely think to clean. A pipe cleaner or small bottle brush can reach inside.
Repeat this process every few days until you stop seeing new adults. Since drain flies are weak fliers that rest on nearby walls, a noticeable drop in wall-sitting flies is a good sign you’ve disrupted the breeding cycle.
Getting Rid of Fungus Gnats
The key with fungus gnats is treating both the larvae in the soil and the flying adults at the same time. Targeting only one stage lets the other keep the cycle going.
For larvae, let the top inch or two of soil dry out completely between waterings. Fungus gnat larvae need consistently moist conditions to survive, and drying the surface layer kills many of them. Be careful not to take this too far and damage your plants. A biological larvicide containing Bacillus thuringiensis israelensis (sold as Mosquito Bits or similar products) can be dissolved in your watering water. It’s a naturally occurring bacterium that kills larvae but is safe for plants, pets, and people.
For adults, yellow sticky traps placed at soil level near your plants are effective. Fungus gnats are drawn to the yellow color and get stuck on contact. These traps also help you monitor whether the population is declining. If you have plants sitting on your kitchen counter or windowsill, moving them to a less central location while you treat them keeps the gnats out of your cooking space.
Getting Rid of Phorid Flies
Phorid flies are often the hardest to eliminate because their breeding source can be hidden. They thrive on decaying organic matter in places you don’t regularly inspect: under the refrigerator, behind the stove, inside a trash can’s liner, in a forgotten bag of potatoes at the back of a pantry shelf.
The fix is detective work. Pull out appliances and check for food that has rolled underneath. Inspect stored potatoes, onions, and other root vegetables for soft spots or rot. Clean trash cans inside and out, including the underside of the lid. Check your drains using the same cleaning method described for drain flies. If you use a mop, inspect the mop head for decaying residue.
Once you find and remove the source, phorid flies disappear quickly because they don’t travel far from where they breed. If the population persists after thorough cleaning, the source may be in a harder-to-reach location like a broken drain line or sub-floor moisture problem, which may need professional inspection.
Preventing Small Flies From Coming Back
Most kitchen fly problems start with a lapse in one of these habits:
- Store produce properly. Keep ripe fruit in the refrigerator or in a sealed container. Fruit flies often enter your home as eggs already laid on produce at the store, so washing fruits and vegetables when you bring them home removes eggs before they hatch.
- Check stored root vegetables weekly. A single rotting potato or onion in a dark cabinet is enough to sustain a fly population for weeks.
- Take out trash frequently. Tie bags before removing them. Rinse the inside of your trash can periodically.
- Clean drains regularly. A monthly flush with boiling water prevents biofilm from building up to the point where it supports drain fly larvae.
- Eliminate standing moisture. Dry sinks after use when possible. Replace sponges and dishrags often. Don’t leave wet mops sitting in a bucket.
- Rinse recyclables. Empty bottles, cans, and juice containers are prime fruit fly breeding sites.
- Water houseplants carefully. Avoid keeping soil constantly soggy. If fungus gnats have been an issue before, a thin layer of sand or fine gravel on top of the soil discourages egg laying.
Small flies reproduce fast enough that a minor food source can become a visible infestation within two weeks. The flip side is that removing the source collapses the population just as quickly, since none of these species can sustain themselves in a clean, dry kitchen.