Tomatoes grow best when planted alongside herbs, root vegetables, and certain flowers that improve soil health or repel pests
Companion planting means growing plants close together because they help each other. Some plants improve the soil for tomatoes, some keep insects away, and some use space efficiently without competing for water and nutrients. The strongest companions for tomatoes are basil, carrots, marigolds, and parsley. These plants either deter common tomato pests, use different soil depths, or attract beneficial insects that eat tomato predators.
Not all plants belong near tomatoes. Brassicas like cabbage and broccoli, fennel, and potatoes can stunt tomato growth or attract the same pests. Knowing which plants work together saves space, reduces pest damage, and often means fewer chemicals in your garden.
Key Takeaways
- Basil planted near tomatoes repels spider mites and whiteflies while improving flavor when both are harvested together.
- Root vegetables like carrots and beets use soil space below tomato roots, so they do not compete for the same nutrients.
- Marigolds and nasturtiums attract beneficial insects and trap pests that would otherwise attack tomato leaves and fruit.
- Avoid planting tomatoes near brassicas, fennel, potatoes, or other nightshade crops, which either compete for nutrients or spread the same diseases.
- Tall companions like parsley and borage should be planted on the north side of tomatoes so they do not shade the fruit.
Herbs that protect tomatoes from pests
Basil is the strongest herb companion for tomatoes. It repels spider mites, whiteflies, and thrips — all common tomato pests. Plant basil 12 inches from the tomato stem. Both plants thrive in full sun and warm soil, so they share the same growing conditions. When you harvest tomatoes, you can pick basil leaves at the same time and use them fresh or dried.
Parsley and cilantro attract parasitic wasps and hoverflies, which lay eggs in tomato pests like aphids and hornworms. The wasp larvae then feed on the pest, reducing the population naturally. Plant parsley in clusters around the tomato bed rather than in a single row. Cilantro bolts quickly in heat, so succession-plant it every two weeks in spring and fall for continuous pest control.
Chives and garlic both repel aphids and spider mites. Garlic also deters some fungal diseases. Plant garlic cloves in fall for spring harvest, or use chives as a permanent border around the tomato bed. Both are shallow-rooted, so they will not interfere with tomato root depth.
Root vegetables that share space without competing
Carrots and beets grow below the soil surface while tomatoes grow above it, so they use different layers of the garden. Plant carrots 6 to 8 inches from the tomato stem. Carrots need loose, well-draining soil, which also benefits tomato roots. Beets are slightly deeper-rooted than carrots but still occupy a different zone than tomato roots, which spread horizontally in the top 12 to 18 inches of soil.
Radishes germinate and mature in 25 to 30 days, so you can plant them early in the season and harvest before they compete with tomato growth. They also break up compacted soil, which helps water and air reach tomato roots. Turnips work the same way but take longer — about 60 days — so plant them early if you want them out before mid-summer heat.
Onions and garlic are alliums that repel many tomato pests and do not compete for nutrients. They are shallow-rooted and can be planted in the same bed without shading tomatoes. Harvest onions before they reach full size if space is tight, or plant them on the outer edge of the tomato bed.
Flowers that trap pests and attract beneficial insects
Marigolds are the most widely recommended tomato companion. They attract hoverflies and parasitic wasps while repelling whiteflies, spider mites, and some nematodes in the soil. Plant marigolds 12 inches from tomato stems. They bloom all season and require minimal water once established, making them a low-maintenance pest barrier.
Nasturtiums act as a trap crop — pests prefer them to tomatoes, so they concentrate on the nasturtiums instead. Plant nasturtiums on the outer edge of the tomato bed or in containers nearby. Aphids and whiteflies will feed on nasturtiums first, leaving tomatoes alone. You can remove heavily infested nasturtiums and replace them mid-season.
Borage attracts bees and parasitic wasps. It is a tall plant (18 to 24 inches), so plant it on the north side of tomatoes to avoid shading fruit. Borage also improves soil with deep roots that bring up minerals. The flowers are edible and attract pollinators, which improves fruit set on tomatoes.
Calendula (pot marigold) attracts beneficial insects and repels some pests. It is shorter than borage (12 to 18 inches) and can be planted closer to tomato stems. Calendula also self-seeds, so you may have volunteers the following year.
Plants to avoid near tomatoes
Brassicas — cabbage, broccoli, cauliflower, and kale — compete with tomatoes for nitrogen and potassium. They also attract cabbage moths and other pests that can spread to tomatoes. Keep brassicas at least 3 feet away from tomato plants, or plant them in a separate bed.
Fennel inhibits the growth of most garden plants, including tomatoes. It releases compounds into the soil that stunt nearby roots. Do not plant fennel anywhere in the tomato bed, even at the edge.
Potatoes, peppers, and eggplants are nightshades like tomatoes. They compete for the same nutrients and are susceptible to the same diseases — particularly early blight and late blight. If one plant gets sick, the disease spreads quickly to the others. Rotate these crops to different beds each year, and do not plant them within 3 feet of each other.
Corn and tomatoes compete for nitrogen and water. Corn also casts shade that reduces tomato fruit ripening. Plant corn in a separate area or on the north side of the garden where it will not shade other crops.
How to arrange companion plants in the tomato bed
Plant tall companions — borage, parsley, and marigolds over 18 inches — on the north side of tomatoes so they do not shade the fruit during afternoon sun. Place shorter herbs like basil and chives 12 inches from the tomato stem on the east or west side. Root vegetables like carrots and beets can go directly under or around the tomato plant since they use deeper soil.
Space plants according to their mature size, not their size at planting. A basil seedling looks small, but it will spread 12 to 18 inches wide. Marigolds spread 12 to 24 inches depending on the variety. Check the seed packet or plant label for mature width and space accordingly to avoid crowding.
Water companion plants on the same schedule as tomatoes — deeply and less frequently rather than shallow daily watering. This encourages deep root growth and reduces fungal disease. If a companion plant needs different water (like cilantro, which prefers consistent moisture), plant it in a container nearby instead of in the bed.
Frequently Asked Questions
Can I plant basil and tomatoes in the same container?
Yes. Use a container at least 5 gallons for one tomato plant and one basil plant. Plant basil on the edge so it does not shade the tomato. Both need full sun and warm soil, so they thrive together. Water when the top inch of soil is dry, and fertilize every two weeks during the growing season.
What if I plant tomatoes near brassicas by accident?
Move the brassicas as soon as you notice, or remove them entirely. If they are already established and moving them would damage roots, leave them but monitor both plants closely for pests and disease. Harvest the brassicas early to reduce competition for nutrients.
Do I need to plant all the companion plants listed?
No. Start with basil and marigolds — these two provide the most pest control with minimal effort. Add carrots or beets if you want to use space efficiently. Choose companions based on what pests you see in your garden and what you want to harvest.
Can I plant tomatoes near lettuce or spinach?
Yes. Lettuce and spinach are shallow-rooted and do not compete with tomatoes. They also prefer partial shade, so planting them under tomato foliage keeps them cool in summer and extends the harvest. Plant lettuce or spinach on the south or east side of tomatoes where they get morning sun but afternoon shade.
When should I plant companion plants relative to tomatoes?
Plant basil and other warm-season herbs at the same time as tomatoes, after the last frost. Plant carrots and beets two to three weeks before tomatoes so they have a head start. Plant marigolds and nasturtiums when you plant tomatoes or up to two weeks after. Cilantro and lettuce can be planted in spring and again in late summer for fall harvest.