Skip to content
Technical Kisanखेती, तकनीक के साथ
PestLycoriella spp. (sciarid), Megaselia spp. (phorid)Reviewed 23 September 2026

Sciarid and phorid flies (fungus gnats)

Small flies breeding in a mushroom shed's damp substrate — their maggots bore mushroom stalks directly, and the adults act as a mould-spore taxi service between bags. Screening and hygiene control them, not spraying.

Pest type
Small flies breeding in damp substrate/casing (sciarid) or around overripe mushrooms (phorid)
Attacks
Substrate, developing mushroom stalks and caps; adults also spread mould spores
Worst in
A shed with unscreened openings, overripe mushrooms left unpicked, or spilled/wet substrate
Main risk
Direct stalk damage plus mould spread from bag to bag via the adult flies

Overview

Sciarid flies (also called fungus gnats, mainly Lycoriella species) and phorid flies (mainly Megaselia species) are the two fly groups that most commonly trouble a mushroom shed in India, whether growing oyster, button or milky mushroom. Both breed in the same damp, organic-rich conditions the mushroom substrate itself provides, which is exactly why a well-run shed is also good breeding ground for these pests unless kept screened and clean.

The direct damage — maggots tunnelling into developing mushroom stalks and caps — matters, but is usually secondary to the bigger risk: adult flies moving through the shed pick up spores of green mould, cobweb mould and other contaminants on their bodies and legs and carry them from an infected or dirty area to clean, healthy bags. A heavy fly population can turn one contaminated bag into a shed-wide green mould outbreak far faster than spores drifting on their own.

Because the flies breed inside the very substrate the mushroom needs, insecticide alone rarely solves a fly problem on its own — physical exclusion (mesh screens) and removing what attracts and feeds them (overripe or damaged mushrooms, spilled substrate, standing water) do most of the real work.

How to identify it

  • Sciarid flies: small, dark, slender, mosquito-like flies that fly readily when disturbed, with thin white maggots visible in the substrate when it is disturbed.
  • Phorid flies: small, hump-backed flies that tend to run rather than fly when disturbed, usually seen around overripe, damaged or unharvested mushrooms and moist substrate.
  • Small tunnels or holes visible in mushroom stalks and caps when cut, sometimes with a maggot still inside.
  • A general fly presence increasing noticeably around week 2–3 of a batch, as substrate moisture and organic matter peak.

The damage it does

  • Maggots tunnel through developing mushroom stalks and into caps, directly reducing marketable yield and quality.
  • Adult flies act as a mobile vector for green mould, cobweb mould and other contaminants, spreading spores from a dirty or infected spot to healthy bags across the shed.
  • A heavy infestation can make an entire flush unsellable even where the mushrooms themselves show only light tunnel damage, since buyers reject anything with visible fly presence or larvae.

When to act

  • Fit and check mesh screens on every door and window before the first batch goes into a new or renovated shed, not after a fly problem shows up.
  • Remove any overripe, damaged or unharvested mushroom promptly — leaving them in the shed is the single biggest attractant for egg-laying phorid flies.
  • Watch sticky-trap catch counts through each batch; a rising trend signals it is time to tighten screening and hygiene before the population becomes established.

Organic & cultural control

  • Fine mesh screens on every door, window and other opening keep adult flies from entering the shed in the first place — the single most effective long-term control.
  • Yellow sticky traps hung near the crop both monitor fly pressure and reduce adult numbers, and should be checked and replaced regularly.
  • Pick every mushroom at the right stage without delay, and remove any overripe, damaged or unpicked mushrooms and spilled substrate promptly, since these are exactly what draws egg-laying females in.
  • Keep the substrate surface and floor free of standing water and avoid over-watering, since excess moisture both encourages the flies to breed and creates conditions that favour mould they can then spread.

Chemical control

  • A recommended insecticide labelled safe for use in mushroom cultivation can be used where mesh screening and hygiene alone are not enough, applied sparingly and with the pre-harvest interval strictly observed since the crop is eaten fresh, often within days.
  • Insecticide is a supplement to screening and hygiene, not a substitute for them — a shed that relies on spraying alone without fixing entry points and breeding sites will see the problem return.

Crops most at risk

Where this problem is called out in our crop guides — open a crop for the full package of practices.

Frequently asked questions

I see small flies around my mushroom bags but the mushrooms look fine — should I worry?

Yes, even if the mushrooms themselves look undamaged for now. The bigger risk from these flies isn't always the direct stalk-tunnelling — it's that the adults pick up mould spores on their bodies as they move around a shed and carry them from any dirty or infected spot straight onto clean, healthy bags. Fit mesh screens and remove any overripe mushrooms promptly before the fly population and the contamination risk both build up.

Will spraying insecticide solve a fly problem in my shed?

On its own, usually not for long. The flies breed inside the substrate itself, so as long as damp organic material, overripe mushrooms and unscreened openings are available, new flies keep emerging faster than a spray schedule can keep up. Mesh screens on every opening and prompt removal of overripe/damaged mushrooms do most of the real work; insecticide is a supplement for heavy infestations, not the main control.

How do I tell sciarid flies from phorid flies?

Sciarid flies are slender and mosquito-like and fly readily when disturbed; phorid flies are small and hump-backed and tend to run rather than fly when disturbed. In practice the control measures — mesh screening, sticky traps, and removing overripe mushrooms and wet substrate — are the same for both, so you do not need to tell them apart to act.

Symptoms and control measures follow ICAR, KVK and state agricultural-university package-of-practices; any named chemical is a registered use. Always read the product label and confirm the dose for your crop and zone. editorial policy.