Skip to content
Grow In Backyard
Pest Control

What Smell Do Flies Hate the Most? Scent Is the Weak Part

Basil, mint, lavender and clove genuinely repel flies — briefly, and at close range. Why removing the attractant beats any scent, and what works outdoors.

By Zakaria 3 min read Save to Pinterest — opens Pinterest in a new tab
A housefly in profile on a sunlit wooden table top against blurred green foliage
Photo: Garuda, Pexels License, via Pexels
On this page

Clove, basil and peppermint are the real answers — and the honest version is that scent is the weakest tool in the box. An open bin beats any oil you can put next to it.

The scents, honestly ranked

What the evidence supports
ScentStrengthLasts
Clove (eugenol)Strongest of the groupHours
BasilModerateHours
PeppermintModerateHours, evaporates fast
LavenderMildHours
Eucalyptus, lemongrassMildHours
Rosemary, tansyWeak—
White vinegarNone worth using—
Apple cider vinegarAttracts — it is bait—

The catch applies to all of them equally. These are volatile oils: they work by being in the air right there, they evaporate within hours, and outdoors a breeze removes them almost as fast as you apply them. A scent cannot compete with a food source a metre away.

Essential oils and pets

Tea tree, eucalyptus, peppermint and citrus oils are toxic to cats, which cannot metabolise them the way people do. Diffusing them in a room a cat uses is not a neutral act. Never apply undiluted oils to skin, human or animal.

The plant version barely works

Basil, mint, lavender, rosemary and tansy get recommended constantly as “plants that repel flies”. The mechanism is real and the delivery is not: those oils are released when leaves are crushed or bruised, not by a plant sitting still.

A bruised handful of basil in a bowl outperforms the living plant next to it. Both are marginal.

What actually works

Remove the attractant. Flies come for decaying organic matter and food smell:

  • Lidded bins, rinsed — residue in the bottom is a breeding site, not just a smell
  • Clear pet waste promptly
  • No fallen fruit under trees
  • Cover dishes, clear plates, wipe the table
  • Compost with enough browns — a wet, nitrogen-heavy heap breeds flies

Then go physical:

  • A fan. Genuinely the most effective outdoor measure there is, and the least used — flies are poor fliers in moving air
  • Mesh domes over food, screens on doors and windows
  • Vinegar traps with a drop of washing-up liquid, placed well away from where you sit

A sudden swarm means a breeding site

Houseflies go from egg to adult in about a week in warm weather. A sudden increase is almost always something producing them nearby, not flies arriving from elsewhere:

  • A bin with residue in the base
  • Uncleared pet waste
  • A compost heap too wet and too rich in kitchen scraps
  • A dead animal in a wall, roof space or under decking — the one people miss
  • Organic film built up in a drain

Find it and the flies stop. Nothing you spray will match that.

Common questions

What smell do flies hate the most?

Clove, basil, peppermint, lavender, eucalyptus and lemongrass are the ones with the most support behind them, and clove is the single strongest of the group in laboratory work. The honest qualification is that all of them are weak, short-lived and effective only very close to the source — essential oils evaporate within hours, and a bin or a plate of food outcompetes any scent you can put beside it.

Do fly-repellent plants actually work?

Barely, as plants. Basil, mint, lavender, rosemary and tansy only release meaningful amounts of their volatile oils when the leaves are crushed or bruised, so a pot sitting undisturbed on a table does almost nothing. Crushing a handful of basil and leaving it in a bowl does more than the living plant beside it, and both are marginal compared with covering the food.

What actually keeps flies away outdoors?

Removing what draws them. Flies come for decaying organic matter and the smell of food, so lidded bins rinsed regularly, cleared pet waste, no fallen fruit, covered dishes and a wiped table do more than any repellent. After that, physical measures: a fan is remarkably effective because flies cannot fly well in moving air, and screens or mesh domes over food work absolutely rather than probabilistically.

Does vinegar keep flies away?

No — the opposite. Apple cider vinegar attracts flies, which is precisely why it is the standard bait in a homemade fly trap: a jar of vinegar with a drop of washing-up liquid to break the surface tension. White vinegar is sometimes suggested as a repellent and performs poorly. Use vinegar to trap flies away from where you sit, not to repel them from it.

How long does an essential oil repellent last?

A few hours at best, often less in sun or a breeze, which is the main practical limitation. Oils evaporate and oxidise, so a cotton pad or diffuser needs refreshing through the day, and an outdoor application is diluted by moving air almost immediately. Never apply undiluted oils to skin, and be careful around pets — tea tree, eucalyptus, peppermint and citrus oils are toxic to cats.

Why do I suddenly have a lot of flies?

A sudden increase almost always means a breeding site rather than an influx. Houseflies go from egg to adult in about a week in warm weather, so something nearby is producing them: a bin with residue in the bottom, uncleared pet waste, a compost heap with too much kitchen waste and not enough browns, a dead animal in a wall or roof space, or a drain with a build-up of organic film. Find the source and the flies stop.

Backyard Weekly

Know what to plant, week by week

Join the weekly email for seasonal jobs, fixes for what is going wrong, and gear worth buying.

Not ready to subscribe? The planting calendar is free and needs no email.

By subscribing you agree to our privacy policy. Grow In Backyard will never sell your address.