Plants That Kill Fruit Flies and How to Use Them
In this article
No common houseplant kills fruit flies on its own. The plants people mean are the ones whose scent repels the flies or whose leaves can be turned into a simple trap, and the most reliable of these is basil, followed by mint, lemongrass and lavender. A pot of basil on the counter will not clear an infestation, but it helps keep flies away from fruit, and a basil or mint leaf dropped into a jar of cider vinegar makes a trap that catches them.
For a quick test, put about 1/4 cup (60 ml) of apple cider vinegar in a small glass jar, add a drop of dish soap, and set it beside the fruit bowl. If flies gather within a day, the plant is only part of the answer and you need to find where they are breeding.
Which Plants Actually Repel Fruit Flies?
Fruit flies are drawn to ripe, fermenting fruit and to damp organic matter, so the plants that help are the strongly scented ones. The effect is modest and works best as a barrier around fruit rather than as a cure.
- Basil is the strongest choice. It grows well in a sunny kitchen window, and a healthy pot gives off enough scent to make a small area less attractive to flies. Pinch off flower buds to keep the leaves coming.
- Mint is nearly as useful and spreads fast, so keep it in its own pot. It needs sun and steady water.
- Lemongrass has a citrus smell flies avoid. It wants full sun and warmth and is usually grown as an annual in cooler zones.
- Lavender works as a dried bundle near a fruit bowl. The plant itself needs full sun and very well-drained soil, which makes it a poor fit for a dim kitchen.
- Rosemary and thyme are mild repellents. A small pot near the sink is easy to keep, but do not expect much from it.
None of these plants is toxic to people in normal kitchen use, but mint, basil and lavender should be kept out of reach of pets that chew plants, and any plant you bring home should be checked against a pet-toxicity list if you have a cat or dog that nibbles leaves.
How Do You Turn a Plant Into a Fruit Fly Trap?
The plant supplies the scent; the trap supplies the catch. A leaf-based trap is the fastest way to use what you already have growing.
- Crush 3 to 4 fresh basil or mint leaves between your fingers and drop them into a small jar.
- Add 1/4 cup (60 ml) of apple cider vinegar and 2 to 3 drops of liquid dish soap. The soap breaks the surface tension so flies that land sink instead of floating.
- Set the jar next to the fruit bowl or wherever the flies gather. Skip a lid; the open jar works better than a covered one for a small kitchen.
- Empty and refill the jar every 2 to 3 days, or sooner if it fills with flies. Old traps start to smell and stop working.
Keep the jar out of reach of children and pets. Vinegar is harmless in small amounts but the jar is a spill waiting to happen on a counter edge.
A Sticky Leaf Card for Windowsills
Hang a yellow sticky card near the pot, about 2 inches (5 cm) above the rim. Fruit flies are drawn to yellow, and the card catches the ones the plant's scent pushes away. Replace the card when it is covered or after about 4 weeks, whichever comes first.
Why the Plant Alone Rarely Fixes the Problem
Repellent plants push flies away from one spot; they do not stop the flies from breeding somewhere else in the kitchen. A single overripe banana can produce a steady supply of new flies that outpaces any pot of basil.
Work through the likely breeding spots in this order:
- Ripe or bruised fruit on the counter. Refrigerate what is ripe, or move it into the fridge once it is soft.
- The kitchen bin, especially if the bag is more than a few days old. Take it out daily while you have flies.
- Recycling bins with juice residue. Rinse bottles and cans before they go in.
- Damp dishcloths, mop heads and sponges. Wash and dry them, and replace sponges that stay wet.
- Houseplant soil that stays soggy. Let the top inch (2.5 cm) of soil dry between waterings, and empty water from saucers.
- Slow or clogged drains, where organic film collects. A drain brush and hot water once a week helps.
Signs you still have a breeding site: flies reappear within 2 days of clearing a trap, they cluster in one corner, or you see them rising from a drain or bin when you move it. That is the spot to clean, not another plant to buy.
Where Should You Put the Plant for the Best Effect?
Place repellent plants between the flies and the fruit, not across the room. A pot of basil at the edge of the fruit bowl does more than the same pot on a far windowsill.
A simple rule: one healthy 6-inch (15 cm) pot per fruit bowl, set within about 12 inches (30 cm) of it. Keep the plant in bright light, water when the top inch (2.5 cm) of soil is dry, and pinch off flowers so the leaves stay fragrant. In winter, a sunny south or west window keeps basil going; if the plant gets leggy and pale, the scent fades and so does the effect.
Do not spray the plants with insecticide indoors to deal with flies. Keep food covered, use the vinegar trap, and clean the breeding spots instead.
Do Repellent Plants Work in a Compost or Outdoor Bin Area?
Outdoors, the same plants help a little around a patio bin or compost bucket but will not control flies on their own. Keep lids tight, bury food scraps in compost rather than leaving them on top, and set a vinegar trap a few feet away from the seating area so you are not drawing flies toward people.
For a porch or patio, lemongrass and lavender in large pots near the door are the most practical. Both want full sun and good drainage, and neither survives a hard freeze, so plan to replace them each year in cold zones.
How Long Does It Take to See Fewer Flies?
With a trap set and the breeding spots cleaned, most kitchens see a clear drop within 3 to 5 days, because the flies already in the room live only a short time. If flies are still steady after a week, something is still wet and food-covered; check the drain, the bin liner and any forgotten fruit in a bag or behind the toaster.
Which Plant Should You Skip?
Skip anything sold as a carnivorous plant for fruit flies. Small sundews and butterworts do catch flies, but they need distilled water, constant moisture and strong light, and they catch far too few to matter in a kitchen. They are also easy to kill with tap water and dry air.
Skip, too, any plant you cannot keep alive in your light. A struggling plant gives off little scent, so a healthy basil on a bright sill beats a wilting lemongrass in a dim corner every time.