Kitchen Garden

Fruit Fly Control in Guava and Mango: Traps and Fruit Bagging

Cut a ripe guava and find white wriggling maggots? That is fruit fly, and fruit fly control at home rests on three cheap habits: pick up every fallen fruit daily, hang lure traps before the fruit colours, and bag the best fruits while they are still marble sized. Spraying a backyard tree is rarely needed and usually the least useful step.

Before you start

  • Pest: fruit flies (Bactrocera species), the size of a house fly with clear wings and yellow-brown markings
  • Hit hardest: summer guava, mango, also ber, peach, loquat, gourds
  • Start traps: 4 to 6 weeks before fruit ripens
  • Bag fruit: at marble to lime size, before the skin softens
  • Daily job: collect and destroy fallen fruit

Prefer to listen? This post as a 4 min video · Watch the video

Why does guava have worms inside?

The “worms” are fruit fly maggots. A female fly pushes her eggs just under the skin of ripening fruit, leaving a tiny pinprick that is easy to miss. The maggots hatch, eat the flesh, and the fruit softens, rots and often falls. Fully grown maggots leave the fruit, burrow into the soil beneath the tree and turn into pupae, from which new flies come out to attack the next fruits. That soil stage is why sanitation matters so much.

Summer guavas in the plains suffer most, which is why many growers favour the winter crop. Mango in June and July is the other big target.

How do you spot fruit fly early?

  • Small dark puncture marks with a slightly sunken, discoloured patch around them.
  • Fruit that ripens unevenly, softens early or drops half-grown.
  • Flies resting on the underside of leaves in the morning.
  • Juice oozing from a pinhole when you press the fruit gently.

Not all drop is fruit fly. Our guide to why fruit drops early helps tell the causes apart.

Step one: collect fallen fruit every day

  1. Walk under the tree each evening and pick up every fallen or soft fruit.
  2. Put them in a strong plastic bag, tie it, and leave it in the sun for a few days so the maggots die, or bury them at least 50 cm deep.
  3. Never toss infested fruit on the compost heap or in the lawn corner; maggots just finish their cycle there.
  4. In winter, lightly dig the soil under the canopy to expose pupae to birds and sun.

How do methyl eugenol traps work?

Methyl eugenol is a lure that strongly attracts male flies of the main species that attack mango and guava. Fewer males means fewer fertile eggs. Agriculture departments in Pakistan and India promote these traps for orchards, and small packs of lure blocks are sold at seed and agri shops.

  1. Take a 1.5 litre plastic bottle and cut two or three windows, each about 3 cm wide, in the upper half.
  2. Hang the lure block or a lure-soaked cotton plug from the cap inside the bottle, as the pack directs.
  3. Add a little soapy water in the bottom so flies that enter drown.
  4. Hang at head height in the shade of the canopy, 4 to 6 weeks before fruit ripens.
  5. Empty dead flies weekly and replace the lure as the pack says.

Lures attract only males, and only certain species, so traps reduce damage rather than end it. For a single home tree, one or two traps are enough; more simply pull in flies from the neighbours.

Count the catch to time your bagging

Check the trap every three days and note how many flies it holds. When the catch jumps suddenly, flies are active and laying. That is the week to finish bagging every fruit you want to keep.

Homemade bait traps

Without a lure, a bottle with a few spoons of fermented fruit juice or jaggery water and a little soap draws in some flies of both sexes. It catches fewer fruit flies than a proper lure and plenty of harmless insects too, but it is better than nothing on a balcony tree.

How do you bag fruits on a tree?

Bagging is the most reliable home method: the fly simply cannot reach the skin.

  1. Choose fruits at marble to lime size, with clean, undamaged skin. Remove the extras in a cluster.
  2. Use paper bags, butter paper, or fine net or cloth bags. Plastic bags trap heat and moisture and rot the fruit unless you cut small holes at the bottom.
  3. Slip the bag over the fruit, gather it around the stalk, and tie or staple it closed so no gap remains.
  4. Snip a corner at the bottom so rain and sweat can drain.
  5. Leave the bag on until harvest. Check a few fruits weekly through a bag opening.

Bagging works on guava, mango, pomegranate and gourds. It takes an afternoon for a small tree and gives cleaner, unblemished fruit as a bonus.

Do you need to spray?

On home trees, usually not. Sprays must hit flies at the right time and leave residues on fruit you plan to eat soon. Agriculture departments advise orchards on bait sprays, where a small amount of approved insecticide is mixed with a food bait and spotted on leaves, not over fruit. If you choose any chemical, use only one registered for that crop, follow the label exactly, and respect its waiting days before harvest.

Growing fruit in pots? See our guide on fruit plants in pots.

Who should be careful

Keep lure traps and lure packs out of children’s and pets’ reach and wash hands after handling them; methyl eugenol is not for skin or mouth. If you use any insecticide, wear gloves, a mask and full sleeves, keep children and animals away until it dries, and never spray in wind or on fruit close to picking. Cut away and discard any part of a fruit with maggot damage; if fruit is mushy or smells sour throughout, throw it away. Anyone who gets spray in the eyes or mouth should rinse with clean water and get medical help.

The honest verdict

For a home tree, sanitation plus bagging protects the fruit you care about; traps add a useful extra layer. Expect to lose some summer guavas whatever you do. More food plant care is in Kitchen Garden.

Fruit fly questions

How do I get rid of fruit flies in guava?

Collect fallen fruit daily, hang methyl eugenol traps before ripening, and bag young fruits. Together these protect a home tree far better than sprays alone.

Are worms in guava safe to eat?

No one should eat a maggot-filled fruit on purpose. Cut away damaged parts; if the fruit is soft and sour throughout, throw it away.

What is a methyl eugenol trap?

A bottle trap baited with a lure that draws male fruit flies of the main mango and guava pests. It cuts breeding but catches only males.

When should I bag mango fruits?

When they are marble to lime sized and before they start colouring. Bagging after flies have laid eggs gives no protection.

Can I use plastic bags to cover fruit?

Paper or cloth is better. Plastic traps heat and moisture; if you use it, cut drainage holes at the bottom.

Why does my summer guava always have worms?

Summer is peak fruit fly season in the plains. The winter crop is largely free of them, which is why many growers favour it.

Does a homemade fruit fly trap work?

Partly. Fermented fruit or jaggery bait catches some flies, but a proper lure trap works much better for mango and guava pests.

How many fruit fly traps do I need?

One or two for a home tree is enough. Too many traps can draw flies in from neighbouring gardens.

Nothing on The Care Online is medical advice. Traditional practices are described as tradition, not as fact. Patch-test anything new, and take a persistent or serious concern to a qualified professional. See how posts are written on our methodology page.