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

Home › Garden pests › Fruit fly

Garden pests

Fruit fly

Bactrocera tryoni, Ceratitis capitata and related species · Insect

Also called Qfly (Queensland fruit fly) (Australia), Medfly (Mediterranean fruit fly) (Western Australia and worldwide).

Fruit fly (Bactrocera tryoni, Ceratitis capitata and related species), illustration

Illustration

Stone fruit, citrus, apples, pears, mangoes, avocados, tomatoes and many other fruitFly (maggots inside fruit)Spreads by flying adults, and people moving infested fruit

Maggots in ripening fruit are usually fruit fly: Queensland fruit fly in eastern Australia and Medfly in Western Australia sting the skin to lay eggs, and the fruit rots. Tiny flies around the fruit bowl are vinegar flies, which breed in overripe fruit.

How to spot it

Easily confused with

Vinegar flies (kitchen fruit flies)

Tiny, about 3 mm, often with bright red eyes; they breed in overripe and fallen fruit and fermenting food, not sound fruit on the tree.

Spotted-wing drosophila

A 2–3 mm vinegar fly whose males have a dark spot on each wing; it attacks healthy ripening soft fruit such as berries and cherries.

Codling moth

A caterpillar with a dark brown head, up to about 19 mm long, that tunnels to the core of apples and pears and leaves reddish-brown droppings at the hole.

Where it's a problem

What to do

  1. Pick up fallen fruit and remove infested fruit from the tree regularly; don't let it build up under trees.
  2. Kill the maggots before binning the fruit: seal it in black plastic bags in the sun, or freeze it for at least 24 hours.
  3. Protect whole trees or single fruit with mosquito netting, shade-cloth or fine-mesh bags.
  4. Hang male lure traps in the shade of the canopy to see when flies are about.
  5. Remove unwanted fruit trees.
  6. For flies in the kitchen, remove overripe fruit and keep fruit in the fridge; a jar of cider vinegar with a drop of washing-up liquid will catch them.

If you use a bait or insecticide, choose one labelled for fruit fly and follow the label and local rules. Where fruit flies aren't established, such as Tasmania, report maggots in fruit and keep the fruit, rather than treating it or throwing it out.

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

Facts checked Sunday 27 September 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