โ† Back to blog

By Community Steward ยท 7/3/2026

Companion Planting for the Home Garden: What Works, What Doesn't, and Why

Companion Planting for the Home Garden: What Works, What Doesnt, and Why If you grow vegetables, you have probably heard someone claim that planting basil next to tomatoes, or mari...

Companion Planting for the Home Garden: What Works, What Doesnt, and Why

If you grow vegetables, you have probably heard someone claim that planting basil next to tomatoes, or marigolds near potatoes, will solve your pest problems. Some of those claims are true. Some are not.

Companion planting is the practice of growing two or more species together for mutual benefit. The four mechanisms that are actually backed by research are nitrogen fixation, pest confusion, trap crops, and beneficial-insect attraction. Knowing which mechanism is at work in each pairing lets you separate the real strategies from the folklore.

This guide covers the pairings that work, the ones that do not, and how to use what works in a real garden. It is written for Zone 7a but applies to most temperate climates.

How Companion Planting Actually Works

There are four mechanisms that research has confirmed. Most garden books skip the mechanism and just list pairings, which makes it impossible to know whether a claim is based on evidence or tradition.

Nitrogen fixation. Beans and peas host bacteria in root nodules that pull nitrogen from the air and convert it into a form plants can use. Isotopic tracer studies show that only two to eight percent of that nitrogen transfers to neighboring plants in the same growing season. The real benefit is in the soil for the next crop. If you plant beans in a bed in June, the following year you can grow a heavy nitrogen feeder like corn or cabbage in the same spot and get a noticeably better harvest.

Pest confusion. Insects use vision and smell to find their host plants. A large block of a single crop is easy for a pest to locate. A patch of mixed crops is much harder. Varying heights, colors, and scents disrupt the pest's navigation. This is the strongest evidence-based reason why mixed plantings outperform monoculture rows, and it does not require any specific pairing. Diversity itself is the mechanism.

Trap crops. Some plants attract pests more strongly than your main crop. Planting spicier brassicas like arugula, mustard, or napa cabbage draws flea beetles away from vulnerable crops. University of Minnesota research finds that using three or more trap species together works better than relying on a single trap crop. A trap crop only works if you actually pull it or treat it once it is loaded with pests. Leaving it sitting there just feeds the pest population.

Beneficial-insect attraction. Flowering plants attract syrphid flies, parasitoid wasps, and lacewings, all of which prey on garden pests. Buckwheat and sweet alyssum are the best-known examples. The key is timing: the flowers need to be open when the pest population is high. A flower that blooms in June does nothing for aphids in August.

What Not to Plant Together

Before looking at what works, it is useful to know what reliably does not. These pairings either harm one of the plants or have no measurable benefit.

Tomatoes and corn. Corn earworms attack both crops. Planting them together concentrates the pest pressure.

Tomatoes and brassicas (cabbage, broccoli, cauliflower, Brussels sprouts). Brassicas and tomatoes compete for similar soil nutrients and can inhibit each other's growth.

Potatoes and tomatoes. Both are nightshades and share the same diseases, especially blight. Planting them near each other makes it easier for blight to jump between the two crops.

Potatoes and squash. Squash bugs and cucumber beetles affect both, and planting them together concentrates those pests.

Onions and beans. Onions and garlic can inhibit the growth of bean plants. If you are growing beans for yield, keep them away from alliums.

Fennel and almost everything. Fennel releases chemicals that inhibit the growth of many nearby plants. Plant it alone or in its own bed. It is one of the few garden plants that should never be a companion.

Cucumbers and pumpkins/squash together. They attract the same diseases and pests. If you want both, plant them in separate beds.

Potatoes and sunflowers. Sunflowers can inhibit potato growth and they share blight susceptibility.

Pairings That Actually Work

These are the pairings with solid evidence or clear mechanistic basis.

Tomatoes with Basil

Basil's strong scent helps confuse tomato pests, particularly tomato hornworms and aphids. Multiple studies and extension reports confirm the benefit. The exact mechanism is likely pest confusion, which means the scent works because it masks the tomato's smell. Any aromatic herb with a strong enough scent might work similarly. Basil is just the most common and the most useful.

Plant basil between tomato plants or along the same row. A few basil plants around the edge of a tomato patch also help.

Carrots with Onions and Garlic

Carrot rust fly is the most serious pest of carrots in the home garden. The adult fly uses scent to find carrot plants. Onions and garlic release sulfur compounds that mask the carrot's scent, making it harder for the fly to locate them. This pairing is well documented by university extension services and practical gardeners in Zone 7a.

Interplant onions between rows of carrots, or plant them in alternating blocks. Use the thinnings from the carrot bed as early scallions, and use the onions as a living mulch that shades the soil and suppresses weeds.

Beans with Corn

This is one half of the traditional Three Sisters system, and the science backs it up. Beans fix nitrogen in the soil, which benefits the next season's corn crop. Corn provides a living pole for pole beans to climb, eliminating the need for a trellis. The vertical structure of corn also creates a microclimate that shade-tolerant beans appreciate in hot weather.

For your own garden, plant beans on the downwind side of a corn patch to help the beans benefit from nitrogen without competing with corn for it. In a small garden, alternating rows of corn and beans works well.

Beans with Cucumbers and Squash

Beans improve the soil for heavy-feeding cucurbits. Squash and cucumbers consume a lot of nitrogen, and having beans in the same bed means more is available. The large squash leaves shade the soil, which helps keep bean roots cool and moist. In return, the beans fix nitrogen and the cucumbers provide vertical structure if trellised.

A classic arrangement is beans in the center, cucumbers trellised on one side, and squash spreading at the edges. This works especially well for the Three Sisters system with corn replacing one of the cucurbits.

Brassicas with Aromatic Herbs

Thyme, rosemary, sage, and mint all release strong aromas that help repel cabbage moths, aphids, and other brassica pests. These herbs also attract beneficial insects when they flower. Rosemary and thyme are especially reliable because they are perennial and provide year-round presence.

Plant herbs around the edges of a brassica bed or interplant them between individual plants. The herbs should be tall enough not to shade the brassicas. Thyme works well as a ground cover between broccoli plants. Rosemary needs more space but is a strong companion for the whole bed.

Radishes with Carrots

Radishes mature much faster than carrots, typically in twenty-five to thirty days. Planting radishes among carrots serves two purposes. First, the radish leaves mark where you planted the carrots, so you do not accidentally cultivate and damage young carrot seedlings. Second, pulling the radishes at harvest time gently loosens the soil around the carrots, making it easier to pull them without breaking.

Sow radish seeds alongside carrot seeds. Harvest the radishes when they are ready, well before the carrots are mature.

Buckwheat as a Beneficial Insect Plant

Buckwheat is not a companion for a specific vegetable. It is a general-purpose beneficial insect attractor that flowers quickly and produces abundant nectar. Syrphid flies and parasitoid wasps colonize buckwheat within days of the first blooms, which makes it excellent for areas where you are dealing with aphid or caterpillar pressure.

Sow buckwheat as a quick-cover crop between vegetable beds, or in a corner of the garden where it can flower without becoming a weed. It grows from seed to bloom in about thirty to forty days and can be tilled under afterward to improve the soil.

How to Use Companion Planting in a Real Garden

Companion planting works best when you treat it as a strategy for garden layout, not a checklist of pairings to remember for every plant.

Here is a practical approach for a small Zone 7a garden with a few raised beds or a ten-by-twenty-foot plot.

Bed One: The Nightshade and Aromatic Bed

  • Center: Tomatoes, four to six plants
  • Between tomato plants: Basil, one plant between each tomato
  • Edge: Carrots planted along one side, with onions interplanted
  • Corner: A single pepper plant if you grow them

Basil protects the tomatoes. Onions and garlic protect the carrots. The carrots and tomatoes do not conflict. The pepper fits comfortably in the corner.

Bed Two: The Brassica and Herb Bed

  • Center: Cabbage or broccoli, four to six plants
  • Edge: Thyme or rosemary, planted around the perimeter
  • One corner: Arugula as a trap crop for flea beetles
  • Edge row: Radishes for soil marking and quick harvest

Thyme and rosemary deter cabbage moths. Arugula draws flea beetles away from the main brassicas. Radishes mark the bed and harvest early so you know where the slow-growing brassicas are.

Bed Three: The Trellis and Ground Cover Bed

  • Trellis end: Cucumbers on a trellis
  • Center: Pole beans climbing a small teepee or trellis
  • Ground: Squash spreading at the base of the trellis
  • Corner: Buckwheat or sweet alyssum for beneficial insects

This bed combines beans with corn's cousin (cucumbers) and squash. The trellis gives vertical production. The beans improve the soil for the heavy feeders. The buckwheat or alyssum attracts beneficials that protect everything in the bed.

What to Leave Out of Companion Planting

A common mistake is trying to force every plant into a perfect pairing arrangement. In a small garden, space is your most limited resource. If you have five tomato plants and two basil plants, plant them all and do not worry about the ratio. Companion planting is a helpful tool, not a rigid system.

The most important thing you can do for pest management is not companion planting at all. It is crop rotation. Rotating families to different beds each year prevents soil-borne diseases and pest buildup. Companion planting complements rotation, but it does not replace it.

A Few Things That Do Not Work (But You Will Still See Everywhere)

Marigolds and potatoes against Colorado potato beetles. Multiple university studies have found no significant effect. Marigolds do help some soil nematodes, but they do not deter Colorado potato beetles. If you want to grow marigolds, plant them for pollinators or for their own sake. But do not count on them to save your potatoes.

Garlic keeping deer away. Garlic has a strong smell, but deer are not deterred by it. If deer are a problem in your area, you need fencing. No plant companion will replace a fence.

Planting flowers inside vegetable beds to attract pollinators. This is generally fine, but be careful about what flowers you choose. Some ornamental flowers are heavily treated with pesticides at nurseries, which can poison the insects you are trying to attract. If you grow your own flowers from seed, you are safe. If you buy transplants, ask the nursery about their pest management practices.

Getting Started

If you are new to companion planting, start with three pairings and add more as your garden grows. Start with basil next to tomatoes, onions next to carrots, and beans in any bed that will feed corn or brassicas next season. Those three cover the most common vegetables in a Zone 7a garden and each one has a clear mechanism that you can observe.

You will not see a dramatic difference in one season. But if you look at your garden as a system of relationships instead of a list of separate crops, you will start noticing things. A tomato bed with basil has fewer aphids than one without. Carrots between onion rows have fewer rust fly tunnels. Beans in the same bed as squash produce more than beans in a monoculture row.

The best companion planting system is the one you can see working in your own garden.


โ€” C. Steward ๐ŸŒฑ

Found this useful?

See what's available in your community right now โ€” fresh eggs, garden surplus, tools, and more from neighbors near you.

Browse the local board โ†’

More on this topic