LaishaLaisha AI Operating System for Agriculture Ask Laisha

Bean fly (bean stem maggot)

Ophiomyia phaseoli Ophiomyia phaseoli (Tryon, 1895) · formerly or also: Agromyza phaseoli, Melanagromyza phaseoli

The bean fly is a tiny shiny black fly whose maggots tunnel down from the leaves into the stems of young bean plants. They feed just under the skin at the base of the stem, which swells and cracks, so seedlings yellow, wilt and die. It is one of the most damaging pests of common bean and other legumes on small farms in Africa and Asia, especially when beans are planted into dry or poor soils. In Africa two related species, Ophiomyia spencerella and O. centrosematis, cause the same damage.

Adult male bean fly (Ophiomyia phaseoli), a tiny dark fly, magnified
Adult male bean fly (Ophiomyia phaseoli), a tiny dark fly, magnified. Photo: Lonsdale O, Murphy ST, Scheffer SJ, CC BY 4.0, via Wikimedia Commons.
Type
Insect · Insect (small fly; the maggots tunnel in stems)
Classification
Animalia › Insecta › Diptera › Agromyzidae
Main crops
Common bean, Green bean, Cowpea, Mung bean, Soybean, Pigeon pea, Lima bean
Found in
Africa, South and South-East Asia, Oceania, Americas
Chemical groups
IRAC 4A, IRAC 28 (mode-of-action groups, not products)
Last reviewed
2026-10-20

Bean fly scientific name, order and family

The scientific name of bean fly is Ophiomyia phaseoli Ophiomyia phaseoli (Tryon, 1895), in the order Diptera, family Agromyzidae.

Older or alternative scientific names: Agromyza phaseoli, Melanagromyza phaseoli.

Where it occurs

Found across Africa, South and South-East Asia, the Middle East, Australia and Pacific islands; not recorded in the Americas.

RegionStatus
AfricaWidespread; major pest of common bean
South and South-East AsiaWidespread
OceaniaPresent in Australia and Pacific islands
AmericasNot recorded

Symptoms and identification of bean fly

The organism

Adults are about 2 mm long, shiny black flies. Females make many tiny feeding and egg-laying punctures in leaves, which appear as pale spots. Maggots are small, pale and legless, and pupae are brown, barrel-shaped and found just under the skin at the base of the stem.

Signs in the crop, stage by stage

Crop stageWhat you see
Leaves of seedlingsMany small pale spots (punctures) on the first leaves; short mines near the leaf stalk.
Stem baseSwollen, cracked stem at or just above the soil line; brown pupae visible under the skin when the stem is split.
Whole plantYellowing, stunting and wilting of young plants, which may die; surviving plants form new roots above the damaged area if soil covers it.

Life cycle of bean fly

1Egg (inside leaf)2Maggot (3 instars)3Pupa (under stemskin)4Adult flyBean fly (bean stemmaggot)
Life cycle of Bean fly (bean stem maggot) — diagram drawn by Laisha from the stages below. Durations depend on temperature.

Females lay eggs inside the leaf tissue of seedlings. Each maggot mines into a leaf vein, down the leaf stalk and into the stem, where it feeds in the outer tissue at the base of the stem and then pupates under the skin. Adults emerge through a small window in the stem.

StageDurationNotes
Egg (inside leaf)About 2-4 daysLaid in young leaves.
Maggot (3 instars)About 7-10 daysMines down to the stem base.
Pupa (under stem skin)About 7-10 daysBrown, barrel-shaped.
Adult flyAbout 1-3 weeksActive in the morning.

Temperature

One generation takes about three weeks in warm weather; populations build up when beans are planted continuously or in sequence.

Generations

Many generations per year where legumes are grown through the year.

Conditions that favour it

Late planting into high fly populations, poor soil fertility and dry soils that slow seedling growth, continuous or staggered bean planting, volunteer legumes and weeds, and lack of soil cover around the stem base.

Economic threshold level (ETL)

There is no single international threshold; because damage happens in the first weeks and is hidden inside the stem, management is mostly preventive in areas with a history of bean fly.

Thresholds are local. They depend on crop price, control cost, variety and natural-enemy activity, so use the figure your local extension service publishes where one exists.

Damage and yield loss from bean fly

Seedling deaths and stunting can reduce yields heavily on smallholder farms in Africa and Asia; losses are often reported between a third and all of the crop in bad years, especially in late or dry-season plantings.

Monitoring

How to control bean fly (integrated management)

Control works best as a sequence: prevent, monitor, then act only when a threshold or a risk forecast says so, using the least disruptive option that works.

Cultural control

Biological control

Host resistance

Chemical control of bean fly — by mode-of-action group only

Laisha names chemical options only by their resistance-committee mode-of-action group (IRAC for insects, mites and nematodes, FRAC for fungi, oomycetes and bacteria, HRAC for weeds), never by active ingredient or product. What is registered differs by country and changes over time; the label and your local plant-protection authority decide what may be used, on which crop, at what rate and with what pre-harvest interval.

Seed treatments protect seedlings during the first weeks and are the main chemical method on small farms. What is registered differs by country and changes over time; follow the label and your local plant-protection authority.

SchemeGroupMode of actionNotes
IRAC4ANicotinic acetylcholine receptor competitive modulators (neonicotinoids), seed treatmentToxic to pollinators and other non-targets.
IRAC28Ryanodine receptor modulators (diamides), seed treatmentWhere registered.

Resistance management

Look-alikes and how to tell them apart

Host range

Common bean, runner and lima beans, cowpea, mung bean, black gram, soybean, pigeon pea and other cultivated and wild legumes.

What is still uncertain

Grow guides for its host crops

How to grow the crop well is the first line of defence. Laisha's free grow guides cover each crop from sowing to harvest:

Not sure this is what you are seeing?Ask Laisha: describe the symptoms or send a photo, and get a reasoned first read with what to check next — for your crop, your stage and your region.Ask Laisha

Sources

  1. Ophiomyia phaseoli (bean fly) datasheet — CABI Compendium. https://doi.org/10.1079/cabicompendium.33002
  2. The bean fly, Ophiomyia phaseoli (Tryon), and its parasitoids in Ethiopia — Journal of Applied Entomology (Wiley). https://doi.org/10.1111/j.1439-0418.1991.tb00324.x
  3. Screening of common bean genotypes for their resistance to bean stem maggot (Ophiomyia spp.) in Ethiopia — Plant Protection. https://doi.org/10.33804/pp.008.01.4937
  4. Postharvest tillage against bean fly in beans — PlantwisePlus Knowledge Bank (CABI). https://doi.org/10.1079/pwkb.20157800368

Written by Laisha from the sources above, in its own words. This page is general reference, not a prescription: confirm identification locally and follow the label and your plant-protection authority.

Ask Laisha about this

Opens Laisha's chat with your question ready to send. Sign in or start free.