Everyday Cheapskate
  • Link to Pinterest
  • Link to Facebook
  • Link to X
  • Link to Instagram
  • Link to LinkedIn
  • Link to Rss this site
  • Link to Youtube
  • Start Here!
  • Home
  • About
  • Ask Mary
  • Articles
    • Automobiles
    • Best Inexpensive
    • Cleaning
    • Clothing and Accessories
    • Dear Mary …
    • DIY
    • Gifts
    • Emergency Preparedness
    • Food & Recipes
    • Health and Beauty
    • Holidays and Special Occasions
    • Home & Family
    • Kids and Babies
    • Laundry
    • Money and Finances
    • Outdoors and Garden
    • Pets
    • Repairs and Maintenance
    • Shopping
    • Travel and Entertainment
    • Miscellaneous
    • Trending
    • Gift Guides
    • Mary’s Perspective
  • Archive
  • Click to open the search input field Click to open the search input field Search
  • Menu Menu
Home / Home & Family / Fruit Flies Hate These 7 Plants (But You’ll Love Them)
how to keep fruit flies away from plants

Fruit Flies Hate These 7 Plants (But You’ll Love Them)

September 5, 2025/9 Comments/in Home & Family, Outdoors and Garden /by Mary Hunt

Fruit flies seem to have radar for ripe bananas and forgotten wine glasses, don’t they? Before you know it, your kitchen feels like it’s hosting a fruit fly convention. Instead of reaching for harsh sprays, try a simpler, natural fix: plants that repel fruit flies. Certain herbs and houseplants don’t just brighten up your space. They quietly get to work, sending those tiny pests packing.

how to keep fruit flies away from plants

Fruit flies may be tiny, but they reproduce like it’s their full-time job. A single female can lay hundreds of eggs in overripe fruit, drains, or even the bottom of your recycling bin. In just 10 days, those eggs can turn into a fresh swarm of adults, ready to take over your kitchen. No wonder it feels like they show up overnight.And here’s the kicker: you can scrub your counters, take out the trash, and still end up with an unwanted fruit fly reunion. They hitch rides on your groceries, and once they’re inside, they’ll sniff out even the tiniest bit of fermenting food.

Why Plants Are a Natural Way to Repel Fruit Flies

While fruit flies love sweet, decaying smells, they can’t stand strong, fragrant plants like basil, peppermint, and lavender. These plants release natural oils that are harmless to us but offensive to pests. Think of it as putting up a natural “keep out” sign.That’s why adding the right plants to your kitchen, patio, or garden can make such a difference. They pull double duty: pretty to look at, handy for cooking, and tough on fruit flies.So, ready to put those pests in their place? Here are 7 plants that can help you turn your home into a fruit-fly-free haven.

1. Basil: A Kitchen Favorite That Sends Flies Packing

plants that repel fruit flies basil plant caprese pesto margherita pizza

Basil isn’t just for pizza night or fresh summer pasta. It’s also one of the easiest ways to tell fruit flies (and even ants and mosquitoes) to buzz off. Those little pests can’t handle basil’s strong aroma, but lucky for us, it smells and tastes amazing.

You can grow basil indoors in a sunny kitchen window or outside in pots and garden beds. Just give it warm temps, partial shade, and well-drained soil. Pro tip: too much direct sun can scorch the leaves, so think “gentle sunshine.”

One more reason to love it: basil is safe for cats and dogs, so you don’t have to stress if a curious pet decides to nibble a leaf. And here’s the bonus: having basil within arm’s reach means you’re always ready for caprese salad, pesto, or tossing a handful into your favorite dish.

  • MORE: How to Propagate Basil and Make Fresh Homemade Pesto

2. Peppermint: Refreshing for You, Repelling for Pests

what repels fruit flies mint spearmint fresh herb watermelon salad mojito tiki cocktail tea iced

Most of us love the crisp, cool scent of peppermint. Fruit flies, not so much. In fact, it’s one smell that will send them buzzing in the opposite direction.

Mint is wonderfully easy to grow, whether you keep it on a sunny kitchen windowsill or plant it outside. Just know this: mint doesn’t exactly play well with others. Once it’s in the ground, it tends to sprawl and take over every inch of soil it can reach. The smarter approach? Plant it in containers where you can control the spread, then trim it often for a steady supply of lush, fragrant leaves.

That steady supply comes in handy. Fresh peppermint leaves can jazz up iced tea, brighten summer cocktails, or even soothe an upset stomach when steeped into tea. Just one caution: peppermint is toxic to cats and dogs, so if you’ve got curious pets, this may not be the plant for you.

3. Lavender: A Fragrant Barrier Against Fruit Flies

lavender repels fruit flies bunches sachets tea garnish

When it comes to distinctive scents, lavender may just take the crown. You’ll find it everywhere: soap, candles, detergents, even in baked goods. Many of us love its light, calming fragrance. Fruit flies? Not so much. They can’t stand it. In fact, lavender also discourages spiders, rodents, and even deer.

Lavender is typically grown outdoors, but it does well in containers that can be brought inside over the winter. It’s hardy, thrives in full sun, and prefers well-drained soil. Once it’s established, it’s tough to kill. If you’d like to harness its fly-repelling power indoors, cut bunches of dried lavender, tie them together, and hang them in your kitchen or pantry.

For an extra step, lavender essential oil can be mixed with water and spritzed around the house as a natural refresher. Not only does this repel fruit flies, but it can also double as a stress reliever, perfect for unwinding after a long day. Here’s one I like:

Majestic Pure Lavender Essential Oil with Glass Dropper
Majestic Pure Lavender Essential Oil with Glass Dropper
    $9.99
    Buy on Amazon

    A quick note: lavender is toxic to cats and dogs, so if you’ve got furry family members who like to nibble on plants, this might not be the best option for you.

    4. Rosemary: A Hardy Herb with Double Duty

    rosemary keeps fruit flies away garnish potatoes salmon steak cocktail gin

    Rosemary is one of those plants that works overtime. It’s easy to grow indoors or outside as long as it gets full sun and well-draining soil. A little water and attention, and it’ll thrive. Beyond keeping fruit flies at bay, rosemary is a kitchen all-star. You can snip a sprig to toss into roasted potatoes, homemade bread, or even a cocktail (yes, rosemary pairs beautifully with gin or lemonade).

    Place pots of rosemary near doorways, windows, or your patio table, and it acts like a natural bouncer for fruit flies, sending them away before they can sneak inside.

    One more bonus: rosemary is non-toxic to cats and dogs, so pet parents can breathe easy. And if you’re looking for a low-maintenance, practical plant that looks good, smells amazing, and earns its keep in both your kitchen and pest defense plan. This one’s a winner.

    5. Eucalyptus: Aromatic Oil That Drives Flies Away

    eucalyptus shower keep fruit flies away repel window shower

    Eucalyptus is one of those plants that smells like a spa but works like a bouncer. Its leaves are loaded with aromatic oils, long valued in cough drops, lozenges, and rubs for soothing sore throats, easing congestion, and even calming aches. A whiff of eucalyptus can be relaxing for us, but for fruit flies? It’s the exact opposite. They can’t stand it.

    Whether you grow eucalyptus outdoors or keep a potted plant indoors, its natural oils act as a strong deterrent. Give it a sunny spot with warm temps (65–75°F) and a little humidity, and it’ll thrive while quietly keeping pests at bay.

    Here’s a bonus tip: you can snip a few branches, hang them in your shower, and enjoy an at-home spa experience as the steam releases those invigorating oils. Just keep in mind, eucalyptus is toxic to cats and dogs, so if you’ve got furry friends, this may be one to admire from a distance.

    6. Venus Fly Trap: Nature’s Tiny Bug Catcher

    venus fly trap to repel fruit flies

    Technically, the Venus Fly Trap doesn’t repel fruit flies. It lures them in. This quirky little plant gives off a sweet smell, tricking flies into thinking they’ve stumbled on fresh flowers. The moment an unsuspecting fruit fly lands on its “trigger hairs,” snap! The trap closes, and suddenly your uninvited guest becomes dinner.

    Now, let’s be honest: a Venus Fly Trap isn’t going to wipe out an entire fruit fly army. But if you’ve got that one rogue flyer circling your kitchen like it owns the place, Venus is more than happy to handle it.

    Care is surprisingly simple. These plants do best in a sunny windowsill with acidic, well-draining soil. Because their roots grow deeper than you’d expect, choose a slightly taller container to keep them comfortable. And unlike some of the other plants on this list, Venus Fly Traps are non-toxic to cats and dogs, so you can let your furry friends sniff around without worry.

    Pro tip: If you’ve got kids or grandkids, a Venus Fly Trap can also double as a fun science experiment. Watching it snap shut never gets old, and it’s a great way to spark curiosity about nature.

    7. Clove Tree: Spice Up Your Defense Against Fruit Flies

    clove tree to repel fruit flies orange citrus apples dried

    Fruit flies may be stubborn little things, but they want nothing to do with cloves. Those warm, spicy-scented buds you sprinkle into marinades or holiday cider? They’re actually dried flower buds from the clove tree, harvested before they’ve had a chance to bloom.

    Growing your own clove tree takes a little patience. It prefers full sun, humidity, and temps above 50°F, but it can be done both outdoors and indoors if you’ve got the right spot. Once the buds turn pink (but before they open), you’ll harvest, dry, and have your very own homegrown supply.

    Here’s the fun part: once you’ve got cloves, you can put them to work as natural fruit fly repellents. Take an orange, lemon, or lime, poke 8–10 cloves into it, and leave it on display. Not only does it keep fruit flies at bay, but it also doubles as a fragrant, old-world air freshener. (An apple works too, though citrus tends to last longer.)

    Too much work to grow your own clove tree? Pick up a can of whole cloves at the supermarket or online. Cloves are on the list of items that can be toxic to cats and dogs though, so skip this if you have pets.

    Indian Spice Whole Cloves 1 lb
    Indian Spice Whole Cloves 1 lb
      $14.99
      Buy on Amazon

      Tips for Using Plants to Keep Your Home Fruit-Fly-Free

      The beauty of using plants to keep fruit flies away is that you’re solving a pesky problem without harsh chemicals and you’re making your home a little greener in the process. Keep in mind: no single plant is a magic shield. The real trick is consistency. Place repellent plants where fruit flies love to linger (near your fruit bowl, compost bin, or kitchen windows), give them the sunlight and care they need, and refresh your setup as needed

      Save $3.00 Ahopegarden Indoor Garden Hydroponics Growing System: 10 Pods Plant Germination Kit Herb Vegetable Growth Lamp Countertop with LED Grow Light - Hydrophonic Planter Grower Harvest Lettuce
      Ahopegarden Indoor Garden Hydroponics Growing...
      $59.99 $56.99
      Buy on Amazon
      D'vine Dev Herb Garden Planter Set, Plastic Plant Pots with Drainage and Saucer, Indoor Succulent Cactus Vegetable Pot for Windowsill, Garden Balcony, White, Set of 1, 76-V-A-1
      D'vine Dev Herb Garden Planter Set, Plastic Plant...
      $26.99
      Buy on Amazon

       

      Question: What’s your go-to trick for keeping fruit flies out of your kitchen? Plants, traps, or something else? Share in the comments below.


      EverydayCheapskate™ is reader-supported. We participate in the Amazon Services LLC Associates Program and other affiliate advertising programs, designed to provide a means for us to earn from qualifying purchases, at no cost to you.

      Print Friendly, PDF & Email

      More from Everyday Cheapskate

      a woman holding a crate of cucumbers

      Cucumbers Galore? Here’s What to Do With Every Single One

      https://www.everydaycheapskate.com/wp-content/uploads/20260717-a-woman-holding-a-crate-of-cucumbers.png 800 1200 Mary Hunt https://www.everydaycheapskate.com/wp-content/uploads/EC-Logo-by-Mary-Hunt-Tagline-Trimmed.png Mary Hunt2026-07-17 10:11:072026-07-17 10:13:44Cucumbers Galore? Here’s What to Do With Every Single One
      Best Coolers for Camping, Road Trips, and Beach Days

      Best Coolers for Camping, Road Trips, and Beach Days

      https://www.everydaycheapskate.com/wp-content/uploads/20260705-Best-Coolers-for-Camping-Road-Trips-and-Beach-Days.png 800 1200 Mary Hunt https://www.everydaycheapskate.com/wp-content/uploads/EC-Logo-by-Mary-Hunt-Tagline-Trimmed.png Mary Hunt2026-07-05 13:26:172026-07-05 13:26:17Best Coolers for Camping, Road Trips, and Beach Days
      how to keep a cooler cold

      How to Pack a Cooler That Stays Cold for 48 Hours

      https://www.everydaycheapskate.com/wp-content/uploads/20260705-how-to-keep-a-cooler-cold.png 800 1200 Mary Hunt https://www.everydaycheapskate.com/wp-content/uploads/EC-Logo-by-Mary-Hunt-Tagline-Trimmed.png Mary Hunt2026-07-05 13:19:502026-07-05 13:19:50How to Pack a Cooler That Stays Cold for 48 Hours
      home decor

      10 Everyday Items You Never Think to Wash (But Should)

      https://www.everydaycheapskate.com/wp-content/uploads/20260703-home-decor.png 800 1200 Mary Hunt https://www.everydaycheapskate.com/wp-content/uploads/EC-Logo-by-Mary-Hunt-Tagline-Trimmed.png Mary Hunt2026-07-03 20:46:552026-07-03 20:46:5510 Everyday Items You Never Think to Wash (But Should)
      a lit sparkler with an american flag in the background 4th of july hacks tips and recipes

      34 Fourth of July Recipes and DIY Hacks for a Stress-Free Holiday

      https://www.everydaycheapskate.com/wp-content/uploads/20260630-a-lit-sparkler-with-an-american-flag-in-the-background-4th-of-july-hacks-tips-and-recipes.png 800 1200 Mary Hunt https://www.everydaycheapskate.com/wp-content/uploads/EC-Logo-by-Mary-Hunt-Tagline-Trimmed.png Mary Hunt2026-06-30 21:44:502026-06-30 21:44:5034 Fourth of July Recipes and DIY Hacks for a Stress-Free Holiday
      wooden die spell july with patriotic decor in background

      7 Best Things to Buy in July for Huge Summer Savings

      https://www.everydaycheapskate.com/wp-content/uploads/20260629-wooden-die-spell-july-with-patriotic-decor-in-background.png 800 1200 Mary Hunt https://www.everydaycheapskate.com/wp-content/uploads/EC-Logo-by-Mary-Hunt-Tagline-Trimmed.png Mary Hunt2026-06-29 21:07:092026-06-29 21:10:297 Best Things to Buy in July for Huge Summer Savings
      Grilled Peaches with Balsamic and Blue Cheese

      Summer Grilled Peaches with Balsamic and Blue Cheese

      https://www.everydaycheapskate.com/wp-content/uploads/20260628-Grilled-Peaches-with-Balsamic-and-Blue-Cheese-1.png 800 1200 Mary Hunt https://www.everydaycheapskate.com/wp-content/uploads/EC-Logo-by-Mary-Hunt-Tagline-Trimmed.png Mary Hunt2026-06-29 09:38:342026-06-29 09:38:34Summer Grilled Peaches with Balsamic and Blue Cheese
      a rustic wooden christmas tree in the sand on the beach

      Christmas in June? Try This Amazon Prime Day Gift Guide

      https://www.everydaycheapskate.com/wp-content/uploads/20260625-a-rustic-wooden-christmas-tree-in-the-sand-on-the-beach.png 800 1200 Mary Hunt https://www.everydaycheapskate.com/wp-content/uploads/EC-Logo-by-Mary-Hunt-Tagline-Trimmed.png Mary Hunt2026-06-26 11:34:132026-06-26 11:36:44Christmas in June? Try This Amazon Prime Day Gift Guide
      why does my ice taste weird soda tea lemonade juice

      Why Does My Ice Taste Weird? Here’s the Answer

      https://www.everydaycheapskate.com/wp-content/uploads/20260624-why-does-my-ice-taste-weird-soda-tea-lemonade-juice.png 800 1200 Mary Hunt https://www.everydaycheapskate.com/wp-content/uploads/EC-Logo-by-Mary-Hunt-Tagline-Trimmed.png Mary Hunt2026-06-24 17:10:532026-06-24 17:10:53Why Does My Ice Taste Weird? Here’s the Answer


      Please keep your comments positive, encouraging, helpful, brief,
      and on-topic in keeping with EC Commenting Guidelines



      Last update on 2026-07-21 / Affiliate links / Images from Amazon Product Advertising API

      Caught yourself reading all the way 'til the end? Why not share with a friend.

      185 shares
      Share this entry
      • Facebook Facebook Share on Facebook
      • X-twitter X-twitter Share on X
      • Square-x-twitter Square-x-twitter Share on X
      • Pinterest Pinterest Share on Pinterest
      • Linkedin Linkedin Share on LinkedIn
      • Mail Mail Share by Mail
      https://www.everydaycheapskate.com/wp-content/uploads/20250905-how-to-keep-fruit-flies-away-from-plants.png 800 1200 Mary Hunt https://www.everydaycheapskate.com/wp-content/uploads/EC-Logo-by-Mary-Hunt-Tagline-Trimmed.png Mary Hunt2025-09-05 17:07:592025-09-05 17:09:54Fruit Flies Hate These 7 Plants (But You’ll Love Them)
      9 replies
      1. Barbara says:
        September 22, 2025 at 11:39 am

        Drain flies are the bane of my exix
        Stance

        Drain flies/gnats/fruit flies make my summers miserable. They literally get into everything and hang out around my laptop as well. I’ve found 2 things that help: a product called Drain Gel and the little blue light bug catchers with the sticky card. Doesn’t take them away but makes a dent iin the population. Now if I could just figure out how to keep them out of my fridge and freezer, I’d be a happy camper.

        Reply
        • Mary Hunt says:
          September 24, 2025 at 10:44 am

          Sounds like we need an entire post on this drain fly problem (you’re not the first to ask). I’m on it. Keep an eye on your inbox.

          Reply
      2. Patti Roy says:
        September 7, 2025 at 10:12 am

        I use a method I’ve known for years, and I’m not sure where I first came across it, but it works like a charm for fruit flies. The key is to lure them into a place from which they can’t escape. Use a glass, a vase, or any container you can top off with a piece of plastic wrap. Add a bit of vinegar, or old wine from the glass that’s loaded with them, a piece of apple, melon, peach pit, or anything that draws them in. Top the container with the plastic wrap, and poke a few tiny holes thru the wrap. They are lured in, trapped, and are easy to dispose of. Most recently, I have been using the little plastic take-out cups that they put sauces in, or that are used for jello shots. I don’t like the look of the thing, so I set it above the sink in a pretty bowl. Only I know it’s there. And when the infestation seems to be over, I can just toss the contents outside, and put the whole thing in recycle.

        Reply
      3. Lida says:
        September 6, 2025 at 9:50 am

        Well, I do not have fruit flies. I do have for the first time ever what I believe are gnats. Is there a similar way to get rid of them? What could I have done to invite them into my home?

        Reply
      4. linda says:
        September 6, 2025 at 3:33 am

        i keep my fruit bowls covered and wash any dish that had fruit, fruit sauce or juice in it immediately after use, or put it in the dishwasher. now i have even more reason to love my basil plant that grows so beautifully, and to try again with the rosemary. i love it, but it’s not too thrilled with me.

        Reply
      5. jd wolfe says:
        September 5, 2025 at 7:11 pm

        best is to not get them. i place all veg/fruit debris in a plastic container in the frig until it goes outside to trash/compost. no more fruitflies.

        Reply
      6. Dee says:
        July 13, 2023 at 9:34 pm

        Thank you so much for these methods. I most appreciate your guidance as to which of these plants are toxic for dogs and cats, as we have three cats in the home, as well as a feral colony close by.

        Reply
        • Mary Hunt says:
          July 14, 2023 at 8:34 am

          Read again, Dee. Each plant’s description closes with its affects on dogs and cats.

          Reply
      7. Linda Pries says:
        May 22, 2023 at 11:58 pm

        I prefer to trap fruit flies. A Venus Flytrap won’t help control fruit flies because they are too small to trigger the hairs that close it. Also they do not make a very good house plant, they grow best outdoors in full, strong sunlight. I DO keep a couple of tropical sundew and butterwort plants under a strong plant light. The flies don’t stand a chance and, with enough light and sitting constantly in distilled water, these plants grow well year round indoors.

        Reply

      Leave a Reply

      Want to join the discussion?
      Feel free to contribute!

      Leave a Reply Cancel reply

      Your email address will not be published. Required fields are marked *

      How was it?




      Welcome to Everyday Cheapskate!

      A woman in a blue shirt

      Hi, There … I’m Mary!
      I’m passionate about helping people live below their means. The secret is to get clever and creative with how to save time and money every day! Join my email list where I share everything I’ve learned—and continue to learn! logo

      Join My Email List!

      SIGN UP HERE … (Free eBook!)

      Most Popular Posts

      21 Smart Uses for Pickle Juice You’ll Wish You Knew

      The Best Carrot Cake Recipe: So Good It’s Genius

      Perfect Baked Potatoes: Crispy, Fluffy, and Delicious Every Time

      The Best Slow Cooker Pot Roast with Gravy – Easy, Flavorful, and Tender!

      12 Things You Should Never Plug Into a Power Strip and Why

      Unbelievably Easy Cinnamon Rolls: 3 Ingredients, 40 Minutes, Pure Perfection!

      How to Remove Years of Kitchen Cabinet Grit and Grime

      Hands Down the Best Way to Kill Weeds (And It's Not Roundup)

      You may have seen me …

      Collage of logos showing all of the shows and publications that mary Hunt has appeared in

      A bowl of food on a table

      © Copyright 1992- - Everyday Cheapskate
      • Start Here
      • About
      • Books by Mary Hunt
      • Privacy Policy
      • Contact
      • Get Free E-Mail Updates
      Link to: The Handmade Holiday Gift Everyone Actually Wants Link to: The Handmade Holiday Gift Everyone Actually Wants The Handmade Holiday Gift Everyone Actually Wantsdiy homemade hand and body lotion recipe how to female hands Link to: The Secret to Juicy French Dip Sandwiches at Home Link to: The Secret to Juicy French Dip Sandwiches at Home slow cooker French dip sandwiches Philippe the Original and Cole’s recipeThe Secret to Juicy French Dip Sandwiches at Home
      Scroll to top Scroll to top Scroll to top
      This site uses cookies to serve you a better experience. AcceptSettingsNo CookiesLearn More
      Privacy & Cookies Policy

      Privacy Overview

      This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
      Necessary
      Always Enabled
      Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
      Non-necessary
      Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
      SAVE & ACCEPT
      • 174Facebook
      • Twitter
      • Pinterest
      • LinkedIn
      • Email