Companion planting for pest control means growing several plant species together so that one changes how pests find, feed on or reproduce on your crops. It reduces pest pressure in a home garden, but it does not replace barriers, sanitation or hand removal, and no pairing works the same way in every climate.
I grew up with the version of this idea that says basil keeps tomatoes healthy and marigolds end every pest problem in the garden. Both claims are half right at best. Here is what the research and long-term garden records actually support, what they do not, and how to build a plan that holds up in a real yard.
Key takeaways
- Companion planting works through four measurable mechanisms: disrupting host-finding, feeding beneficial insects, changing soil chemistry, and using trap crops to move pests off valued plants.
- The pairings with the best behind them are insectary flowers, trap crops, French marigold against root-knot nematodes, and the Three Sisters style of intercropping.
- Most decorative pairings sold on printed charts come from folklore, not trials.
- Companion plants are one layer of an integrated pest management plan, not a treatment for a severe infestation.
- Reserving roughly 5 to 10 percent of your bed area for insectary flowers is enough to support predators without giving up food-producing space.
Table of Contents
- What Is Companion Planting for Pest Control?
- How Does Companion Planting for Pest Control Work?
- Which Companion Plants Are Most Useful?
- How to Choose Companion Plants for Your Garden
- What Other Pest Controls Should You Use With Companion Plants?
- What Are the Biggest Mistakes and Limitations?
- Frequently Asked Questions
- Do companion plants replace pesticides in a home garden?
- Do marigolds actually prevent pests, or do they only distract them?
- How far away should companion plants be planted from the crop they protect?
- Can companion planting for pest control work in containers or raised beds?
- What should I do if companion plants are not stopping a severe pest problem?
- Conclusion
What Is Companion Planting for Pest Control?

Companion planting is the practice of placing different plant species close together for a shared benefit: soil improvement, space efficiency, pollination, or pest management. The pest-control version of it is narrower, and it depends on one plant changing pest behaviour rather than simply sitting near a vegetable.
It is worth separating three terms that get used interchangeably. Intercropping is growing two crops in the same space at the same time for any reason. Polyculture is a whole system built around several species, usually stacked in different vertical layers. Companion planting is the popular name for the practice of putting specific species next to each other because of an expected effect.
The pest distinction matters. Planting two crops together does nothing for pest control by itself. Planting them together because one draws hoverflies, disrupts a beetle’s search pattern or bleeds root chemistry into the soil is companion planting for pest control. Any companion chart that lists a pairing without naming a mechanism is asking you to take it on faith.
Timing is also part of the definition. A squash trap crop planted after the squash vines have already been attacked by squash bugs is a trap crop that failed, because the pests never had a reason to move.
How Does Companion Planting for Pest Control Work?
Companion planting for pest control works through four mechanisms, and it helps to know which one you are relying on before you spend money on seed.
- Disrupting host-finding. Many plant pests locate their host crop by smell, by the colour and shape of the leaf surface, or by the silhouette of the plant against the soil. Intermingling a visually different or strongly scented species interrupts that search. Garlic and onion alliums, some herbs and certain nasturtium varieties are commonly used this way.
- Supporting predators and parasitoids. Aphids, whiteflies and thrips feed on a surprising range of crops, but they are eaten by a narrower group: hoverfly larvae, lacewing larvae, lady beetles, and small parasitoid wasps that lay eggs inside the pest. Those natural enemies need nectar and pollen, and most of them cannot get it from a vegetable bed alone. Flowering plants such as sweet alyssum, dill, cilantro bolting, yarrow, buckwheat and calendula supply it.
- Changing soil chemistry. Some roots or fallen residues suppress specific soil pests. The best documented example is the French marigold (Tagetes patula), whose roots produce alpha-terthienyl, a compound active against root-knot nematodes in the genus Meloidogyne.
- Moving pests off the crop. A trap crop is a sacrificial plant more attractive to a pest than the crop you are protecting. If it works, you harvest or remove the pests from the trap instead of from the tomatoes.
What Companion Planting for Pest Control Can Realistically Do
Realistically, companion plants can reduce pest pressure, keep damage below a level that threatens the crop, and support the natural enemy population that does much of your actual work. Trials reported by university extension services have measured aphid reductions in the range of 50 to 70 percent in beds with insectary flowers, and intercropping systems often land at a land equivalent ratio of 1.2 to 1.4, meaning they outproduce what the same area would yield in separate monoculture rows.
What they cannot do is stop an established infestation, protect a crop from a pest that has never been in your garden, or cover up a spacing and watering mistake. Results also vary season to season because insect arrival timing, temperature and rainfall change how much nectar is available and how fast pests build up.
Give the bed a few seasons before you judge a pairing. I have watched a bed earn a flower border that looked decorative in July and noticeably calmer by September, and I have watched the same border do nothing at all in a dry year when the alyssum bolted early and stopped flowering.
Which Companion Plants Are Most Useful?

The pairings below are the ones with the clearest mechanism. Each comes with a limitation, because the limitation is usually what decides whether it belongs in your garden.
| Companion plant | Pest or pest group | Possible benefit | Important limitation | Where it fits |
|---|---|---|---|---|
| Sweet alyssum (Lobularia maritima) | Aphids | Continuous nectar feeds hoverflies whose larvae eat aphids | Bolts early in hot weather and stops blooming; needs reseeding | Edges of beds with brassicas and brassica-adjacent crops |
| Dill and cilantro, allowed to flower | Aphids, cabbageworms | Umbel flowers feed parasitoid wasps and lacewings | Letting them flower means you do not get much to eat | Scattered through the bed, not in one clump |
| French marigold (Tagetes patula) | Root-knot nematodes | Root compounds suppress susceptible nematode species | Works in soil, not on leaves; effect fades and varies by soil | Beds and borders with tomatoes, beans and brassicas |
| Nasturtium | Flea beetles, aphids, squash bugs | Trap crop; also acts as a visual and scent break | Concentrates pests instead of killing them, so it must be checked | Sacrificial row at the sunny edge of a squash bed |
| Buckwheat | Aphids, tarnished plant bugs | Fast, heavy bloom feeds many beneficial species | Grows tall and can shade short crops | Corners and bed edges, away from low crops |
| Onions and garlic | Flea beetles, some caterpillars | Strong allium scent can interrupt host-finding | Evidence is mixed, and alliums compete for space | Small plantings at the ends of rows |
| Yarrow, borage, calendula | Generalist feeders | Long bloom windows for predators and pollinators | Borage is aggressive and reseeds heavily | Pollinator strip along a fence or the orchard edge |
| Sweet corn, climbing beans, squash | Weeds, exposed soil, some borers | Corn supports beans, beans fix nitrogen, squash leaves shade soil | Cucurbits can host squash bugs in a dense planting | Full-sized beds with a clear perimeter path |
Sweet alyssum is the single most useful thing I have added to a brassica bed. Grow it as a low hedge along the edge and let it flower from spring until frost, replacing it when it sets seed in midsummer heat.
How to Choose Companion Plants for Your Garden
Choose companions by matching them to your pest pressure, your space and your climate, not by matching them to a chart. Six questions settle most decisions.
Does the crop stay compatible? Check light, water and root depth first. Two plants that want opposite watering schedules will disappoint each other regardless of what pest they repel.
Where does the pest actually live? Leaf-feeding pests are reached by airborne predators, which favors flowering plants near the canopy. Root pests need a different answer, and that answer lives in the soil for a season or more.
How tall does it get, and when? A four-foot buckwheat planted beside a strawberry row in June will shade the fruit exactly when it needs the sun. Height and bloom timing matter as much as compatibility.
What does it do to the soil? Legumes fix nitrogen, which can push leafy crops past the point of good flavor. Deep-rooted plants pull nutrients up from layers shallow roots cannot reach, which usually helps.
Could it pull in a bigger pest problem? Sunflowers are a good example. Gardening forums in the Austin area have described leaf-footed nymphs gathering on fading sunflower heads, which makes them a handy monitored trap and inspection point in the wrong spot.
Does it suit your climate? Sweet alyssum bolts out in southern heat, cilantro bolts in a week in a warm spring, and calendula struggles with humidity. Generic charts ignore all of this.
How to Set Up a Pest-Resistant Garden Plan
A workable plan takes one afternoon to draw and one season to test.
- Map the bed. Note which crops had visible damage last year and roughly when. Most pest problems are seasonal enough to predict from a single season of notes.
- Protect the most valuable crop first. If you would rather lose the kale than the tomatoes, spend your insectary space and your attention on the tomatoes.
- Test a small area. Plant one or two candidates in a single section rather than converting the whole bed in 2026. Expansion is cheap later; undoing it is not.
- Keep a simple log. Date, crop, pest seen, action taken, result. Three lines a week is enough to spot a pattern by August.
- Add a second layer. Pair each companion with a physical control. Flowers near brassicas work much better alongside row cover during the first weeks of growth.
- Adjust after one full season. Keep what reduced damage, drop what grew in your way, and stop treating the ones that fed pests rather than predators.
What Other Pest Controls Should You Use With Companion Plants?
Companion planting works best as one layer of integrated pest management, a term that simply means stacking defenses so no single failure ruins the crop.
- Crop rotation. Move crop families out of a bed for two to three seasons. It costs nothing and prevents the soil-borne problems that flowers cannot reach.
- Physical barriers. Row cover, insect netting and sticky traps stop pests landing in the first place, which saves the beneficial insects the flowers were meant to attract.
- Hand removal and targeted sprays. Caterpillars and beetles on the underside of leaves are easy to remove by hand when you check weekly.
- Water and soil management. Overhead watering spreads fungal disease and brings leaf pests into contact with soil. Drip lines at the base of plants cut both problems.
- Sanitation. Destroy crop residue and clear fallen fruit. Many pests overwinter in plant debris rather than in the live plants above it.
- Monitoring. Yellow sticky cards tell you what is flying and when. Without that information, every new bug looks equally serious.
On forums, gardeners consistently describe companion planting as one tool rather than a cure, which matches how extension services position it. The pairing that gives you the biggest win is usually the one that reduces the number of pests that reach your crop in the first place.
What Are the Biggest Mistakes and Limitations?
Believing a chart without asking why. Folklore pairings survive because they sound sensible. Basil and tomatoes are the classic example, and there is no credible trial showing basil repels anything from tomato plants. Fix: if a pairing has no mechanism you can describe, treat it as decoration.
Overcrowding the bed. Dense planting shades crops, slows drying after rain and locks in humidity that feeds disease. Fix: follow the spacing on the seed packet for the vegetables, and use the flowers to fill the vertical space between rows rather than the space between plants.
Pairing plants with conflicting needs. Alliums and dry-soil crops, or a thirsty squash vine beside a shallow-rooted herb, will disappoint. Fix: check water and light first, pest benefit second.
Placing trap crops next to the crop you are protecting. A trap crop has to be more attractive than the crop, so it belongs on the sunny edge, not tucked between the vines. Check it weekly and remove the plant once it is heavily infested, or you have built a pest nursery. Gardeners on r/vegetablegardening have described exactly this failure.
Expecting companions to handle a severe infestation. By the time leaves are skeletonized, the flowers are too late. Fix: strip the worst leaves, use row cover or a selective product, and let the insectary planting protect next year’s crop.
Ignoring the gaps in bloom. Benefits come from nectar, and there is none in early spring or late summer unless you planned for it. Fix: two flower species that bloom at different times beat one species that blooms all at once.
Frequently Asked Questions
Do companion plants replace pesticides in a home garden?
No. Companion plants are one layer of integrated pest management, alongside crop rotation, row cover, hand removal, sanitation and water management. They tend to lower pest pressure and the number of treatments you need, so you may reach for a selective product far less often. But a badly infested bed still needs hands-on work, and a severe outbreak still needs a barrier or a treatment.
Do marigolds actually prevent pests, or do they only distract them?
Both, depending on the pest. French marigolds (Tagetes patula) have the best evidence behind them for suppressing root-knot nematodes in the soil around susceptible crops. For insects, marigolds are more reliably a trap crop than a repellent: they attract aphids and some beetles, so you inspect and remove them there. They do nothing to prevent leaf disease or stop squash bugs.
How far away should companion plants be planted from the crop they protect?
Close enough to be found, and not so close they crowd the crop. Insectary flowers work best within roughly 10 to 20 feet of the plants they support, ideally at bed edges or corners, since hoverflies and parasitoid wasps forage in short flights. Trap crops belong on the sunny edge of the bed, separated from the crop they are meant to protect. In a container, put one pot of flowers beside the pot of vegetables.
Can companion planting for pest control work in containers or raised beds?
Yes, with adjustments. Space rules out wide-row intercropping, so use compact insectary plants such as sweet alyssum, dwarf calendula, chives and low nasturtiums along the rim of a container or the corner of a raised bed. Keep flowers below the height of the vegetable they protect so nothing gets shaded, and expect a smaller effect, since predator numbers in a single bed are limited by its size.
What should I do if companion plants are not stopping a severe pest problem?
Switch from prevention to response. Remove and destroy heavily infested leaves or plants, wash aphids off with water, and use row cover or insect netting on anything not yet attacked. Add sticky cards to identify the pest, because treatment depends on what is actually eating your crop. Keep the flowers in place, since they feed predators that will help next season, and log what happened so the plan is better next year.
Conclusion
Start with the pest, not the flower. Identify what is attacking the crop, protect that crop first with the defenses that cost nothing, and then add two or three companions with a mechanism you can explain out loud.
Sweet alyssum, bolted dill or cilantro, and a border of French marigolds cover most of the benefit available to a home garden. Give them a season to prove themselves, keep a short log, and adjust next 2026 based on what you actually saw.


