Companion plants that grow well with tomatoes
Basil, carrots, parsley, and marigolds are the most reliable plants to grow alongside tomatoes. Basil repels spider mites and whiteflies while improving tomato flavor. Carrots and parsley occupy different soil depths, so they do not compete for nutrients. Marigolds deter nematodes in the soil and some above-ground pests.
Borage attracts pollinators and predatory insects that eat tomato hornworms and aphids. Nasturtiums act as a trap crop — pests prefer them to tomatoes, so they draw damage away. Garlic and onions repel spider mites and some fungal diseases. All of these grow in the same temperature range as tomatoes and need similar watering schedules, which makes them practical neighbors in a garden bed.
Chives, oregano, and thyme also work well. They are shallow-rooted, so they will not pull nutrients from deeper tomato roots. They tolerate the same sun exposure — six to eight hours minimum — and do not shade the tomato plant itself if planted on the north side of the row.
Key Takeaways
- Basil, marigolds, and carrots are the easiest companions to plant with tomatoes and require no special spacing or care.
- Borage and nasturtiums bring in beneficial insects or draw pests away, reducing the need for pest management later.
- Avoid planting brassicas (cabbage, broccoli, kale) and fennel near tomatoes, as they compete for nutrients or inhibit growth.
- Space companion plants far enough that tomato roots have room to spread — usually 12 to 18 inches from the tomato stem.
- Plant shallow-rooted herbs like thyme and oregano on the outer edge of the bed to avoid root competition.
Plants to avoid near tomatoes
Brassicas — cabbage, broccoli, kale, and cauliflower — compete heavily with tomatoes for nitrogen and potassium. Both plant families are heavy feeders, and planting them together depletes the soil faster than either would alone. If you have limited garden space, choose one or the other rather than both.
Fennel inhibits tomato growth through a chemical it releases into the soil. Even a single fennel plant in the same bed will slow tomato development. Corn and potatoes are also poor neighbors: corn attracts the same pests as tomatoes, and potatoes carry diseases that spread to tomato plants.
Dill can work in small amounts, but it attracts hornworms and other tomato pests if planted densely. If you want dill, plant it far from the tomato row or in a separate bed. Kohlrabi, another brassica, has the same nutrient competition problem as cabbage.
How spacing affects companion planting success
The distance between tomatoes and their companions matters as much as which plants you choose. Tomato roots spread 12 to 18 inches outward from the stem, so plant companions at least that distance away to avoid root competition. Basil and other herbs can go closer — 6 to 8 inches — because their roots are shallower and do not reach as far.
Tall companions like borage (which grows 2 to 3 feet high) should be planted on the south or east side of the tomato row so they do not shade the tomato plant during morning and midday sun. Shorter plants like marigolds and nasturtiums can go anywhere around the tomato without blocking light.
If you are planting in containers, use a pot at least 5 gallons for the tomato and a separate 2-gallon pot for the companion plant. Soil in containers dries faster and depletes nutrients quicker, so companions in the same pot will stress both plants. Keeping them separate lets you water and feed each according to its own needs.
Timing: when to plant companions with tomatoes
Plant basil, herbs, and flowers at the same time as your tomato transplant or seedling. They all thrive in warm soil (above 60°F) and will establish roots at the same pace. If you plant companions weeks after the tomato, the tomato will already have claimed the nearby soil, and the companion will struggle.
Carrots and root vegetables can go in slightly earlier — two to three weeks before the tomato — because they mature faster and will be mostly grown by the time the tomato reaches full size. Direct-seed carrots in early spring, then transplant tomatoes once soil is warm enough.
If you are planting in succession (new tomatoes every few weeks), plant new companions with each new tomato. This keeps the bed balanced and prevents any one plant from monopolizing resources.
Companion planting in containers versus garden beds
Container planting requires different spacing than in-ground beds. A 5-gallon pot holds one tomato plant and one shallow-rooted companion (basil or parsley) comfortably. A 10-gallon pot can hold one tomato and two smaller companions on opposite sides. Anything larger than that risks root tangling and nutrient depletion.
In raised beds or in-ground gardens, you have more flexibility. A 4-by-8-foot bed can hold three to four tomato plants with companions spaced between them. The soil volume is larger, so nutrient competition is less intense. Mulch between plants to retain moisture and suppress weeds, which also compete with both tomatoes and companions.
Container gardeners should refresh soil each season or add compost to the top 3 to 4 inches before replanting. Garden beds benefit from adding 2 to 3 inches of compost in spring and again at midsummer to replenish nutrients that companions and tomatoes draw down.
Pest and disease benefits of specific companions
Marigolds reduce root-knot nematodes, a soil pest that damages tomato roots and causes stunted growth. Plant marigolds around the tomato bed in spring and let them grow through the season. They flower continuously and do not require deadheading, though removing spent flowers encourages more blooms.
Borage flowers attract hoverflies and parasitic wasps, both of which prey on aphids and hornworms. A single borage plant in a 4-by-8-foot bed is usually enough. Borage self-seeds, so you may have volunteers the following year.
Basil reduces spider mites and whiteflies through its strong scent. It also improves tomato flavor — some gardeners report sweeter fruit when basil grows nearby. Pinch basil regularly to encourage bushiness and prevent it from flowering, which diverts energy from leaf production.
Nasturtiums attract aphids away from tomatoes and other vegetables. They are edible (flowers and leaves both), so you can harvest them for salads while they protect your tomatoes. Plant them on the outer edge of the bed so they do not shade the tomato.
Frequently Asked Questions
Can I plant lettuce or spinach with tomatoes?
Yes. Lettuce and spinach are shallow-rooted and do not compete with tomato roots. They prefer partial shade, so plant them on the north side of the tomato row where the tomato plant will shade them during the hottest part of the day. This also keeps the lettuce from bolting early in summer heat.
What if I plant tomatoes and basil in the same pot?
A 5-gallon pot is tight but workable if you keep the basil pinched back. Plant the tomato in the center and basil around the edge. Water more frequently because two plants deplete soil moisture faster than one. Expect the basil to be smaller than it would be in its own pot, but it will still produce leaves and repel pests.
Do I need to plant companions, or will tomatoes grow fine alone?
Tomatoes grow fine without companions. Companion planting is optional and works best if you have space and want to reduce pest pressure or improve soil use. In a small garden, a single healthy tomato plant often produces more fruit than a crowded bed with multiple plants competing for resources.
Can I plant tomatoes with peppers?
Yes, but they compete for the same nutrients and attract some of the same pests. If you plant them together, space them 18 to 24 inches apart and feed them both with balanced fertilizer every two to three weeks. They thrive in the same temperature and sun conditions, so the main challenge is preventing nutrient depletion.
When should I remove companion plants after harvest?
Remove companions when the tomato plant stops producing, usually after the first frost. If the companion is an annual (basil, nasturtium, borage), it will die back anyway. If it is a perennial (oregano, thyme, chives), cut it back by half and it will regrow the following spring. Leave marigolds in place until frost to keep nematodes suppressed through late season.