Fruit flies and gnats are different insects, though they’re easy to confuse when something tiny is buzzing around your kitchen. The quickest way to tell them apart: fruit flies are small, round, and tan-colored with distinctive red eyes, while gnats (typically fungus gnats indoors) are darker, slimmer, and look more like miniature mosquitoes with long dangling legs. Knowing which one you’re dealing with changes how you get rid of them.
How to Tell Them Apart by Sight
Fruit flies are roughly 2 to 4 mm long with a round, compact body shape similar to a tiny housefly. They’re beige, brown, or sometimes orangish, with a brownish head and darker abdomen. Their most recognizable feature is a pair of large red eyes, visible even without magnification. They have short legs that tuck close to their bodies.
Fungus gnats, the type most commonly found indoors, are black or dark gray with black eyes. Their bodies are elongated and narrow, and their legs are noticeably long and gangly, especially visible during flight. They range from about 1.5 mm to much larger depending on species, but the silhouette is the real giveaway: where a fruit fly looks stocky and compact, a gnat looks spindly and stretched out.
One reliable trick when you can’t get a close look: watch the legs. Fruit flies have short legs you barely notice. Gnats have long, dangling legs that trail visibly behind them in the air.
Where Each One Breeds
This is the most practical difference, because it tells you where to look for the source of an infestation.
Fruit flies breed in fermenting organic matter. Overripe bananas, a forgotten tomato, a sticky residue in your recycling bin, the drain where smoothie remnants sit, an open wine bottle. Anywhere sugary or fermented material is breaking down, fruit flies will find it and lay eggs. They’re drawn to kitchens, trash cans, and compost containers.
Fungus gnats breed in moist soil. If you have houseplants, that’s almost certainly the source. The larvae feed on fungi and organic matter in potting mix, and they thrive when soil stays consistently damp. Overwatered plants are the classic breeding ground. You’ll often see adult gnats resting on the soil surface, running across potting mix, or hovering near the plant. They’re also found around compost piles and wet mulch.
How They Behave Indoors
Fruit flies are surprisingly strong, purposeful fliers. They hover around food sources and zip away quickly when you swat at them. You’ll typically find them congregating in the kitchen, near fruit bowls, near trash cans, or around sinks and drains where organic residue collects.
Fungus gnats are weak fliers by comparison. They don’t move around much indoors and tend to stay close to their breeding site, your potted plants. Because they’re attracted to light, you might first notice them drifting toward windows or lamp fixtures. They won’t bother your food, and they don’t bite. Their presence is purely a nuisance. The real damage, if any, comes from larvae feeding on plant roots in heavily infested soil.
Getting Rid of Fruit Flies
The first step is finding and removing the food source. Toss overripe fruit, clean sticky residues from countertops and recycling bins, and pour boiling water or a baking soda solution down drains where organic buildup might be hiding. Without a breeding source, the population collapses within days since adult fruit flies only live about a week or two.
To catch the adults already flying around, a simple vinegar trap works well. Pour about a quarter cup of apple cider vinegar into a jar and add a few drops of liquid dish soap. The vinegar’s fermented smell attracts the flies, and the soap breaks the surface tension so they sink instead of landing and flying away. You can cover the jar with plastic wrap (poke a few small holes with a fork) or roll a piece of paper into a cone and insert it into the jar opening, narrow end down. Both designs let flies in but make it hard for them to escape. The dregs of a wine bottle with a squirt of dish soap work just as well.
Getting Rid of Fungus Gnats
Since fungus gnats breed in soil, the fix centers on your watering habits. Let the top inch or two of potting soil dry out completely between waterings. Gnat larvae need consistent moisture to survive, and drying the soil surface kills them off. For heavily infested plants, bottom watering (filling the saucer and letting the plant absorb water from below) keeps the top layer dry while still hydrating roots.
Yellow sticky traps placed near the soil surface catch adults effectively. You can also cover the soil surface with a half-inch layer of sand or decorative pebbles, which prevents adults from reaching the soil to lay eggs. For persistent infestations, a soil drench with a biological larvicide containing a naturally occurring bacteria (sold at most garden centers) kills larvae without harming plants.
Other Tiny Flies You Might Be Seeing
Not every small fly in your home is a fruit fly or a fungus gnat. Two other species commonly show up indoors and get lumped into the “gnat” category.
Drain flies are fuzzy, moth-like flies with broad, leaf-shaped wings. They’re usually found near bathroom or kitchen drains where organic sludge builds up inside pipes. They rest on walls near the drain with their wings held flat, looking almost like tiny moths. Cleaning the drain with a stiff brush or enzyme-based drain cleaner eliminates their breeding site.
Phorid flies are about 3 mm long with a distinctive humped back when viewed from the side. Their most telling behavior: they prefer running erratically across surfaces rather than flying, earning them the nickname “scuttle flies.” They lack the red eyes of fruit flies and have noticeably flat, enlarged hind legs. Phorid flies breed in decaying organic matter, sometimes in places that are hard to find, like a forgotten potato in the back of a pantry, a dead animal in a wall void, or broken drain lines. If you’re seeing small flies that seem to run more than they fly, you’re likely dealing with phorid flies rather than fruit flies or gnats.
Quick Comparison
- Body shape: Fruit flies are round and compact. Fungus gnats are slim with long trailing legs.
- Color: Fruit flies are tan, brown, or orange. Fungus gnats are black or dark gray.
- Eyes: Fruit flies have large red eyes. Fungus gnats have small black eyes.
- Found near: Fruit flies hover around ripe fruit, drains, and trash. Fungus gnats stay near houseplants and windows.
- Breeding site: Fruit flies lay eggs in fermenting food. Fungus gnats lay eggs in moist potting soil.
- Flight style: Fruit flies are quick and agile. Fungus gnats are weak, slow fliers that stay close to plants.
- Best trap: Apple cider vinegar with dish soap for fruit flies. Yellow sticky traps and dry soil for fungus gnats.