How to Get Rid of Onion Fly in the Garden

Effective methods for controlling onion fly

April 13, 2025 | 8 min read
An onion fly perched on a green leaf in a garden setting

As a professional gardener based in Staffordshire, I often encounter various pests that threaten our beloved plants. One such pest is the onion fly, notorious for laying eggs at the base of onion plants, leading to the destructive larvae munching away at the roots. If you're struggling with onion fly in your garden, fear not. In this article, I'll share tried-and-tested methods to control this pesky insect.

Quick Answer

To effectively control onion fly, practice crop rotation, use row covers, and apply natural predators like nematodes. Regular inspection and proper sanitation are also crucial.

Understanding the Onion Fly

The onion fly, resembling a small housefly, is a common pest in UK gardens, especially during the warmer months. The larvae are the main problem, as they burrow into the soil to feed on the roots, causing plants to wilt and die.

Preventive Measures

Crop Rotation

One of the simplest ways to deter onion flies is through crop rotation. Avoid planting onions and related crops such as leeks or garlic in the same spot each year. This interrupts the lifecycle of the fly and reduces the chance of infestation.

Use of Row Covers

Row covers are an effective physical barrier. By covering your onion beds with fine mesh or horticultural fleece, you can prevent adult flies from laying eggs near the plants.

Natural Predators

Introducing natural predators like nematodes can help control onion fly populations. Nematodes target larvae in the soil, reducing their numbers significantly.

Timing and Techniques

Timing is critical when dealing with pests. Here's a quick guide on when to apply these techniques throughout the year:

Month Action Details
March-April Set up row covers Install before flies become active
May-June Inspect regularly Look for signs of larvae damage
July-August Apply nematodes Use during late summer, targeting larvae
September-October Practice crop rotation Prepare for next planting season

Additional Tips

  • Maintain garden hygiene by removing debris and old plants.
  • Consider companion planting with carrots or calendula, which can deter flies.
  • Ensure healthy soil to promote strong plant growth, making them less susceptible to damage.

Frequently Asked Questions

What are the signs of onion fly infestation?

Look for wilted plants and check for larvae in the soil around the roots.

Can onion flies affect other plants?

While they primarily target onions, they can also infest related species like leeks and garlic.

How long do row covers need to stay in place?

Keep covers in place during the fly's active period, typically from late spring to early summer.

Need Help With Your Garden?

Our team covers Staffordshire and surrounding areas