Garden pest · Insect
Leafminers: how to spot them and stop them
Leafminers are small fly larvae that tunnel between the upper and lower surfaces of leaves. Spinach and beet leafminers leave pale, irregular blotches that turn brown, while vegetable leafminers leave thin, winding trails.
Pegomya hyoscyami, Pegomya betae, Liriomyza sativae, Liriomyza trifolii · Also called spinach leafminer, beet leafminer, beet leaf miner, vegetable leafminer, serpentine leafminer · From university extension guidance, checked October 2026
How to identify leafminers
- Spinach and beet leafminer adults are gray-brown flies that look like small house flies, about 5/16 inch (8 mm) long.
- Their eggs are white and oblong, laid in small groups on leaf undersides.
- Their larvae are whitish, legless, cone-shaped maggots that feed inside the leaf.
- Vegetable (Liriomyza) leafminer adults are tiny flies, under 1/12 inch (2 mm), black to gray with yellow markings.
- Liriomyza larvae are clear to yellowish and make narrow, winding mines that widen as they grow.
The damage they do
- Pale green, irregular blotch mines on spinach, beet, and chard leaves that turn brown and shrivel.
- Narrow, winding white trails (serpentine mines) on beans, tomatoes, cucurbits, and other vegetables from Liriomyza leafminers.
- Heavily mined leaves are unusable, and seedlings can be stunted or set back, especially in early summer.
- Tiny pale punctures where female flies feed and lay eggs.
Crops they attack
- Spinach
- Beets
- Swiss chard
- Tomatoes
- Cherry tomatoes
- Sweet peppers
- Chili peppers
- Eggplants
- Bush beans
- Pole beans
- Peas
- Lettuce
- Cucumbers
- Melons
- Zucchini
- Winter squash
- Pumpkins
- Potatoes
- Carrots
Also: lambsquarters, chickweed, nightshade, plantain.
Life cycle
Spinach and beet leafminers overwinter as pupae in the soil, and flies emerge in spring; each generation takes about 30 to 40 days, with 2 to 4 generations from spring into early fall. Liriomyza leafminers can complete a generation in under 3 weeks in warm weather and have many overlapping generations.
How to prevent them
Crop rotation helps with this one: move the crops it attacks to a different bed each year. Gardentasia remembers your last three seasons and flags a crop family coming back too soon. How the rotation planner works.
- Cover spinach, beets, and chard with row cover or insect netting at planting to stop flies from laying eggs.
- Rotate: put covered spinach, beets, and chard in a bed that did not grow them last year. Flies emerge from pupae in the soil and can be trapped under the cover.
- Remove host weeds such as lambsquarters, chickweed, nightshade, and plantain around the garden.
- Check leaf undersides for small groups of white eggs and remove them.
- If leafminers are bad every year, cultivate the top 2 inches (5 cm) of soil in early spring and clear crop debris after harvest to destroy pupae.
- Avoid broad-spectrum insecticides, which kill the parasitic wasps that keep leafminers in check.
How to get rid of them
- Pinch mined leaves to crush the larvae inside, or pick and destroy them. This is the main control in gardens.
- Neem (azadirachtin) can reduce the next generation but does not stop current damage. Follow the label.
- If you spray, target the larval stage and follow the label. Insecticides used against other pests can also kill the parasitic wasps that control leafminers.
- Let natural enemies work: Diglyphus parasitic wasps commonly reduce leafminer numbers.
Natural enemies
Parasitic wasps (Diglyphus), birds such as blue tits. Flowers like dill, cilantro, calendula and sweet alyssum feed many of these predators; see the companion planting checker.
Leafminers: common questions
What are the brown blotches inside my spinach and beet leaves?
Likely spinach or beet leafminer. The maggots feed between the leaf surfaces, making pale blotch mines that turn brown. Pinch the mines to crush the larvae or remove the leaves.
Do row covers stop leafminers?
Yes. Row covers or insect netting put on at planting stop flies from laying eggs. Rotate the crop to a new bed first, because adults emerging from pupae in the soil can be trapped under the cover.
Which weeds host spinach leafminers?
Lambsquarters is a key weed host of spinach and beet leafminers. Maryland Extension also advises removing chickweed, nightshade, and plantain around the garden.
Plan a garden that's harder to attack
Rotation, trap crops and flowers for predators all start with the plan. Gardentasia checks companions and rotation as you plant, each with the reason.
Open the free plannerFree, in your browser. No account, no download.
Sources
From university extension services and other horticultural authorities, checked October 2026: