What to Plant With Allium: Best Companions & Pairings

Master companion planting with Allium. Discover pairings for pest control, aesthetic structure, and crucial plants to avoid.

Alliums earn their reputation as garden workhorses partly because of the pungent sulfur compounds they release from their leaves, stems, and roots. Garlic, onions, chives, leeks, shallots, and ornamental alliums can all serve as useful neighbors for a wide range of vegetables, herbs, and flowers. The science behind these pairings, though, is more nuanced than most companion-planting charts suggest, and a few popular claims fall apart under scrutiny.

How Allium Volatiles Actually Work

The central idea behind planting alliums near other crops is scent masking. When a pest flies or crawls toward its preferred host plant, it navigates partly by smell. If the air around that host is saturated with strong allium volatiles, the pest may fail to recognize the host and move on. Sustainable agriculture researchers describe this as the pest primarily smelling the overpowering allium chemicals rather than the scent of the crop it is searching for. Garlic and its relatives also contain bioactive compounds with documented insect-repellent properties that go beyond simple odor confusion.

This mechanism sounds straightforward, but in practice it depends heavily on the specific pest involved, the concentration of volatiles, wind patterns, and how densely the alliums are planted. A few scattered chive plants at the end of a row will not produce the same volatile cloud as a thick border of garlic running alongside a bed. That difference matters, and it helps explain why some pairings show strong results in controlled experiments while others disappoint in real garden conditions.

Brassicas and the Cabbage Butterfly Problem

One of the oldest companion-planting traditions is tucking onions or garlic between cabbage, kale, and broccoli plants to deter the white butterflies whose caterpillars shred brassica leaves. There is real laboratory evidence behind this one. When researchers applied onion extracts to cabbage leaves and offered butterflies a choice between treated and untreated leaves, the butterflies laid significantly fewer eggs on the allium-treated leaves. The study tested several species of cabbage butterfly and found the deterrent effect consistent across all of them.

The caveat here is that applying a concentrated extract directly to a leaf is a very different scenario from growing an onion plant nearby. The extract guarantees a strong dose of the active compounds right where the butterfly lands. A living onion plant a foot away produces volatiles at a much lower concentration at the leaf surface. Still, the underlying chemistry is sound, and generations of growers report fewer caterpillar problems when alliums are interplanted among their brassicas. If you try this pairing, planting densely and choosing strongly scented varieties like garlic or large onions gives you the best chance of meaningful pest reduction. A single ornamental allium globe at the end of the row is unlikely to do much.

Carrots and Root Vegetables

Carrots and alliums are a classic companion pair, and the reasoning centers on the carrot rust fly. This small fly zeroes in on carrot scent to find suitable egg-laying sites. Research on carrot rust fly behavior found that onion odor altered the way females navigated toward carrot scent in wind-tunnel experiments, disrupting the normal attraction pattern. The same study showed that onion odor also disrupted the cabbage root fly’s response to host-plant scent, which means allium neighbors could benefit turnips, radishes, and other root crops in the brassica family too.

In practice, the carrot-onion pairing works best when the two crops are closely interplanted rather than grown in separate adjacent rows. Some gardeners alternate individual plants within a row, while others plant onions or leeks in a border tight enough to create a continuous scent barrier on the upwind side. The trade-off is that very close spacing can create competition for nutrients and water, so you want to keep your soil fertility high and water consistently when using this approach.

An additional benefit is that carrots and alliums have different root structures and feeding depths. Carrots send a single deep taproot down while onions spread a shallow fibrous root system, so the two crops are not fighting over the same slice of soil. Leeks, which tolerate partial shade better than most alliums, work particularly well next to tall carrot foliage later in the season.

Tomatoes and Nematode Suppression

The tomato-garlic pairing has a different mechanism behind it than scent masking. Root-knot nematodes, tiny worms that invade tomato roots and cause galls that stunt growth, are a serious problem in warm-climate gardens. Garlic produces sulfur-containing compounds that are directly toxic to these nematodes. In laboratory trials, extracts made from garlic straw killed root-knot nematode juveniles at rates ranging from about a quarter to over 95 percent depending on concentration and treatment time, and also sharply reduced egg hatching.

Separate glasshouse research confirmed that incorporating garlic directly into the soil around tomato plants significantly reduced nematode populations while improving tomato root and shoot growth. At the strongest application rate, garlic outperformed onion and lemongrass as a nematode suppressant. For home gardeners, this suggests two strategies worth trying. First, interplanting garlic cloves directly among tomato transplants. Second, after harvesting your garlic, chopping the leftover stems and leaves and working them into tomato beds as a green amendment rather than composting them separately.

This pairing is especially valuable in gardens where nematodes have been a recurring issue. Chemical nematicides are either unavailable or undesirable for most home growers, so a garlic interplant or garlic-straw amendment offers a realistic alternative. It will not eliminate a severe infestation, but it can meaningfully reduce pressure over successive seasons.

Roses and the Japanese Beetle Disappointment

If you have read companion-planting guides, you have almost certainly seen garlic chives recommended as a deterrent for Japanese beetles on roses. The logic follows the same scent-masking rationale that applies to vegetable pests. Unfortunately, when researchers actually tested this in replicated garden plots, the results were clear and deflating. Garlic chives interplanted with roses did not reduce the number of Japanese beetles compared to rose-only control plots across six sampling dates during beetle flight season. The same study also tested rue and zonal geraniums as companions, and neither of those reduced beetle numbers either.

Why does the approach fail for Japanese beetles when it shows promise against cabbage butterflies and carrot flies? Japanese beetles are generalist feeders with a powerful sense of smell fine-tuned to rose scent. They are also strong, persistent fliers that will push through ambient odors to reach a food source they have already detected. Small cabbage butterflies and carrot flies, by comparison, are more easily confused by competing volatiles. The lesson is that companion planting is not a universal pest solution. It works best against specialist pests with relatively weak host-finding abilities, and poorly against robust generalists.

If you grow roses and want alliums nearby for other reasons, go right ahead. Ornamental alliums look striking alongside rose bushes, and they bloom at a slightly different time, extending the season of interest. Just do not count on them to solve a Japanese beetle problem.

What Not to Plant Near Alliums

The volatile compounds that make alliums useful companions for some crops can be actively harmful to others. The most commonly cited incompatibility is with legumes. Beans and peas are widely reported to grow poorly when planted near garlic or onions. The suspected mechanism involves allium root exudates interfering with the nitrogen-fixing bacteria that colonize legume roots. Without those bacterial partners, legumes lose their ability to pull nitrogen from the air and have to rely entirely on whatever nitrogen is already in the soil, which stunts their growth.

Asparagus is another traditional “avoid” pairing. Both asparagus and alliums are long-lived perennials that occupy the same soil for years, and gardeners have long observed that the two seem to inhibit each other when planted side by side. The specific chemistry is not as well studied as the legume interaction, but the practical advice is consistent enough across regions and climates that it is worth respecting.

Other alliums can also be a problem. Planting garlic directly next to onions is not inherently harmful, but it concentrates the same pest and disease susceptibility in one spot. Onion maggots, thrips, and fungal diseases like white rot spread readily between related plants. If you grow multiple allium species, spacing them apart or rotating their beds annually helps break pest and disease cycles.

Ornamental Alliums in Perennial Borders

The conversation shifts when you move from vegetable gardens to ornamental beds. Tall ornamental alliums like ‘Globemaster,’ ‘Purple Sensation,’ and Allium cristophii are planted primarily for their spherical flower heads, not their pest-deterrent qualities. The companion question here is mostly about aesthetics and practical growth habits.

Ornamental alliums go dormant after flowering, leaving gaps in the border by midsummer. The best companions are plants that fill that gap as the allium foliage dies back. Low to mid-height perennials with spreading habits work well: hardy geraniums (cranesbills), catmint, lady’s mantle, and salvias all grow outward in early summer at roughly the time allium leaves start yellowing. These plants hide the fading foliage without competing for the well-drained soil that allium bulbs prefer.

Alliums also pair well with ornamental grasses. The vertical or arching blades of grasses contrast with the round allium flower heads, and grasses continue to look good through fall and winter, long after the alliums have disappeared underground. Stipa, Calamagrostis, and Panicum species are all popular partners.

One practical consideration is drainage. Ornamental allium bulbs rot easily in wet winter soil. Companions that demand heavy watering through the dormant season can create conditions that kill the bulbs. Mediterranean herbs like lavender, rosemary, and thyme, which thrive on neglect and dry soil, are natural allies for this reason. They share the same preference for lean, well-drained ground and do not need supplemental irrigation once established.

Pollinator Value of Allium Flowers

Beyond pest deterrence and aesthetics, allium flowers are magnets for beneficial insects. Research documenting insect visitors to various allium species found that the flowers attracted a range of pollinators, predominantly bees and flies. Different allium species attracted different sets of visitors, which means mixing several types of allium in a garden increases the diversity of pollinators you support.

This matters for the vegetable garden as much as for the flower border. Crops like tomatoes, peppers, squash, and cucumbers all depend on pollination, and having a strong local population of bees improves fruit set. Letting a few garlic or onion plants bolt and flower, rather than pulling them the moment they send up a scape, provides a food source for pollinators during the early-to-mid summer window when many other flowers have not yet hit their stride. Chives are particularly useful here because they flower prolifically, tolerate partial shade, and re-bloom if you cut the spent heads back promptly.

Hoverflies, which are among the flies attracted to allium blooms, are doubly useful. The adults pollinate flowers while feeding on nectar, and their larvae are voracious predators of aphids. A patch of flowering alliums can pull hoverflies into a garden where they then lay eggs on nearby aphid-infested plants. This indirect pest-control benefit is harder to quantify than scent masking but no less real for gardeners dealing with aphid pressure on lettuce, kale, or fruit trees.

How Dense Is Dense Enough

One of the reasons companion planting produces inconsistent results from garden to garden is planting density. Most of the positive research on allium pest deterrence involves either concentrated extracts or very close interplanting. A single garlic plant every few feet along a carrot row may not generate enough volatile output to confuse incoming pests. For scent masking to function, you generally need a ratio of alliums to companion plants that feels higher than purely decorative spacing would suggest.

A reasonable approach for vegetable gardens is to dedicate at least every third planting spot in a row to an allium, or to run a continuous border of onions or garlic along the full length of a bed. In raised beds, planting alliums in the outermost ring creates a perimeter barrier that intercepts pests approaching from any direction. For ornamental beds, the density question is less about pest control and more about visual impact. Ornamental allium bulbs are typically planted in clusters of five or more so the flower heads read as a group rather than isolated dots.

Timing also matters. Most pest-deterrent effects depend on the allium plant being actively growing and releasing volatiles. Garlic planted in fall and harvested in midsummer leaves companion crops unprotected for the rest of the growing season. If you want season-long coverage, combine early alliums like garlic with later ones like leeks or bunching onions that persist through fall. Chives, which are perennial and start growing very early in spring, provide the longest continuous volatile output of any common allium.

Using Garlic Straw as a Soil Amendment

Even after harvest, alliums can keep contributing to your garden. Garlic straw, the dried stems and leaves left after bulbs are pulled, retains bioactive sulfur compounds. Researchers found that raw and fermenting garlic straw extracts significantly reduced root-knot nematode survival and egg hatching in laboratory conditions, with fermenting extracts sometimes outperforming higher concentrations of raw material.

For home gardeners, the practical takeaway is to chop garlic straw and work it into beds where you plan to grow tomatoes, peppers, or other nematode-susceptible crops. Letting the straw partially decompose before incorporation appears to increase its effectiveness. You can achieve this by piling the straw in a corner for a few weeks after harvest, turning it occasionally, and then digging it into the soil a week or two before transplanting. The process is low-effort and uses material that most gardeners either compost or throw away. In gardens with known nematode pressure, it is one of the simplest interventions available that has actual research behind it.