This article provides practical information about the onion fly – how to recognize it, where it occurs in North America, how to prevent infestations, and how to control or eliminate this pest from gardens, farms, and homes.
In North America, the onion fly (Delia antiqua) is also referred to as the onion maggot (larval stage).
What does an onion fly look like?
The adult onion fly closely resembles a common housefly but is slightly smaller and grayer in color. It measures about 6–7 mm in length. The fly has a rounded body, long transparent wings, and prominent reddish eyes. It is often mistaken for other small flies due to its nondescript appearance.
The more damaging life stage is the larva, commonly referred to as the onion maggot. These larvae are small, white, legless, and tapered, reaching up to 8 mm in length. They burrow into the bulbs and stems of onion plants, where they feed and cause rot.
Where are onion flies found in North America?
Onion flies are widely distributed across temperate regions of North America, especially in areas where onions, leeks, shallots, and garlic are cultivated. This includes large parts of both the U.S. and southern Canada.
The pest is most common in home gardens, commercial vegetable fields, and sometimes near compost piles or decaying plant material. Infestations are especially prevalent in cooler, moist climates during spring and early summer.
Where do onion flies live and reproduce?
Onion flies are seasonal pests. Adult flies emerge in the spring after overwintering as pupae in the soil. They lay their eggs at the base of onion plants or in nearby soil. A single female can lay up to 200 eggs.
After hatching, the larvae immediately seek out the base of onion plants and burrow into the bulb. Here they feed for 2–3 weeks before pupating in the surrounding soil. Depending on regional climate, two to three generations can occur in one season.
They are typically found:
-
In garden beds with onion family crops
-
Around compost piles with decomposing plant material
-
In commercial agricultural fields
-
In soil that previously hosted an onion crop
How do you avoid onion fly infestations?
Preventing an onion fly infestation starts with good cultural practices. Here are several methods that can significantly reduce the risk:
Crop rotation
Avoid planting onions or other allium crops (garlic, shallots, leeks) in the same area year after year. Onion flies overwinter in the soil and are more likely to infest areas with a history of onion cultivation.
Use of floating row covers
Lightweight row covers can be placed over crops early in the season to physically prevent onion flies from laying eggs near the plants.
Timing of planting
Delaying planting until late spring, when the first generation of flies has already laid their eggs, can reduce larval damage.
Avoid organic matter buildup
Do not leave decomposing bulbs or plant material in the soil. Remove and destroy all infected plant debris promptly.
How do you identify onion fly damage?
Damage from onion fly larvae typically appears 1–2 weeks after egg hatching. Signs include:
-
Wilting or yellowing of onion leaves
-
Bulbs becoming soft, mushy, and rotting from the inside
-
Presence of small white maggots in the base of the plant
-
Foul odor due to decay
In severe cases, entire crops can be lost if infestations are not detected early.
How do you get rid of onion flies?
Mechanical removal
If maggots are found, remove and destroy affected plants immediately. Do not compost infected bulbs, as this can spread the pest.
Soil solarization
This method involves covering soil with clear plastic during hot weather to raise the soil temperature and kill pupae hiding in the ground.
Trapping
Yellow sticky traps can help monitor adult fly activity. Although not a control method by itself, it helps determine when flies are present and when protective measures should be applied.
Biological control
Parasitic wasps and predatory beetles can naturally reduce onion fly populations. Nematodes such as Steinernema feltiae may also be introduced into the soil to target the pupal stage.
Chemical control
In some regions, approved insecticides may be used, but timing is critical. Treatments are most effective when applied just before egg hatching or when adult activity is detected. Always follow local guidelines and regulations regarding pesticide use.
What is the life cycle of the onion fly?
Understanding the onion fly's life cycle is key to effective control:
-
Eggs: Laid at the base of host plants in spring.
-
Larvae: Feed for 2–3 weeks within the onion bulb.
-
Pupae: Develop in the soil for 2–4 weeks or overwinter.
-
Adults: Emerge in spring to repeat the cycle.
In cooler northern regions, there may be two generations per season, while in warmer parts of North America, up to three generations can occur.
Can onion flies infest indoor environments?
While onion flies typically prefer outdoor environments, they may occasionally be found indoors, especially in homes storing harvested onions. If onions are stored in damp or poorly ventilated areas, they can become attractive to egg-laying females.
To prevent indoor problems:
-
Store onions in cool, dry, well-ventilated spaces
-
Inspect stored onions regularly and discard any showing signs of rot
-
Clean storage areas to remove residual plant matter
Are onion flies harmful to other plants?
Onion flies primarily target plants in the allium family. This includes:
-
Onions
-
Garlic
-
Shallots
-
Leeks
-
Chives
Other vegetables are generally not affected, though crop proximity can influence infestation levels. Intercropping with non-allium plants like carrots may help confuse adult flies and reduce oviposition rates.