Desima

Companion Planting Tomatoes: Best and Worst Neighbors

Published

What to plant with tomatoes and what to keep away, with a companion table, a sample bed layout, and which pairings are backed by research or just folklore.

The best companion plants for tomatoes are basil, onions, chives, garlic, carrots, parsley, lettuce, marigolds and nasturtiums. They either share the bed without competing for the same space, or bring in insects that eat tomato pests. Keep tomatoes away from potatoes (they share blight), corn (the same caterpillar attacks both), fennel and black walnut trees, and treat the cabbage family as a disputed pairing.

This guide goes deeper on tomatoes than our companion planting chart, and agrees with it. As with the chart, we'll be clear about which pairings have evidence behind them and which are garden tradition.

What are the best companion plants for tomatoes?

PlantWhy it helpsHow to place it
BasilSame sun, heat and water needs. A few field trials have found a row of basil between tomato rows reduced whitefly numbers. Flowering basil feeds bees1 or 2 plants between tomatoes or along the front edge, about 10-12 in (25-30 cm) from the stems. Let one plant flower for pollinators
Onions, chives and garlicStrong scent is thought to mask tomatoes from some pests. Narrow plants that take almost no roomEdge the bed, or tuck them between tomatoes. Chives can stay put as a perennial at a corner
CarrotsRoots sit at a different depth, and carrots cope with the light shade of a tomatoA short row on the sunny side of the tomatoes, sown after stakes or cages go in so you don't disturb them
ParsleyWhen it flowers (usually in its second year) it feeds hoverflies and tiny parasitic waspsFront of the bed. Leave one plant to flower
Lettuce and spinachShallow roots and a quick harvest. Tomato shade slows bolting in early summer, and the leaves act as a living mulchPlant at the front or between young tomatoes in spring, and harvest before the tomatoes fill out
French marigoldsFlowers bring in hoverflies, whose larvae eat aphids. They can also suppress root-knot nematodes (see the evidence notes below)One per corner or at the bed ends
NasturtiumsA well-known aphid trap crop. The flowers attract beneficial insects and are edibleAlong an edge or spilling over the side, where they won't scramble into the tomatoes
Sweet alyssumLow carpet of tiny flowers that hoverflies loveAlong the front edge as a border
BorageFlowers heavily and is a bee magnetIt gets big, so one plant at the end of the bed. It self-seeds freely
Peppers and eggplantSame warmth, sun and watering, so they grow happily alongsideFine as neighbors, but they're in the tomato family, so rotate them as one group

A note on garlic and spider mites

Desima's owner planted garlic around the base of tomato plants during a bad spider mite outbreak, and the one small tomato ringed with garlic stayed healthy while unprotected plants nearby were lost. It's a single experience rather than a controlled test, but garlic is cheap and takes little room. The full story, and the treatments that do reliably work, are in our guide to getting rid of spider mites.

What should you not plant with tomatoes?

PlantWhy to keep it awayHow strong is the reason?
PotatoesBoth get late blight, and its spores spread easily between them on the wind. They also share early blight and the Colorado potato beetle. Don't grow one where the other grew last yearWell supported
CornCorn earworm and tomato fruitworm are the same insect (Helicoverpa zea). Numbers often build up on corn and move onto tomatoes later in summer. Tall corn also shades tomatoesWell supported
Black walnut treesThe roots release juglone, and tomatoes are among the most sensitive vegetables. Leaves yellow, wilt and the plant can dieWell supported
FennelWidely said to inhibit the plants around it. The evidence is thin, but fennel is big, aromatic and happiest on its ownTraditional
Mature dillYoung dill is fine nearby, but tradition says flowering dill slows tomato growthTraditional
Cabbage family (cabbage, broccoli, kale)Genuinely debated. Some charts say brassicas stunt tomatoes, while others pair them because tomato scent is said to deter cabbage moths. Both are heavy feeders, and brassicas are usually a cool-season crop anywayDisputed

The black walnut problem reaches as far as the tree's roots, which usually extend well past the canopy. The University of Wisconsin's black walnut toxicity page lists tomatoes, peppers, potatoes and eggplant among the sensitive vegetables.

What about tomato hornworms?

Hornworms are often lumped in with the corn problem, but they're a different caterpillar. Tomato and tobacco hornworms feed on the tomato family (tomatoes, peppers, eggplant and potatoes), not corn. No companion plant reliably repels them, despite claims made for borage, marigolds and basil. What does help is hand-picking them in the evening and leaving any hornworm covered in small white cocoons: those are parasitic wasps that will kill it and breed more wasps. Flowers that feed beneficial insects support those wasps. The UC IPM hornworm guide covers the rest.

Sample tomato companion bed layout

Here's one way to plant a 4 ft x 8 ft (1.2 m x 2.4 m) raised bed with the long side facing the sun. The back row sits on the side away from the sun's path (north in the Northern Hemisphere, south in the Southern Hemisphere), so the tall tomatoes don't shade everything else.

Row (back to front)What to plantSpacing
Back3 staked or caged tomatoesAbout 30 in (75 cm) apart
Gaps between tomatoes2 basil plants in each gap10-12 in (25-30 cm) from the tomato stems
MiddleAlternating short rows of carrots and onions or chivesCarrots 2-3 in (5-8 cm), onions 3-4 in (8-10 cm)
FrontLettuce and radishes in spring, then more basil or parsley for summerLettuce 8-10 in (20-25 cm)
Corners and endsFrench marigolds at the front corners, a nasturtium spilling over one end, sweet alyssum along the edgeOne per corner

A few things make this layout work:

  1. Mulch and water at the soil. Tomatoes get fewer leaf diseases when the foliage stays dry. A drip line in a raised bed is ideal, and steady watering also helps prevent blossom end rot, which is a calcium uptake problem more often than a lack of calcium in the soil.
  2. Harvest the lettuce and radishes early. By midsummer the tomatoes need the light and air at their base.
  3. Rotate next year. Don't put tomatoes, peppers, eggplant or potatoes back in that bed for at least two to three years if you can.

For a smaller 4 ft x 4 ft square foot bed with tomatoes, basil, onions and carrots, see the layout in the companion planting chart and the square foot gardening guide.

Tomato companions in pots

In a container, pair one tomato with something small that won't compete for root space: a basil plant, a clump of chives, or a single French marigold at the edge. Use a pot of at least 10 gallons (about 40 litres) for a full-size tomato. Our vegetable container garden guide and grow bag guide cover pot sizes and watering.

Which tomato companion claims are actually true?

ClaimVerdict
Potatoes and tomatoes spread blight to each otherTrue. They share late blight and other pests
Corn and tomatoes share a pestTrue. Corn earworm and tomato fruitworm are one species
Flowers near tomatoes bring in pest predatorsGenerally well supported for hoverflies, lacewings, ladybugs and parasitic wasps
Nasturtiums draw aphids awayReasonable, if you remove or treat the infested nasturtiums
Basil reduces whiteflies on tomatoesSome field trial evidence, but limited
French marigolds kill root-knot nematodesPartly. The research mostly involves dense marigold plantings grown for two to three months or more before the crop. One marigold beside a tomato does little for nematodes
Basil makes tomatoes taste betterNo good evidence
Borage or marigolds repel hornwormsFolklore
Cabbage stunts tomatoesDisputed, with no strong evidence either way

Our guide to biological pest controls explains how to keep those beneficial insects working for you, and 10 plants to repel bugs covers more of the aromatic herbs.

How big can one tomato plant get?

Companion planting assumes each tomato needs a fixed bit of space. One of the most shared tomato pictures on Desima shows how far that space can stretch.

Desima graphic titled This Is One Tomato Plant: a single tomato plant trained across an overhead frame in a greenhouse, its canopy covered in ripe red cherry tomatoes, with a woman reaching up to pick them and buckets of harvested fruit below

When Desima's owner first posted it, they wrote: "I came across this on reddit, there's a lack of information about it on the net. From my understanding, apart from providing awesome nutrients to the plant, you need to prune it in this way to get the desired shape."

A tomato tree in a greenhouse: one plant growing from a large round pot, its branches trained across a white overhead pipe frame and dotted with red and green cherry tomatoes

These "tomato trees" are real. The best known grows in the Living with the Land greenhouses at Epcot in Florida, where a single plant was recognized by Guinness World Records for a harvest of more than 32,000 tomatoes in about a year (2005 to 2006). The owner found a video of it from the park's Behind the Seeds tour, described as "a behind the scenes look at the Living With The Land attraction". Tours change over the years, so check with Epcot if you want to see the greenhouses yourself.

The trick is less about secret pruning and more about conditions. An indeterminate tomato never stops growing on its own. In a climate-controlled greenhouse with year-round warmth and steady feeding, it never gets cut back by winter, so growers can train its branches outward across an overhead frame for many months. In an ordinary garden, frost or disease ends the season long before that. For a home bed, the takeaway is simpler: give each indeterminate tomato a tall, strong support and enough room for air to move, and plan your companions around its full summer size.

FAQ

Can you plant tomatoes and peppers together?

Yes. They like the same sun, warmth and watering. They share some pests and diseases, so move them to a new bed together each year. More in our guide to companion planting peppers.

Can you plant tomatoes next to cucumbers?

Yes, it's a common pairing. Trellis the cucumbers so the vines don't smother the tomatoes, and leave room for air to move between them. See companion planting cucumbers.

Do marigolds really help tomatoes?

They help bring in hoverflies and other beneficial insects, which is useful. Their famous effect on root-knot nematodes mostly comes from dense plantings grown for a season, not one plant beside a tomato.

What should you not plant after tomatoes?

Avoid potatoes, peppers and eggplant (the same family and diseases), and strawberries, which are prone to verticillium wilt that tomatoes can leave in the soil. See companion planting strawberries and companion planting potatoes.

What is the best herb to plant with tomatoes?

Basil is the classic choice. Parsley, chives and borage also work well. Keep fennel, and mature dill, at a distance.