Tomatoes grow better with the right neighbors. That is the core idea behind companion planting — and when it comes to tomatoes, the evidence for certain plant partnerships is stronger than almost any other combination in the vegetable garden.
The right companion plants around your tomatoes can deter pests naturally, attract the beneficial insects that prey on those pests, improve pollination, use garden space more efficiently, and in some cases support healthier soil around your tomato roots. The wrong companions — and there are several — compete for nutrients, create humidity that encourages disease, or share the same pest and disease vulnerabilities as tomatoes.
This guide covers the best-supported tomato companion plants, why each one works, exactly how to plant them, the companions that are overrated or actively harmful, and a complete planting layout you can use in a raised bed or in-ground garden.
One honest note before we begin: much companion planting advice circulating online is anecdotal. Where the science is solid, this guide says so. Where the evidence is primarily observational — gardeners’ consistent experience across many seasons — that is noted too. Both types of evidence have value; they just deserve to be labeled accurately.
What Companion Planting Actually Does for Tomatoes
Before choosing companions, it helps to understand exactly what mechanisms make companion planting work — and what it cannot do.
The Four Mechanisms of Effective Companion Planting
| Mechanism | How It Works | Example |
|---|---|---|
| Pest deterrence | Aromatic compounds repel pest insects or mask host plant scent | Basil masking tomato scent from thrips |
| Beneficial insect recruitment | Nectar-producing flowers attract predatory and parasitic insects | Borage attracting parasitic wasps that kill hornworms |
| Nematode suppression | Root compounds toxic to soil-dwelling pests | French marigold roots releasing alpha-terthienyl against root-knot nematodes |
| Space efficiency | Low-growing companions fill space that would otherwise support weeds | Lettuce and alyssum as living mulch under tomatoes |
What Companion Planting Cannot Do
Companion planting supplements good tomato care — it does not replace it. Healthy tomatoes still depend on full sun, good airflow, consistent watering, proper spacing, strong support structures, and fertile soil. A crowded tomato bed with poor airflow will develop fungal disease regardless of what companions surround it. Think of companion planting as one layer in a complete growing strategy, not a stand-alone solution.
For the complete foundation of growing healthy, productive tomatoes, our complete tomato growing guide covers everything from variety selection to harvest.
Is Your Garden Ready for Companion Planting? A Quick Planning Check
Answer these five questions before laying out your companion planting scheme:
| Question | Why It Matters |
|---|---|
| How much space surrounds each tomato plant? | Companions must not crowd tomatoes — airflow is critical for disease prevention |
| Are you growing in raised beds, containers, or in-ground? | Determines spacing options and which companions fit |
| What are your main tomato pest problems? (aphids, hornworms, nematodes, whiteflies?) | Lets you prioritize companions that address your specific issues |
| Do you have full sun in the tomato bed? | Some companions tolerate shade; others compete for light |
| Are you also growing other nightshades nearby? (peppers, eggplant, potatoes?) | Affects which companions are appropriate — some attract pests shared by all nightshades |
The 10 Best Companion Plants for Tomatoes
1. French Marigolds — The Single Best Tomato Companion
Evidence level: Strong scientific support
French marigolds (Tagetes patula) are arguably the most effective companion plant for tomatoes, and the research supports it more thoroughly than almost any other companion planting combination.
French marigold roots release a compound called alpha-terthienyl, which research has confirmed is toxic to root-knot nematodes — microscopic soil-dwelling worms that burrow into tomato roots and can devastate yields. This is not folklore; it is documented horticulture. For this effect to work, marigolds must be planted densely in and around the tomato bed — not just at the border — and ideally left in place after the season with roots in the soil.
Marigolds also release limonene, which research from Newcastle University confirmed repels whiteflies. Their composite flowers — each bloom made up of many small florets — attract pollinators that improve tomato fruit set and beneficial predatory insects.
Important: This is specifically French marigolds (Tagetes patula), not African marigolds (Tagetes erecta) or calendula (pot marigold), which does not share these properties. Look specifically for French marigold varieties such as Bonanza or Hot Pak series.
How to plant: Interplant throughout the tomato bed — one marigold plant every 12–18 inches among the tomatoes, not just at the perimeter. Plant at the same time as tomatoes. Leave roots in the soil at season’s end for continued nematode suppression.
2. Basil — The Classic Tomato Partner
Evidence level: Moderate scientific support + strong observational evidence
Basil is the most famous tomato companion, and the evidence for its benefits is real, though more nuanced than popular gardening accounts suggest. Studies have shown that basil planted among tomatoes reduces thrips damage — thrips being a significant tomato pest. The mechanism appears to be aromatic masking: basil’s volatile compounds interfere with thrips’ ability to locate tomato plants.
Basil also repels aphids and whiteflies through its strong scent, though the effect requires basil to be actively growing and close to the tomatoes — dried or distant basil has no meaningful effect.
Beyond pest deterrence, basil and tomatoes have identical growing requirements — full sun, warm temperatures, consistent moisture — which makes them natural companions from a practical standpoint. Interplanting basil frees you from growing it in a separate container and lets you harvest both from the same bed.
How to plant: Plant basil 12–18 inches from tomato stems. Keep it pruned and bushy — do not let it bolt to flower, which reduces volatile oil production and pest deterrent effect. One basil plant per two tomato plants is a good ratio.
3. Borage — The Hornworm Fighter
Evidence level: Strong observational evidence; biological mechanism confirmed
Borage (Borago officinalis) is the companion plant most tomato gardeners overlook — and one of the most effective for a specific, significant tomato pest. Borage’s star-shaped blue flowers are highly attractive to Cotesia congregatus, a parasitic wasp that lays its eggs inside tomato hornworm larvae. The wasp larvae consume the hornworm from within, eliminating it without any chemical intervention.
One established borage plant can maintain a foraging population of parasitic wasps across approximately a 10-foot radius. The practical recommendation is one borage plant per four tomato plants, placed at intervals rather than interplanted throughout.
Borage also attracts bees and other pollinators that improve tomato fruit set. Its leaves are edible with a mild cucumber flavor — a kitchen bonus.
Important note: Borage self-seeds extremely aggressively. It will return every season whether you plan for it or not. Plant it where you are comfortable having it come back permanently, or deadhead flowers before they set seed if you want to control it.
How to plant: One plant per four tomatoes, positioned at corners or intervals in the bed. Direct sow or transplant at tomato planting time.
4. Sweet Alyssum — The Living Mulch
Evidence level: Strong — widely used in commercial integrated pest management
Sweet alyssum (Lobularia maritima) is one of the most practical and underutilized tomato companions. It stays low, spreads to fill the space between tomato plants, produces a continuous mass of tiny flowers that attract hoverflies and parasitic wasps, and acts as a living mulch that suppresses weeds and retains soil moisture.
Hoverfly larvae are voracious aphid predators — a single hoverfly can lay hundreds of eggs in an aphid colony, and the larvae that hatch consume the aphids immediately. Maintaining a population of adult hoverflies in the garden through nectar-rich flowers like alyssum provides ongoing, self-sustaining aphid control.
How to plant: Sow seeds or plant transplants in the spaces between tomato plants and at the bed perimeter. Alyssum tolerates light shade from tomato foliage as the season progresses. Shear lightly mid-season to encourage fresh flowering if plants become leggy.
5. Chives and Garlic — The Allium Defenders
Evidence level: Moderate scientific support for aphid and spider mite deterrence
Alliums — particularly chives (Allium schoenoprasum) and garlic (Allium sativum) — release volatile sulfur compounds that repel aphids and spider mites. Garlic spray made from crushed garlic and water has also shown effectiveness against fungal diseases including early blight, making it doubly useful in the tomato bed.
Chives are particularly practical because they are perennial — plant them once in or near the tomato bed and they return every season, requiring minimal management. Their purple pompom flowers attract pollinators throughout spring and summer.
How to plant: Chives: plant a clump every 24 inches throughout the tomato bed; they are compact and do not compete aggressively for space. Garlic: plant at the bed perimeter or between tomatoes; inter-harvest bulbs in early summer before they compete with tomato root systems in midsummer.
6. Carrots — The Root Aerators
Evidence level: Primarily observational
Carrots planted near tomatoes provide a mechanical benefit rather than a chemical one: their deep taproot growth aerates the soil around tomato root zones, improving drainage and root penetration. They also use vertical space in the soil that tomato roots generally do not occupy, making them genuine space-efficient companions rather than competitors.
How to plant: Sow carrot seeds 6–8 inches from tomato stems. Harvest carrots before they become large enough to compete with tomato root spread in late summer.
7. Lettuce and Salad Greens — Space-Efficient Companions
Evidence level: Primarily observational (space efficiency)
Lettuce, spinach, and other salad greens are cool-season crops that mature and are harvested before tomatoes hit peak growth and shade them out. In spring, they fill the space between young tomato transplants productively; by the time tomatoes expand and their canopy reduces available light, the salad greens have been harvested.
This is companion planting for space efficiency rather than pest management — but it is highly practical and doubles the productivity of the tomato bed early in the season.
How to plant: Sow or transplant between tomato plants at tomato planting time. Harvest progressively as tomatoes grow and begin to shade them — typically by early summer.
8. Nasturtiums — The Trap Crop
Evidence level: Strong observational; widely used in commercial organic production
Nasturtiums (Tropaeolum majus) are one of the most effective trap crops available — plants grown specifically to attract pests away from your primary crops. Aphids find nasturtiums irresistible and will colonize them in preference to nearby tomatoes, concentrating the pest population where it can be managed easily or simply tolerated on a sacrificial plant.
Nasturtium flowers and leaves are also edible with a peppery flavor, making them a useful kitchen plant as well as a garden ally.
How to plant: Plant at the edge of the tomato bed or in a separate nearby cluster — not interplanted directly with tomatoes, which brings aphids into close proximity to your crop. Check nasturtiums regularly; if aphid populations explode, cut affected stems and dispose of them away from the garden.
9. Parsley — The Beneficial Insect Host
Evidence level: Moderate observational
Parsley (Petroselinum crispum) allowed to flower — in its second year, as a biennial — produces flat-topped umbel flowers that are highly attractive to parasitic wasps and hoverflies. These beneficial insects then patrol nearby tomato plants for pests.
Keep parsley in the tomato bed for two full seasons to access this benefit — first-year parsley that has not flowered provides less beneficial insect value.
How to plant: Plant parsley at the edge of the tomato bed; allow second-year plants to flower. Harvest leaves regularly from first-year plants.
10. Crimson Clover — The Nitrogen Fixer
Evidence level: Scientifically well-supported
Crimson clover (Trifolium incarnatum) grown as a living mulch between tomato rows fixes atmospheric nitrogen through root nodule bacteria, making it available to neighboring plants including tomatoes. It also outcompetes weeds, retains soil moisture, and provides nectar for pollinators.
How to plant: Sow between tomato rows at tomato planting time. Cut back periodically throughout the season to prevent it from becoming too tall and competing with tomatoes for light.
Companion Planting Layout: 4×8 Raised Bed
Here is a practical planting arrangement for a standard 4×8 foot raised bed with two or three tomato plants:
| Position | Plant | Purpose |
|---|---|---|
| Center (×2–3) | Tomatoes (staked or caged) | Primary crop |
| Between tomatoes | Basil (×2–3 plants) | Pest deterrence, space use |
| Corners (×4) | French marigolds | Nematode suppression, whitefly deterrence |
| Perimeter | Sweet alyssum | Beneficial insect recruitment, weed suppression |
| One corner | Borage (×1 plant) | Hornworm parasitic wasp recruitment |
| Bed edge | Chives or garlic | Aphid and spider mite deterrence |
| Separate nearby pot or bed edge | Nasturtiums | Aphid trap crop |
This arrangement addresses the four most common tomato pest problems — aphids, hornworms, whiteflies, and nematodes — while maximizing space and supporting beneficial insect populations throughout the season.
Companion Plants by Tomato Problem
Use this table to prioritize companions based on your specific challenges:
| Tomato Problem | Best Companion | Mechanism |
|---|---|---|
| Root-knot nematodes | French marigolds | Alpha-terthienyl toxic to nematodes |
| Aphids | Sweet alyssum, chives, nasturtiums (trap) | Hoverfly recruitment; sulfur deterrence; trap crop |
| Tomato hornworm | Borage | Recruits parasitic wasps |
| Whiteflies | French marigolds, basil | Limonene repellent; aromatic masking |
| Spider mites | Garlic, chives | Sulfur compound deterrence |
| Thrips | Basil | Aromatic masking |
| Poor pollination | Borage, marigolds, alyssum | Pollinator attraction |
| Weed pressure | Alyssum, crimson clover | Living mulch and ground cover |
| Soil nitrogen depletion | Crimson clover | Nitrogen fixation |
What NOT to Plant Near Tomatoes
Companion planting works both ways — certain plants actively harm tomato performance when grown nearby and should be kept well away from the tomato bed.
Plants to Avoid Near Tomatoes
| Plant | Why It Harms Tomatoes | Minimum Distance |
|---|---|---|
| Fennel | Allelopathic — releases compounds that inhibit tomato growth; one of the few truly well-documented bad companions | Keep entirely separate — different bed |
| Brassicas (cabbage, broccoli, kale) | Compete aggressively for soil nutrients; share pest vulnerability with tomatoes for some species | At least 3 feet |
| Corn | Shares tomato fruitworm / corn earworm pest; growing together concentrates pest populations | Different bed if possible |
| Potatoes | Same family (Solanaceae) — share blight disease; growing together accelerates disease spread | Different bed entirely |
| Peppers and eggplant | Share aphids, blight, and other diseases — concentrated nightshade family planting increases disease and pest risk | Minimum 18–24 inches; different bed preferred |
| Dill (mature) | Young dill attracts beneficial insects; mature flowering dill is allelopathic to tomatoes | Plant young dill at bed edge; remove before it matures fully |
The fennel warning is important. Fennel is one of the most problematic plants in a vegetable garden generally — it inhibits the growth of most vegetables through root exudates and should be grown in its own isolated container or bed, well away from the vegetable garden.
Companion Planting Myths Worth Addressing
Myth: Basil improves tomato flavor This is widely repeated and widely unverified. No controlled study has demonstrated that basil physically changes the flavor compounds in nearby tomatoes. Growing basil next to tomatoes does not make your tomatoes taste better. Growing both together is still worthwhile for pest deterrence and space efficiency — but manage expectations about flavor improvement.
Myth: Any marigold works for nematode control Only French marigolds (Tagetes patula) have demonstrated meaningful nematode suppression through alpha-terthienyl. African marigolds and calendula (pot marigold) do not share this property to the same degree. This distinction matters — buy the right species.
Myth: Companion planting eliminates the need for pest management Companion planting reduces pest pressure — it does not eliminate it. In a heavy aphid year or a late blight outbreak, companion plants will not save your tomatoes without additional intervention. For a full natural pest management toolkit, our garden pest control naturally guide covers every tomato pest and evidence-based natural solutions.
Myth: The more companion plants the better Overcrowding the tomato bed is one of the most common mistakes in companion planting. Poor airflow between plants is the primary driver of fungal disease in tomatoes — early blight, late blight, and septoria leaf spot all thrive in humid, crowded conditions. Every companion plant you add must earn its place without crowding the tomatoes. Airflow always takes priority.
Seasonal Companion Planting Calendar
| Season | Companion Action |
|---|---|
| Early spring (before tomato planting) | Sow lettuce and salad greens in the tomato bed space; plant chives and garlic |
| Tomato planting time | Plant marigolds, basil, alyssum, and borage at the same time as tomatoes |
| 2–4 weeks after planting | Sow nasturtiums at bed edge as trap crop; sow crimson clover between rows |
| Early summer | Harvest salad greens as tomatoes expand; shear alyssum if leggy; remove bolting basil flower heads |
| Midsummer | Check nasturtiums for aphid trap crop effectiveness; add fresh basil if needed |
| Late summer / fall | Allow borage to set some seed for self-sowing; leave marigold roots in soil for nematode suppression |
Growing Companion Plants in Containers and Small Spaces
If you are growing tomatoes in containers or a small patio garden, companion planting is still practical — it just requires scaling down and prioritizing.
For a single tomato container, the most valuable companion additions are:
- One basil plant in the same large container or an adjacent pot
- Two or three French marigold plants in separate containers placed alongside the tomato
- Sweet alyssum in a window box or small pot at container perimeter
Our container gardening for beginners guide covers growing vegetables and herbs in pots, including how to arrange companion plants effectively in limited space.
Common Companion Planting Mistakes to Avoid
1. Planting companions too close and reducing airflow This is the most damaging mistake. Every companion plant must be spaced to maintain airflow between all plants. Fungal disease from poor airflow causes far more damage than the benefits of any companion plant.
2. Using African marigolds instead of French marigolds For nematode suppression, only French marigolds (Tagetes patula) work reliably. Check the label before buying.
3. Planting fennel anywhere near tomatoes Fennel inhibits tomato growth and should never share a bed. Grow it in an isolated container if you want it at all.
4. Planting companions as a perimeter-only ring Companions at the bed edge provide less benefit than companions interplanted throughout the bed. Basil and marigolds need to be among the tomatoes, not just around them.
5. Allowing nasturtiums to explode with aphids near tomatoes Nasturtiums work as trap crops only when monitored and managed. If aphid populations on nasturtiums become very large, they can spread to nearby tomatoes. Check weekly and remove severely infested stems.
6. Expecting companion planting to compensate for poor soil Companion plants cannot fix nitrogen-depleted, compacted, or poorly draining soil. Good soil is the foundation. Our best soil for vegetable gardens guide covers soil preparation before any companion planting strategy is considered.
7. Replanting the same companions in the same spots every year Crop rotation applies to companion plants as well as primary crops. Rotating companion plant positions prevents soil pathogen buildup and keeps the garden ecosystem balanced.
Frequently Asked Questions
Q: Does basil really make tomatoes taste better? The evidence for this popular claim does not hold up under scrutiny. No controlled study has demonstrated that basil planted near tomatoes measurably improves tomato flavor compounds. Basil is still a valuable tomato companion for pest deterrence reasons — particularly against thrips and aphids — and growing both together makes practical sense. Just do not plant basil expecting flavor improvement; plant it for pest management.
Q: How many marigold plants do I need for effective nematode control? For meaningful nematode suppression, marigolds need to be planted densely throughout the bed — not just at the borders. Aim for one marigold plant every 12–18 inches throughout the tomato bed. Plant them at the same time as tomatoes and allow roots to remain in the soil after the season ends. A border of four or five marigolds around a large bed will have minimal nematode impact.
Q: Can I grow peppers and tomatoes together? Technically possible with adequate spacing, but not recommended as a best practice. Peppers and tomatoes share several common diseases — particularly blight and various viral diseases — and growing them in proximity concentrates disease risk. They also share some common pests. If space is limited and you must grow them near each other, maintain at least 24 inches of separation and prioritize good airflow.
Q: Should I remove borage flowers to prevent self-seeding? Whether to deadhead borage depends on your garden situation. If you want borage to return the following season (recommended — established borage provides better beneficial insect recruitment than newly planted borage), allow some flowers to set seed. If you want to control its spread, deadhead consistently. Borage self-seeds prolifically; once established it will return for years whether you plan for it or not.
Q: Does companion planting work in raised beds? Raised beds are actually ideal for companion planting because you have complete control over plant placement, spacing, and soil quality. The standard 4×8 raised bed accommodates two to three tomato plants plus a full suite of companion plants with proper spacing. The key is not overcrowding — raised beds make it tempting to plant intensively, but tomatoes specifically need airflow, which limits how many companions can share the space.
Conclusion
Companion planting for tomatoes works best when approached as a system rather than a collection of individual plant pairings. French marigolds throughout the bed for nematode and whitefly control, basil among the tomatoes for thrips and aphid deterrence, borage at intervals for hornworm parasitic wasp recruitment, sweet alyssum at the perimeter for hoverfly populations, and nasturtiums as a sacrificial trap crop nearby — together, these create a garden environment that significantly reduces the most common tomato pest pressures without a single spray.
The caveat that matters: companion planting is one layer of a complete growing strategy, not a replacement for good fundamentals. Healthy soil, proper spacing, consistent watering, and adequate support for your plants do more for your harvest than any companion combination. But get the fundamentals right and add the right companions, and your tomato bed becomes a genuinely self-regulating ecosystem that gets easier to manage every season.