Onion fly maggots attack the roots and bulbs of onions, leeks and shallots, causing sudden wilting and yellowing leaves, especially from late spring onwards. The pest completes multiple generations in warm, moist summers and is common in central and eastern England. Crop rotation, mesh barriers and biological controls prevent damage without chemicals.
Onion fly maggots attack the roots and bulbs of onions, shallots and leeks, often killing young plants outright. You'll notice sudden wilting and yellowing leaves on affected crops, especially from late spring. Common in central and eastern England, this pest completes multiple generations in warm, moist summers. Early action with crop rotation, mesh barriers and biological controls keeps damage low without chemicals. Quick removal of infested plants stops the cycle.
Identification
Look for adult flies resembling small houseflies, shiny grey-black with yellowish legs, hovering around alliums from May. The real giveaway is tiny white, legless maggots up to 8mm long tunnelling into roots and bulbs. Check soil near plant bases for eggs laid in batches. Unlike leaf miners, damage starts underground. Pull up suspect plants to inspect for soft, decayed roots riddled with tunnels. Wilting leaves turn yellow from the tips, and plants may topple. Distinguish from drought by moist soil and maggot presence.
Damage & symptoms
Seedlings suddenly wilt and die as maggots devour roots, mimicking transplant shock. Older plants show outer leaves yellowing and drooping while inner growth continues briefly. Bulbs soften and rot from larval feeding, with visible entry holes and tunnels inside. Harvested onions store poorly, prone to secondary rots. Whole rows collapse in heavy attacks, reducing yields drastically. Damage peaks on young plants; stressed or white-skinned varieties suffer most.
Lifecycle
Adults overwinter as pupae in soil, emerging late April to May to lay 50-200 eggs near allium bases. Eggs hatch in 2-7 days into maggots that feed for 2-3 weeks before pupating. Second generation flies appear June-July, third in late summer. Full cycle takes 45-65 days; cool, wet weather allows three generations yearly. Pupae overwinter near the surface.
Prevention — Rotate your crops
Never plant alliums in the same spot two years running. Give beds a three-to-four-year break from onions, leeks and garlic to break the pupal cycle in soil. Follow with non-host crops like legumes or brassicas for best results.
Prevention — Use insect-proof mesh
Cover beds with fine mesh (1.8mm holes) from planting until June to block egg-laying flies. Secure edges firmly with pegs or soil. Lift briefly for weeding but replace quickly. This simple barrier often prevents all damage.
Prevention — Clear debris thoroughly
Dig out and burn all onion family plants at season's end, especially any showing damage. Avoid composting roots or bulbs. Mulch beds heavily afterwards to deter pupation and suppress weeds that attract flies.
Prevention — Choose resistant varieties
Grow Japanese bunching onions or hybrid varieties with some tolerance where possible. Mix varieties in beds to disrupt fly targeting. Healthy, vigorous plants from modular trays resist better than weak seedlings.
Organic control — Apply beneficial nematodes
Water in Steinernema feltiae nematodes around plant bases when flies first appear (late May). These target young maggots effectively in cool, moist soil. Repeat if needed after 7-10 days. Available mail order; use precisely to avoid harming other soil life.
Organic control — Remove and destroy infested plants
Pull wilting plants carefully, bag and burn or deep-bury away from gardens. Do this promptly to stop maggots pupating. Check neighbouring plants weekly during June-July.
Organic control — Encourage natural predators
Ground beetles, birds and parasitic wasps prey on flies and larvae. Avoid cultivating soil deeply to preserve them. Plant nearby nectar sources like dill to attract beneficial insects.
Organic control — Mulch with deterrents
Lay thick organic mulch like straw or bracken around bases after planting. This hides seedlings from flies and dries surface soil, discouraging egg-laying.
Frequently asked questions
How do I tell onion fly from allium leaf miner?
Onion fly attacks roots and bulbs underground, causing sudden wilting from May. Leaf miner makes silvery trails inside leaves later in summer. Dig up a plant to check for root maggots versus leaf damage.
Will garlic suffer too?
Yes, all alliums are hosts including garlic and chives. Rotate the whole family and use mesh over all beds. Garlic cloves set later may escape peak flights.
Can I save partially damaged bulbs?
Cut away maggot tunnels, dust cuts with sulphur and store in dry conditions. Many recover if core is sound, but expect smaller bulbs and storage rots. Best to discard heavily infested ones.
Why is it worse some years?
Warm, humid springs trigger early flights and multiple generations. Previous crop debris builds pupae numbers. Wetter summers favour larvae survival.
Do traps work for onion fly?
Yellow sticky traps catch adults but rarely reduce numbers enough alone. Combine with mesh and rotation for best effect. Place traps around beds from April.