Preventing Fruit Flies

Keeping Fruit Flies Out of Your Drinks

Al fresco dining and sweet drinks — simple ways to protect your glass.

There are few small indignities quite like fishing a fruit fly out of a nice glass of wine. To a fruit fly, your drink is irresistible: anything sweet or fermenting is exactly what its senses are tuned to find. You can't switch off their attraction, but with a few easy habits — a cover here, a lid there, and some sensible placement — you can keep your glass to yourself, indoors and out.

⚡ Quick answer

Keep fruit flies out of your drinks by covering every glass, can and bottle, since the sweet, fermenting smell is exactly what draws them. Use lids, drink covers or a beer mat over the top, pour from sealed containers, and wipe spills immediately. Outdoors, move away from bins and fallen fruit and check the glass before each sip.

A corked carafe and glass of orange juice on a table, drinks kept covered to keep fruit flies out
Photo: Shixart1985

In short

Why they dive in
Sweet and fermenting drinks are a fruit fly's top attraction
Worst offenders
Wine, beer, cider, fruit juice, soda and cocktails
Best defence
Cover the glass whenever you're not drinking from it
Outdoors
Covers, cans with lids and keeping drinks away from bins and fruit
Bigger picture
If they're everywhere, you have a source to clear, not just a drink to cover

Why drinks are irresistible to fruit flies

Fruit flies live and breed on fermenting sugars, and their sense of smell is built to home in on precisely that. Wine, beer and cider are literally the product of fermentation; fruit juice, soda and cocktails are loaded with the sweet compounds flies associate with a ripe meal. That's why a glass left on the table draws them within minutes, and it's the same reason those liquids make such effective trap baits — the appeal is covered in the best bait for fruit flies and, for the boozy ones specifically, in fruit flies in wine and beer. In other words, your drink and a fruit fly trap are chemically almost the same thing — the only difference is that you'd rather they didn't visit.

Because the attraction is baked into the drink, the trick isn't to make the drink less appealing but to put a barrier between it and the flies whenever you're not actively sipping.

Simple covers that work

The single most effective habit is to keep the glass covered. A fruit fly can't dive into what it can't reach, and covering takes a second.

Tip: For hot drinks, a mug lid does double duty — it keeps the coffee warm and stops a fly landing in the sweet, milky surface. Sugary coffee and tea dregs are a favourite, so don't leave a half-finished mug uncovered for long.

Protecting drinks outdoors

Al fresco is where drinks and fruit flies collide most, especially in late summer. Gardens, patios and picnic tables put your glass right next to the things flies breed in — windfall fruit, warm bins and compost — so a few extra precautions pay off.

  1. Cover everything by default. Use drink covers, tuck a coaster on top, or choose bottles and cans with resealable lids so you're not leaving open glasses out.
  2. Keep cans lidded. A can is a fruit fly hazard because one can crawl inside unseen — pop a can cover on, or pour into a covered glass.
  3. Site the drinks table away from lures. Set up well clear of the bin, the compost, and any bowl of ripe fruit, all of which draw a crowd of flies you'd rather not host near the drinks.
  4. Clear empties promptly. Don't let finished glasses and bottles sit on the table sweetening in the sun — take them in, as sticky empties become a magnet fast.
  5. Set a decoy trap. Stand an apple cider vinegar trap a few metres away to pull flies toward it and away from the table.

Watch out: Never drink from a can or bottle you've left standing open and unattended outdoors — a fruit fly (or worse, a wasp) may have got inside. Pour into a glass you can see into, or cover the opening while it sits.

If a fly gets in the glass

It happens. A single fruit fly in your drink is unpleasant but not dangerous — they aren't known carriers of serious human disease, so you don't need to panic about a sip. That said, they can mechanically pick up bacteria from a drain or rotting matter, so the sensible move is simply to fish it out and, if you'd rather, pour a fresh glass. There's no need to throw out a whole bottle over one fly; the honest, measured take on their health risk is set out in are fruit flies harmful?

When it's more than the odd fly

Covering your glass solves the immediate annoyance, but if fruit flies are constantly dive-bombing every drink you pour, that's a signal of a breeding source somewhere nearby, not just bad luck. A drink is a lure; a swarm is a symptom. In that case, protecting the glass is only half the job — you also need to find and clear what they're breeding in, whether that's the fruit bowl, the bin, the recycling or a drain. Work through how to find the breeding source and follow up with the everyday kitchen habits that help.

For the occasional intruder, though, the fix really is as simple as it sounds: cover the glass when you're not drinking, keep cans and bottles sealed, site your drinks away from bins and ripe fruit, and clear empties promptly. Do that and you can enjoy a glass in peace — indoors or in the garden. Round out your defences from the prevention hub.

Sources

Already have them?

If an infestation is under way, acting fast helps.