Companion plants improve tomato growth and reduce pests without chemicals

The plants you grow beside tomatoes matter. Some attract beneficial insects that eat tomato pests, some improve soil nutrients, and some physically protect tomato plants from sun scald or wind damage. Others compete for water and nutrients or spread disease, so placement and spacing are as important as the choice itself.

The best companions fall into three categories: plants that repel or trap pests, plants that add nitrogen or other nutrients to soil, and plants that use space efficiently without crowding tomato roots. Basil, marigolds, and nasturtiums are the most reliable across different growing zones and soil types. Carrots, parsley, and borage work well in most gardens. A few plants—fennel, brassicas like cabbage, and potatoes—should stay away from tomatoes entirely.

Key Takeaways

  • Basil planted 12 inches from tomato stems repels spider mites and whiteflies while improving flavor when both are harvested together.
  • Marigolds and nasturtiums trap aphids and other pests on their leaves instead of tomato foliage, reducing the need for spraying.
  • Nitrogen-fixing plants like beans and peas add usable nitrogen to soil, reducing the need for fertilizer applications during the season.
  • Fennel, potatoes, and brassicas compete with tomatoes for nutrients or harbor shared diseases and should be planted at least 3 feet away or in separate beds.
  • Spacing matters: most companions need at least 12 inches of clear space from the tomato stem to avoid root competition.

Basil: the most reliable tomato companion

Basil repels spider mites, whiteflies, and some aphids through compounds in its leaves and roots. Plant it 12 inches from the tomato stem in the same bed or in containers nearby. Basil prefers the same watering schedule as tomatoes—consistent moisture without waterlogging—so they thrive together without competing for water timing.

The pairing also works in the kitchen: both are harvested at peak flavor in mid to late summer, and basil's flavor complements tomato dishes. Pinch basil flowers off as they form to encourage leaf growth and keep the plant bushy. In cooler zones, basil dies at the first frost, so plant it after soil warms to at least 60°F and plan to harvest before the first fall frost date.

Marigolds and nasturtiums as pest traps

Marigolds and nasturtiums attract aphids, whiteflies, and spider mites away from tomato foliage by offering a more appealing target. The pests feed on the companion plant instead, reducing pressure on tomatoes. This works best when you plant them in a ring around the tomato bed rather than scattered—pests land on the outer plants first and settle there.

Nasturtiums also attract hoverflies and parasitic wasps, which lay eggs in aphid colonies and reduce pest numbers over time. Both plants tolerate partial shade, so they can grow on the north or east side of tall tomato plants without blocking sunlight. Marigolds prefer drier soil than tomatoes, so water them separately if possible, or plant them slightly uphill so excess water drains away from their roots.

Nitrogen-fixing plants that improve soil

Beans and peas have a partnership with soil bacteria that converts atmospheric nitrogen into a form tomato roots can use. Plant them at the base of tomato cages or along the edge of the bed, at least 12 inches from the stem. Bush beans work better than pole beans in tomato beds because they stay compact and don't shade the tomato foliage.

Alfalfa and clover are slower-acting but longer-lasting nitrogen sources. If you have space, plant them in the off-season (fall or early spring) and turn them into the soil before planting tomatoes. During the growing season, they compete less with tomatoes than beans do. Legumes also improve soil structure, making it easier for tomato roots to penetrate deeper and access water during dry spells.

Herbs and vegetables that share space efficiently

Parsley, cilantro, and dill grow low and don't shade tomato foliage. Plant them 12 to 18 inches from the stem in the space between tomato plants. They attract beneficial insects—parasitic wasps and hoverflies—that prey on tomato hornworms and other caterpillars. Cilantro bolts quickly in heat, so succession-plant it every two weeks if you want continuous harvest.

Carrots and beets grow downward while tomatoes grow upward, so they use different soil layers and don't compete for nutrients. Plant them 18 inches from the tomato stem. Onions and garlic repel some pests and don't compete for water, but they take up space that could grow more productive plants. Lettuce and spinach work in spring before tomatoes reach full size, then shade out as tomatoes grow—plan to harvest them early.

Plants to keep away from tomatoes

Fennel releases compounds that inhibit tomato growth and should stay at least 3 feet away or in a separate bed. Brassicas (cabbage, broccoli, kale) and potatoes share diseases with tomatoes, particularly early blight and late blight. If you grow potatoes in one bed, don't plant tomatoes there the following year—rotate to a different location for at least two seasons.

Corn competes heavily for nitrogen and water, and it attracts corn borers that also feed on tomato fruit. Fennel also attracts some pests that move to tomatoes once fennel is harvested. If you want to grow these plants, dedicate a separate bed at least 4 feet away, or grow them in a different part of the garden where wind doesn't blow pollen or pest insects toward the tomato bed.

Spacing and layout for companion planting

The distance between plants matters more than the choice itself. Tomato roots spread 18 to 24 inches from the stem, so companions planted closer than 12 inches compete directly for water and nutrients. Measure from the center of the tomato stem, not from the edge of the cage or stake.

In raised beds, arrange companions in rings: tomato in the center, basil and parsley at 12 inches, then marigolds or nasturtiums at 18 inches, then nitrogen-fixers at the outer edge. In-ground beds work the same way—map out the spacing before planting to avoid crowding. Tall companions like dill can shade shorter plants, so place them on the north side of the bed where they won't block afternoon sun from reaching tomato foliage.

Frequently Asked Questions

Can I plant tomatoes and basil in the same container?

Yes, if the container is at least 18 inches wide and 12 inches deep. Plant the tomato in the center and basil 12 inches away at the edge. Use potting soil, not garden soil, and water consistently—containers dry out faster than beds. One tomato plant and one basil plant per container is the limit; adding more creates root competition.

Do companion plants reduce the need for pesticides?

They reduce pest pressure, but they don't eliminate it. Marigolds and nasturtiums trap some pests, and basil repels others, but heavy infestations still need intervention. Companion planting is one layer of pest management, not a replacement for monitoring, hand-picking, or spraying when necessary.

What if I don't have space for companions in my tomato bed?

Grow them in containers nearby—a 12-inch pot of basil or marigolds placed at the edge of the bed still repels pests and attracts beneficial insects. Container companions are easier to water separately and don't compete for soil nutrients. Move them as needed to follow the sun or to position them where pests are heaviest.

Can I plant companions after the tomatoes are already growing?

Yes, but earlier is better. Planting companions at the same time as tomatoes lets roots establish without competing for space. If you plant companions later, water them heavily for the first two weeks so they don't stress the tomato plant. Avoid disturbing tomato roots when digging holes for companions—dig at least 12 inches away from the stem.

Do I need to remove companion plants at the end of the season?

Remove nitrogen-fixers like beans and peas before they drop seeds, or they'll self-seed next year and crowd the bed. Basil, marigolds, and nasturtiums die at the first frost in most zones, so you can leave them to decompose and add organic matter to the soil. Perennials like parsley may survive winter in mild zones—cut them back and let them regrow in spring.