Allium Leaf Miner is a minor pest that affects leeks, onions and garlic in Scotland. Here is what it looks like, how to spot the damage, and which controls have been tested.

What does it look like?

Adults are greyish-brown flies, about 3mm long, easily mistaken for many other small flies on their own. Females puncture leaves to feed before laying eggs, leaving lines of white dots on the foliage as the first visible sign. The larvae are white, legless, headless maggots that tunnel through the plant, eventually forming cylindrical brown pupae, also around 3mm, embedded in the stems and bulbs.

Is this pest active now?

March to April: First generation, egg laying on stems or leaf bases

Late summer to autumn: Second generation, usually the most damaging

These are UK-generic timings. Scottish onset may differ. Use the Frost Date Calculator to adjust for your region.

🌱 Plants at risk

Allium Leaf Miner also affects these crops:

Symptoms

Larvae bore into the stems and bulbs of leeks, onions, chives and garlic. Affected plants often develop secondary infections and rot.

Life cycle

Two generations a year. First-generation females lay eggs on the stems or base of leaves during March and April. The second generation repeats in late summer and autumn, and is usually the more damaging.

Why this matters in Scotland

First detected in Britain in 2002, this fly has become widespread in England and parts of Wales. Scotland isn't mentioned as part of that range.

That's not proof it's absent here, only that it hasn't been reported as established yet, and it's a recent arrival that's still spreading, so worth revisiting rather than treating as settled. What is worth noting for a Scottish leek grower specifically: the insect pests that dominate English leek advice, this one and leek moth alike, are largely someone else's problem right now, while leek rust, a genuine wet-summer disease, is squarely a Scottish one. The threat profile here looks different from the UK-generic picture for exactly that reason.

Controls: what actually works

Not every method here works equally well: some are backed by real evidence, and one has been tested and shown not to help despite how often it gets repeated.

✓Evidence-based

Insect-proof fine mesh (0.8mm) while adult flies are active and laying

Cover plants with insect-proof mesh while adult flies are active and laying eggs. Aperture matters: fine mesh (0.8mm) is good against leaf miners including allium leaf miner, while standard mesh (1.3-1.4mm) cannot be relied on for this pest.

⚠ Important: The wrong purchase here means no protection at all. A grower who buys 'insect-proof mesh' off the shelf most likely buys standard 1.3-1.4mm, which does not reliably exclude allium leaf miner. The mesh goes on, the crop still fails, and the conclusion drawn is that mesh does not work.

✓Evidence-based

Crop rotationMoving each crop family to different ground each year, on a multi-year cycle, so pests and diseases that build up in soil don't get a repeat host. Full definition →: essential alongside mesh

Crop rotation is essential, because adult flies can emerge from pupae underneath the covering if susceptible plants are grown in the same ground in successive years.

Mesh without rotation can be worse than no mesh at all: it traps emerging adults in with the crop rather than keeping them out.

⚠Evidence of harm

Companion planting — chard interplanted with leeks

Garden Organic's 2024 members' experiment tested chard (taller) and clover (lower) as companions against allium leaf miner in leeks. Chard cut marketable leek yield by 69% — the competitive effects far outweighed any reduction in pest damage.

Contains affiliate link
Insect Protection Netting, ultra-fine 0.25mm mesh
Standard 1mm mesh is unreliable against this pest; a genuinely fine mesh is needed to exclude it.
View on Amazon UK →
Planting CalendarGet your sowing and planting dates rightMany pests hit hardest at the seedling stage. Time your sowing to give plants the strongest start.
→

Myths about allium leaf miner

5 common claims about allium leaf miner, checked: 2 busted2 disputed1 untested0 hold up

🐛✗ Tested and false

“Standard insect-proof mesh will keep allium leaf miner off your leeks”

Standard mesh rated at 1.3-1.4mm is named directly as unreliable against allium leaf miner, alongside aphids and flea beetle. Excluding this fly needs the finer 0.8mm grade, and the two products are often sold side by side under the same generic 'insect-proof mesh' label with only the millimetre figure on the packaging to tell them apart. A grower who buys the wrong grade, covers the crop, and still loses it to leaf miner has every reason to conclude mesh doesn't work, when the real problem was the aperture.

What to do: Check the mesh aperture before buying and look specifically for 0.8mm fine mesh, not the standard 1.3-1.4mm grade sold as general insect protection.

1 source
  • RHS: Insect-proof meshStandard 1.3-1.4mm mesh is unreliable against allium leaf miner and other small insects, while fine 0.8mm mesh gives good protection against leaf miners including this species.
🐛✗ Tested and false

“A few mined leaves on a leek are just cosmetic damage and the crop underneath is still fine to eat”

The initial feeding damage, the rows of white puncture marks and larval tunnels, is described as an entry point rather than the real threat. What typically follows is secondary rot, which is what actually makes the crop inedible. Treating visible mining as purely cosmetic and ignoring it risks missing the rot developing underneath until it's advanced.

What to do: Once you spot the tell-tale white puncture lines or tunnelling, check the stem and bulb for softening or rot before deciding the crop is still usable, rather than assuming the damage is only skin deep.

1 source
  • RHS: Allium leaf minerLarvae feed within the leaves and the initial feeding damage can be followed by secondary rots that make the crop inedible.
🐛⚖ Sources disagree

“Allium leaf miner and leek moth cause the same kind of damage, so it doesn't matter which one you're dealing with”

The two pests do affect leeks and other alliums in a broadly similar way at first glance, which is exactly why they get confused. But the larvae are physically distinct: allium leaf miner produces white, legless, headless maggots that pupate as brown cylindrical cases embedded inside the stem or bulb itself, while leek moth caterpillars have visible brown heads and small legs and generally leave the plant before pupating elsewhere. That distinction matters for control, since the fine-mesh and rotation advice for allium leaf miner is not identical to leek moth management.

What to do: Cut open a few affected stems. Legless white maggots with brown pupae embedded in the tissue point to allium leaf miner; caterpillars with a visible head and small legs point to leek moth.

2 sources
  • RHS: Allium leaf minerAllium leaf miner larvae are white, legless, headless maggots that form brown cylindrical pupae roughly 3mm long, embedded in the stems and bulbs.
  • RHS: Leek mothLeeks and related plants can be affected in a similar way by allium leaf miner, but leek moth caterpillars are creamy white with brown heads and small legs and do not usually pupate within the plant tissue.
🐛⚖ Sources disagree

“Allium leaf miner hasn't reached Scotland, so Scottish growers don't need to worry about it”

Allium leaf miner was first found in Britain in 2002 and is now described as widespread in England and parts of Wales, with Scotland not mentioned as part of that established range. That's evidence about where the fly has been confirmed, not proof of where it is absent, and a species that has already spread across two other UK nations in two decades is not one to assume has stopped at a border. Treating 'not yet reported in Scotland' as 'safe to ignore in Scotland' overstates what the distribution data actually shows.

What to do: Don't rule this pest out on the assumption it stays south of the border. Watch leeks, onions, garlic and chives for the white puncture-line symptom regardless, and revisit this yearly since a spreading pest can arrive without warning.

In Scotland: This is the single most time-sensitive claim about this pest: its accuracy depends entirely on the current, published range, which is described as still expanding.

1 source
  • RHS: Allium leaf minerThe fly was first detected in Britain in 2002 and has become widespread in England and parts of Wales.
🐛◦ Never tested

“Allium leaf miner mainly targets leeks, so growing onions or garlic instead sidesteps the problem”

Leeks, onions, garlic, chives and shallots are all listed as hosts without any of them singled out as more heavily attacked than the others. There's no published comparison of infestation rates across these crops to support treating onions or garlic as a safer bet. Leeks being the allium most often reported with damage may simply reflect that leeks are grown more widely and left in the ground longer than onions or garlic in a typical UK garden, not a genuine feeding preference by the fly.

Our read Growers switching crops to dodge this pest based on that assumption are acting on an untested guess, not a documented pattern.

What to do: Don't rely on crop choice alone as protection. Treat leeks, onions, garlic, chives and shallots as equally at risk and use mesh and rotation on all of them during the two flight periods.

1 source
  • RHS: Allium leaf minerAllium leaf miner can feed on leeks, onion, chives, shallots and garlic, listed together without any noted difference in susceptibility.
Tested and false Sources disagree Never tested Evidence supports it

Frequently asked questions

What should I do first if I find allium leaf miner in my garden?

Start with insect-proof fine mesh (0.8mm) while adult flies are active and laying. After that, crop rotation. Work through the rest in order of how well-evidenced they are if the first two aren’t enough on their own.

Will allium leaf miner kill my plants?

They rarely kill established plants. The damage is usually cosmetic on outer leaves, and natural predators often bring numbers under control without you doing anything.

When are allium leaf miner most active in Scotland?

Check the seasonal activity section above. Scottish timings can run a few weeks behind the UK-generic figures.

Sources

3 sources, recorded with what each was used for
  • RHS1: Phytomyza gymnostoma, first detected in Britain 2002, widespread in England and parts of Wales, boring into stems and bulbs of leeks/onions/chives/garlic, secondary rots, two generations with March-April and late summer/autumn timings, mesh timed to adult flight, rotation requirement
  • RHS1: fine 0.8mm mesh good for allium leaf miner; standard 1.3-1.4mm unreliable
  • Garden Organic8: 2024 trial: chard companion cut marketable leek yield 69% while targeting this pest