Codling moth

Codling moth is the cause of what is often referred to as 'maggoty apples'. It can also affect pear fruits and occasionally it is found in walnut and quince fruits.

An apple with codling moth larvae damage Credit: RHS/Entomology.
An apple with codling moth larvae damage Credit: RHS/Entomology.

Quick facts

Common name: Codling moth
Scientific name: Cydia pomonella
Plants affected: Apples, pears, and infrequently, quinces, walnuts
Main symptoms: Ripening fruits have a small caterpillar feeding in the core
Most active: June-September

What is codling moth?

Codling moth is a moth in the family Tortricidae, there are around 400 species of moths in this family in Britain. Most cause no noticeable damage to garden plants.

Codling moth is a species with caterpillars that bore into the fruits of apple and pear trees during mid to late summer.


  • The caterpillar’s exit hole is often visible in the side of the ripe fruit or at the 'eye' end (opposite the stalk)
  • When the fruit is cut open, the tunnel and feeding damage inside the core can be seen, together with the caterpillar’s excrement pellets (frass)
  • Damaged fruits tend to ripen and drop early
  • The small white, brown-headed, caterpillar can sometimes be found near the core
Plums, damsons and gages can be affected by a related species, the plum moth.


It is not worthwhile controlling codling moth on quince or walnut as the level of damage in these fruits is rarely significant. Use pheromone traps placed in May (details below), so if necessary action can be taken to avoid a damaging population. When choosing control options you can minimise harm to non-target animals by using the methods in the non-pesticide section below. Pesticide treatments are likely to kill natural enemies and are only likely to be successful if the entire plant can be reached.


  • Where possible tolerate the loss of some fruit to codling moth, often only a small proportion of fruits are affected
  • Encourage predators and other natural enemies in the garden such as birds, hedgehogs and ground beetles
Pheromone traps
  • Pheromone traps can be used to trap male moths. They use a synthetic version of volatile chemical (sex-pheromone) produced by female moths to lure in males
  • Pheromone traps for codling moth are available from garden shops or from some mail order suppliers biological controls. These consist of an open-sided box that is hung in the tree in early May. The bottom of the box has a sticky sheet on which the pheromone pellet is placed. Male codling moths are lured into the trap and get stuck
  • These traps alone rarely control codling moth but monitor moth activity. They can help to time other inteventions so they are as targeted as possible
  • On isolated trees these traps may catch enough males to reduce the females' mating success, resulting in fewer fertile eggs being laid
  • By counting the trapped males every week and following the instructions that come with the trap, the best time to spray can be determined
  • Pheromone traps are designed to prevent birds entering the trap and getting caught on the sticky sheet, adding some bird netting will further reduce the risk of birds entering the traps
Biological control
  • A mixture of pathogenic nematodes (Fruit and Vegetable Protection) is available by mail order from some biological control suppliers, which may provide some control of codling moth. These are microscopic worm-like creatures that enter the bodies of caterpillars and infects them with a fatal bacterial disease
  • The nematode should be sprayed on the trunk and branches, and also the soil under the branches, in September-October, after the caterpillars have left the fruit
  • This treatment gives no protection in the following year against female codling moths flying in from nearby gardens, and so may not be worthwhile in areas where apples and/or pears are widely grown
  •  Whilst the nematode biological controls are usually either insect or mollusc specific, they  therefore have the potential to infect non-target animals within those groups. They should therefore be used with care and only when there is a specific problem to treat
The RHS recommends that you don’t use pesticides. Most pesticides (including organic types) reduce biodiversity, including natural enemies, impact soil health and have wider adverse environmental effects.
Where you cannot tolerate codling moth, manage them using the information above as your first course of action.
Pesticide treatments are likely to kill natural enemies and so reduce the likelihood of natural control and can lead to resurgence of the target animal.
The pesticides listed are legally available in the UK. This information is provided to avoid misuse of legal products and the use of unauthorised and untested products, which potentially has more serious consequences for the environment and wildlife than when products are used legally.
Always follow the instructions on the products. For edible plants, make sure the food plant is listed on the label and follow instructions on maximum number of applications, spray interval and harvest interval.

Homemade products are not recommended as they are unregulated and usually untested. 

Be aware that products such as Neem oil are not registered for use in the UK and we cannot advise on their use.

Plants in flower must not be sprayed due to the danger to bees and other pollinating insects.
Pesticide treatment is only possible and worthwhile on small trees that can be sprayed thoroughly.
The shorter persistence pesticides (that are usually certified for organic growing) are likely to be less damaging to non-target wildlife than those with longer persistence and/or systemic action.
  • Plum moth caterpillars can only be controlled on apple and pear with insecticides before they enter the fruits
  • Organic contact insecticides containing natural pyrethrins (e.g. Bug Clear Ultra 2, Neudorff Bug Free Bug and Larvae Killer). Several applications of these short persistence products may be necessary to give good control
  • More persistent contact insecticides include the synthetic pyrethroids lambda-cyhalothrin (e.g. Resolva Bug Killer), deltamethrin (e.g. Provanto Ultimate Fruit & Vegetable Bug Killer, Provanto Sprayday Greenfly Killer) and cypermethrin (e.g. Py Bug Killer)
  • Timing of spray can be more accurately determined by the use of a pheromone trap (see above) otherwise a spray in about the third week of June, with a second application about three weeks later may have some effect. In some years, egg hatching may be earlier or later, due to the weather conditions and in years with long summers there may be two generations of the moth 

Inclusion of a pesticide product does not indicate a recommendation or endorsement by RHS Gardening Advice. It is a list of products currently available to the home gardener.


Pesticides for gardeners (pdf document)
Biological control suppliers (pdf document)


Adult codling moths emerge in late May-June and lay eggs on or near developing fruits from June to mid-July. The adults are small, up to 22mm wingspan, with blackish-brown and grey speckled wings with a bronzy patch  near the outer edge.

After hatching, the small white, brown-headed. caterpillar bores into a fruit and feeds in the core region for about four weeks until fully grown.

The insect leaves the fruit to overwinter as non-feeding caterpillars in leaf litter or under loose flakes of bark, pupating the following spring.

Join the RHS

Become an RHS Member today and save 25% on your first year

Join now

Gardeners' calendar

Find out what to do this month with our gardeners' calendar

Advice from the RHS

Get involved

The Royal Horticultural Society is the UK’s leading gardening charity. We aim to enrich everyone’s life through plants, and make the UK a greener and more beautiful place.