Menu
Open the App → Home

Explore

The Hub Books

Codling moth: identify, prevent, control

Updated October 2026

Larvae enter fruit from late spring through summer, with two to four generations depending on region.

Codling moth is the classic worm in the apple. Its pinkish white larvae bore into apples, pears, quince and walnuts, tunnel to the core or kernel and push brown frass out of the entry hole. On untreated backyard trees it can damage most of the crop, so timing your control to egg hatch matters more than anything else.

Cydia pomonella

A cut apple with a pale codling moth larva sitting in a cavity packed with brown crumbly frass
Codling moth larva and frass inside an apple, Gallup, New Mexico. Photo: Cydia pomonella (Codling Moth), iNaturalist observation 184440223, William Harmon, CC BY 4.0, resized, via iNaturalist

How to identify it

What it is often confused with

Apple maggot

Apple maggot, found mainly in the eastern states and the Pacific Northwest, leaves winding brown trails through the flesh and tiny pinprick marks on the skin, with no frass at an entry hole. Codling moth leaves one obvious hole and a tunnel to the core.

Oriental fruit moth

Oriental fruit moth larvae look similar and also enter apples and pears, but they also attack peach shoots, causing tips to wilt. A comb-like structure under the tail end of the larva separates it, which needs a hand lens.

When and where it is worst

Codling moth is found wherever apples are grown in the United States. It is the main apple pest in the dry West, including California, Washington, Oregon, Utah and Colorado, and a major walnut pest in California. The mature larvae spend the winter in cocoons under loose bark and in debris, and the moths begin flying in spring once evening temperatures reach about 62 °F.

Each female lays 30 to 70 tiny flat eggs on fruit and leaves, and larvae must reach fruit within a day of hatching. California has two to four generations a year, with fewer in cooler northern areas. In parts of Washington, rules can require backyard trees near commercial orchards to be kept free of codling moth.

Plants it attacks

These plants in our library list it as a problem to watch for.

How to prevent it

Organic control, step by step

Conventional control

Frequently asked questions

Can I eat an apple with a codling moth hole?

Yes, once you cut out the tunnel and core. The damage spoils storage life, so use affected fruit first and do not keep it with sound apples.

Do cardboard trunk bands work?

Corrugated cardboard bands trap some larvae looking for places to pupate, but UC IPM no longer recommends them as a control in home gardens because they do not reduce damage enough on their own.

When should I start spraying?

Begin at first egg hatch, which in much of California falls in April and in cooler northern areas in late May or June. Your county Extension office or state degree-day model can give a local date.

Does codling moth attack quince?

Yes. Quince, along with apple, pear, crabapple and walnut, is a host, and the same bagging, thinning and spray timing apply.

Related problems

Sources: UC IPM, Codling moth; WSU HortSense, Apple: Codling moth; Utah State University Extension, Codling moth in Utah orchards. Identification and control follow these sources. Always read and follow the product label.

Catch it early. The free Planting Season app lists the pests and diseases to watch for on every plant in your garden, with Plant Doctor to help you work out what you are seeing.