Companion plants that grow well with tomatoes

The best plants to grow alongside tomatoes are ones that don't compete for the same nutrients, don't shade the tomato plant, and often repel pests that damage tomatoes. Basil is the classic choice—it grows to a similar height, uses different soil nutrients, and may improve tomato flavor. Carrots and onions grow low to the ground and won't block sunlight. Parsley, marigolds, and nasturtiums attract beneficial insects or confuse pests that target tomatoes.

The reason companion planting works is straightforward: different plants have different root depths, different pest problems, and different nutrient needs. A carrot pulls nutrients from deeper soil layers than a tomato's shallow roots reach. A marigold attracts hoverflies, which eat aphids before they reach your tomato leaves. When you choose plants that solve problems rather than create them, your whole garden becomes more stable.

Key Takeaways

  • Basil, carrots, onions, and parsley are safe to plant directly next to tomatoes without competing for space or nutrients.
  • Marigolds and nasturtiums attract insects that eat tomato pests, reducing the need for sprays.
  • Avoid planting brassicas (cabbage, broccoli, kale) and fennel near tomatoes because they compete for the same nutrients.
  • Space companion plants so they don't shade the tomato plant or crowd its base where air needs to circulate.
  • Plant basil and herbs 12 inches away from the tomato stem; plant root vegetables like carrots 18 inches away to avoid root tangling.

Herbs that improve tomato growth

Basil is the most reliable herb to plant with tomatoes. It grows upright, reaches 12 to 18 inches tall, and uses nitrogen from the soil without depleting the deeper reserves tomatoes need. Plant basil 12 inches away from the tomato stem. Both plants like full sun and warm soil, so they thrive on the same watering schedule. Some gardeners report that basil actually improves tomato flavor, though this is anecdotal—what is certain is that it does no harm and gives you fresh basil to harvest.

Parsley is another safe choice. It grows low (8 to 12 inches), has a shallow root system, and attracts hoverflies and parasitic wasps that prey on tomato hornworms and aphids. Plant parsley 12 inches from the tomato stem. Unlike basil, parsley tolerates partial shade, so it works even if your tomato plant casts a shadow as it grows taller.

Oregano and thyme are also compatible. Both are low-growing perennials that won't shade tomatoes, and both attract beneficial insects. They prefer drier soil than tomatoes, so plant them slightly uphill or in a spot that drains faster if your garden tends to stay wet.

Root vegetables and low-growing plants

Carrots are one of the best companions for tomatoes because they grow downward while tomatoes grow upward, and they use different soil layers. Plant carrots 18 inches away from the tomato stem to avoid root tangling. Carrots take 60 to 80 days to mature, so you can plant them at the same time as your tomato transplant and harvest them before the tomato plant needs extra space in midsummer.

Onions and garlic are also safe. They grow low, have narrow leaves that don't shade tomatoes, and their sulfur compounds may deter some pests. Plant them 12 to 18 inches away from the tomato stem. Both are cool-season crops, so they often finish growing before summer heat peaks, leaving space for the tomato to spread.

Lettuce and spinach work well in spring and early summer. They grow in the shade of a young tomato plant and are harvested before the tomato gets large enough to shade them completely. Plant them 12 inches away from the stem. Once temperatures reach 75°F consistently, these cool-season crops bolt or wilt, so they naturally exit the garden as the tomato plant needs more room.

Flowers that attract beneficial insects

Marigolds are often recommended because they attract hoverflies and parasitic wasps—insects that eat aphids, whiteflies, and other tomato pests. Plant marigolds 12 to 18 inches away from the tomato stem. They bloom all summer, are straightforward to grow, and tolerate the same heat and sun as tomatoes. The main drawback is that marigolds are shallow-rooted and need consistent water, so they compete slightly for moisture in dry climates.

Nasturtiums serve a different purpose: they attract aphids away from tomatoes by being a more appealing target. Aphids prefer nasturtiums, so planting them nearby acts as a trap crop. Plant nasturtiums 18 to 24 inches away because they vine and spread. They also tolerate partial shade better than tomatoes, so they can go on the north side of the tomato plant.

Borage attracts bees and other pollinators, which improves fruit set on tomatoes. It grows 2 to 3 feet tall, so plant it on the north side of your tomato so it doesn't shade the plant. Borage self-seeds readily, so one plant often returns the following year.

Plants to keep away from tomatoes

Brassicas—cabbage, broccoli, kale, and cauliflower—compete with tomatoes for nitrogen and potassium. Both plant families are heavy feeders, and planting them together depletes the soil faster than either would alone. Keep brassicas at least 3 feet away from tomatoes, or plant them in a different bed.

Fennel produces a chemical that inhibits the growth of many plants, including tomatoes. It's allelopathic, meaning it actively suppresses nearby plants rather than just competing with them. Don't plant fennel anywhere in the tomato bed.

Potatoes and peppers are in the same plant family as tomatoes (Solanaceae) and share the same pests and diseases. If one plant gets early blight or septoria leaf spot, the disease spreads easily to the others. Plant potatoes and peppers in a different bed, or at least 4 feet away. Eggplant falls into the same category.

Corn grows tall and shades tomatoes, and both plants attract similar pests. Plant corn at least 4 feet away, preferably on the north side of the garden so it doesn't cast afternoon shade on your tomatoes.

Spacing and placement guidelines

The distance between plants matters as much as which plants you choose. Tomatoes need air circulation around their base to prevent fungal diseases like early blight. Plant companion plants at least 12 inches away from the tomato stem for herbs and flowers, and 18 inches away for root vegetables and larger plants. This spacing leaves room for you to water, mulch, and prune without disturbing the companion plant.

Think about height and shade. Plant tall companions (borage, nasturtiums on a trellis) on the north or west side of the tomato so they don't block morning or afternoon sun. Plant low companions (lettuce, carrots, onions) on the south and east sides where they benefit from the tomato plant's afternoon shade in hot climates.

In containers, spacing is tighter. A 5-gallon pot can hold one tomato plant and one basil plant 12 inches apart, or one tomato and a few lettuce seedlings. Don't crowd the pot—the tomato's roots need room to expand, and poor air circulation in a crowded container invites disease.

Timing your plantings

Plant basil, marigolds, and nasturtiums at the same time as your tomato transplant, after the last frost date. These warm-season plants won't survive a cold snap, so waiting until soil temperature reaches 60°F ensures they'll grow steadily.

Plant cool-season companions like lettuce, spinach, and carrots 2 to 3 weeks before your tomato transplant goes in the ground. They'll be established and growing when the tomato arrives, and they'll finish before summer heat becomes a problem. In late summer, you can plant a second round of cool-season crops after the first harvest, as long as you have 8 to 10 weeks before the first frost.

Plant perennial herbs like oregano and thyme in spring so they have the whole season to establish deep roots. They'll be stronger and more productive in year two.

Frequently Asked Questions

Can I plant basil and tomatoes in the same pot?

Yes, in a pot that's at least 5 gallons. Plant the tomato in the center and basil 12 inches away at the pot's edge. Use potting soil, not garden soil, and water consistently because containers dry out faster. The basil will be ready to harvest in 6 to 8 weeks, and the tomato will fruit 60 to 85 days after transplanting.

Do marigolds really keep pests away from tomatoes?

Marigolds don't repel pests directly. Instead, they attract beneficial insects like hoverflies and parasitic wasps that eat the pests. This takes 2 to 3 weeks to become effective, so plant marigolds early in the season. They work best as part of a larger strategy that includes removing affected leaves and watering at the soil level to keep foliage dry.

What if I plant tomatoes near potatoes by accident?

Move one of them if you can do so without damaging roots. If both are already established, monitor closely for early blight (brown spots with concentric rings on lower leaves). Remove affected leaves when ready and increase air circulation by pruning lower branches. Avoid overhead watering, which spreads spores.

Can I plant tomatoes with beans or peas?

Yes. Beans and peas fix nitrogen in the soil, which benefits tomatoes. Plant them 18 inches away so they don't vine onto the tomato plant. Bush beans work better than pole beans because they stay low and won't tangle with tomato branches.

How close can I plant garlic to tomatoes?

Plant garlic 12 to 18 inches away from the tomato stem. Garlic is planted in fall and harvested in early summer, so it's usually gone before the tomato plant reaches full size. This makes it an efficient use of space in a small garden.