Skip to main content

How to keep pests out of your herb garden

Pests are perhaps the bane of every gardener’s existence. It would be great if we lived in a world where we could plant our herbs, vegetables, and fruits each year without worrying that we wouldn’t get to enjoy the harvest. Unfortunately, that’s not always the case. Bugs make their way in from time to time (and who can blame them? The food we grow is delicious), but there are steps you can take to curb huge infestations before they happen. In an herb garden, it’s easier than you think.

Fresh sprigs of rosemary
Luca Volpe / Unsplash

Plant herbs that help repel pests

There are plenty of herbs you can grow that will help repel various kinds of pests. Basil helps ward off tomato hookworms; garlic is a great choice for deterring fungus gnats, spider mites, and cabbage loppers; and catnip can help keep away aphids and ticks. And this is just the beginning. Plenty of herbs have added benefits outside of their culinary uses, and they’re great companions if you have a veggie garden nearby.

Steps to take for this solution

The first thing you’ll want to do is research what pests the plants you’re growing have trouble with, and from there look up if there are any herbs to help with them. It will take a bit of looking into but will be worth it in the end. Once your research is done, all you’ll need to do is purchase the plants, plot out your garden for the best care possible, and let it all grow.

Pros: A natural solution; avoids immediate use of chemicals; harvestable once prevention is no longer needed.

Cons: Not a catch-all solution; pests aren’t guaranteed to be kept away; takes up additional space.

Plant flowers that attract beneficial insects

If you have room in or around your garden bed, you can plant flowers that attract beneficial insects. This can be done in combination with the preventative herbs to try and create a good ecosystem of bugs and plants. Aside from attracting bees, some flowers (like marigolds) attract insects that don’t feed on the plants but instead feed on certain pests. Others have odors that help keep small animals away, too.

Steps to take for this solution

When plotting out your garden, mix in the flowers with the herbs. They’ll be more effective if they’re interspersed as opposed to located on one side of the garden. If needed, you can always grow them separately in containers on the edge of the garden beds close to the plants that you’re hoping to keep pests away from.

Pros: Natural deterrent; attracts bees and other beneficial bugs; adds color to your garden.

Cons: Won’t help every plant; dying blooms can attract more pests.

A pile of yellow onions
Lars Blankers / Unsplash

Mix some onions into the garden bed

Onions are a vegetable that can bring similar benefits to herbs, and you may have grown them before for fun without even realizing their potential! Their pungent odor helps repel bugs like aphids, and if you get an ornamental variety, the flowers that grow will also provide a nice pop of color to your garden. Onions can be kept in one portion of the garden or mixed throughout.

Steps to take for this solution

Plan in advance where you’ll be planting your onions since they’ll need space to grow. Make sure they’re near the plants you want them to help repel bugs from, and that those plants have enough room to grow, too.

Pros: Easy-to-grow preventative measure; great after harvest for cooking.

Cons: Takes up additional space; not a great option if you don’t love onions.

Spray insecticide as a last resort

If these natural preventions are helping but you still find yourself with an infestation, you’ll likely have to resort to spraying an insecticide to help get rid of it. Plants like flowers and herbs really only help with prevention and can’t do much by way of eliminating the problem. Start with a natural insecticidal soap first to avoid unnecessary harm and use of chemicals. If that doesn’t solve the issue, you’ll unfortunately need to look for one that’s a bit stronger.

Steps to take for this solution

Look into insecticides and make sure the one you choose is fitting for each of your plants, and/or that you can keep the spray contained to the plants that need it. Each insecticide is different, and there are some out there specifically made for certain kinds of pests. Be sure to follow the directions on the bottle as no two insecticides are guaranteed to be exactly the same.

Pros: Offers more guarantee for ridding the garden of bugs; doesn’t take up additional garden space.

Cons: Harmful chemicals can get onto your crops; isn’t always a natural solution.

Pests are, unfortunately, a likely result of setting up any kind of garden. They’re bound to happen, even in greenhouses, and the best thing you can do is take preventative measures to lessen the severity of any potential problem.

Editors' Recommendations

Kiera Baron
Former Digital Trends Contributor
Kiera Baron is a freelance writer and editor, as well as a budding digital artist, based in Upstate NY. She is currently one…
What is diatomaceous earth – and why does your garden need it?
Using diatomaceous earth in your garden
Hand in a brown and white glove holding a pile of Epsom salt next to an evergreen tree

When dealing with pest control, there are many home remedies and solutions to explore. One you may or may not have heard of is diatomaceous earth. You may be wondering what diatomaceous earth is and what pests it can get rid of, and that’s where we come in. This simple guide will answer all the questions you have about using diatomaceous earth as a pest control method, from what it is to how to use it, so that you have all the info you need to make the best choice for your garden.

What is diatomaceous earth?
Diatomaceous earth is a naturally occurring sedimentary rock that contains diatoms, a type of ancient algae. It's extremely soft and easy to crush into a powder, which is the form you are most likely to find it in. You can find bags of diatomaceous earth powder online and in many home improvement stores.

Read more
How much sunlight should your succulents have?
Ensuring your succulents have enough light
5 different succulents planted in clay mugs

Succulents are well known and loved for being beautiful, versatile, and easy to care for. There are many stunning and unique succulent varieties to grow, and they don’t need a lot of water or attention, just a sunny window. How much light do succulents need, though? How can you tell if your succulent is getting too much or not enough light? Which succulent types are best for your lighting situation? We’re going to answer all your questions so you’re prepared for keeping your succulent happy and healthy!

How much light do succulents need?
This can vary between different succulent varieties, but as a general rule your succulents should get roughly six to eight hours of sunlight a day. Most succulents do best with direct or mostly direct sunlight, but succulents that have been previously kept in darker environments will need to be moved into sunlight slowly to avoid burns.

Read more
A guide to winter lawn fertilizer for keeping your turf healthy this season
Tips for picking and applying winter lawn fertilizer
Person pushing a lawn fertilizer spreader

Besides mowing and watering, part of keeping a lush lawn is fertilizing it properly in the fall. If you've ever shopped for grass fertilizers, you may have heard of winterizing fertilizer. Basically, this type of lawn food, typically a nitrogen-heavy version, prepares grass with an energy reserve for winter. For an explanation of how winter lawn fertilizer works and how you should apply it, read ahead.

Why would you fertilize your lawn during the winter?
Fertilizing way ahead of the growing season will help your grass grow healthy when the temperature warms up. You might see companies refer to such seasonal fertilizers as winterizing fertilizers. This name is somewhat misleading since you want to apply the fertilizer during late fall when grass growth slows down. They're all about preparing your grass for winter.

Read more