Tomato Companion Planting

Companion planting works when you pair tomatoes with plants that repel pests, attract pollinators and predatory insects, or make better use of the same bed without competing for the same resources. There’s no single magic pairing that guarantees a bumper crop, but the right neighbors reduce pest pressure and the wrong ones stunt growth or invite disease. This guide covers what to plant, when, and how to avoid the common mistakes that undo the benefit.

Why this matters

Tomatoes are heavy feeders and magnets for a specific set of pests: hornworms, aphids, whiteflies, and the fungal diseases that thrive in still, humid air around dense foliage. Companion planting is one of the few free tools you have to shift those odds. Basil planted close by is thought to confuse pest insects hunting by scent. Marigolds release compounds through their roots that suppress certain soil nematodes. Borage and other flowering herbs draw in the bees and hoverflies that pollinate tomato flowers and prey on aphids. None of this replaces good soil and consistent watering, but it stacks the deck in your favor.

Skip it, or do it badly, and you don’t get a disaster overnight. What you get is a slow accumulation of small problems: a few more hornworms because nothing nearby is drawing in the parasitic wasps that control them, a bit more fungal trouble because the bed is planted with things that block airflow, a weaker fruit set because pollinators have less reason to linger in that corner of the garden. The bigger risk is planting the wrong thing directly next to your tomatoes: some common vegetables actively compete for nutrients or share diseases, and the damage there is real and measurable by the end of the season.

When to do it

Think in terms of your tomato plant’s own stages, not the calendar. The right time to tuck in companions is at or shortly after transplanting, while the bed is still open and you can work around small root balls without disturbing them. Waiting until the tomato plants have sprawled out makes it physically harder to plant anything else without stepping on roots or breaking stems.

Some companions earn their keep at different moments. Fast-growing herbs like basil can go in at transplant time and will be established well before the tomato canopy closes in. Flowering companions meant to draw pollinators, like borage or alyssum, matter most once the tomato plant sets its first flower clusters, so timing them to be blooming by then is more useful than planting them earlier just to get them in the ground. Marigolds work on the soil over time, so earlier is better than later.

Watch the plant itself rather than the date. Once a tomato has hardened off from transplant shock and put on new leaf growth, the surrounding soil is settled enough to interplant without competing for the same disturbed root zone. If you’re filling gaps later in the season, do it while the tomato canopy still lets light reach the soil. Once the plant has bushed out and starts shading the ground beneath it, sun-hungry companions like most flowering annuals will struggle and it’s not worth forcing them in.

How to do it

Tomatoes interplanted with basil and marigolds
Some of this works. Some of it is folklore.

Start by deciding what job you want the companion to do, because that determines placement and spacing more than any fixed rule does.

Pest confusion and repellents

Basil is the classic choice here, and it works best planted in a loose ring or scattered clumps around the base of each tomato plant rather than in one solid row. Leave enough room between the basil and the tomato stem that you can still get a hand in for staking and pruning later. Nasturtiums work similarly and have the added benefit of acting as a trap crop: aphids often prefer them over your tomatoes, so a patch of nasturtiums nearby can pull the pest problem away from the plant you actually care about.

Soil and root-level benefits

Marigolds go in around the perimeter of the tomato bed rather than tucked right against the stems, since their root systems are what does the work and they need their own space to spread. Use French marigolds specifically if you’re after the nematode-suppressing effect; ornamental marigold varieties bred purely for flower size don’t have the same reputation. Press them in at the same depth they were growing in their nursery pot, water them in well, and treat them like any other transplant for the first week.

Pollinator and predator support

Borage, dill left to flower, and alyssum are worth planting along the edge of the bed where they’ll get full sun and won’t be shaded out once the tomatoes bush up. A hand trowel is all the tool you need for any of this; these are shallow-rooted annuals going into soil that’s already been worked for the tomatoes.

What it should look like when done right

A well-companioned tomato bed doesn’t look crowded. You should be able to see soil between plants, and air should move freely through the bed. If you can’t walk between rows without brushing three different plants at once, you’ve planted too densely and you’re inviting the very fungal problems companion planting is supposed to help prevent. Done well, it looks like a mixed, slightly informal bed, not a monoculture row of tomato stakes.

What goes wrong

What it looks like when it goes wrong
What it looks like when it goes wrong.

The most common mistake is overcrowding in the name of maximizing bed space. Packing in every recommended companion at once leaves no room for airflow, and a tomato bed with poor airflow is far more prone to blight and other fungal disease than one with a few open gaps. If you notice lower leaves yellowing and spotting earlier than usual, crowding is often the real culprit, not a nutrient problem.

The mistake that looks like extra care but isn’t: planting too many nitrogen-hungry companions, like most herbs and flowers, so densely that they compete with the tomato for the same feeding. Tomatoes that get plenty of nitrogen but little else will put out lush, dark green foliage and very little fruit. If your plants look great but aren’t setting tomatoes, check whether your companions have out-competed them for nutrients before you assume it’s a pollination issue.

Bad pairings are the other big failure. Some traditional garden neighbors, brassicas like cabbage and broccoli in particular, are known to compete poorly with tomatoes and are usually kept in a separate part of the garden. Corn and tomatoes can attract the same pest, the corn earworm and tomato fruitworm being the same insect, so planting them side by side just concentrates the problem instead of spreading it out. Potatoes share tomato’s susceptibility to blight, so keeping the two apart limits how fast a single infection spreads through your garden.

Finally, don’t mistake correlation for a guarantee. Companion planting shifts probabilities. If you skip watering or ignore an early pest outbreak, no amount of marigolds will save the crop.

Doing it differently

Growing method changes what’s realistic. In containers, root space is the limiting factor, so skip anything with an aggressive spreading root system and stick to one or two herbs per pot rather than a full companion guild. Basil in the same container as a tomato works well because both like similar water and light; marigolds are better in their own adjacent pot where their roots aren’t competing directly.

In a greenhouse, the usual pest pressure from outdoor insects is lower, but pollination becomes your job since wind and open-air bees aren’t reliably present. Flowering companions matter more here for drawing in whatever pollinators do get inside, and airflow management matters even more since a greenhouse traps humidity.

In a raised bed, you have more control over soil composition, which makes it easier to justify a wider mix of companions since you’re not fighting the same nutrient competition you’d get in poor native soil. This is the setting where a full companion guild, herbs, flowers, and a nematode-suppressing planting around the edge, pays off the most.

Companion Main benefit Best placement
Basil Pest confusion, flavor pairing Loose ring around stem, not touching it
Marigold (French) Soil nematode suppression Bed perimeter
Borage Pollinator and predator attraction Sunny bed edge
Nasturtium Aphid trap crop Separate patch nearby, not adjacent

Variety type matters less than growing conditions here, but larger indeterminate tomatoes that sprawl and shade out neighbors need companions placed further out or chosen for shade tolerance, while compact determinate varieties leave more open, sunlit soil for companions to thrive right up close. For exact spacing and any pest or disease rules specific to your region, check your local extension office, since recommendations do vary by climate and local pest pressure.

Related guides