Are Fruit Flies Attracted to Light? Blue Light, UV and Light Traps

Fruit flies are attracted to light to some degree. In laboratory studies they tend to fly toward light, and they respond strongly to ultraviolet and blue wavelengths. But light is not what brings them into your kitchen or keeps them there. Fruit flies follow the smell of ripe and fermenting food, and they breed wherever that food sits. That is why bait traps beat light traps for fruit flies, and why removing the breeding source matters far more than changing your bulbs.

Why are fruit flies drawn to light?

Many insects, including fruit flies, show phototaxis, an instinct to move toward or away from light. Fruit flies are a classic laboratory animal, and researchers have long used their attraction to light to study vision and behavior. In a home, this is why you see them gathering on windows, flying up toward a lit range hood or landing on a bright screen. It explains where they rest. It does not explain why you have them.

What color light attracts fruit flies most?

Fruit fly eyes are most sensitive to ultraviolet, blue and green light, so those wavelengths draw the strongest response. Warm yellow and red light draws less attention from most small flies. In practice the color of your kitchen bulbs makes little difference to a fruit fly problem, because flies already inside will find food by smell whatever the lighting.

Are fruit flies attracted to blue light?

Yes, more than to warm light. Blue light sits within the range fruit fly eyes are most sensitive to, along with ultraviolet. That does not make a blue light a good fruit fly trap. Fruit flies go looking for fermenting food by smell, which is why extension guides recommend scented bait traps rather than light traps.

Do light traps work on fruit flies?

Not well on their own. UV light traps and bug zappers are designed mainly for larger flying insects such as house flies. UC IPM notes that UV light traps can help with house flies indoors where they are not competing with daylight, and warns never to use a bug zapper near food preparation areas, because insects can burst and scatter body parts. For fruit flies, extension entomologists recommend bait traps instead.

Some indoor plug-in traps combine a light with a sticky card, and they catch a mix of small flies and gnats. They can help you monitor numbers, but they will not end an infestation while flies are still breeding.

What actually attracts fruit flies?

The University of Kentucky fruit fly fact sheet says fruit flies are attracted to ripened or fermenting fruits and vegetables, and that they also breed in drains, garbage disposals, empty bottles and cans, trash containers, mops and cleaning rags. All they need is a moist film of fermenting material. University of Maryland Extension adds that wine, beer, fruit juice and vinegar attract them, and that the whole life cycle takes 8 to 10 days.

  • Ripe bananas, tomatoes, onions, potatoes and other produce left on the counter
  • Recycling bins with unrinsed bottles and cans
  • Trash cans and garbage disposals
  • Spilled juice, soda, wine or beer
  • Damp mops, sponges and rags
  • Slow or dirty drains

If the small flies are fuzzy and resting on bathroom walls rather than near food, they may be drain flies. See drain flies vs fruit flies.

How to get rid of fruit flies

  1. Find and remove breeding sites. The University of Kentucky says that unless breeding sites are removed or cleaned, the problem will continue no matter how often you spray. Throw out overripe produce, take out trash and recycling, and clean the bins.
  2. Check drains and the disposal. Kentucky suggests taping a clear plastic bag over a drain or disposal overnight. Flies emerging there will be caught in the bag. Scrub any drain that traps flies.
  3. Refrigerate ripe produce until the flies are gone.
  4. Set bait traps. UMD describes a jar with apple cider vinegar and a drop of dish soap, covered with plastic wrap that has a small hole poked in it. Kentucky describes a jar with a paper funnel baited with a few ounces of cider vinegar or a slice of banana. Put traps where you see flies. Out of vinegar? See how to make a fruit fly trap without vinegar.
  5. Use a spray only as a last step. Kentucky says a pyrethrum-based aerosol can be used to kill remaining adults after the source is eliminated. Follow the label, and keep it away from food.

Skip bleach down the drain. It is not an effective breeding-site treatment. See does bleach kill fruit flies.

Will turning off the lights get rid of fruit flies?

No. Fruit flies may be less active in the dark, but they keep breeding in the food and drains they came from. Use light only to your advantage: a trap placed near a sunny window where flies gather will catch more of them, as long as it is baited.

FAQ

Are fruit flies attracted to UV light?

Yes, they can see and respond to ultraviolet light. For fruit flies, though, extension guides recommend vinegar or fruit bait traps, because the smell of fermenting food is what draws them in.

Why are fruit flies on my window?

They are drawn to the light, and windows are a natural resting place. The breeding source is usually nearby in the kitchen, trash or recycling.

Are fruit flies attracted to LED lights or phone screens?

They may land on bright screens and lights, but LED color and brightness have little effect on whether you have an infestation.

What is the best bait for a fruit fly trap?

Apple cider vinegar with a drop of dish soap, or a piece of overripe banana. Both mimic the fermenting food fruit flies look for.

Are fruit flies harmful?

They do not bite, but they land on garbage and spoiled food and then on fresh food and counters, so keep them under control. If you suddenly have many flies of any kind, see lots of flies in the house suddenly.

Sources

Leave a Comment