How to Get Rid of Fruit Flies

Lemon and Cloves, Basil and Mint: What the Evidence Really Says

The kitchen-shelf repellents people swear by — what the evidence says.

A lemon bristling with cloves on the kitchen table, a pot of basil by the window, a sprig of mint in a jar — these are among the oldest home remedies for keeping flies at bay, passed down long before anyone reached for a spray. They are charming, harmless, and pleasant to have around. But do they actually work against fruit flies? The honest answer is: a little, and only as a repellent. Here is what the evidence supports and what it does not.

A lemon studded with whole cloves, a natural scent-based deterrent whose aroma fruit flies dislike
Photo: Tarasna0922

In short

Lemon and cloves
A traditional deterrent; the strong aroma may put some flies off
Basil and mint
Aromatic herbs that can help repel, not remove
Evidence
Points to mild repellence, not elimination
Their real value
A supportive, pleasant layer after cleaning and trapping
What they can't do
Kill larvae or clear an active infestation

The clove-studded lemon: an old favourite

Push a couple of dozen whole cloves into a fresh lemon and set it out, and you have a classic anti-fly folk remedy. There is a plausible reason it might help: both cloves and lemon peel are rich in strong-smelling volatile compounds, and fruit flies, which live by their sense of smell, tend to avoid overpowering aromas. As a gentle deterrent that also freshens a room, it has a real if modest place.

What it will not do is empty your kitchen of flies. The scent may discourage a few adults from settling nearby, but it does nothing to the eggs and larvae developing in a drain, a bin, or under the fruit bowl. A single female lays several hundred eggs, and no amount of clove aroma reaches them. So enjoy the lemon for what it is — a pleasant repellent — and rely on the methods in our natural remedies overview to do the actual clearing.

Tip: A clove-lemon dries out and loses its punch within a few days. Refresh it regularly, or it becomes decoration rather than deterrent — and a very overripe lemon can even start attracting flies itself.

Basil, mint and other kitchen herbs

Fresh aromatic herbs are the tastier cousins of essential oils, and they work on the same principle: strong scent as a mild deterrent.

  • Basil — a living pot on the windowsill releases a green, peppery aroma many insects avoid, and you get herbs for cooking.
  • Mint — cool and pungent; a bunch in a jar or a growing pot near the door may discourage flies from gathering.
  • Bay, rosemary and lemongrass — other strongly scented herbs sometimes used the same way, with similar modest effect.

These overlap closely with the concentrated oils covered in essential oils for fruit flies. The living-plant versions are gentler and safer around pets and food than concentrated oils, though also weaker. Either way, the ceiling is the same: repellence, not removal.

What the evidence actually shows

Strip away the folklore and the picture is consistent. Studies and extension guidance point to some plant aromas having a genuine repellent or deterrent effect on small flies, which is why these remedies persist. But the same guidance is clear that scent-based methods do not eliminate an infestation, because they cannot reach or kill the immature stages. In short: the evidence supports "repel a bit," not "get rid of."

The key distinction: Repelling means discouraging some adults from an area. Eliminating means removing the breeding source and killing the young. Lemon, cloves and herbs do the first; only cleaning and trapping do the second.

Repel versus eliminate — a quick comparison

MethodRepels adults?Removes breeding source?Clears infestation?
Clove-studded lemonSomewhatNoNo
Basil / mintSomewhatNoNo
Vinegar + soap trapAttracts & drownsNoNot alone
Deep cleanYesThe decisive step

The kernel of truth behind the folklore

These remedies did not survive for generations by accident. Before refrigeration and sealed bins, a strongly scented lemon or a pot of herbs was a sensible way to make a larder a touch less inviting to insects, and it partly worked. Fruit flies hunt by smell, so masking or competing with the fermenting aromas they seek can nudge a few away from an area. That is a real, if small, effect — and it explains why the clove-lemon has outlasted so many other kitchen superstitions.

Where the folklore goes wrong is in the leap from "makes the air less appealing" to "gets rid of the flies." The insects you see are only the visible tip of the population; the eggs and larvae are hidden in moisture and food residue that no windowsill herb can reach. A pot of basil cannot scrub a drain, and a clove-lemon cannot empty a bin. So the tradition is worth keeping for its modest deterrent value and its pleasant smell — just not as your main line of defence.

How to use these remedies well

  1. Do the real work first. Remove the breeding source and set traps, then add herbs and clove-lemons as a finishing layer.
  2. Place them at entry points. Windowsills, doorways, and near the bin are where a deterrent scent earns its keep.
  3. Keep them fresh. Replace clove-lemons and cut herbs as they fade; grow living pots for a steadier aroma.
  4. Do not rely on them alone. If flies persist, the source is still there — go back to cleaning, not more herbs.

The full picture

Lemon, cloves and herbs are a lovely, low-effort supporting act — but supporting is the operative word. To genuinely clear fruit flies, find the nursery with the source-finding guide, scrub it out following the deep-clean walkthrough, catch the adults with an apple cider vinegar trap, and knock down any swarm using the vacuum method. Then let a clove-lemon and a pot of basil help keep casual visitors away as part of your everyday kitchen habits. If you are not certain the insects are even fruit flies, an identifier tool will tell you before you rearrange the herb garden. For the complete strategy, return to the removal hub.

Bottom line: A clove-studded lemon and fresh basil can nudge fruit flies away, but they never remove them. Use them to garnish a plan built on cleaning and trapping — not to replace it.

Sources

Keep them gone for good

Once the flies are gone, the next step is stopping new ones from coming in.