Vegetables

Companion Plants for Tomatoes: What Actually Works

Tomato plants underplanted with orange marigolds, basil, and chives in a sunlit garden bed
Jeremy Starke — Green Thumb Gardener

About the Author: Jeremy Starke

I've been growing vegetables since I was 12 — over 30 years in the dirt. I share what actually works in my own Zone 6b garden, and what I wish someone had told me when I started.

Zone 6b · North Carolina · Gardening since age 12

Companion Plants for Tomatoes: What Actually Works

The best companion plants for tomatoes are basil, marigolds, chives, calendula, and bush beans. Keep your tomato vines away from potatoes, corn, brassicas, and fennel.

I have grown tomatoes in backyard dirt and fabric grow bags for over thirty years. In that time I have watched some companion planting rules work wonders, while other traditional pairings turned out to be pure, space-wasting folklore.

Here is which companions actually earn their space, sorted by the specific job they do, with a close look at what works when you are growing in tight containers.

The Quick Dirt

  • The best partners: Basil, marigolds, chives, calendula, and bush beans.
  • Plants to avoid: Potatoes, corn, cabbage family (brassicas), and fennel.
  • The real goal: Attract beneficial bugs, confuse pests, and make the most of tight container space.

Does companion planting actually work, or is it garden folklore?

Companion planting is a mix of hard science and romantic garden folklore. Some pairings offer proven biological benefits. Others are just persistent myths that won’t die.

I spent years crowding my beds with enough basil to open a pizzeria, only to learn that the research paints a much clearer picture. Here is what the studies actually show:

  • Marigolds fight pests: Newcastle University researchers found that French marigolds release airborne limonene, which repels glasshouse whiteflies. Their roots also release alpha-terthienyl, a chemical that suppresses destructive root-knot nematodes in the soil.
  • Basil boosts growth: West Virginia University trials showed that basil’s volatile organic compounds (VOCs) prime tomato defenses and can raise yields by roughly 20 percent.
  • The flavor myth: Basil does not make your tomatoes taste better. Double-blind taste tests from West Virginia University and reports from Texas A&M AgriLife Extension found that planting them side by side has zero impact on fruit flavor.

The most dependable way to use companions is to attract beneficial insects. Flowers planted nearby pull in predators like hoverflies, whose larvae eat aphids, and braconid wasps, which kill tomato hornworms.

Think of companion plants as a way to tilt the odds in your favor. They are helpful sidekicks, but they are no substitute for good soil and steady watering.

Sources

The best companion plants for tomatoes, by job

Grouping your plants by the job they actually perform is the secret to a productive garden. Instead of throwing random seeds together, pair tomatoes with neighbors that repel pests, attract predators, or save soil space. To see how these pairings fit into a full garden layout, check out my companion planting chart.

The pest repellers

These plants use strong scents and natural chemicals to keep destructive insects off your tomatoes, no sprays required.

  • French marigolds repel whiteflies and soil-dwelling nematodes. I tuck a border of French marigolds around my tomato beds every spring, and they have kept my root systems clean and healthy year after year.
  • Sweet basil deters thrips, hornworms, and aphids while priming the tomato’s natural defenses. I get into how that works in my guide to basil companion plants.
  • Garlic and chives use sulfur compounds to ward off spider mites and aphids. These alliums take up almost no space at the base of your plants.
  • Nasturtiums work as a trap crop, a sacrificial plant you grow to lure pests away from your main harvest. Aphids go for the nasturtiums instead of your tomato vines.

Pollinator and predator magnets

Flowering companions bring in the beneficial insects that patrol your garden and eat the pests you don’t want.

  • Calendula flowers draw in ladybugs and hoverflies, and double as another trap crop for aphids. A packet of calendula seeds never leaves my potting bench, since they bloom reliably from spring to frost.
  • Cosmos and zinnias give you bright, landing-pad flowers that attract native bees. More bees mean better pollination, which helps a lot when you are growing cherry tomatoes in tight spaces.
  • Sweet alyssum carpets the ground and pulls in tiny pirate bugs and hoverflies, whose larvae hunt down aphids.
  • Dill and parsley produce umbrella-shaped flower clusters that feed parasitic braconid wasps. Those wasps are the natural enemy of the tomato hornworm.

Space-maximizers and living mulch

These companions fill the empty soil beneath your tall tomato vines so you get more from the same footprint.

  • Bush green beans shade the soil to keep roots cool and fix nitrogen, meaning they pull nitrogen from the air and store it in the soil for future crops. Every May I plant a few bush beans on the sunny side of my tomato cages to get double the food from one bed. (My first year, I planted pole beans by mistake, and they strangled my Early Girls like green, leafy pythons.)
  • Lettuce and spinach thrive in the dappled shade cast by tall tomato leaves. They work as a living mulch, slowing water evaporation while staying crisp under the summer sun.

Companion planting tomatoes in pots and grow bags

Growing tomatoes in containers means limited root space, so your companion choices have to stay small and shallow-rooted. One tomato plant easily claims a 5 to 10 gallon grow bag on its own. That leaves very little room for greedy neighbors that steal water and nutrients.

To make this setup work, be picky about what shares the pot:

  • Shallow-rooted herbs like basil, chives, and thyme happily share the top few inches of soil without choking the tomato roots.
  • Sweet alyssum works well tucked against the rim, cascading over the edge to invite beneficial insects.
  • Skip vigorous sprawlers like squash, pole beans, or large brassicas (cabbage or broccoli), which will starve your tomato fast.

When planting, never center your companions. Tuck them right along the edge of the pot to keep their roots away from the main tomato root ball. When you water, aim at the center of the pot first so the tomato gets its fill before the companions drink the runoff.

One dry summer, I crammed three sweet basil plants next to a Cherokee Purple in a 7-gallon fabric bag. The basil grew beautifully, but it sucked the pot dry so fast that my tomato developed blossom end rot, a calcium problem caused by uneven watering.

Now I tuck just a single chive plant at the edge of my pots. It keeps aphids away without starving the main crop.

If you want to get this setup right, read my full guide on growing tomatoes in containers to dial in your soil mix and pot sizes from the start.

What NOT to plant near tomatoes (and the real why)

The wrong neighbors can invite pests and diseases that ruin a harvest. Keep your tomato vines away from a handful of common garden crops to avoid shared pests, stunted growth, and chemical warfare under the soil.

  • Potatoes and eggplants share a high susceptibility to early and late blight (destructive fungal diseases). Planting these close relatives together creates a fast-moving disease highway in your garden.
  • Sweet corn attracts the tomato fruitworm, the exact same pest as the corn earworm. Placing them side by side is an open invitation for infestation.
  • Cabbage and broccoli are heavy feeders that starve your tomatoes of nutrients. They also prefer cool weather, so their growing schedules don’t line up anyway.
  • Fennel secretes a chemical that acts as a natural growth inhibitor. This allelopathic effect (releasing compounds that stunt nearby plants) will hurt almost any vegetable planted near it.
  • Mature dill can stunt your tomato plants, even though young dill is a great companion. Harvest your dill early, or pull it once it starts to flower.
  • Black walnut trees release a toxic chemical called juglone through their roots. Tomatoes are highly sensitive to juglone, which causes rapid, irreversible wilting if they are planted within fifty feet of the tree’s drip line. (I learned this the hard way when I tried to tuck a container under the shade of my neighbor’s walnut tree.)

How to actually plant companions: spacing and timing

Good companion planting comes down to two things: smart spacing and good timing. Give each plant enough room to breathe, and line up their life cycles with your local frost dates.

Keep your companions out of the main tomato root zone. Every spring I plant a ring of small herbs and flowers at least 12 to 18 inches from the base of each tomato stem. That keeps the soil loose and prevents root competition.

Timing matters just as much. I sow cool-season carrot-family herbs like dill, cilantro, and parsley about four weeks before my last spring frost (which usually lands in mid-April). These herbs bolt, or go to seed, once summer heat arrives. That is exactly what you want, because their tiny umbrella-shaped flowers feed the predatory insects.

To map out your garden, try these simple layouts:

  • In a 4x4 bed: Set two tomato plants on a northern trellis, fill the center with bush beans, and tuck basil and zinnias into the southern corners.
  • In a 5-gallon pot: Plant one tomato in the center, then set a single chive or sweet alyssum against the outer rim.
Jeremy Starke — Green Thumb Gardener

Meet Jeremy Starke

I've been growing vegetables since I was 12 — over 30 years in the dirt. I share what actually works in my own Zone 6b garden, and what I wish someone had told me when I started.

Zone 6b · North Carolina · Gardening since age 12 Read My Story →

Frequently Asked Questions

What should not be planted next to tomatoes?

Keep tomatoes away from potatoes and eggplant (shared blight and pests), corn (shared fruitworm), brassicas like broccoli and cabbage (they stunt tomatoes), and fennel (it secretes a growth inhibitor).

What is the best companion plant for tomatoes?

Basil is the most reliable all-rounder. It deters aphids, whiteflies, and hornworms, and there's research it primes the tomato's own defenses. Marigolds are a close second for whitefly and nematode control.

Do companion plants for tomatoes really work?

Some do, with real science behind them (marigolds vs whitefly and nematodes, basil for pest defense), while others are tradition. For example, basil does not actually change tomato flavor. The most repeatable benefit is attracting predatory insects that eat tomato pests.

What can I plant with tomatoes in a pot?

Stick to small, shallow-rooted companions like basil, chives, thyme, and edge-planted sweet alyssum. Avoid vigorous plants that compete for water in a container.