Onion Companion Plants: Which Neighbours Repel Carrot Fly and Which to Keep Separated

Onions are among the most useful companions in the vegetable garden. Their sulfur-based volatile compounds — the same chemistry that makes raw onions pungent and your eyes water when you slice them — interfere with the host-location ability of a range of pest insects, giving neighboring crops a measurable degree of protection. In return, certain plants benefit onions: attracting pest predators, suppressing weeds, or reducing competition for soil nutrients.

Understanding which pairings deliver documented, mechanism-backed benefits versus which are gardening folklore is important before you plan your beds. This guide covers the best companion plants for onions, the pairings you should avoid, the underlying science for each, and a practical layout for a mixed onion bed. For the complete guide to growing onions from seed, sets, and transplants, see the onion growing guide. For broader companion planting strategy across your whole vegetable garden, read the companion planting guide.

BioAdvanced All-in-One Rose & Flower Care Spray — 32 oz
Rose Saver
BioAdvanced All-in-One Rose & Flower Care Spray — 32 oz
★★★★☆ 1,200+ reviews
Treats black spot, powdery mildew, rust, and aphids in one application. Ready-to-spray formula needs no mixing — just point and spray. Essential during humid summers when fungal diseases explode overnight.
Check Price on AmazonPrime
As an Amazon Associate I earn from qualifying purchases.

How Onion Companion Planting Works

The primary mechanism behind onion companion benefits is chemistry. Onion plants continuously release volatile sulfur compounds from their leaves and stems — primarily alkyl sulfates and thiosulfinates that make up approximately 94% of the volatiles emitted by allium crops. A peer-reviewed review published in Molecules (PubMed Central, 2018) found that these compounds disrupt the host-selection behavior of multiple aphid species, including green peach aphid (Myzus persicae), cotton aphid (Aphis gossypii), cabbage aphid (Brevicoryne brassicae), and mustard aphid (Lipaphis erysimi). The specific compound allyl-propyl-disulfide was identified as particularly effective at disrupting aphid host selection.

A secondary mechanism — spatial and visual disruption — may be equally important. Research by entomologist Stan Finch at Horticulture Research International found that mixed plantings reduce pest damage not primarily through scent repulsion, but through a disruptive effect: the visual and spatial complexity of a mixed planting makes it harder for specialist insects to locate and land on their host crops. Both mechanisms are likely operating simultaneously in a well-designed companion bed. The University of Minnesota Extension notes that many online companion plant claims are “not always accurate or backed by research” — this guide focuses on pairings with at least some extension or peer-reviewed backing.

🗓️

Seasonal Garden Calendar

Know exactly what to plant, prune and sow — every month of the year.

View the Calendar →

Onions are shallow-rooted — their main root zone sits in the top 12 inches of soil — which makes them physically compatible with many deeper-rooted vegetables. They are also low-canopy plants that do not shade out neighbors, meaning they can be slotted around larger crops without significant competition for light.

Best Onion Companion Plants at a Glance

The table below summarises the most reliably beneficial companions for onions, ranked by strength of evidence.

Companion PlantPrimary BenefitKey MechanismEvidence Level
CarrotsMutual pest fly deterrenceOnion scent deters carrot fly; carrot scent deters onion flyModerate — Kew Gardens; intercropping studies show up to 52% carrot fly reduction
Brassicas (cabbage, broccoli, kale, Brussels sprouts)Reduces cabbage aphid, looper, and cabbageworm pressureAllium sulfur volatiles disrupt cabbage pest host-locationModerate — Iowa study cited by UMN Extension; WVU Extension compatibility table
LettuceSpace efficiency; possible aphid deterrenceShallow roots; no nutrient competition; onion scent may deter aphidsLow-moderate — widely recommended by extension sources
BeetsCompatible root depths; no competitionDifferent soil zones; both prefer pH 6.0–7.0Low — WVU Extension and Ask Extension list as compatible
PeppersCompatible; no allelopathic conflictDifferent nutrient demands; onion scent may deter some pepper pestsLow — Ask Extension lists as compatible companion
ChamomileAttracts beneficial insects; traditional flavour companionOpen flowers attract hoverflies and parasitic waspsLow — beneficial insect role documented; flavour claim unverified in studies
StrawberriesPossible aphid and weevil deterrenceAllium family broadly cited as reducing strawberry weevil pressureLow — traditional; allium volatiles cited against weevils
TomatoesCompatible; different root depths; possible aphid benefitShallow onion roots occupy upper zone; deep tomato roots occupy lower zoneLow-moderate — no root competition; consistent extension recommendation

Carrots and Onions: The Classic Companion Pair

The carrot-onion pairing is one of the most cited combinations in vegetable growing — and one of the few with direct intercropping evidence behind it. The mechanism is straightforward: carrot fly (Chamaepsila rosae) is a specialist pest whose maggots bore into carrot roots, while onion fly (Delia antiqua) is a separate specialist whose larvae attack onion bulbs and stems. Both pests navigate partly by detecting the volatile scent of their host crop to locate egg-laying sites.

When onions and carrots are grown in adjacent rows, the mingled volatiles from each crop partially mask the scent of the other. Intercropping studies recorded up to a 52% reduction in carrot fly infestation in mixed onion-carrot beds compared to carrot monocultures. A separate mixed-density study found increased populations of predatory insects around carrot fly egg sites in mixed beds — suggesting a secondary benefit through natural enemy recruitment. Royal Botanic Gardens, Kew identifies both flies by scientific name and describes the pairing as “a happy coincidence” of mutually beneficial volatile chemistry. The most defensible scientific framing is the disruptive effect: visual and chemical complexity makes host plant location harder for specialist flies, rather than a direct scent repellent that drives pests away outright.

For best results, alternate rows: one row of onion sets spaced 3–4 inches apart within-row, then one row of carrots. Plant both in early spring once soil reaches 50°F. Their harvest windows are compatible, and neither crop significantly shades the other. For full guidance on carrot cultivation, including variety selection and thinning, see the carrot growing guide.

Onions with Brassicas: Natural Pest Barrier

Brassicas — cabbage, broccoli, kale, Brussels sprouts, cauliflower, and kohlrabi — are among the most pest-vulnerable crops in the home garden. Cabbage loopers (Trichoplusia ni), imported cabbageworms (Pieris rapae), and cabbage aphids (Brevicoryne brassicae) are consistent challenges across most US growing regions. Onions planted in adjacent rows or interplanted within a brassica bed provide a measurable degree of chemical interference.

An Iowa field study cited by the University of Minnesota Extension found that a combination of onions, thyme, and nasturtiums reduced cabbage looper and imported cabbageworm damage in broccoli and cabbage plots compared to monoculture controls. Onion is one component of that combination — the result should not be read as a guarantee of pest elimination, but it is among the stronger pieces of direct evidence for the onion-brassica pairing available from extension research. The West Virginia University Extension explicitly lists the onion family as a “friend” to the cabbage family in its companion planting compatibility table.

For more on this, see onion types: storage, sweet, spring.

For practical bed design, plant a row of onion sets every two to three rows of brassicas. This density provides enough volatile coverage to create a disruptive mixed-crop environment without crowding the brassicas’ root zone. Cabbage aphid is the pest most consistently affected by allium proximity: the sulfur compounds that make onions pungent disrupt the chemical signals these aphids use to find and colonize host plants. For high-value crops like cauliflower or broccoli, adding an onion border row is a no-chemical, low-cost addition to your integrated pest management approach.

Onions with Tomatoes

Tomatoes and onions are physically well-matched companions. Tomatoes draw primarily from the 12–24 inch soil zone, while onions are shallow-rooted and compete mainly in the top 12 inches. In a well-prepared raised bed they do not significantly compete for water or nutrients. Onion sulfur volatiles may reduce aphid pressure on tomato plants, though this benefit is less documented than the carrot or brassica pairings.

The practical reason to plant onions near tomatoes is space efficiency. Onions are low-canopy plants that tolerate growing alongside a taller tomato structure and need minimal lateral space once established. A row of onion sets can be planted along the outer edge of a staked tomato row without interfering with access, support installation, or airflow. For tomato growing specifics, including staking methods, soil preparation, and watering, see the tomato growing guide.

Onion plants and chamomile flowers growing together in a garden bed with soft morning light
Chamomile planted at the border of an onion bed attracts hoverflies and parasitic wasps — the genuine, documented benefit behind the traditional folk pairing.

Chamomile and Onions: What the Research Actually Says

The chamomile-onion pairing is one of the most repeated claims in companion planting literature, with some sources asserting that chamomile “improves the flavour” of onions grown nearby. It is worth being clear about what the evidence shows — and what it does not.

The flavour improvement claim has not been validated in controlled studies. No peer-reviewed research specifically demonstrates chamomile-induced changes to onion bulb chemistry or flavour. What chamomile reliably offers is a different but genuinely useful benefit: its open, accessible flowers are highly attractive to hoverflies (Syrphidae) and parasitic wasps (Braconidae, Chalcidoidea), both of which prey on aphids and caterpillar pests. Ask Extension lists chamomile as a compatible and beneficial onion companion specifically for this insect-attracting role.

We cover this in more depth in onions companion plants.

There is a secondary argument for chamomile’s soil benefit: it is a known calcium and potassium accumulator, drawing these nutrients through its deep tap root and cycling them back into the soil surface as plant material decomposes. Whether this meaningfully transfers to onion bulb mineral content is unproven. If you grow chamomile with onions, plant it at the bed border rather than within the onion rows — its tap root eventually competes for the same upper soil zone, and chamomile prefers drier conditions than onions require during bulb development.

Garden Layout: Placing Onions for Maximum Effect

Garden plan diagram showing onion rows placed between brassica plants and carrot rows as a pest deterrent layout
Placing onion rows between brassica plants and alternating with carrot rows puts volatile sulfur coverage where pest pressure is highest.

Strategic placement is more important than simply including companion plants in the same general area. A companion plant 6 feet away from your onions offers minimal benefit; one within 18–36 inches delivers the volatile concentration and visual disruption needed for measurable pest reduction. WVU Extension recommends that beneficial companions be planted within two to three rows of each other, and that incompatible plants be kept at least two to three rows apart.

Raised Bed Layout (4 × 8 ft)

In a standard 4 × 8 ft raised bed:

  • Plant two rows of onion sets (3–4 inches apart within-row) as the centre spine of the bed
  • Plant carrot rows on either side of the onion spine — alternating onion-carrot-onion through the bed’s width puts mutual fly deterrence coverage across the whole planting
  • Add a border of lettuce or chamomile along the outer edges to contribute beneficial insect habitat without competing with the main crops
  • A single broccoli or cabbage plant can anchor a corner of the bed and benefit from onion proximity without overwhelming the available space

In-Ground Row Layout

For larger in-ground vegetable gardens:

  • Alternate every two rows of brassicas with one row of onions — this gives broad volatile coverage across the brassica block without concentrating all alliums in one zone
  • Carrot rows can replace or alternate with the onion row in the brassica planting for combined fly deterrence and aphid disruption
  • Position beans and peas in a separate section of the garden, at least three rows away from any onion planting
  • Plant chamomile at the ends or corners of onion rows rather than within the row spacing to avoid root competition

Onion Spacing Reference

CropWithin-row spacingBed layoutNotes
Onions3–4 inches26–44 in. bed width; 2–4 seed rows per bed0.5–1 inch planting depth for sets (USU Extension)
Carrot companion rows2–3 inchesAdjacent row to onionsPlant at same time as onions for synchronised scent coverage
Chamomile (border)8–12 inchesBed edge or row ends onlyKeeps tap root competition away from onion root zone
Brassicas18–24 inchesWithin 2–3 rows of onion rowOnion row provides aphid and caterpillar disruption at this range
Incompatible (beans, peas)Minimum 3 rows from any alliumWVU Extension spacing guidance for antagonistic combinations

Plants to Keep Away from Onions

Not all companion pairings are beneficial. A small number of plants have documented negative interactions with onions, and others create practical management problems even without a specific chemical conflict.

Beans and Peas

This is the most consistently supported avoid in onion companion planting. Multiple university extension sources — including WVU Extension and Ask Extension — list all beans and peas as incompatible with onions. The likely mechanism is ajoene, an alkyl thiosulfinate produced by allium crops that has documented inhibitory effects on legume root development and biological nitrogen fixation. In mixed-bed observations, onions planted near beans consistently reduce bean yields. Keep beans and peas at least three full rows away from any allium planting, and do not follow onions with legumes in the same season — rotate them to a bed that has not grown alliums in the previous two seasons.

Asparagus

Ask Extension experts advise keeping onions and other alliums at least 6–10 feet from asparagus beds. Alliums and asparagus can share soil-borne and airborne diseases, and asparagus is a long-lived perennial that is difficult to recover once disease is established. Treat asparagus as a permanently zoned crop, separated from all allium plantings in your layout.

Other Alliums Concentrated Together

Growing onions alongside garlic, leeks, chives, and shallots creates no chemical incompatibility, but concentrates allium-specific pests — onion thrips (Thrips tabaci) and onion fly — in a single zone. If one bed becomes infested, the pest moves rapidly across all allium crops. Space alliums across different areas of the garden and maintain a two- to three-year rotation to prevent allium-specific disease buildup in any one bed.

Onion Companion Planting and Crop Rotation

Companion planting works best within a sensible rotation plan. Onions should not be grown in the same bed in consecutive years — doing so builds up allium-specific pathogens (white rot, neck rot, downy mildew) in the soil. A three-year rotation is the standard extension recommendation: alliums in year one, brassicas or root crops in year two, legumes in year three.

The companion logic integrates naturally with this. Grow onions with carrots in year one. In year two, move carrots to a different bed and bring brassicas into the former allium bed — brassicas benefit from the improved microbiology and reduced aphid inoculant pressure left by the previous allium crop. In year three, legumes fix nitrogen in the brassica bed, resetting fertility for the next allium cycle. This three-way rotation with companion logic built in is the most efficient structure for a productive mixed vegetable garden.

Chapin 1-Gallon Pump Sprayer
Garden Essential
Chapin 1-Gallon Pump Sprayer
★★★★☆ 99,000+ reviews
The best-reviewed garden sprayer on Amazon — period. Adjustable nozzle goes from fine mist to direct stream. Essential for applying neem oil, liquid fertilizer, or any foliar treatment evenly.
Check Price on AmazonPrime
As an Amazon Associate I earn from qualifying purchases.

Frequently Asked Questions

What is the best companion plant for onions?

Carrots are the best-documented companion for onions. Intercropping studies show up to a 52% reduction in carrot fly infestation in mixed onion-carrot beds compared to carrot monocultures. Alternate rows of each, planted at the same time in early spring once soil reaches 50°F, for best results.

Do onions deter pests from other plants?

Yes, with important caveats. Onion volatile sulfur compounds disrupt the host-location behavior of several aphid species and have been shown — in combination with thyme and nasturtium — to reduce cabbage looper and cabbageworm pressure on brassicas. The benefit reduces pest pressure rather than eliminates it, and works best as part of a mixed planting rather than a stand-alone deterrent.

Can you plant onions near tomatoes?

Yes. Tomatoes and onions are physically compatible — their roots occupy different soil depths, and neither crop competes significantly for water or nutrients. Onion sulfur volatiles may reduce aphid pressure on tomato plants. Plant onion rows at the edge of a tomato bed or between staked tomato plants for space-efficient dual-crop production.

Why can’t onions be planted near beans?

Onions and all alliums produce ajoene, an alkyl thiosulfinate that inhibits legume root development and interferes with nitrogen fixation. This is one of the few genuinely firm incompatibilities in companion planting, consistently documented across multiple university extension sources. Keep beans and peas at least three rows away from onions.

Does chamomile really improve onion flavour?

No controlled study has validated this claim. What chamomile reliably offers is beneficial insect attraction — hoverflies and parasitic wasps that prey on aphids and caterpillar pests. Plant it at the border of your onion bed for pest predator habitat, not as a flavour enhancer.

How close should companion plants be to onions?

For volatile-compound pest benefits, companions need to be within 18–36 inches — WVU Extension recommends within two to three rows. Plants further away contribute minimal chemical coverage. For space efficiency (lettuce, beets), proximity is limited only by watering needs and root competition.

Sources

  1. University of Minnesota Extension. Companion Planting in Home Gardens. University of Minnesota Extension
  2. West Virginia University Extension. Companion Planting. WVU Extension
  3. Royal Botanic Gardens, Kew. The Power of Companion Planting. Kew Gardens
  4. Ask Extension. What Are Good Onion Companion Plants? Ask Extension Expert Q&A
  5. Utah State University Extension. Onion Planting and Spacing. USU Extension
  6. Hossain A. et al. Companion Plants for Aphid Pest Management. Molecules, 2018. PubMed Central
24 Views
Scroll to top
Close