Extension Logo
Extension Logo
University of Minnesota Extension

Leafminers in home gardens

Quick facts

  • Leafminers feed within leaves, producing large patches or winding tunnels of dead tissue.
  • The most common leafminer species in Minnesota vegetable gardens are the spinach leafminer and the vegetable (serpentine) leafminer.
  • Leafminers do not affect plant growth but can damage the edible leaves of vegetables.
  • Plants can be protected through a combination of nonchemical methods and pesticides.

How to identify leafminers

Leafminer larvae and adults are rarely noticed. Seeing the insects doesn't mean you have a leafminer problem. Instead, watch for symptoms of leafminer feeding. Leafminers create patches or winding mines in vegetable leaves.

A spinach leafminer fly laying eggs on the underside of a spinach leaf.
Spinach leafminer fly

Spinach leafminers 

The spinach leafminers (Pegomya hyoscyami) is a type of blotch leafminer, that creates irregular round shaped mines. The mines are long and narrow at first, but eventually become an irregularly shaped patch.

  • The larvae are whitish and carrot-shaped and do not have legs or an obvious head.
  • The adult fly is hairy, about 1/4 inch long, and grayish or brownish. 


Vegetable leafminers

A vegetable leafminer fly on a leafy vegetable
Vegetable leafminer fly

Vegetable leafminer larvae (Liromyza sativae) wind snake-like across the leaves and create winding mines.

  • The larvae have a yellowish-green and cylindrical shaped body. They do not have legs or an obvious head.
  • Vegetable leafminer flies are smaller than spinach leafminer flies (1/15 inch long) and are yellow and black.

Biology of leafminers

Both leafminer species have very similar life cycles

  • Both species survive the winter as pupae.
  • Adult flies emerge the following April and May.
  • The flies insert eggs into leaves.
  • Larvae feed and develop within leaf tissue, between leaf surfaces, and are active for about two to three weeks.
  • Then, they drop to the ground next to the plants to transform into pupae.
  • Several generations can occur during one year.

Damage caused by leafminers

The spinach leafminer feeds on:

  • Spinach
  • Swiss chard
  • Tomato
  • Cucumber
  • Celery

The vegetable leafminer feeds on many plants including:

  • Bean, pea
  • Eggplant, pepper, potato, tomato
  • Squash, watermelon, cucumber
  • Beet, onion
  • Lettuce

As the larvae feed and develop, they create “mines” of dead tissue where they have fed. These mines are opaque initially and then later turn brown.

Leafminer activity has little impact on plant growth but can be destructive to vegetables grown for edible greens.

How to protect your plants from leafminers

Check your plants regularly

Irregular opaque patches on beet leaves caused by spinach leafminer feeding
Spinach leafminer feeding damage on beet leaves

Regularly check young seedlings for leaf mines, especially if leafminers have attacked your garden in the past. Most mines occur on the first true leaves.

Generally, vegetable leafminers are kept in control by their natural enemies and management is not required.

It is also not necessary to treat spinach leafminers when they are attacking the leaves of a root crop such as beets. But, if it is on spinach or a leafy green, management may be needed.

Keep your garden clean

  • Remove weeds, like lambsquarter, to reduce its availability as a food source, for leafminers.
  • Remove and destroy leaves when the mines are small.
  • Till your garden after harvesting to destroy pupae and reduce the chances of adult flies moving to neighboring plants.

Use a physical barrier

Vegetable plants covered with meshed row cover to protect them from insects
Row cover
  • Install fine meshed netting row covers to protect the plants from insects.
  • Use material that does not prevent sunlight and rain from reaching the plants (e.g. cheese cloth).
  • Apply in areas where leafminer problems have not been seen for at least one year.
  • If leafminer issues have been observed within the last year, this netting will not help because pupae that survived the winter are inside the row cover and can still infest plants.
  • Row covers can be purchased at many local lawn and garden supply stores and through online suppliers.

Using pesticides

Use of pesticides prevents adults from laying eggs, but does not kill larvae that are already feeding within plant leaves. Choose a low impact pesticide that does not target natural enemies (such as parasitic wasps) and pollinators (such as bees).

Snake-like winding mines on onion leaf caused by vegetable leafminer feeding
Vegetable leafminer feeding damage on an onion leaf
  • Spinosad can be an effective option. It is derived from a naturally occurring soil-dwelling microorganism, provides good control, and has little impact on natural enemies.
  • Broad spectrum pesticides (like permethrin, bifenthrin, and carbaryl) are generally longer lasting but can kill natural enemies too.
  • You can apply pesticides in the spring when adult flies are first active.
  • Make sure you get good coverage on the leaves.
  • Make several treatments at regular intervals (check the label to determine how often you can apply a particular product).

CAUTION: Mention of a pesticide or use of a pesticide label is for educational purposes only. Always follow the pesticide label directions attached to the pesticide container you are using. Remember, the label is the law.

Be sure that the vegetable you wish to treat is listed on the label of the pesticide you intend to use. Also be sure to observe the number of days between pesticide application and when you can harvest your crop.

Jeffrey Hahn, Extension entomologist and Suzanne Wold-Burkness, College of Food, Agricultural and Natural Resource Sciences

Reviewed in 2020

Page survey

© 2023 Regents of the University of Minnesota. All rights reserved. The University of Minnesota is an equal opportunity educator and employer.