Companion planting is the practice of growing two or more plant species close together so that they benefit each other. The benefits can include pest control, better pollination, improved soil conditions, or efficient use of space. In short, the definition of companion planting is choosing plant neighbors on purpose instead of planting at random.

The idea is old, and many traditional farms and home gardens still rely on it. Modern growers tend to treat it as a set of useful tendencies rather than guaranteed rules, because results depend on climate, soil, plant variety and how many pests show up in a given season.

Why Companion Planting Works

Plants interact with their neighbors in several ways. Some release chemical compounds from their roots or leaves that repel insects or discourage other plants from growing nearby. Others attract beneficial insects, such as hoverflies and lacewings, which feed on aphids and other soft-bodied pests. Taller plants can shade heat-sensitive crops, and low-growing plants can hold moisture in the soil and suppress weeds.

Legumes add another layer. Peas, beans and clover host nitrogen-fixing bacteria in their root nodules, and that nitrogen becomes available to nearby heavy feeders like corn or leafy greens when the plant residue breaks down. Research on exact nitrogen transfer varies, but the general pattern is well documented in agricultural extension publications.

Factors That Affect Results

Several conditions decide whether a pairing helps or simply competes for resources:

  • Root depth and spread. Plants with shallow roots and plants with deep taproots use different soil layers, so they can share a bed with less competition. Two shallow-rooted crops with similar water needs often compete more.
  • Water and nutrient needs. Pair plants with similar watering schedules. A drought-tolerant herb planted beside a thirsty cucumber vine will suffer on a dry week.
  • Height and light. Tall crops such as pole beans, sunflowers or corn can cast afternoon shade. That helps lettuce and spinach in hot summer climates but hurts sun-loving tomatoes if placed on their south side.
  • Pest pressure. Companion benefits matter most when pests are already present. In a clean bed with few insects, the protective effect may be small.
  • Growing season. Fast crops like radishes can be sown between slower crops like brassicas, so the same space works twice.

Common Pairings and Pairings to Avoid

Extension and gardening references tend to agree on a handful of pairings. The table below summarizes widely cited combinations. Treat it as a starting point and observe your own garden, since results vary.

Plant Good neighbors Keep apart from
Tomato Basil, carrots, marigolds Potatoes, fennel
Carrot Onions, leeks, rosemary Dill, parsnips
Cucumber Beans, peas, radishes Aromatic herbs, sage
Lettuce Strawberries, carrots, radishes Cabbage family (in some reports)
Corn Beans, squash, cucumbers Tomatoes (shared pests)
Brassicas (cabbage, broccoli) Dill, thyme, onions Strawberries, tomatoes

The classic “Three Sisters” planting of corn, beans and squash is one of the best-documented examples. The corn gives climbing beans a support, the beans fix nitrogen, and the broad squash leaves shade the soil and suppress weeds.

What to Do: Planning a Companion Bed

If you want to try companion planting, start small and keep notes. Before you plant, it helps to know your site and soil, which is covered in Preparing Garden Soil for Planting: A Practical Guide and How to Start a Garden: Site, Soil and First Plantings.

  1. Sketch your bed on paper and mark the sun direction, noting which spots get six or more hours of direct light.
  2. Group plants by height, placing tall crops on the north side of the bed so they do not shade shorter ones.
  3. Pair crops with similar water needs in the same row or block.
  4. Add a few flowering plants such as alyssum, calendula or borage at the bed edges to attract pollinators and predatory insects.
  5. Rotate crop families each year so pests that target one family do not build up in the soil.
  6. Record what you planted, where, and what problems showed up. After two or three seasons, your own data will be more useful than general charts.

For a broader overview of the full growing cycle, see Vegetable Gardening Basics: Planting to Harvest. Many gardeners also pair companion beds with flowers that feed insects, which is covered in Planting a Pollinator Garden: Flowers, Nesting and Care.

Is companion planting scientifically proven?

Some pairings, such as legumes adding nitrogen, have strong supporting research. Others, like certain pest-repelling claims, are based more on observation and anecdote. Results vary with climate and pest levels, so test pairings in your own garden.

Can I companion plant in containers?

Yes. A large pot can hold a tomato with basil or a few marigolds, provided the container is big enough for both root systems and both plants get the water and light they need.

What is the difference between companion planting and intercropping?

Intercropping means growing two crops in the same space at the same time, often in alternating rows. Companion planting is the broader idea of choosing neighbors for mutual benefit, and intercropping is one method of doing it.

Which herbs are best for companion planting?

Basil, dill, thyme, marigold-like flowers and chamomile are commonly used. Dill can help some crops but can also inhibit others, so check the pairing before you plant it near carrots or tomatoes.