6 Plants That Repel Pests

This post contains affiliate links. Please see my disclosure policy for more information.

6 Plants That Repel Pests: Natural Ways to Keep Bugs Away

Looking for a natural way to keep bugs away without relying on chemical sprays? Adding the right plants to your garden or patio can help deter common pests while also adding color, fragrance, and beauty to your space. Many plants naturally produce oils and scents that insects simply don’t like, making them a simple and effective solution for everyday pest problems.

In this guide, you’ll find a list of plants that naturally repel pests, along with the types of bugs they help keep away and why they work so well. Whether you’re planting a backyard garden, decorating your porch, or adding greenery indoors, these pest-repelling plants are an easy way to create a more comfortable, low-maintenance environment.

Rosemary

Rosemary is known to repel several types of bugs due to its strong aroma and natural essential oils, particularly eucalyptol (1,8-cineole), camphor, and rosmarinic acid. These compounds interfere with the sensory receptors that insects use to locate food and hosts.

Rosemary

Bugs That Don’t Like Rosemary:

Mosquitoes
Why: Mosquitoes rely on scent to find their prey, and the potent smell of rosemary overwhelms their sense of smell.
How it’s used: Burning rosemary or using its oil in sprays or lotions can help deter mosquitoes.

Flies (including house flies and fruit flies)
Why: Rosemary’s scent masks the smell of food or decay that attracts flies.
How it’s used: Sprigs of rosemary or oil-infused sachets can be placed around food areas.

Cabbage Moths (and some other garden pests)
Why: These pests are deterred by the scent and volatile oils in rosemary.
How it’s used: Planted near crops like cabbage or broccoli as a companion plant.

Ticks
Why: The strong essential oils in rosemary can irritate or repel ticks’ sensory organs.
How it’s used: Often used in natural tick-repellent sprays for pets and humans.

Fleas
Why: Rosemary oil disrupts the nervous system of fleas, making it a popular natural flea repellent.
How it’s used: Used in pet shampoos and sprays.


Peppermint

Peppermint is a powerful natural insect repellent thanks to its high concentration of menthol and other essential oils that interfere with bugs’ ability to smell or function properly. Menthol, the main compound in peppermint oil, has a strong odor and cooling effect that bugs find overpowering or even toxic. Peppermint also contains limonene and pulegone, which are natural insect deterrents.

Peppermint

Bugs That Don’t Like Peppermint:

Ants
Why: Peppermint oil overwhelms their scent trails, which ants use to communicate and find food.
How to use: Spray diluted peppermint oil along entry points, baseboards, and countertops.

Spiders
Why: Spiders dislike strong smells like peppermint, which irritates their sensitive receptors.
How to use: Spray peppermint oil in corners, windowsills, and basements.

Mosquitoes
Why: Menthol confuses their ability to detect carbon dioxide and body heat, key to finding prey.
How to use: Use peppermint oil in a diffuser or mix with water and spray on skin (with carrier oil).

Flies (House Flies, Fruit Flies)
Why: The strong scent disrupts their ability to detect food and breeding areas.
How to use: Hang peppermint sachets or use oil diffusers near food areas or trash cans.

Cockroaches
Why: Peppermint oil contains compounds toxic to roaches, and the smell repels them from nesting.
How to use: Mix with water and spray in cracks, under sinks, and behind appliances.

Ticks & Fleas
Why: The menthol irritates their nervous systems and masks host signals like warmth and scent.
How to use: Often found in natural sprays or shampoos for pets.


Catnip

This perennial herb is related to mint and grows readily both as a weed and a commercially cultivated plant in most areas of the US. Nepetalactone, found in catnip’s leaves and stems, targets insect nervous systems. It either masks attractants (like carbon dioxide or body heat) or triggers avoidance behavior in many bugs. Catnip also contains other compounds like citronellol and thymol, which add to its repellent properties. Catnip is non-toxic to humans and can be grown easily in gardens or pots as a natural bug deterrent.

Catnip

Bugs That Don’t Like Catnip:

Mosquitoes
Why: Nepetalactone is more effective than DEET in some studies at repelling mosquitoes. It interferes with their ability to detect human scent and carbon dioxide.
How to use: Crush fresh leaves or use catnip essential oil mixed with a carrier oil or water-based spray.

Cockroaches
Why: Nepetalactone disrupts their sensory pathways and acts as a deterrent.
How to use: Place dried catnip in sachets in cabinets or under appliances.

Flies (including stable flies and houseflies)
Why: Strong-smelling terpenes in catnip confuse their scent receptors.
How to use: Use catnip oil in diffusers or sprays in fly-prone areas.

Ticks
Why: Catnip compounds repel ticks similarly to how they repel mosquitoes — by affecting the tick’s sensory system.
How to use: Use diluted essential oil sprays on clothing or pet-safe blends.

Termites
Why: Some research shows nepetalactone may have toxic or repellent effects on termites.
Note: Not a foolproof treatment, but it contributes to general insect resistance.


Marigold

Marigolds are hardy annual plants that have a distinctive smell that many bugs find particularly offensive. They also contain Pyrethrum, a compound used in many insect repellents. Marigolds (Tagetes species) are beautiful, hardy flowers, and they’re natural pest repellents, thanks to their pungent scent and special compounds like pyrethrum, limonene, and thiophenes.

Marigold

Bugs That Don’t Like Marigolds:

Mosquitoes
Why: Marigolds produce pyrethrum, a natural insecticide found in some mosquito repellents. The scent masks attractants like carbon dioxide and body odor.
How to use: Plant marigolds around patios, doorways, or in garden beds near seating areas.

Aphids
Why: Aphids are deterred by the strong aroma of marigold leaves and flowers, especially French marigolds.
How to use: Interplant marigolds among vegetables (especially tomatoes or peppers) to protect them.

Whiteflies
Why: Marigolds confuse and repel whiteflies, especially when used as a trap crop or deterrent border.
How to use: Plant near crops like tomatoes, eggplants, and squash.

Nematodes (microscopic soil worms)
Why: Marigold roots release natural chemicals (alpha-terthienyl and thiophenes) that kill or repel harmful nematodes.
How to use: Grow marigolds as a cover crop, then till them into the soil before planting vegetables.

Cabbage Worms and Other Brassica Pests
Why: The scent masks the smell of host plants like cabbage, kale, and broccoli.
How to use: Plant marigolds around brassica crops as a barrier.

Mexican Bean Beetles
Why: The fragrance and possibly the root secretions help deter this pest.
How to use: Companion plant near beans for added protection.


Basil

Basil (Ocimum basilicum) is more than just a tasty herb; it’s also a powerful natural bug repellent. The secret lies in its essential oils, especially linalool, eugenol, and estragole, which disrupt insects’ sensory systems. Plant basil around your house, garden, or picnic areas, and flies as well as mosquitoes will stay away.

Basil

Bugs That Don’t Like Basil:

Mosquitoes
Why: Basil emits linalool and eugenol, which confuse mosquitoes and interfere with their ability to detect carbon dioxide and body heat — two cues they use to find people.
How to use: Rub fresh basil leaves on your skin (test for irritation first), or grow basil in pots near seating areas.

Houseflies
Why: The pungent aroma of basil overwhelms their scent receptors and masks food sources.
How to use: Place fresh basil near windows, doors, or kitchen counters.

Whiteflies
Why: Strong-smelling compounds like estragole repel whiteflies by interfering with their attraction to host plants.
How to use: Companion plant basil near tomatoes or peppers to keep whiteflies at bay.

Aphids
Why: Basil’s essential oils mask the chemical signals plants emit, confusing aphids and discouraging feeding.
How to use: Plant among vegetables or herbs prone to aphid infestations.

Thrips
Why: The oils in basil are irritating to thrips and help reduce their activity around treated plants.
How to use: Use basil sprays (made with diluted essential oil) or companion planting.

Spider Mites
Why: Some studies suggest basil’s volatile oils act as a deterrent or mild irritant to spider mites.
How to use: Grow basil around mite-prone crops like cucumbers or beans.


Lavender

Lavender (Lavandula spp.) is a beautiful, fragrant herb and a natural bug repellent. Its essential oils, especially linalool, linalyl acetate, and camphor, are powerful compounds that deter insects by overwhelming their sense of smell or disrupting their nervous systems.

Bugs That Don’t Like Lavender:

Mosquitoes
Why: Lavender oil contains linalool, which confuses mosquitoes’ ability to detect carbon dioxide and body heat — the signals they use to find people.
How to use: Plant lavender near outdoor seating areas, or apply diluted lavender oil to skin as a natural repellent.

Moths
Why: The scent of dried lavender repels moths and helps prevent them from laying eggs on fabrics.
How to use: Place dried lavender sachets in closets and drawers.

Flies (Houseflies, Fruit Flies)
Why: Lavender’s strong fragrance overwhelms their olfactory system, deterring them from food or waste areas.
How to use: Use lavender essential oil in sprays or diffusers in kitchens or trash areas.

Fleas
Why: Lavender oil can be irritating or even toxic to fleas, and its smell repels them from pets and bedding.
How to use: Add diluted lavender oil to pet bedding or use in DIY flea sprays (ensure it’s safe for your pet).

Ticks
Why: Lavender’s essential oils mask host signals like heat and scent, and may interfere with their sensory organs.
How to use: Use lavender oil sprays on clothing or exposed skin (diluted with a carrier oil).

Spiders
Why: Spiders dislike strong fragrances like lavender, which may irritate their sensitive leg receptors.
How to use: Spray diluted lavender oil around windows, doors, and corners.


Adding pest-repelling plants to your home and garden is one of the simplest ways to reduce bugs naturally, without relying on harsh chemicals. Not only do these plants help keep unwanted insects away, but they also bring beauty, fragrance, and even useful herbs right to your space. It’s a win-win for both your garden and your home.

Keep in mind that while these plants can help deter pests, they work best when combined with good gardening habits like proper watering, trimming, and keeping your space clean. With a little planning, you can create a more enjoyable, low-maintenance environment where you spend less time dealing with bugs and more time enjoying your garden.

SaleBestseller No. 1
HOME GROWN 8 Herb Garden Kit, Indoor Growing Kit, Gardening Gifts for Women | Gift for Women & Men | 8 Herb Seeds | Pots, Soil Pellets & Markers | Grow Guide | Kitchen Herb Garden | Complete Starter Kit
  • THE PERFECT PRESENT – DELUXE HERB GROW KIT WITH 8 PREMIUM AROMATIC HERBS. Surprise your loved ones with a thoughtful, practical set that keeps on giving. Beautifully packaged and gift-ready, it’s a unique kitchen present for food lovers, home chefs, family, and friends. Carefully selected, non-GMO seeds ensure strong germination and healthy growth. Whether it’s a Christmas surprise, Mother’s Day present, Father’s Day set, birthday gift, or housewarming kit, it inspires joy.
  • HOLIDAY-READY SURPRISE. Easy to sprout and quick to develop, these herbs thrive on windowsills, countertops, or balconies, creating a green oasis at home. An ideal foodie present for creative cooks, a holiday basket alternative, or a stylish cooking set that stands out from the ordinary. A truly unique idea that works for family, friends, or coworkers. The indoor herb kit makes every meal brighter and every kitchen fresher, turning daily cooking into a celebration.
  • FULL OF FLAVOR. This deluxe mix of 8 herbs is a treasure trove of taste and aroma. Rich in natural plant compounds, they add brightness and depth to everyday meals. Sprinkle fresh parsley on soup, add rosemary to roasted potatoes, stir oregano into pizza sauce, or blend lemon balm mint into smoothies. Perfect as a seasoning herbs set for cooking or a herbal tea kit for drinks. Enjoy fresh flavors year-round with this complete herb garden set for food lovers and home chefs.
  • PERFECT FOR CELEBRATIONS. Each herb offers its own unique character, from delicate to bold. A Mother’s Day present that brings joy to cooking, a Father’s Day kit that enhances BBQs, or a birthday surprise for mom or dad that lasts far beyond the day itself. Even as an anniversary present, it symbolizes growth, care, and shared experiences. A meaningful choice for occasions where you want to show thought, love, and appreciation. A living present that keeps on giving joy.
  • STYLISH AND SPACE-SAVING. Compact and productive bushes adapt indoors or outdoors. The elegant pots fit perfectly in kitchens, balconies, or living rooms without taking space, adding a green decorative touch to any environment. An ideal windowsill herb garden, countertop herb kit, or accent for home décor. Create your own oasis of freshness, where lush greenery meets culinary creativity. Perfect for apartments, houses, or offices. A set that combines beauty, utility, and smart design.
SaleBestseller No. 2
9 Herb Indoor Window Garden Kit - House Plants Seeds - Christmas Women Gift | Best Unique Gift Ideas for Women, Mom, Friend, Her, Housewarming, Mother - Live Plant Starter, Gardening Lovers
  • A LUSH OASIS IN YOUR HOME: Elevate your indoor space with a vibrant array of nine gourmet herbs. Feel the unparalleled freshness that only home-grown herbs can offer.
  • THE ULTIMATE KIT: You get everything you need to start and sustain your herb garden. From seeds to full bloom, our kit ensures a seamless, hassle-free gardening experience. Grow Dill, Basil, Chives, Thyme, Parsley, Oregano, Cilantro, Sage, and Mustard.
  • NO GREEN THUMB REQUIRED: Whether you're a seasoned gardener or just starting, our step-by-step guide simplifies the process. Dive into our booklet's detailed soaking tips, sowing instructions, and herb-specific care routines, ensuring success for all skill levels.
  • PREMIUM QUALITY SEEDS: Our heirloom seeds, premium-sourced and vacuum-sealed, provide the best results. While others give you subpar seeds, we promise optimal germination rates and robust growth.
  • PLANT WITH POWER: Say goodbye to guesswork! Our nutrient-rich soil discs, pre-fertilized and expand 6-8 times their size, provide an optimal growth environment. Your plants will thank you with lush, vibrant growth (Actual product size 7 x 4.5 x 4 Inch).
Bestseller No. 3
Sereniseed Certified Organic Herb Seeds 10-Pack, Culinary Garden Kit | Non-GMO Heirloom Variety Pack for Indoor & Outdoor Gardening, Grow Basil Cilantro Parsley Thyme Dill Lavender Chives
  • USDA CERTIFIED ORGANIC & NON-GMO: Grow your own fresh culinary herbs with peace of mind. Our open pollinated, heirloom variety pack is 100% clean, natural, rigorously tested for germination, and proudly certified organic by Oregon Tilth.
  • 10 GOURMET HERB VARIETIES: Elevate your home cooking with this curated kit of popular kitchen herbs: Thyme, Italian Oregano, Cilantro, Giant Italian Parsley, English Lavender, Genovese Basil, Broadleaf Sage, Bouquet Dill, Common Chives, and Thai Basil.
  • GERMINATION GUARANTEE: Never worry about dud seeds again. We sustainably store our herb packets in temperature- and humidity-controlled facilities to maximize freshness, ensuring robust sprouting and a beautiful, thriving home garden. If any issues, we promise to make it right.
  • EXPERT GROWING SUPPORT INCLUDED: Perfect for beginners and seasoned gardeners alike. Every purchase grants exclusive access to our step-by-step seed-starting video guides, plus on-packet planting tips to help your indoor or outdoor garden flourish.
  • PERFECT FOR ALL GARDEN TYPES: Whether you are planting in a windowsill planter, raised backyard bed, or indoor kitchen hydroponics system, these versatile heirloom plants adapt beautifully to any environment for fresh, year-round harvesting.
Bestseller No. 4
HOME GROWN 15 Herb Seed Variety Kit, 4,300+ Seeds, Culinary Herb Kit | High Germination, Heirloom, Non-GMO | 4,300+ Seeds | Indoor/Outdoor & Hydroponic | Culinary Herbs | Gardening Gift
  • 15 Herb Seeds Variety Pack. 4300 Seeds Included: Start your own herb garden with this all-in-one heirloom herbs seeds kit. Includes Genovese Basil, Sweet Basil, Italian Oregano, Rosemary, Thyme, Cilantro, Dill, Mint, Sage, Lavender, Chives, Garlic Chives, Parsley, Chervil, and Scallions. Each herb seed packet is USA-sourced and tested for high germination. Grow these herb garden seeds in your backyard, windowsill, raised beds, or pots for fresh flavors all season long.
  • Herb Seeds for Hydroponic Garden and Indoor Pots: These herb seeds for planting indoors thrive in hydroponic systems, indoor hydroponic gardens, kitchen windowsill planters, or traditional soil. Perfect herbal seeds for apartment dwellers and urban gardeners short on outdoor space. Grow fresh herbs year-round in containers as small as 4 inches. Ideal seeds for planting herbs for renters, condo owners, and city gardeners who want homegrown flavor without a backyard.
  • Perfect Christmas Gift for Gardeners & Home Chefs: This herb seed starter kit makes a thoughtful Christmas gift for mom, dad, or anyone who loves fresh ingredients. Ideal for Mother’s Day, Father’s Day, housewarmings, birthdays, and stocking stuffers. Beautifully packaged in a resealable mylar bag—ready to gift. Give fresh rosemary for holiday roasts, mint for Christmas cocktails, and sage for Thanksgiving stuffing. A meaningful gardening gift that keeps growing all year.
  • Non-GMO Heirloom Herb Seeds – High Germination & Beginner-Friendly: Every seed is 100% non-GMO and heirloom, save seeds season after season for continuous harvests. Germination rates above 85% mean even first-time gardeners see results in 7-14 days. These easy herbs for beginners to grow need no special equipment, just soil, water, and sunlight. Stop paying $3-5 per bunch at the grocery store when you can grow unlimited fresh herbs for pennies. Perfect for budget-conscious families.
  • Grow Culinary Herb Seeds for Cooking, Teas, Crafts & Teaching Kids: These herbs aren’t just for cooking—brew fresh mint tea, dry lavender for sachets, make dill pickles from scratch, or use rosemary in homemade skincare. Teach children where food comes from with hands-on garden projects perfect for homeschool families and classrooms. Fresh herbs also make stunning kitchen décor in mason jars or hanging planters. Ideal for foodies, wellness enthusiasts, and parents seeking screen-free activities.
SaleBestseller No. 5
Ahopegarden Indoor Garden Hydroponics Growing System: 10 Pods Kit with LED | Plant Germination Kit Herb Vegetable Growth Lamp Countertop, Indoor Garden with Hydroponic Pods Kit for Healthy Home Cooks
  • High planting efficiency: Start an indoor herb garden with the Ahopegarden hydroponic growing system, which includes a water reservoir, an overhead LED grow light, and a circulation system that keeps the water fresh. The hydroponic setup and lighting systems allow plants to grow up to faster and healthier in controlled conditions. Simply add plant seeds, water, and nutrients to the reservoir and watch the plants grow
  • 10 Pods & Water Level Window Included: This indoor grow kit with light offers 10 growing stations, The reservoir of our hydroponic vegetable garden kit also comes with a see-through water level window, so with a glance, you can see how much water is in the reservoir and when it’s time to add more water
  • 2 Growing Modes for Veggies, Fruits & Flowers: The grow light of our indoor veggie growing system features full-spectrum lamps that simulate natural sunlight, and you can choose between two different light modes (vegetables or flowers&fruit ) based on what you are growing, blue for vegetables and red for fruit. Flowers also can be grown in this indoor plant grower system
  • 14.5 Inches Height-Adjustable Light Post: Our harvest indoor hydroponic garden comes with a bright grow light that can be adjusted in height as the plants grow taller. Plants can grow up to 14.5 inches. What’s more, the grow lights are on a 16-hours-on, 8-hours-off timer. So with an automatic light timer, there’s really not much you have to do to get your plants growing
  • Perfect for Family: This indoor garden plant germination kit is an ideal for families on Christmas and other holidays. This hydroponic growing kit is small enough to fit on the counter in the kitchen, which allows users to grow and vegetables indoors year-round. This indoor planter with grow light really is the that keeps on giving

Back To Top