Daily tips Plant of the day What's on What to plant Garden help

Home › Garden pests › Allium leaf miner

Garden pests

Allium leaf miner

Phytomyza gymnostoma · Insect

Also called allium leafminer (USA and Canada), onion leafminer (USA).

Allium leaf miner (Phytomyza gymnostoma), illustration

Illustration

Leeks, onions, garlic, chives, shallots and spring onionsLarvae of a small fly that tunnel inside leaves, stems and bulbsSpreads by small flies laying eggs in spring and autumn

A small fly whose white maggots tunnel down the leaves of leeks, onions, garlic and chives into the stem and bulb, leaving twisted plants that often rot. Cover crops with fine insect mesh through its two egg-laying seasons, spring and autumn, and grow them in fresh ground each year.

How to spot it

Easily confused with

Leaf miners

Most leaf miners leave winding trails in flat leaves and do little lasting harm. Allium leaf miner starts with a line of white dots, tunnels down into the stem and bulb, and can spoil a whole crop.

Leek moth

Its caterpillars do similar damage, but they have a brown head and small legs; allium leaf miner maggots have neither.

Thrips

Silvery flecks dotted with tiny black specks, scattered over the leaf rather than in a neat line, and no maggots inside.

Onion fly

Bigger maggots, about 10 mm (⅜ in) long, that feed on the roots and bore into the bulb from below rather than tunnelling down from the leaves, and turn into pupae in the soil. They can kill seedlings outright; damage is worst in early summer (June and July in the UK).

Where it's a problem

What to do

  1. Cover leeks, onions, garlic and chives with fine insect-proof mesh before the flies are about (in the UK and north-eastern USA, roughly March to May and September to November). Bury or weigh down the edges so nothing can creep under.
  2. Grow alliums in a different bed each year: in the same ground, flies can hatch from pupae in the soil under the mesh.
  3. Where it's common, time crops to miss the flies: plant leeks and onions out after the spring flight, and lift them before the autumn one.
  4. Plant away from last year's allium beds and from clumps of chives where you can: the flies don't seem to travel far.
  5. Check leaf tips often for lines of white dots, and peel back the leaves of any twisted or wilting plant to look for maggots and pupae.
  6. Clear away all old allium plants and debris at the end of the season, so pupae have nowhere to spend the winter.

In Australia, report it rather than treating it. Elsewhere, if you use an insecticide, choose one labelled for allium leaf miner and follow the label and local rules.

Vegetables it affects

ChivesOnionsSpring onionsLeeksGarlic
Not sure it's this one? Scan it free All garden pests

Free account, no card needed. You sign up or sign in first, then the scanner opens.

Sources

Facts checked Wednesday 21 October 2026. General guidance only: follow your local council, agency and product label.

Not sure which pest it is?

Photograph it and Bozlea tells you what it is and what to do. Free to start. No card needed.

Scan it free