Companion planting for vegetables: the science vs the folklore
The Three Sisters system is real ecology. Trap crops work. Most Pinterest companion planting charts are unsourced and some specific claims have been directly disproven. Here is what the evidence actually shows.
—- title: "Companion planting vegetables" slug: companion-planting-vegetables hub: vegetables category: Vegetable guide description: "Companion planting is one of the most enthusiastically mythologized topics in home gardening. Every spring, social media resurfaces charts showing that tomatoes love basil and hate fennel, that beans." date: 2026-06-10 updated: 2026-06-10 author: "Thomas A." reading_time: 9 —-
Companion planting is one of the most enthusiastically mythologized topics in home gardening. Every spring, social media resurfaces charts showing that tomatoes love basil and hate fennel, that beans should never grow near onions, and that marigolds repel everything from aphids to deer. Most of those charts are unsourced. Some of the claims are directly contradicted by research. A few are genuinely supported.
This guide focuses on what the evidence actually shows. Not what tradition says, not what a popular gardening chart claims — what university extension research and published studies support.
What companion planting can and cannot do
Companion planting works through four main mechanisms:
- Physical support — one plant provides structure for another
- Nitrogen fixation — legumes capture atmospheric nitrogen and benefit nearby heavy feeders
- Trap cropping — a more attractive plant draws pests away from the target crop
- Habitat for beneficial insects — flowering plants provide nectar for predators and parasitoids of pest insects
What companion planting generally cannot do reliably: chemically repel specific pest insects from a distance, eliminate the need for other pest management, or override cultural problems like wrong pH, insufficient light, or poor drainage.
The Three Sisters: real science
The Three Sisters system — corn, beans, and squash planted together — is the most well-documented and historically grounded companion planting system in North American horticulture.
Per University of Minnesota Extension, this is "the most famous example" of companion planting with mutual support. The documented interactions:
- Corn provides a trellis for beans to climb, eliminating the need for stakes or other support structures.
- Beans fix nitrogen from the atmosphere through rhizobial bacteria on their roots, making it available to the nitrogen-hungry corn and squash.
- Squash leaves shade the ground, suppressing weeds and retaining soil moisture for all three plants.
- Per UMN Extension, corn "provides a visual deterrent for squash insects such as squash vine borer" — though this is a secondary effect, not the primary value.
- Per UMN Extension, "squash can be a deterrent to vertebrate animals like raccoons, which often eat sweet corn" — the prickly squash leaves and vines around the corn base make it harder for raccoons to enter the planting.
The Three Sisters model "first emerged in Mesoamerica and has been used by many indigenous communities including Pueblo, Mandan and Iroquois tribes for hundreds of years" per UMN Extension. It is also the foundation of milpa farming systems still practiced in Mesoamerica today. This is not folk wisdom that might work — this is an agricultural system that has sustained civilizations.
Practical notes for home gardens: The Three Sisters requires substantial space — a minimum of a 10x10-foot planting to work correctly. Corn is wind-pollinated and needs a minimum block of 4 rows to pollinate reliably. The beans and squash are planted around the corn after it establishes 6 inches of growth.
Trap crops: supported by research
A trap crop is a plant that is more attractive to a pest than the primary crop, drawing the pest to a concentrated, manageable location where it can be controlled or tolerated.
Nasturtium for aphids and squash insects
Per UMN Extension, "many garden blogs recommend planting nasturtium alongside squash plants. This age-old practice is supported by research, showing that nasturtium can help to reduce squash bug populations. Another study in Iowa showed that nasturtium and marigolds both helped to reduce damage from squash bugs and cucumber beetles."
Nasturtiums are highly attractive to black aphids and to squash bugs. Planting them at the border of a squash or cucumber planting concentrates pest pressure on the nasturtium, which can then be removed or treated without broad garden pesticide applications.
Blue Hubbard squash for cucumber beetles
Per UMN Extension, "Blue Hubbard squash attracts cucumber beetle, squash bugs and squash vine borer. By planting Blue Hubbard squash, you can help to pull cucumber beetles away from your other cucurbits."
Per UMass Extension research on perimeter trap cropping, Blue Hubbard squash "contains high concentrations of the striped cucumber beetle attractant, cucurbitacin" — the same compound that makes cucumbers bitter. Planted around the perimeter of a butternut squash or cucumber planting, Blue Hubbard concentrates beetle feeding at the border, where insecticide applications are more targeted and effective.
Brassica trap crops for flea beetles
Per UMN Extension, "spicier" brassica species — arugula, mustard, rapeseed, and napa cabbage — "can serve as trap crops for flea beetles. More diverse species compositions (3+ species planted together) are more effective at reducing flea beetle damage than single trap crops."
This is specific: mustard and arugula planted near broccoli, cabbage, or kale concentrate flea beetle feeding on the trap crop rather than the main crop.
Basil and tomatoes: more nuanced than the myth
"Tomatoes and basil are companion plants" is one of the most repeated gardening claims. The evidence is more specific than most people realize.
Per UMN Extension, "a few studies show that basil and marigolds can be effective at reducing thrip populations in tomatoes in both field and greenhouse conditions. Intercropping with basil may even help to promote tomato growth."
This is real, but limited in scope:
- The benefit is for thrips, specifically — not a broad repellent effect on all tomato pests.
- The companion planting effect on thrips is modest compared to direct thrip control methods.
- The promotion of tomato growth has been observed in some studies but is not consistent across all conditions.
Basil near tomatoes is not harmful, and it is useful for the cook. Plant it together if you like. Just don't expect it to solve aphid, hornworm, or late blight problems — those require separate management.
What the research says does NOT work
Marigolds as universal repellents
Per UMN Extension, "many gardening articles mention marigolds as a deterrent for Colorado potato beetles, but multiple studies have shown this to be untrue." The UMN Extension team tested this directly, using eggplant transplants as a trap crop for potato beetles, "and saw no effect."
Marigolds are not without value — French marigolds (Tagetes patula) planted densely and then tilled under are documented to reduce nematode populations in the soil the following season. This is a long-term soil management technique, not a seasonal pest repellent. Marigolds also provide habitat for syrphid fly larvae, which consume aphids.
But the Pinterest-level claim that marigolds repel aphids, beetles, rabbits, or deer from nearby plants is not supported.
Bean/onion incompatibility
The claim that beans and onions should never be planted together is widely repeated. There is no credible research supporting it as a real antagonistic interaction. Per UMN Extension general companion planting guidance, gardening charts with "long lists of plants that repel insects are not always accurate or backed by research."
Most online companion planting charts
Per UMN Extension, "gardening charts online will provide you with long lists of plants that repel insects; these are not always accurate or backed by research." The majority of these charts trace back to a few anecdotal sources published in the 1970s that were never systematically tested.
What is actually worth trying
| Practice | Evidence level | Notes |
|---|---|---|
| Three Sisters (corn, beans, squash) | High — centuries of practice, documented mechanisms | Requires space (10x10 minimum); corn needs a block |
| Nasturtium as trap crop for squash bugs | Moderate — Iowa State research | Plant at borders; inspect and manage trap crop regularly |
| Blue Hubbard squash as perimeter trap for cucumber beetles | High — UMass Extension research | Requires full perimeter planting; treat border, not main crop |
| Basil near tomatoes for thrip reduction | Low-moderate — a few studies | Some thrip reduction; no broad repellent effect; useful for kitchen |
| Dense marigold planting for nematode suppression | High — soil management technique | Must be tilled under; takes full season; doesn't work as seasonal spray |
| Flowering plants near vegetables for predatory insects | High — general entomology | Syrphid flies, parasitic wasps benefit from nearby flowers |
| Arugula/mustard trap crops for flea beetles on brassicas | Moderate — research-supported | Most effective with 3+ trap crop species |
The underlying principle
Per UMN Extension, "by simply including plenty of flowers in your garden, you can attract syrphid flies; syrphid fly larvae consume substantial numbers of aphids, and adults lay their eggs nearby." This is the most broadly reliable companion planting principle: a diverse garden with flowering plants in and around the vegetable beds supports a population of beneficial insects that naturally suppresses pest pressure. No specific pairing required — just diversity.
Recommended gear: Sweet corn varieties for the home garden — our buyer's guide covering picks for every budget, ranked by Extension publication consensus and personal use.
Frequently asked
Does planting basil near tomatoes help?
Partially. Per UMN Extension, studies show basil and marigolds "can be effective at reducing thrip populations in tomatoes" in field and greenhouse conditions. The effect is for thrips specifically — not the broad "pest repellent" quality claimed in most popular sources. Basil near tomatoes is not harmful and is practically convenient for cooking. Do not plant it expecting it to protect against hornworms, aphids, or disease.
Does the Three Sisters system actually work?
Yes. Per UMN Extension, the Three Sisters system has documented ecological interactions: corn supports beans, beans fix nitrogen, squash suppresses weeds and deters some vertebrate pests. This system "has been used by many indigenous communities for hundreds of years" and remains the foundation of milpa farming systems in Mesoamerica. The practical requirement is space — a minimum 10x10-foot area, with corn planted in a block for adequate wind pollination.
Do marigolds repel pests?
The nematode suppression effect of French marigolds is real, but it requires dense planting over a full season followed by tilling under — it is a soil management technique, not a seasonal repellent. Per UMN Extension, the claim that marigolds deter Colorado potato beetles has been tested and "shown to be untrue." The broad repellent claims for marigolds in most online planting charts are not supported by research.
How do I use a trap crop effectively?
A trap crop works only if you monitor it and act when pests concentrate on it. Per UMass Extension guidance on Blue Hubbard squash as a perimeter trap for cucumber beetles, the approach requires surrounding the main crop completely, checking the border regularly, and applying insecticide to the border plants (not the main crop) when beetles concentrate there. A trap crop that is planted and ignored does not reduce pest pressure — it simply provides additional pest habitat.
Sources
- University of Minnesota Extension — Companion planting in home gardens.
- UMass Extension — Using Perimeter Trap Crops to Manage Striped Cucumber Beetle and Bacterial Wilt.
- Penn State Extension — Polyculture (Adams County Master Gardener).
- Penn State Extension — Deterring Striped Cucumber Beetles in Organic Cucurbit Production.
