Toolshop/Guides/Garden

Garden

Companion planting

Companion planting means growing certain plants near each other so one helps the other, or keeping some apart. A few of these pairings have been tested in field trials. This guide covers those, and how to use them in a garden. The Companion Planting Chart lists pairings for each vegetable.

Updated November 2026 4 min read

Basics

Most companion planting lists were handed down from gardener to gardener. University of Delaware Extension notes that many of the claims rest on folklore, and that researchers have now tested a lot of them. Some held up and some did not.

The University of Minnesota gives an example. Marigolds and green onions are often listed as a way to keep flea beetles off crops, but Minnesota found little research to support it, and some studies contradict it.

The pairings with the best support work in a few clear ways: one plant draws pests away from another, one feeds the insects that eat pests, or one harms the plants around it.

Trap crops

A trap crop is a plant that a pest likes more than your main crop. The pest gathers on it, and you deal with the pest there.

The best studied example is the striped cucumber beetle, which feeds on squash, cucumbers and melons and spreads bacterial wilt. The beetles strongly prefer Blue Hubbard squash over butternut. In UMass Extension trials, a border of Blue Hubbard around butternut squash cut insecticide use by up to 94%, with no increase in beetle numbers or feeding damage on the main crop. Later UMass work found buttercup squash worked as well as Blue Hubbard.

Kill the pests on the trap

Lincoln University Extension stresses that a trap crop only works if the pests gathered on it are killed. Otherwise the trap becomes a nursery that sends more beetles into the garden.

Flowers

Some flowers feed beneficial insects. Hover flies are one of the most useful. The adults eat nectar and pollen and lay their eggs near aphids, and the larvae that hatch eat the aphids.

Sweet alyssum is the best tested flower for this. UC Davis researchers compared 22 kinds of plants and found sweet alyssum the most effective at drawing hover flies, with aphids held down up to 50 feet from where it grew. Lettuce growers on the California central coast plant it between lettuce for that reason. USDA researcher Eric Brennan in Salinas found that as few as 500 to 600 alyssum transplants per acre, spread through a romaine field, gave the hover flies enough to feed on.

In a home garden, that means a few alyssum plants tucked into beds with lettuce, cabbage family crops or other plants that get aphids.

Companion Planting Chart Look up a vegetable to see what grows well beside it and what to keep away from it.
Open the chart

Black walnut

Black walnut is the best known bad neighbor. Its roots, leaves and hulls contain juglone. University of Wisconsin Extension lists tomato, potato, eggplant and pepper as especially sensitive. Affected plants can wilt and die in a day or two, which looks a lot like a wilt disease or drought.

Wisconsin's advice is to keep sensitive crops out of the walnut's root zone, which reaches well past the edge of the canopy, and never to use walnut leaves, bark or wood chips as mulch around them. Cutting the tree down does not fix it right away, since the roots stay in the soil. Raised beds help where there is no room to move the garden.

University of Maryland Extension notes that some researchers question whether juglone is the whole cause. Its advice on spacing and mulch stays the same.

Planning

  • Start with the pairings above, which have trial data behind them.
  • Keep notes. If a pairing seems to work in your garden, note the dates, the pest and how bad it was, so you can compare next year.
  • Plan spacing and sun along with companions. A tall crop shades a short one beside it, so put sun lovers on the sunny side. The Garden Planner lays out beds by spacing.

Quick check

Striped cucumber beetles have filled the Blue Hubbard border around your butternut squash. What now?

Answer: kill the beetles on the border. The trap gathers them in one place so you only have to treat a small area. Left alone, they breed and move on to the main crop.

Summary

  • Many companion planting claims are folklore. A few have good trial data.
  • A Blue Hubbard or buttercup squash border draws cucumber beetles off butternut squash. Kill the beetles on it.
  • Sweet alyssum feeds hover flies, whose larvae eat aphids.
  • Keep tomatoes, potatoes, eggplant and peppers away from black walnut roots and mulch.

Sources

University extension services and USDA research.