
Codling moth (apple worm)
Cydia pomonella
Also: apple worm, apple maggot moth, codlin moth
Likes your apples, pears and walnuts.
The one behind the "worm" in the apple. The caterpillar enters the fruit, heads for the seeds and leaves a hole with frass. Cardboard bands on the trunk, picking up fallen fruit and insect-eating birds keep it in check.
What to do: Protect your plants
In June, tie a band of corrugated cardboard around the trunk and check it every week; pick up fallen fruit; put up nest boxes for blue tits.
Flight months
- Wingspan
- 1.5-2 cm
- Generations
- Two or three a year.
- Where it lives
- All over Spain, wherever there are apple, pear or walnut trees.
How long each stage lasts
- Egg
- 1-2 weeks
- Caterpillar
- 3-4 weeks
- Chrysalis
- 2-3 weeks
- Adult
- 2-3 weeks
How it transforms
It leaves the fruit, goes down the trunk and spins a cocoon under the bark; the last generation overwinters there as a caterpillar.
The caterpillar, stage by stage
- Pinkish white with a brown head, inside the fruit; at the end, up to 2 cm.
Food plants (for the caterpillar)
Apple treeA small apple with orange-red streaks, very sweet and aromatic.
Pear treeThe 'Conference' pear is elongated, with russeted skin and sweet flesh that ripens well off the tree.
WalnutThe common walnut is prized for both its nuts and its timber.
QuinceA quince tree with hard, fragrant fruit, the basis of quince paste and jellies.
Nectar plants (for the adult)
It does not need particular flowers: adults hardly feed or visit various flowers at night.
How to recognise it at every stage
Shares your gardenLikes your apples, pears and walnuts.
Life cycle: Complete metamorphosis: egg (1-2 weeks), caterpillar inside the fruit (3-4 weeks), chrysalis under the bark (2-3 weeks) and moth. Two or three generations; the last overwinters as a caterpillar in a cocoon.
Tap a stage to see it full size. The photos are AI reference images checked against real photographs; stages without a reliable photo are shown as text only.
Life-stage calendar
| Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Egg | ||||||||||||
| Caterpillar (apple worm) | ||||||||||||
| Cocoon and chrysalis | ||||||||||||
| Moth |
Approximate months for mainland Spain; in cold areas they start later and in warm areas they last longer. Garden creatures this month
- 1Keep an eye on it
Egg
· 1 mmFlat and translucent, like a little drop of wax on the leaf or fruit.
- Where to find it
- On leaves and small fruits of apple, pear and walnut.
- When: May–Aug
- What to do
- A pheromone trap tells you when the moths are flying.
- 2Protect your plants
Caterpillar (apple worm)
· Up to 2 cmPinkish white with a brown head; it leaves a hole with dark frass in the fruit.
- Where to find it
- Inside the apple or pear, on its way to the seeds.
- When: May–Sep
- What to do
- Pick up the pierced and fallen fruit every week.
- Often confused with
- Fruit fly. The fly larva has no head or legs and leaves no frass; the codling moth caterpillar has a brown head. See profile
- 3Protect your plants
Cocoon and chrysalis
· 1-1.5 cmWhite silk cocoon with the brown chrysalis inside.
- Where to find it
- Under the bark of the trunk, in cracks and in the soil.
- When: Jun–Apr
- What to do
- Tie a band of corrugated cardboard around the trunk in June: the caterpillars hide there to make their cocoon. Check it and remove it in winter.
- 4Keep an eye on it
Moth
· 1.5-2 cmGrey with fine lines and a shiny coppery patch at the tip of each wing.
- Where to find it
- In fruit trees, at dusk.
- When: Apr–Sep
- What to do
- Bats and blue tits eat many of them: put up roost boxes and nest boxes.
Often confused with
- Fruit fly. The fly larva has no head or legs and leaves no frass; the codling moth caterpillar has a brown head. See profile