Onion fly: how to recognise and treat it
Pest
Onion fly is a plant pest. It affects garlic, leek, onion, shallot and 1 more plants. Seedlings collapse and die; one maggot can kill several neighbouring seedlings.

Key facts
| Type | Pest |
|---|---|
| Urgency | medium — the treatment plan starts the next day |
| Plants affected | 5 |
| Plant families | Amaryllidaceae |
| Symptoms described | 3 |
| Treatment options | organic and chemical (4 organic steps, 1 chemical) |
| Prevention measures | 4 |
| Sources | 9 |
Symptoms of onion fly
- Seedlings collapse and die; one maggot can kill several neighbouring seedlings.
- On older plants the outer leaves turn yellow and wilt.
- White, legless maggots up to about 10 mm long feed in the roots and bulb; the bulb rots and becomes inedible, and damaged bulbs rot in store.
How to treat onion fly
Organic treatment
- Cover seedbeds and new plantings with insect-proof mesh or fleece right after sowing, edges sealed with soil; do not cover a bed where onions grew last year, as flies can emerge underneath.
- Water a mix of insect-killing nematodes into the soil to control young maggots; they also affect other soil insects, so use them only where needed.
- Lift badly damaged plants carefully and destroy them before the maggots finish developing.
- Encourage ground and rove beetles, birds and hedgehogs, which eat the maggots and pupae.
Chemical treatment
- Sprays reach only the adult flies, not maggots inside the bulb; where registered for home use on onions, pyrethrins or a pyrethroid such as lambda-cyhalothrin can be aimed at the flies — follow the label dose and pre-harvest interval.
Reference information, not a guarantee. Read and follow the label of any product: dose, safety and the days to wait before harvest.
How to prevent onion fly
- Grow onions and shallots from sets rather than seed — they survive the first generation of maggots better.
- Remove cull bulbs and self-sown onions; do not leave damaged bulbs near the bed after harvest.
- Do not grow onions in the same place in successive years, and avoid soil with fresh manure or undecomposed organic matter — let manure break down before planting.
- In problem spots sow later, once the soil has warmed; yellow sticky traps show when the flies are active.
Which plants are affected by onion fly?
5 plants are listed for onion fly; all have a guide and belong to 1 family.
Amaryllidaceae
Pests and diseases by plant
What else affects the same plants as onion fly?
- Downy Mildew (Disease, shares 5 plants): Pale green, yellow, purple or brown blotches on the upper side of leaves, often angular where they are bordered by the veins.
- Rust (Disease, shares 5 plants): Pale spots on the upper leaf surface, with raised powdery pustules mostly underneath; on beans they often have a yellow halo.
- Bacterial soft rot (Disease, shares 4 plants): Small water-soaked spots that quickly enlarge, sink and turn soft and mushy; the tissue underneath is cream to black.
- White mould (Sclerotinia) (Disease, shares 2 plants): A soft, wet rot on stems, often near soil level; plants suddenly turn yellow, wilt and collapse.
- Wireworms (Pest, shares 1 plant): Narrow tunnels straight through potatoes and other root crops, entered by round holes about 3 mm across, as if made by a nail; slugs instead leave larger cavities.
Sources
Figures checked against these sources.
- rhs.org.uk/biodiversity/onion-fly
- extension.usu.edu/vegetableguide/onion/maggots
- umass.edu/agriculture-food-environment/vegetable/fact-sheets/onion-maggot
- uk.wikipedia.org/wiki/Цибулева_муха
- rhs.org.uk/plants/57088/allium-hollandicum-purple-sensation/details
- pnwhandbooks.org/insect/vegetable/vegetable-pests/hosts-pests/onion-onion-maggot-seedcorn-
- gd.eppo.int/taxon/HYLEAN
- ru.wikipedia.org/wiki/Луковая_муха
- es.wikipedia.org/wiki/Delia_antiqua