Leaf miners on squash look like thin, pale, squiggly tunnels or blotches winding through the leaves, often with tiny dark specks (their droppings) inside the trails. The adult is a small yellow-and-black fly, but you rarely see it — the damage is the giveaway. For example, a zucchini leaf might show a light, winding “snake trail” that starts narrow and gets wider as the larva grows.
Spot the Tunnels Before You Spray
The first sign is usually a pale, winding line on the upper surface of a leaf. Hold the leaf up to the light and you’ll see the tunnel is translucent, with the green tissue eaten away between the upper and lower leaf surfaces. Inside that tunnel is the actual culprit: a tiny, legless, yellowish-white maggot, about 1/8 inch (3 mm) long. As it feeds, it leaves a trail of dark frass (insect droppings) — those little black specks are a reliable clue that this is a leaf miner, not a disease or sun scorch.
On squash, the damage often starts on the oldest, lowest leaves first. The tunnels may merge into large, pale blotches if many larvae are feeding in one leaf. Heavily mined leaves can turn brown and dry up, but the plant usually survives unless the infestation is severe.
Know the Life Cycle to Time Your Control
Leaf miners on squash are the larvae of a small fly (often the vegetable leaf miner, Liriomyza sativae, or the serpentine leaf miner). The adult fly is about 1/10 inch (2.5 mm) long, black with yellow markings, and it punctures leaves to lay eggs. Those eggs hatch into the larvae that make the tunnels. After feeding for about 1–2 weeks, the larvae drop to the soil to pupate, then emerge as adults to start the cycle again.
Because the larvae are protected inside the leaf, contact sprays won’t reach them. The best time to act is when you first see the adult flies or the very first tiny tunnels — that’s when the larvae are still small and a systemic insecticide (one that moves inside the leaf) can work. If you wait until the tunnels are large, the larvae are about to pupate and sprays won’t help much.
Check the Underside of Leaves Too
The adult fly also lays eggs on the underside of leaves, and the young larvae may start their tunnels there. Flip a few leaves over and look for tiny, pale dots (egg punctures) or the start of a mine. Catching it early makes control much easier.
Remove and Destroy Infested Leaves
The simplest, most effective step for a small garden is to pick off any leaf that shows leaf-miner tunnels and throw it in the trash (not the compost pile, where the pupae can survive). Use your fingers or scissors to remove the whole leaf, or just the mined portion if it’s small. Do this as soon as you see the trails, before the larvae finish feeding and drop to the soil.
If the infestation is widespread, you can also crush the larvae inside the tunnels by running your thumb along the pale trail — it’s a bit gross but works. After removing infested leaves, keep the plant well-watered and fertilized; healthy squash can outgrow moderate damage.
Prevent Next Year’s Leaf Miners
Leaf miners overwinter as pupae in the soil, so crop rotation is your best long-term defense. Don’t plant squash (or other susceptible crops like beans, tomatoes, or melons) in the same spot for at least a year. In spring, cover young squash plants with floating row cover (a lightweight fabric) to keep the adult flies from laying eggs; remove it when the plants start flowering so bees can pollinate.
You can also encourage natural enemies like parasitic wasps by planting small-flowered herbs such as dill or yarrow nearby. These wasps lay eggs inside leaf-miner larvae and help keep the population down. Avoid broad-spectrum insecticides that kill these beneficial insects.
When to Use a Spray (and When Not To)
If you choose to spray, use a product containing spinosad or neem oil, but only when you first see the mines start. Spinosad is a natural bacterial insecticide that works on contact with the larvae; neem oil can deter adults from feeding and laying eggs. Spray the undersides of leaves thoroughly, and reapply after rain according to the label. For heavy infestations, a systemic insecticide containing imidacloprid can be applied to the soil, but it also kills beneficial insects and should be a last resort.
Do not use a contact insecticide (like pyrethrin) once the larvae are inside the leaves — it won’t reach them and may harm bees. Also, never spray when the plants are flowering during the day; spray in the evening when pollinators are less active.
One common mistake is confusing leaf-miner damage with other squash problems. Yellowing or browning leaves can also be caused by squash bugs, cucumber beetles, or bacterial wilt. Check for the telltale tunnels: if you see winding trails, it’s leaf miners. If you see clusters of orange eggs on the leaf underside, that’s squash bugs. If the whole vine wilts suddenly, it may be bacterial wilt from cucumber beetles — a different problem entirely.
For a quick check, hold a suspected leaf up to the sun. Leaf-miner tunnels are translucent and have dark frass inside; other damage won’t have that pattern. When in doubt, peel back the upper surface of the leaf with your fingernail — if you find a tiny maggot, you’ve confirmed it.
Squash Leaf Miners: What to Do Next
After you’ve removed infested leaves and maybe sprayed, keep an eye out for new tunnels every few days. If you see adult flies hovering around the plants, that’s a sign they’re laying more eggs — reapply row cover or spray again. In most home gardens, leaf miners are more of an eyesore than a true threat; a healthy squash plant can tolerate losing a few leaves. Focus on keeping the plant vigorous, and you’ll still get a good harvest.
If the infestation is severe and the plant is struggling, you can also try planting a trap crop like radishes or Swiss chard nearby — leaf miners often prefer those, drawing them away from your squash. Pull up the trap crop and dispose of it once it’s heavily mined.
Remember, the goal isn’t to have perfect leaves — it’s to have a productive plant. A few tunnels here and there are normal and won’t hurt your yield. Only intervene when the damage is widespread or the plant looks stressed.
Spotted a mistake? Tell us and we will correct it. How we write and check articles.