The best companion plants for tomatoes are basil, marigolds, nasturtiums, sweet alyssum, chives, bush beans, and shade-tolerant greens like lettuce. Keep fennel, potatoes, brassicas, corn, and black walnut trees away from the bed, and give peppers, eggplant, cucumbers, and squash room instead of crowding them in.
That short list is where most charts stop. You read one, tuck in some basil, scatter a few marigolds, and wait for magic. Then the aphids show up anyway.
Companion planting works, but not in the way most guides suggest. My beds are in USDA Zone 6b, and I have grown tomatoes with companion plants there for 11 seasons now. The neighbors that earn a spot next to my tomatoes are the ones with a clear job.
For every plant, I flag whether the benefit is backed by research, widely observed by gardeners, or mostly folklore, so you know which pairings to count on.
Tomato Companion Planting Chart
Research means published trials back the benefit, limited means only a trial or two, observed means gardeners report it consistently, and folklore means the claim has little support.
Plants to Grow With Tomatoes
| Plant | Evidence | Why | Best Spot |
|---|---|---|---|
| Basil | Research | Primes defenses | Base of plant |
| Chives | Observed | Deters aphids | Gaps |
| Parsley | Observed | Feeds predators | Under canopy |
| Marigolds | Research | Hoverflies, nematodes | Bed border |
| Borage | Observed | Draws bees | Roomy corner |
| Nasturtiums | Observed | Aphid trap crop | Bed edges |
| Sweet alyssum | Limited | Hosts predators | Base of plant |
| Calendula | Observed | Draws hoverflies | Bed edges |
| Carrots | Observed | Loosens soil | Between plants |
| Lettuce, spinach | Observed | Uses shade | North side |
| Radishes | Observed | Fast filler | Gaps |
| Bush beans | Observed | Low, fixes nitrogen | Sunny edge |
Plants to Grow With Care
| Plant | Evidence | Why | Best Spot |
|---|---|---|---|
| Onions, garlic | Observed | Thrips risk | Edges |
| Peppers, eggplant | Research | Shared diseases | Spaced, rotated |
| Cucumbers | Research | Shared virus | Trellis apart |
| Squash, zucchini | Observed | Sprawls, shades | Far end |
Plants to Keep Away From Tomatoes
| Plant | Evidence | Why | Best Spot |
|---|---|---|---|
| Brassicas | Observed | Heavy feeders | Other bed |
| Corn | Observed | Earworm, shade | Other bed |
| Fennel | Observed | Stunts neighbors | Own pot |
| Potatoes | Research | Late blight | Other bed |
| Mature dill | Folklore | Shades seedlings | Harvest young |
| Rosemary | Observed | Wants dry soil | Own pot |
| Black walnut | Observed | Juglone | Far from roots |
What is Companion Planting for Tomatoes?
Companion planting means growing specific plants near your tomatoes so each one supports the other. This method has existed for thousands of years.
Indigenous farmers used the Three Sisters method, corn, beans, and squash, where each plant served a purpose for the others.
In my experience, the right tomato neighbors can do a few practical things:
- Attract insects that eat common pests
- Draw pests away from tomatoes and toward themselves (trap cropping)
- Bring in bumblebees, whose buzzing shakes extra pollen loose in tomato flowers
- Fill the space in the bed without competing for nutrients
One thing I want to get clear upfront: companion planting does not replace good care. Tomatoes still need full sun, consistent water, correct spacing, and healthy soil.
A crowded bed with poor airflow will still struggle, even with the “right” companions around it.
The most useful companion planting setups I have tried stay simple. A few well-placed plants around the edges of a bed do more than a tightly packed mix of a dozen species in the center.
Does Companion Planting Actually Work?
Some of it does. A lot of the rest gets copied from chart to chart without anyone checking, and online companion charts are not always backed by research, which is the same caution Minnesota Extension gives.
The strongest evidence for tomatoes is for basil and marigolds. Lab work shows basil readies tomato defenses, and a few field and greenhouse studies show both plants can reduce thrips on tomatoes. Marigolds also cut root-knot nematode numbers, but only when grown densely as a cover crop.
Trap crops like nasturtiums and insect-friendly flowers like sweet alyssum sit in the middle. Gardeners see them work season after season, and research on other vegetables points the same way, but tomato-specific trials are thin.
Claims that companions make tomatoes taste better, or that one herb repels every pest, are folklore. I would not plan a bed around them.
Best Companion Plants for Tomatoes
Not every plant on a companion planting chart earns its spot. These have real, practical benefits backed by evidence or consistent results in my garden.
Herbs That Work Well With Tomatoes
Two basil plants sit just outside the tomato root ball, close enough to matter.
1. Basil is the most reliable herb I grow with tomatoes. A 2024 Kagoshima University study found that tomatoes grown next to basil reacted faster and more strongly when their leaves were wounded, and caterpillars fed on those leaves grew less. The trial used dwarf tomatoes in a growth chamber, so treat it as a promising signal rather than proof for a backyard bed.
Basil is also widely said to deter hawk moths, which lay eggs that hatch into tomato hornworms, though that part rests on gardener experience. I plant basil in clusters near the base of tomato plants; proximity matters here. I usually set two Genovese basil plants around each tomato, tucked about 6 to 8 inches from the main stem so they stay close without crowding the root ball. A single basil plant in a far corner of the garden does very little.
2. Chives have a strong scent that discourages aphids and whiteflies. They are compact, easy to grow, and work well tucked into gaps between tomato plants without competing for light.
3. Parsley attracts predatory insects that feed on common tomato pests. It also stays small enough to tuck under a mature tomato canopy, one reason tomatoes top most parsley companion lists.
Flowers That Help Tomatoes
Marigolds hold the border while nasturtiums spill over the edge as an aphid trap crop.
4. Marigolds (French Tagetes varieties) are the most recommended tomato companion flower and the most misunderstood.
A few marigolds scattered around the bed will not create a pest shield. What they do well is attract beneficial hoverflies, whose larvae eat aphids.
Their root compounds can also suppress root-knot nematodes, but not the way most charts describe. Interplanting a few marigolds with tomatoes does not reliably work. Nematode control comes from a dense planting grown for at least two months before the tomatoes go in, which is the method UF/IFAS Extension recommends. I grow ‘Durango Red’ and ‘Janie Bright Yellow’ French marigolds along the border of the tomato bed, not just as random single plants. My beds stay in tight rotation, so I have not run a full marigold cover crop ahead of tomatoes. I plant them strictly for the hoverflies.
5. Borage is a bee magnet, and its flowers keep pollinators coming through the bed all summer.
You will often read that it repels tomato hornworms or brings in specific aphid parasitoids. There is little research behind either claim, so treat that as a bonus rather than a reason to plant it. Borage grows large, so I leave plenty of space between borage and my tomato plants.
6. Nasturtiums are one of the most useful trap crops I grow. Aphids strongly prefer nasturtiums over tomatoes.
Planting nasturtiums at the edges of the bed draws aphids away from the crop and concentrates them where I can deal with them. A trap crop only works if you manage it, though. Once aphids pile onto mine, I blast the undersides of the leaves with a sharp jet from the hose every couple of mornings. If a trailing stem gets completely coated, I snip it off at the base, drop it straight into a trash bag, and let the plant push out clean new growth.
7. Sweet Alyssum is a low-growing flower that attracts parasitic wasps and predatory beetles.
It also forms a living mulch at the base of tomato plants, suppressing weeds and holding soil moisture. I find it especially useful in raised beds and containers. It is one of the few flowers on this list with field research behind it. In a Florida squash trial, sweet alyssum and African marigolds were the only companions that improved natural pest control.
8. Calendula attracts hoverflies and other beneficial insects that feed on aphids. Tomatoes mostly pollinate themselves, with wind or a visiting bumblebee shaking the pollen loose, so pest control is the real reason to grow it. It is a reliable, low-maintenance companion I keep coming back to every season.
Vegetables That Grow Well Near Tomatoes
Lettuce and carrots use the shaded ground the tomato canopy would leave empty.
9. Carrots stay underground and do not compete with tomatoes for light. Their taproots help break up compacted soil, which leaves more room for tomato roots.
They are one of the few vegetables I grow in the same bed as tomatoes without any issues.
10. Lettuce and Spinach are shade-tolerant and grow well under the canopy of larger tomato plants.
They use the space that would otherwise sit empty once tomatoes grow tall. They do not compete for the same nutrients.
11. Radishes grow fast and fill gaps in the bed. They can deter some soil insects, and I harvest them long before tomatoes need the space.
12. Onions and Garlic have a strong scent that discourages many common pests.
One exception I always flag: if your garden has a thrips problem, avoid these. Onion thrips feed on both crops, and they can carry tomato spotted wilt virus to tomatoes, so planting them together can concentrate the problem.
13. Bush Beans stay low and compact, so they fit along the sunny edge of a tomato bed without shading it. Like all legumes, they fix nitrogen, but most of it stays in their root nodules until the plants break down.
The payoff comes at the end of the season, when you cut the plants at soil level and leave the roots in the bed. Skip pole beans here. They climb into the tomato canopy and compete for light and support.
Vegetables to Grow Near Tomatoes With Care
14. Cucumbers can share a garden with tomatoes, but they need their own space. Both want full sun and heat, so they compete for the best spot in the bed. The bigger risk is cucumber mosaic virus, which infects both crops and spreads quickly on aphids moving between plants.
An infected tomato can end up stunted, with thin, shoestring-like leaves and far less fruit. To keep the risk down, trellis cucumbers at the far end of the bed or in the next one, pull weeds that can harbor the virus, and stay on top of aphids. Tolerant varieties such as ‘Marketmore’ and ‘Dasher II’ are worth choosing if mosaic has shown up in your garden before.
Look for leaflets shrunk to thin strings on new growth, a classic cucumber mosaic sign.
15. Squash and Zucchini do not share the tomato’s nightshade diseases, but they are big, sprawling plants. A single zucchini plant can easily throw enough leaf to shade a young tomato.
Squash can also carry cucumber mosaic virus, so the same aphid and weed control applies. If you grow them in the same bed, give them the far end with a clear gap, or choose a compact bush zucchini and train the vines away from the tomatoes.
What Not to Plant With Tomatoes
Knowing what not to plant with tomatoes matters just as much as knowing what helps. These plants either compete for the same resources, spread shared diseases, or actively harm tomato growth.
Back in 2021, I tucked a row of broccoli right beside my slicing tomatoes to use up an empty strip of bed. The tomatoes stayed pale and slow to set fruit all June despite feeding, and I stopped pairing heavy feeders in the same bed after that.
Plants That Compete for Nutrients
Broccoli and tomatoes pull from the same soil, and the tomatoes usually lose.
1. Brassicas: cabbage, broccoli, cauliflower, kale, and Brussels sprouts are heavy feeders.
They pull the same nutrients from the soil that tomatoes need. When planted nearby, one plant suffers. It is usually the tomato. You may end up with no buds, no fruit, and a wasted growing season.
2. Corn needs deep roots and consumes large amounts of soil nutrients. It also grows tall enough to shade out sun-loving tomatoes.
Corn and tomatoes share the same pest: the corn earworm, also known as the tomato fruitworm. An infestation can damage both crops at once.
3. Fennel is one of the worst neighbors I have come across for almost any vegetable, including tomatoes. It releases natural chemicals into the soil that suppress nearby plant growth.
Even at a distance, fennel competes for nutrients and space. I keep it in a completely separate part of my garden.
Plants That Spread Disease to Tomatoes
The same late blight hits tomatoes and potatoes, which is why they belong in separate beds.
4. Potatoes belong to the same plant family as tomatoes, the nightshade family (Solanaceae). Both are highly vulnerable to late blight.
Growing them close together makes a disease outbreak far more likely, because the infection moves easily between plants of the same family.
5. Eggplants and Peppers are also members of the nightshade family, but they are the ones you can grow near tomatoes with some care. They share blights, wilts, and several insect-spread viruses with tomatoes, so the real risk comes from crowding them together.
All three are heavy feeders as well. Overlapping root systems under crowded conditions lead to stress and reduced fruit on all three plants. I give them separate beds or leave generous space between them.
One rule I follow with every nightshade: rotate all four as one group. Tomatoes, peppers, eggplant, and potatoes should stay out of the same bed for 3 to 4 years, which is the rotation Iowa State Extension suggests. If you only have one raised bed, moving the tomatoes into pots every other year gets you close.
Plants That Damage Tomato Roots or Growth
Once dill flowers, it grows tall and floppy and shades young tomatoes.
6. Mature Dill is a conditional bad companion, and this is the nuance most gardening charts skip. Young dill can help deter some pest insects early in the season.
Many charts claim that mature dill releases compounds that damage tomato roots, but there is little research behind it. The practical problem is size. Once dill flowers, it gets tall and floppy and starts shading and crowding young tomato plants. If you want to grow dill, harvest it while it is still young, or grow it in a separate container away from your tomatoes.
7. Rosemary needs very different growing conditions compared to tomatoes. It prefers lean, fast-draining soil that dries out between waterings, while tomatoes want rich soil and steady moisture. One plant will always be in suboptimal conditions when these two are grown together, so rosemary does better in its own pot or a dry corner of the garden.
8. Black Walnut Trees are in a different category entirely. They release a chemical called juglone directly into the soil. Juglone is toxic to tomato plants.
If there is a black walnut tree in your yard, keep your tomato bed well away from its root zone, which extends far beyond the canopy of the tree.
Companion Planting by Tomato Type
Determinates stay compact, while indeterminates keep climbing and need a tall stake.
The variety of tomato you grow affects how much space companions have and how close they can get. Growth habit matters more than fruit size, so start by checking whether your plant is determinate or indeterminate.
1. Determinate varieties stop growing at a set height. They work well with marigolds, basil, and sweet alyssum planted around the base without risk of being overtaken.
2. Indeterminate varieties keep growing tall throughout the season, and staking tomato plants early keeps the vines off the companions below. I position sun-loving companions to the south or east of the plants for morning light.
Shade-tolerant greens like lettuce or spinach go on the north side where the tomato canopy provides natural shade.
3. Beefsteak tomatoes demand more personal space, whichever growth habit they have. I use only low-growing companions placed at the outer edges of the bed. Avoid anything that competes for nutrients or blocks light.
4. Cherry tomatoes carry small fruit, but many are vigorous indeterminate vines. Compact patio and dwarf cherry types allow closer companion planting, simply because their canopy and root zone stay smaller. Treat vining cherry types like any other indeterminate.
Most seasons, I grow Viva Italia and Bush Steak as my determinates, and Big Beef, Juliet, and Sungold as my indeterminates. Juliet and Sungold carry small fruit, but they get staked right alongside the Big Beef.
When to Plant Tomato Companions
Companions establish best when your tomatoes go in at the right time. Tomato planting timing varies by region and variety, and a late start means companions have less time to take hold before summer heat arrives.
Most gardeners who grow tomatoes in raised beds start seeds indoors 6 to 8 weeks before the last frost, which also gives companion flower seedlings time to be started alongside the tomato seeds.
A simple planting order:
- Lettuce, spinach, and radishes go in a few weeks before the tomatoes. They handle cool weather and are ready to pick as the tomato canopy fills in.
- Tomatoes go in next. They root along any buried stem, so planting tomatoes deeper gives them a head start before companions fill the surface.
- Marigolds, calendula, and sweet alyssum seedlings go out on the same day as the tomatoes.
- Basil follows once nights stay warm, because cold nights stunt it.
- Nasturtiums do best sown straight into the bed edges around transplant time, so they are leafy before aphid numbers build.
Companion Planting in Raised Beds

Raised beds are one of my favorite setups for growing tomatoes with companions. The soil is controlled, drainage is better, and I can plan the layout precisely.
A few things I keep in mind:
- Raised beds dry out faster than in-ground gardens. When companions fill the bed, moisture competition increases. I check soil moisture often.
- I plant companions along the edges or in gaps between tomato plants while the tomatoes are still young. Once the canopy fills in, there is less usable light for companions in the center.
- Space staked indeterminate tomatoes 18 to 24 inches apart and caged ones 30 to 36 inches apart. Determinate types need 24 to 30 inches. Allow at least 6 to 8 inches between tomato plants and their companions.
- My go-to companions for raised beds are basil, chives, onions, sweet alyssum, marigolds, lettuce, spinach, and radishes. All stay compact and do not overcrowd the center.
I avoid packing too many plants into the center of a raised bed. Poor airflow in a tight space promotes fungal disease, which spreads fast in a contained bed.
Once the canopy fills in and leaves start overlapping, pruning tomato plants regularly opens up airflow and lowers the risk of fungal disease spreading between plants.
A Sample 4×8 Raised Bed Layout
This layout fits three staked indeterminate tomatoes down the center of a standard 4 by 8 foot bed, with the long side facing south. Each tomato sits 24 inches from the long sides, 24 inches from its neighbor, and 24 inches from the nearest end. My main tomato bed is exactly that size, and this is almost identical to what I ran in it last season.
| Zone | Plants | Spacing |
|---|---|---|
| Center row | 3 staked tomatoes | 24 inches apart |
| Beside each tomato | 2 basil | Clear of the root ball |
| South edge | Marigolds, alyssum | 8 to 10 inches apart |
| North edge | Buttercrunch lettuce | 8 to 10 inches apart |
| Short ends | 2 nasturtiums each | In the corners |
Tomatoes run down the middle, sun-lovers face south and lettuce takes the shaded north side.
Determinate tomatoes fit the same three spots, since they need about the same room.
Companion Planting in Containers
Chives and alyssum stay small enough to share the pot without stealing much water.
Container companion planting is something I keep simple. Tomatoes develop large root systems, and a crowded container dries out fast during summer heat.
For container-grown tomatoes, I use a pot that holds at least 10 gallons of potting mix. One tomato plant per container works best. Bush Steak and Husky Red Cherry have been my most reliable container varieties in 15-gallon pots.
At the base, I add:
- Basil (most useful, with lab research behind its pest defense benefits)
- Chives (compact, good pest deterrent)
- Small parsley plants
- Low-growing sweet alyssum
Chives and sweet alyssum held up cleanly around the rim all summer, while basil needed steady watering and regular pinching by August to keep up with the tomato’s thirst.
I skip fennel, corn, or any large plant in the same container. They will compete directly with the tomato, and one of them will lose.
Conclusion
Companion plants for tomatoes work best when you keep them practical. Basil, marigolds, nasturtiums, and sweet alyssum have the best evidence and the clearest jobs.
Fennel, potatoes, brassicas, corn, and black walnut cause real problems. The plants in between are worth trying in your own setup. What works in my Zone 6b garden does not always work in another.
The goal is a bed where your tomatoes have the space, light, and soil they need, with a few well-chosen neighbors that support rather than compete.
Try one or two new companions this season and see what you get. Which pairing has worked best in your garden? Leave a comment below.
Frequently Asked Questions
What Is the Best Thing to Plant Next to Tomatoes?
Basil is the best all-round companion. It stays compact, fits right at the base of the plant, and has lab research showing it primes tomato defenses. Marigolds and nasturtiums come close behind for pest control.
Can You Plant Tomatoes and Peppers Together?
Yes, as long as you do not crowd them. Peppers share several diseases with tomatoes, so give each plant room for airflow and move both crops to a new bed together the following year.
How Far Apart Should Companion Plants Be From Tomatoes?
Keep companions at least 6 to 8 inches from the tomato stem. The tomatoes themselves need 18 to 24 inches when staked, 30 to 36 inches when caged, and 24 to 30 inches for determinate types.
Can You Plant Cucumbers With Tomatoes?
Yes, with some distance. Both crops can carry cucumber mosaic virus, which aphids spread between them, and both compete for full sun. Trellis cucumbers at the far end of the bed or in a neighboring one, control aphids and weeds, and pick a tolerant variety if mosaic has been a problem before.
Can You Plant Beans With Tomatoes?
Bush beans make good tomato neighbors. They stay low, leave the tomatoes their light, and add nitrogen to the soil once their roots break down. Pole beans are a poor fit because they climb into the tomato canopy and compete for support.
Can You Plant Zucchini Next to Tomatoes?
You can, as long as the zucchini has room. It does not share the tomato’s nightshade diseases, but its large leaves can shade young tomatoes and it can carry cucumber mosaic virus. Give it the far end of the bed or choose a compact bush variety.
Why Should You Sprinkle Baking Soda Around Your Tomato Plants?
You should not. Sprinkling baking soda is a popular garden hack with weak evidence behind it. There is no good evidence that it makes fruit sweeter, keeps slugs or aphids away, or prevents blight. Baking soda is a salt, so repeated use can build up sodium in the soil and harm roots.
