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.
| What it is | A small 6 to 8 mm fly. Qfly is brown with yellow markings |
|---|---|
| Hosts | Most soft and thin-skinned fruit, plus tomato, capsicum, cucurbits |
| Active | Increases 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 rule | Do not move or share infested fruit |
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
- Almond
- Apple
- Apricot
- Avocado
- Banana
- Green Beans
- Blackberry
- Blueberry
- Boysenberry
- Capsicum
- Cherry
- Chilli
- Choko
- Cucumber
- Cumquat
- Currants
- Custard Apple
- Davidson's Plum
- Dragon Fruit
- Eggplant
- Feijoa
- Fig
- Finger Lime
- Gooseberry
- Grape
- Grapefruit
- Guava
- Honeydew
- Kakadu Plum
- Kiwi Berry
- Kiwifruit
- Lemon
- Lilly Pilly
- Lime
- Lychee
- Mandarin
- Mango
- Melon
- Midyim Berry
- Mulberry
- Muntries
- Native Pepperberry
- Nectarine
- Olive
- Orange
- Passionfruit
- Pawpaw
- Peach
- Pear
- Plum
- Pumpkin
- Quince
- Raspberry
- Rockmelon
- Snake Beans
- Squash
- Strawberry
- Tomato
- Watermelon
- Zucchini
Related
- Exclusion Netting and Row Covers
- Traps and Baits for Garden Pests
- Citrus Gall Wasp
- Birds, Possums and Rats
- All garden pests and diseases
- Pest and Disease Finder
Sources
- NSW DPI: Queensland fruit fly
- NSW DPI Primefact 1188: Queensland fruit fly control strategies for the home gardener
- Agriculture Victoria: Controlling Queensland fruit fly in home gardens
- Agriculture Victoria: Managing Queensland fruit fly in your home garden
- PIRSA: Fruit fly, spring cleaning your garden
- WA DPIRD: Citrus pests
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.