Fruit Fly: Prevention and Control in Home Gardens

Queensland fruit fly (Qfly) lays eggs in fruit and the maggots turn it to mush. It is established in eastern Australia, and Medfly is the main fruit fly in Western Australia. No single trick works. The best results come from picking early, cleaning up fallen fruit, netting, baiting and trapping, ideally with your neighbours.

At a glance
What it isA small 6 to 8 mm fly. Qfly is brown with yellow markings
HostsMost soft and thin-skinned fruit, plus tomato, capsicum, cucurbits
ActiveIncreases in spring, with sunset temperatures above 16 °C
Notifiable?Rules vary. In Victoria, home gardeners do not need to report it. In SA, rules depend on your zone
Biggest ruleDo not move or share infested fruit
General information, not a substitute for local advice. Which products are registered, and what you must report, differs by state. Use only products whose label lists your plant and the pest, follow the label, and keep to the harvest withholding period. Suspected exotic plant pests: call the Exotic Plant Pest Hotline on 1800 084 881.

What to look for

  • Small sting marks on the skin of fruit where eggs were laid
  • Fruit that softens, drops early or rots from the inside
  • Small white maggots in the flesh
  • Tiny flies on or near ripe fruit in warm weather

Why it happens

Adult flies lay eggs under the skin of ripening fruit. The maggots feed inside, then drop to the soil to pupate and emerge as adults. Activity rises through spring and builds through summer.

Qfly spreads from infested plants to nearby fruit and vegetables, and by people sharing or travelling with home-grown fruit. Some adults survive winter sheltering in trees, and flies can overwinter as pupae in the soil.

Prevention

  • Pick fruit as it ripens, or earlier, and ripen it indoors.
  • Clean up fallen and rotten fruit every few days and bin it in a sealed bag. Do not compost it.
  • Cover fruit trees with fine exclusion netting from early fruit set. Netting is the most reliable physical barrier.
  • Hang traps and baits from spring to monitor and reduce flies. Agriculture Victoria publishes how to make a bottle trap.
  • Prune trees to a size you can net and harvest.
  • Work with neighbours. Neglected trees nearby breed flies that return to your garden.
  • Do not carry fruit across fruit fly exclusion zones. Check your state's rules.

What to do

Start with the gentlest options

  • Bag individual fruit or net the whole tree, with wildlife-safe netting.
  • Use a trap or bait suited to your state and keep it fresh through the warm months.
  • Backyard chooks and ducks that scratch under trees can help clean up fallen fruit, but do not rely on them alone.
  • Cover spraying is a last resort. It is not required for a healthy garden and can harm bees and beneficial insects.

Registered products and withholding periods

Some insecticide and bait products are registered for fruit fly in home gardens. Use only those whose label lists the plant, and keep to the withholding period. Rules and restrictions for fruit fly differ by state and by outbreak zone.

When it is serious or reportable

  • You are in a fruit fly free or restricted area (parts of SA, Tasmania and WA). Check the state fruit fly rules and report an outbreak as required
  • Fruit with maggots in a place that was previously free of fruit fly
  • You are travelling with fruit. Check state border rules first

When to watch

Spring to autumn, with the greatest risk when fruit is ripening.

Plants it affects

Related

Sources

Information last checked 25 November 2026. Rules, registered products and recommendations change, so confirm with your state agriculture department.

Frequently Asked Questions

Is it fruit fly or vinegar fly?

Vinegar (fruit) flies are small flies that gather on rotting fruit. Qfly lays eggs in intact ripening fruit and has yellow markings.

Can I eat fruit with maggots?

The flesh is spoilt. Cut out and bin affected fruit in a sealed bag rather than composting.

Do traps solve the problem?

Traps are mainly for monitoring and reducing numbers. They work best alongside hygiene and netting.