How To Deal With Onion fly in Your Irish Garden

Insect Ireland

What is Onion fly?

Onion fly is a common pest that attacks onions, shallots, leeks and garlic in Irish vegetable gardens. The adult is a small grey fly, about 7mm long, that resembles a house fly. Females lay eggs in the soil near the base of onion family plants, and the resulting white maggots burrow into the bulb base, destroying it from within. Infested plants turn yellow and wilt, and when pulled up, the base of the bulb is found to be soft, rotting and riddled with small white maggots. There are typically two generations per year — the first in May-June and a second in July-August. Onion fly is attracted to the scent of onions, particularly when sets are planted or plants are thinned.

Damage Caused by Onion fly

Onion fly larvae tunnel into the base of onion, shallot and leek bulbs, causing plants to yellow, wilt and collapse. Young plants are most vulnerable and may be killed outright. Mature onions develop soft rot at the base that spreads upward, ruining stored crops. Leeks become soft and mushy at the base. Garlic cloves are hollowed out. The damage creates entry points for secondary bacterial and fungal rots. Severe infestations can destroy an entire onion crop.

How to Prevent Onion fly

Cover onion beds with fine insect mesh from planting until harvest. Firm the soil well around onion sets after planting to reduce the scent that attracts adult flies. Avoid growing onions near the previous year's onion bed. Do not leave thinnings on the soil surface — remove them immediately. Grow onions from sets rather than seed, as sets are further advanced and less vulnerable. Interplanting with carrots may help — the onion scent deters carrot fly while carrot scent may confuse onion fly.

How to Treat Onion fly

There are no effective treatments once larvae are inside the bulbs. Remove and destroy all infested plants promptly to prevent the maggots pupating in the soil and producing a second generation. Do not compost infested material. Cover remaining plants with insect mesh. Crop rotation helps break the cycle — avoid growing alliums in the same spot for at least three years. Encouraging natural predators including ground beetles and parasitic wasps helps reduce populations over time.

Onion fly in Ireland

Onion fly is a widespread pest in Irish vegetable gardens, found in every county. The mild, moist conditions suit the pest well, and both generations can cause significant damage. Irish allotment holders and vegetable growers rank onion fly alongside carrot fly as one of the most problematic insect pests. The increasing popularity of garlic growing in Ireland has extended the range of host plants affected. Physical barriers (insect mesh) are the standard recommendation for Irish growers, as chemical controls are limited and of variable effectiveness.

Plants Affected by Onion fly

Treatment Products at MCDS.ie

Shop Onion fly Solutions on Amazon

As an Amazon Associate we earn from qualifying purchases.

As an Amazon Associate, MCDS.ie earns from qualifying purchases. Affiliate disclosure

Shop Pest Control at MCDS.ie

Effective pest control solutions with free delivery across Ireland on orders over €75

Shop Now →

Frequently Asked Questions about Onion fly

The most effective prevention is to cover onion beds with fine insect mesh from planting to harvest. Firm soil well around onion sets when planting to reduce the scent that attracts adult flies. Remove any thinnings from the site immediately. Practice crop rotation, not growing onions in the same bed for at least three years. Growing onions from sets rather than seed gives them a head start over the pest. If you discover yellowing, wilting onion plants, pull them up and check for maggots at the base u2014 destroy any infested plants immediately.
Yellowing and wilting in onions during the growing season (June-August) is often caused by onion fly larvae feeding at the base of the bulb. Pull up an affected plant gently and examine the base u2014 if it is soft, mushy and contains small white maggots about 8mm long, onion fly is the culprit. Remove and destroy all affected plants immediately to prevent the maggots from completing their life cycle in your soil. Other possible causes include onion white rot (fluffy white fungal growth at the base) or overwatering in heavy soil.
Some gardeners believe that interplanting onions with carrots provides mutual protection u2014 the onion scent may deter carrot fly while the carrot scent may confuse onion fly. While scientific evidence for this is limited, many experienced Irish gardeners swear by the practice and it is worth trying alongside physical barriers. Growing parsley, coriander or other aromatic herbs near onion beds may also help mask the onion scent. However, fine insect mesh remains by far the most reliable protection against onion fly and should be used as the primary defence.
← Back to Pest & Disease Guide

Our Services

Contact Us

Monday - Friday 08.00 - 18.00
100 S Main St, New York,
contact@gardyn.com

About Us

Transform your outdoor space with our expert garden services! From design to maintenance, we create beautiful, thriving gardens tailored to your vision. Let us bring your dream garden to life—professional, reliable, and passionate about nature.

Cart (0 items)

No products in the cart.