Companion planting
8 Tomato Companion Plants (and What to Keep Apart)
Good tomato companions are basil for its documented thrip control, plus marigold, garlic, onion, lettuce, carrots, nasturtium, and parsley for space and pest support. Keep tomatoes away from brassicas, fennel, potatoes, and black walnut.

The short answer
The best tomato companion is basil, backed by University of Minnesota Extension research on thrip control. Marigold, garlic, onion, lettuce, carrots, nasturtium, and parsley round out a solid bed. Keep tomatoes apart from brassicas, fennel, potatoes, and black walnut. Most other companion claims are tradition, not tested science.
Tomato companion charts online repeat the same long lists without saying which pairings are proven and which are folklore. This guide sorts eight real picks by evidence, research-backed, traditional, or anecdotal, so you know what you're actually betting on.
Tomatoes have two real problems: fungal disease that spreads in humid, crowded foliage, and a handful of pests, thrips, aphids, hornworms, that show up most years. Companion planting can help a little with the pests. It does almost nothing for the disease risk, which comes down to spacing, airflow, and rotation instead. Keep that split in mind as you read the tables below.
8 companion plants for tomatoes
Research-backed means a study documents the effect. Traditional means extension services list the pairing as a companion practice, without a controlled trial behind the specific benefit. Anecdotal means it's gardener lore with no extension source.
| Plant | Why it helps | Evidence |
|---|---|---|
| Basil | Field and greenhouse studies show basil cuts thrip numbers on tomatoes; intercropping may also boost tomato growth | Research-backed (UMN Extension) |
| Marigold (French) | Paired with basil, marigold also reduced thrip counts in the same studies | Research-backed (UMN Extension) |
| Garlic | Strong scent is a traditional pest deterrent; takes up little bed space | Traditional (WVU Extension) |
| Onion or chives | Same scent-based logic as garlic, planted at the tomato's base | Traditional (WVU Extension) |
| Parsley | Small flowers draw in beneficial insects, part of the general herbs-and-flowers pattern extensions describe | Traditional (WVU Extension) |
| Nasturtium | Classic trap crop concept; studies confirm it pulls pests off broccoli and squash, not tomatoes specifically | Traditional |
| Lettuce | Low, quick crop that uses bare ground under a staked tomato before the canopy fills in | Traditional |
| Carrots | Another low, narrow crop that fits the gaps without shading the tomato | Traditional |
Basil is the one pick with tomato-specific research behind it. The rest either follow a documented mechanism in other crops (trap crops, beneficial-insect flowers) or fill space well, which is reason enough to plant them even without a tomato study to point to.
Bad companion plants for tomatoes
Now the avoid list, with an honest note on how solid each reason is.
| Keep apart | Why (and how solid the reason is) |
|---|---|
| Brassicas (cabbage, broccoli, cauliflower) | Traditional. Extension sources list brassicas as heavy feeders that compete with tomatoes for the same nutrients. |
| Fennel | Traditional. Widely noted for releasing compounds that can inhibit nearby plants, tomatoes included. |
| Potatoes | Extension-backed. University of Minnesota Extension confirms the early blight fungus infects both tomatoes and potatoes and recommends keeping two years between nightshade plantings in the same spot. |
| Black walnut | Extension-backed. Iowa State Extension lists the tomato family among plants sensitive to juglone, the compound black walnut roots release. |
The potato warning is the one to take seriously. University of Minnesota Extension confirms early blight moves between tomatoes and potatoes and recommends rotation, so planting the two side by side works against the break the disease needs.
The black walnut issue is just as real. Iowa State Extension lists tomato, potato, eggplant, and pepper (the whole nightshade family) as sensitive to juglone. Keep tomatoes well outside a mature walnut's root zone, or grow them in a raised bed with fresh soil that doesn't touch walnut roots.
Peppers and eggplant aren't on a strict avoid list, but they share the same blight risk as potatoes since they're nightshades too. If you grow pepper or eggplant near tomatoes, rotate the whole group together rather than treating them as separate crops. Track where you planted each nightshade crop from year to year, even a simple garden notebook works, so you don't accidentally put tomatoes back where potatoes or peppers grew the season before.
Which companion helps with which pest
Most companion-planting pest claims for tomatoes don't hold up to a source check. Here's what's actually documented.
| Pest | Companion tactic | Source |
|---|---|---|
| Thrips | Basil and marigold intercropped with tomatoes, tested in field and greenhouse trials | University of Minnesota Extension |
Note
Aphids, hornworms, and Colorado potato beetle don't have a tomato-specific companion fix documented in the sources checked for this guide. UMN Extension notes that marigold's popular reputation for repelling Colorado potato beetle didn't hold up in their own trap-crop trial. If those pests are your problem, handpicking, row cover, and beneficial-insect habitat do more than a companion chart.
What actually works, and what's just lore
Here's the honest split on tomato companion planting overall. A few mechanisms are documented. Most specific pairings are not.
The thrip-control research holds up. UMN Extension points to field and greenhouse trials where basil and marigold, grown alongside tomatoes, cut thrip numbers. That's a real, tested effect, not a garden myth.
Drawing in beneficial insects is a sound general strategy. West Virginia University Extension says the scent and color of herbs and flowers attract pollinators and beneficial insects and can confuse pests looking for a host plant. This is a broad principle, not a guarantee that any one herb protects tomatoes specifically.
The popular pest-repellent claims are weaker than they sound. UMN Extension tested marigold as a trap crop for Colorado potato beetle and found no effect, despite how often that pairing shows up in garden lore. Treat any single-herb "repels pests" claim with the same skepticism until you can point to a study.
University of Illinois Extension is direct about the bigger picture: much of what circulates as companion planting advice was never tested in a research study, it's anecdotal, passed down from gardeners who grew two plants together and felt they helped each other. That doesn't make it wrong, it just means you're experimenting, not following a rulebook.
Layout: spacing beats most companion tricks
A well-spaced tomato resists disease better than any companion plant can rescue it from. Air moving through the leaves keeps them dry, and dry leaves are what stop early blight from getting started.
Space tomatoes by growth type, staked or caged plants need less room than sprawling ones, and give each plant its full spacing rather than tightening rows to fit more companions in. The how far apart to plant tomatoes guide has the full spacing breakdown, and the Plant Spacing Calculator works out how many plants fit your bed.
Try it — Plant Spacing Calculator
Full calculatorExtra to cover losses (10% is typical).
You can plant
32plants
- Per row
- 8
- Rows
- 4
- Buy (incl. spare)
- 36 plants
Once spacing is set, tuck basil or parsley near the base, since they don't compete for much room, and let lettuce or carrots use the ground under the canopy while it's still open. Zucchini and cucumbers can share the same bed too. An Ask Extension expert answering this exact question said it works as long as each plant gets enough room, above and below ground, for sun, water, and nutrients, since squash and tomatoes are both heavy feeders that will compete if crowded.
Picture a standard 4x8 raised bed. Set two staked tomatoes down the center, spaced by the guide above, and that leaves the long edges open. Run a low border of lettuce or carrots along both sides while the tomato canopy is still small, they'll be ready to pull before the leaves close in and shade them out. Tuck a basil plant or two at the base of each tomato, close enough to share the bed but not so close it fights for root space. If you want a pollinator draw, a marigold at each corner rounds it out without taking real growing space from the tomatoes.
Keep that bed's neighbors in mind too. Don't put this bed's tomatoes across a narrow path from last year's potato bed if the soil could carry blight spores between them, and skip planting brassicas or fennel in the same bed even though there's room. The bed plan only pays off if the crop rotation behind it holds.
Common mistake
Two errors undo good intentions. Overcrowding in the name of companionship packs plants so tight that air stops moving, leaves stay wet, and blight moves in. A companion that costs you airflow is a net loss. The second is planting tomatoes right next to potatoes or other nightshades without rotating, since they trade early blight back and forth through the soil.
Your next step
Plant basil first, it's the one companion with tomato-specific research behind it, then add marigold, garlic, onion, lettuce, and carrots for pest support and ground cover. Keep brassicas, fennel, potatoes, and black walnut away, and give peppers or eggplant the same rotation as tomatoes if you grow them nearby.
The single biggest win is spacing. Open the Plant Spacing Calculator to lay out your tomato bed for airflow first, then read when to plant tomatoes and when to harvest tomatoes to time the crop, and pair basil in with basil companion plants for the reverse view.
Common questions
What should not be planted next to tomatoes?
Keep tomatoes away from brassicas like cabbage and broccoli, which compete for the same nutrients, and from fennel, which can inhibit nearby plants. Don't plant tomatoes next to potatoes, since both carry early blight and the disease spreads between them. And keep tomatoes well clear of black walnut trees, which release juglone that the tomato family tolerates poorly.
Can I plant peppers and tomatoes together?
You can, but it's not the best pairing. Tomatoes and peppers are both nightshades and share the fungus that causes early blight, so planting them side by side can let the disease spread between them and makes rotation harder. If you grow them together, space each plant fully for airflow and move the whole nightshade group to a new bed each year.
Should you plant tomato plants next to each other?
Yes, that's normal. Just give each plant its full spacing so leaves dry out fast after rain or watering. Crowded tomatoes trap humid air around the foliage, and that damp air is what lets early blight and other fungal diseases take hold. See our how-far-apart-to-plant-tomatoes guide for spacing by growth type.
Can I plant zucchini next to tomatoes?
There's no documented conflict. An Ask Extension expert answering this exact question said you can grow tomatoes, squash, and cucumbers together as long as you leave enough room, above and below ground, so they don't compete for sun, water, and nutrients. Both are heavy feeders, so give them full spacing rather than crowding them close.
What is the best companion plant for tomatoes?
Basil has the strongest research behind it. University of Minnesota Extension cites field and greenhouse studies showing basil and marigold can reduce thrip numbers on tomatoes, and notes intercropping with basil may help tomato growth. Most other companion picks are traditional advice without a study behind that specific pairing.
Is it okay to plant cucumbers and tomatoes together?
Yes. They're in different plant families, so they don't share the blight that makes tomatoes and potatoes a bad pair. The same Ask Extension answer that covers tomatoes and squash applies here too: give both plants enough room for sun, water, and nutrients and there's no documented problem.
Sources
Agronomic claims in this guide are checked against these primary sources.
- Companion planting in home gardens — University of Minnesota Extension
- Companion Planting — West Virginia University Extension
- Early blight in tomato and potato — University of Minnesota Extension
- What plants are sensitive to the juglone produced by black walnuts? — Iowa State University Extension and Outreach
- Companion Planting: Anecdotal or Tried and Tested? — University of Illinois Extension
- Planting tomatoes, spaghetti squash, and cucumbers together — Ask Extension (Cooperative Extension System)
Keep reading
Pepper Companion Plants (and What to Keep Apart)
Good neighbors for peppers include basil, onions and garlic, carrots, lettuce and spinach, nasturtium, and tomatoes. Keep fennel and heavy-feeding brassicas apart. The reliable wins are spacing, pollinator support, and not crowding, not flavor magic.
Read →8 Eggplant Companion Plants (and What to Keep Apart)
Good eggplant companions are beans and peas for nitrogen, French marigolds for nematode-prone soil, and flowers for pollinators. Keep eggplant away from potatoes and out of last year's nightshade bed. WVU Extension backs beans and marigolds; most of the rest is honest tradition, not proven science.
Read →Basil Companion Plants (What Works and What's a Myth)
Basil grows well next to tomatoes, peppers, eggplant, and most summer vegetables, and its flowers draw pollinators when it blooms. The popular "improves tomato flavor / repels pests" claims are mostly traditional, not proven. Here is what the evidence actually supports.
Read →When to Plant Tomatoes (Frost + Soil Temp by Zone)
Set tomato transplants out 1 to 2 weeks after your last spring frost, once soil hits at least 60 F. Start seeds indoors 6 to 8 weeks before that frost date. Cold soil stalls them, so wait for warmth.
Read →When to Harvest Tomatoes (Signs They're Ready)
Tomatoes are ready about 60 to 85 days after transplant, when they are fully colored and give slightly to a gentle squeeze. Here are the cues, the twist-or-cut method, and how to ripen the rest on the counter.
Read →12 Garlic Companion Plants (and What to Avoid)
Good garlic companions are low crops like beets, lettuce, and chard that share the bed while garlic grows through winter, plus tomatoes, strawberries, and carrots. Keep garlic away from beans, peas, and other alliums planted too soon after it.
Read →