PlantLegit

Carrots and onions against carrot fly: does it work?

Short answer: Sometimes. The evidence is limited or mixed. Onions reduced carrot fly damage in one field study, but only while onions were young and when onions outnumbered carrots.

Promising Some peer-reviewed or extension evidence, but limited, conditional or mixed.

Free check: is a plant legal, invasive or pet-toxic where you live? →
Sources (1)

What the research found

Caveats

Narrow window and high onion ratio needed. Row covers are the more reliable control.

How it is supposed to work

Onion volatiles may mask carrot odor and disrupt host-finding by female flies.

How to try it

If you try it, interplant several onion rows per carrot row early in the season.

Other Promising pairings (4)

Evidence summary checked 2026-10-16. We cite only peer-reviewed studies, university extension and USDA/ARS sources; results may differ in your region. Not professional advice. All companion pairings