Tomatoes grow best when you keep certain plants out of the same bed
Some plants actively harm tomato growth or attract the same pests and diseases that damage tomatoes. The worst companions release chemicals that stunt tomato roots, compete aggressively for water and nutrients, or host insects that move straight to your tomato plants. Keeping these plants in a separate bed or container means your tomatoes stay healthier and produce more fruit.
The plants to avoid are mostly in three categories: heavy feeders that starve tomatoes of nitrogen, plants that attract tomato pests, and crops that spread the same fungal diseases. A few are allelopathic — they release compounds that actively poison the soil for tomatoes.
Key Takeaways
- Brassicas like cabbage and broccoli compete with tomatoes for the same nutrients and attract hornworms that also feed on tomato leaves.
- Fennel and dill release chemicals that inhibit tomato root growth, so they should be planted in a different bed entirely.
- Potatoes and peppers share the same fungal diseases as tomatoes, spreading early blight and late blight between plants in the same space.
- Corn and squash are heavy feeders that deplete nitrogen faster than tomatoes can use it, leaving your tomato plants stunted.
- Walnut trees and their root systems poison soil for tomatoes even at a distance, so check your garden layout before planting.
Brassicas compete for nitrogen and host tomato pests
Cabbage, broccoli, cauliflower, and kale all pull heavy amounts of nitrogen from the soil at the same time tomatoes need it most. When both are in the same raised bed, your tomatoes yellow and produce smaller fruit because the brassicas got there first.
Worse, brassicas attract cabbage moths and hornworms — the same hornworms that strip tomato leaves bare. Once hornworms move from the brassicas to your tomatoes, they can defoliate a plant in days. Plant brassicas in a separate bed or in spring before you plant tomatoes in summer.
Fennel and dill stunt tomato roots through soil chemistry
Fennel is allelopathic, meaning it releases a compound called anethole into the soil that actively inhibits root growth in nearby plants. Tomato roots exposed to fennel's chemical output grow stunted and shallow, unable to pull water during dry spells. Even fennel planted at the edge of a raised bed can affect tomatoes in the center.
Dill has a similar but weaker effect. If you want either herb in your garden, grow them in a pot or in a separate bed at least four feet away. Fennel is the more aggressive of the two — some gardeners avoid planting it anywhere near the vegetable garden.
Potatoes and peppers spread early blight and late blight
Potatoes and tomatoes are both susceptible to early blight and late blight, fungal diseases that spread through water splash and air. When both grow in the same bed, spores move easily from one plant to the other. Late blight in particular can wipe out both crops in wet weather.
Peppers are also in the nightshade family and catch the same diseases. If you grow potatoes or peppers, keep them in a different raised bed from tomatoes. Rotate the beds each year so the soil has time to clear the fungal spores — do not plant tomatoes where potatoes grew the previous season.
Corn and squash deplete soil nitrogen too quickly
Corn is a heavy nitrogen feeder that pulls more from the soil than tomatoes can tolerate sharing. Squash and pumpkins are similarly aggressive feeders. When all three are in the same bed, tomatoes starve and produce weak growth and few flowers.
These plants also grow large and shade out tomatoes, reducing the sunlight your tomato plants need. If you want corn or squash, plant them in their own bed or in a different section of your garden where they will not compete with tomatoes for water and light.
Walnut trees poison soil for tomatoes at a distance
Black walnut and butternut walnut trees produce juglone, a chemical that moves through their roots and into the soil. Tomatoes are extremely sensitive to juglone and will not grow within 50 to 60 feet of a walnut tree, even if the tree is not in your raised bed. The chemical persists in the soil for years after a tree is removed.
If you have a walnut tree on your property or a neighbor's property nearby, check the distance before placing your raised bed. If your tomatoes are yellowing and stunted despite good soil and water, and a walnut tree is within 60 feet, juglone is likely the cause. Move the bed farther away or grow tomatoes in containers with fresh potting soil.
Fennel and tomatoes should never share a bed
Fennel is the single worst companion for tomatoes because its allelopathic effect is strong and when ready. Unlike nitrogen competition, which takes weeks to show, fennel's chemical inhibition affects root growth within days. If you have already planted fennel in your raised bed with tomatoes, remove the fennel plant and as much of its root system as possible, then replace the top few inches of soil.
Dill is less aggressive but still worth avoiding. Basil, parsley, and cilantro are safe herbs to grow with tomatoes and actually improve their flavor.
What to plant instead of problem companions
Good tomato companions include basil, which repels some tomato pests and improves flavor; carrots, which use different soil depths and do not compete; onions and garlic, which repel spider mites and hornworms; and marigolds, which attract beneficial insects. Lettuce and spinach grow in the shade of tomato plants and do not compete for nutrients.
Beans are nitrogen-fixers, meaning they add nitrogen to the soil rather than depleting it, making them ideal companions. Borage attracts pollinators and deters hornworms. These plants can all share a raised bed with tomatoes without reducing your harvest.
Frequently Asked Questions
Can I plant tomatoes where potatoes grew last year?
No. Wait at least two years before planting tomatoes in soil where potatoes grew, because early blight and late blight spores persist in the soil. If you must use the same bed, replace the top six inches of soil with fresh compost or potting mix.
Is it okay to plant tomatoes near a walnut tree if it is in a pot?
No. Potted walnut trees still produce juglone in their roots and release it into nearby soil. Keep tomatoes at least 50 feet away from any walnut tree, potted or in ground.
What if I already planted brassicas and tomatoes together?
They will grow, but your tomatoes will produce less fruit and may yellow from nitrogen hunger. Next season, move the brassicas to a different bed. If you want both in the same bed, add extra compost or nitrogen-rich fertilizer to compensate.
Can I plant dill near tomatoes if I keep it trimmed?
Trimming does not stop dill from releasing its compounds into the soil. Grow dill in a pot or at least four feet away from your tomato bed to avoid stunting the roots.
Are cherry tomatoes affected by the same companion plants as large tomatoes?
Yes. Cherry tomatoes are still tomatoes and are susceptible to the same diseases, pests, and soil chemistry issues as any other variety. Keep them away from potatoes, peppers, fennel, and walnut trees.