Reviewed pair article

Onion and carrot: the classic pairing, tested

Reviewed August 15, 2026 · Garden Planner editorial team (pending independent horticultural review)

Conditional benefitDo onions keep carrot fly off carrots?

Short answer. Only a little, and only under conditions most gardens do not meet. In UK field trials carrot fly damage fell when onions greatly outnumbered carrots (about four onion rows per carrot row) and only until the onions began to bulb; at garden-typical ratios the effect was small or absent. Whether carrots reduce onion fly has no usable evidence. Fine mesh is the reliable control.

Direction of effect

Onion → carrot (carrot fly; conditional). Carrot → onion: no verified relationship.

Mechanism and outcome

Onion foliage volatiles are thought to mask the carrot odour the fly uses to find hosts; the effect needs a high density of actively growing onion leaves. Outcome measured: carrot fly larval damage to roots.

Onion set and carrot seedling at the thinning stage, side by side with a ruler.

What was studied

Field trials of carrot–onion mixtures at several ratios in the UK (Uvah & Coaker 1984); extension synthesis (UMN).

Evidence records

RecordStatusEffectTierArrangementSources
onion--carrot--pest_suppressionConditionalPest suppressionTier Browuvah-coaker-1984, umn-companion
carrot--onion--otherNo verified relationshipOtherUnknownunspecifiedumn-companion

Practical home-garden interpretation

A bed with four onion rows for each carrot row is mostly an onion bed. If you grow them together anyway, treat any protection as a bonus, expect it to stop when the onions bulb (which often coincides with the second carrot fly generation), and cover the carrots with mesh or sow after the first egg-laying peak.

Two top-down plans at the same scale: the tested 4:1 onion-to-carrot row ratio and a typical 1:1 garden bed.

Exact conditions required

  1. About 4:1 onion to carrot rows, interleaved.
  2. Onions in active leaf growth during carrot fly egg-laying.
  3. Sow together; protection ends at bulbing.
Carrot rust fly damage: tunnelled root and the adult fly.

Benefits, costs and uncertainty

Benefits

  • Some reduction in carrot fly damage at very high onion ratios in the trial.
  • Both are slim, cool-season crops that fit together spatially.

Costs

  • Impractical ratio for a mixed bed.
  • No protection after bulbing.
  • Onions are poor competitors; do not let carrot tops shade them.

Uncertainty. One trial series; the odour-masking mechanism is inferred. No evidence for the reverse direction.

Timeline of onion leaf growth and bulbing against the two carrot fly generations.

Simultaneous pairing versus rotation

Alliums (three-year gap for white rot) and carrot family (two-year gap for carrot fly pupae and Alternaria) are separate rotation groups.

Alternative strategies

  • Fine insect mesh over carrots from sowing (reliable).
  • Sow carrots after late spring to miss the first egg-laying peak.
  • Thin on a still evening and remove thinnings, which release attractive scent.

Use this arrangement in the planner

Adds both plants to a plan; set the role (perimeter, strip, undersown) on the crop list so the engine can match the documented arrangement.

Add onion and carrot to a plan

Community observations (anecdotal)

Reports from gardeners are kept apart from the reviewed evidence above and never change its status. None yet for this pair. Record an observation.

Sources

Change history: repository commits touching src/data/pairs.json and the records above. Request a correction.

Our Methodology & Sources

We synthesize peer-reviewed research, university extension publications, and trusted horticulture resources. Our evidence levels help you understand how strong the science is behind the guidance.

Evidence tiers

Supported evidenceConsistent results from multiple robust studies
Traditional claimHistorical use reported, limited scientific support
Context dependentMixed or variable results across conditions
No verified relationshipNo reliable evidence identified

Primary source types

  • Peer-reviewed journal articles
  • University extension publications
  • Government & research institute reports
  • Systematic reviews & meta-analyses

Last updated

August 24, 2026

Learn more about our approach