Daily tips Plant of the day What's on What to plant Garden help

Home › Garden pests › Bean fly

Garden pests

Bean fly

Ophiomyia phaseoli (formerly Melanagromyza phaseoli) · Insect

Also called bean (cowpea) fly (Pacific Islands).

Bean fly (Ophiomyia phaseoli (formerly Melanagromyza phaseoli)), illustration

Illustration

Young beans, cowpeas, mung beans and adzuki beans, in the tropics and subtropicsFly (maggots tunnel in stems)Spreads by flying adults, and volunteer beans and legume weeds such as phasey bean

A tiny, shiny black fly whose maggots tunnel down from the leaves into the stems of young bean plants, so seedlings wilt, stunt or die. Clear old beans and legume weeds before sowing, then hill soil up around the stems once the seedlings are growing.

How to spot it

Easily confused with

Bean seed fly

Its maggots eat the seed and the shoot as it comes up, so beans fail to appear or come up twisted; it is a pest of cool, wet springs rather than the tropics.

Damping off

Seedlings collapse with a thin, pinched, water-soaked stem at soil level, with no mines in the leaves and no maggots or pupae in the stem.

Leaf miners

The winding mines stay in the leaves, and the plant keeps growing; bean fly maggots move on into the stem and the seedling wilts.

Where it's a problem

What to do

  1. Before sowing, pull out self-sown beans and legume weeds such as phasey bean, and don't sow next to an older bean crop.
  2. Check seedlings twice a week for the first three to four weeks, when they are most at risk; split a wilted stem near the soil to look for maggots.
  3. Two to three weeks after the seeds come up, hill soil up around the stems and mulch: damaged plants grow new roots above the damage, and the soil covers them.
  4. Keep an especially close eye on young plants in dry spells, when the damage is worst.
  5. After the last picking, remove and destroy the old plants, by burying or binning them, so the next crop doesn't inherit the flies.

If you use an insecticide, choose one labelled for bean fly and follow the label and local rules. Sources say the maggots are well protected inside the stems, and that spraying older plants may not be worthwhile: it is the seedlings that need protecting.

Vegetables it affects

Bush beansClimbing beansRunner beans
Not sure it's this one? Scan it free All garden pests

Free account, no card needed. You sign up or sign in first, then the scanner opens.

Sources (4, from Business Queensland, Pacific Pests, Pathogens and Weeds, Northern Territory Government and others)

Facts checked Wednesday 28 October 2026. General guidance only: follow your local council, agency and product label.

Not sure which pest it is?

Photograph it and Bozlea tells you what it is and what to do. Free to start. No card needed.

Scan it free