A white, winding line shows up on a lettuce leaf; on spinach or chard it's a pale blotch that later turns brown. That leaf can't be sold anymore, even though the plant keeps growing. Inside is a fly larva, and an ordinary spray won't reach it. It does have weak points before and after the leaf, though, and the whole control plan rests on them.
Quick glossary: Mine - a tunnel a larva chews between the upper and lower skin of a leaf. Liriomyza - a genus of small flies whose larvae make winding mines on many crops. Spinach leafminer (Pegomya hyoscyami) - a larger fly whose larvae eat out blotches on spinach, beet, and chard. Parasitoid - a wasp that lays its eggs in or on a pest larva, which then dies. Pupa - the stage between larva and adult fly; in leafminers it mostly sits in the soil or growing medium.
What Mines Lettuce, Spinach, and Chard
Two different groups turn up on leafy greens under cover. Liriomyza flies are about 1/12 inch (2 mm) long, black and yellow. They feed on almost anything: UC IPM describes them on lettuce, on spinach, and on many ornamental crops. Their larva makes a narrow, winding tunnel that widens as it grows.
The spinach and beet leafminers (Pegomya hyoscyami and P. betae) are gray to brown and noticeably larger, about 1/3 inch (8 mm) according to the University of Maryland. They stick to the goosefoot family: spinach, chard, beet, and the weed lamb's quarters. The spinach leafminer can also move onto nightshade crops such as peppers. Its larva eats out an irregular blotch, pale at first and brown later.
Reading the Damage: Tunnels, Blotches, and White Punctures
A female Liriomyza punctures the leaf with her ovipositor to feed on sap and lay eggs. The punctures leave white specks that show up before the mines do. UC IPM notes that most mines appear on cotyledons and the first true leaves, and on spinach the flies favor cotyledons so strongly that seedlings can be stunted. So young plants are the first thing to check.
Some mines are only visible from below. Liriomyza huidobrensis tunnels follow the leaf veins and are nearly invisible from the top of the leaf. With the spinach leafminer, look for something else: white eggs in groups of 4-8 on the leaf underside. You can crush them before the larva gets inside.
The Life Cycle: Where the Larva Is Out of Reach and Where It's Exposed
A Liriomyza larva hatches in 2-4 days and lives inside the leaf, shielded from contact products and from most predators. Once grown, it leaves the mine to pupate. UC IPM says pupae occasionally stay on the leaf but mostly drop into the soil or growing medium. In hydroponics that means the cube, the tray, and the floor under the rack.
Speed depends on heat. At common greenhouse temperatures Liriomyza trifolii completes a generation in about a month, in 14 days at 95°F (35°C), and in 64 days at 59°F (15°C). For the spinach leafminer, the University of Maryland gives 2-3 weeks of larval feeding inside the leaf and a full cycle of 30-40 days, with pupae overwintering in the soil under infested plants.
That leads to a practical conclusion. After you remove an infested crop, UC IPM advises steaming or pasteurizing the growing medium before replanting to kill the pupae. According to the same source, azadirachtin kills the larva only after it pupates: it won't stop the current damage, but it can cut off the next generation.
Screens, Parasitoids, and Products
Step one is keeping the flies out. UC IPM considers screens on doors and vents effective with openings of 600 microns (0.6 mm) or smaller, provided there's enough screen area for ventilation. Inspect plants before moving them in with the main crop, and clear weeds around the space: Liriomyza moves readily between hosts, and the spinach leafminer also lives on lamb's quarters.
The parasitic wasps Diglyphus and Dacnusa sibirica are sold commercially and, according to UC IPM, work well in screened greenhouses. Their biggest threat is broad-spectrum insecticides used against other pests: leafminer outbreaks often start right after such sprays. How to bring in beneficials is covered in the article on beneficial insects in protected cultivation.
Resistance is a real problem with Liriomyza: UC IPM says it is widespread and recommends rotating to an active ingredient with a different mode of action every 1-2 months. On spinosad the sources disagree: UC IPM warns that it harms parasitoids, while the University of Maryland describes only minor impacts on natural enemies. Before any spray, check that the product is registered for your crop where you grow.
Three Mistakes That Cost the Most
Picking off mined leaves and stopping there. Larvae that have already left are lying as pupae in the medium and on the tray. In a few weeks a new generation will fly out of them.
Treating another pest with a broad-spectrum product. It wipes out the parasitic wasps that were holding the flies back, while the larvae inside their mines survive. That is what a typical outbreak looks like.
Checking mature leaves instead of seedlings. The flies start on cotyledons and first leaves, and the white punctures appear before the mines. If you only look at leaves ready for harvest, you catch the problem a generation late.
How to Know Leafminers Are Under Control
The fly count on yellow sticky cards isn't climbing from week to week, and you are keeping that count. New leaves are free of white punctures, and seedlings show no fresh mines. The medium and trays get cleaned between crops, and new plants go through quarantine before they sit next to the main crop.
If you want to go deeper: pest monitoring explains how to hang yellow sticky cards and keep counts, and growing lettuce and leafy greens lays out the conditions these crops need to grow without extra stress.