Menu
Home What to Plant Now How to Grow Plant Library Pests & Diseases Pricing Open the App
An apple cut open to show codling moth tunneling and frass in the core

Codling Moth in Apples and Pears

Identify the grub in the core, understand why timing beats spraying, and pick a control plan that fits your garden.

Codling moth is the classic apple wrecker, the reason for the old joke about finding half a grub in your fruit. If you have ever bitten into a home-grown apple and found a brown tunnel running to the core, this is almost certainly the culprit. It is the single most damaging pest of backyard apples and pears across the cooler apple-growing regions of the US.

The good news is that codling moth is very manageable in a home garden once you understand one thing: the grub spends almost its whole life either inside the fruit or hidden under bark, and that means good control is mostly about timing and barriers, not heavy spraying. This guide walks through how to identify it, why the lifecycle dictates everything, and a simple plan you can pick based on how much you want to do.

Choose Your Control Plan

There is no single magic spray for codling moth. The most reliable approach combines a couple of methods. Use the selector below to see an accurate, step-by-step plan at the level of effort that suits you. Most home gardeners do best starting with Prevent plus Organic first.

Codling Moth Control Method Selector

Pick an approach. You can combine them, and the strongest results come from layering prevention with one active method.

Prevent: keep moths off the fruit and break the cycle

These steps lower pressure year on year and are the foundation everything else builds on. They are low cost and harm nothing beneficial.

  1. Hang a pheromone trap to monitor. Place one delta trap baited with the codling moth lure in the tree canopy from early spring, before blossom. It catches male moths and tells you when flights begin. This is your timing clock for every other method, not a control on its own in a backyard.
  2. Sanitation, all season. Pick up dropped and infested fruit at least twice a week and remove it from the garden. Do not leave it sitting in an open compost heap, where grubs simply crawl out to pupate. Thinning out clearly stung fruit early also helps.
  3. Band the trunk to trap pupating grubs. Wrap a strip of corrugated cardboard (ridges facing the bark) or burlap around the trunk in summer. Mature grubs crawl down the trunk looking for a sheltered spot to pupate and hide in the band. Remove and destroy the band every week or two through the season.
  4. Tidy loose bark and hiding spots. Scrape away flaking bark over winter, where grubs overwinter in cocoons, and remove nearby fruit-tree prunings and debris.
The pheromone trap is the key to good timing. When catches rise, egg-laying and hatch are not far behind, which is when sprays and bagging need to be in place.

Organic first: gentle, targeted, bee-safe

Layer these over the Prevent steps. They are the best fit for most home orchards.

  1. Bag the fruit (the most reliable backyard method). Soon after fruit set, while fruit is small, slip a barrier over each apple or pear. Fabric exclusion bags made for fruit work well, and a stretched old sock over a single fruit is a cheap home version. The moth simply cannot reach the fruit to lay. Fiddly, but close to foolproof on a few trees.
  2. Codling moth granulosis virus. This is a naturally occurring virus (Cydia pomonella granulovirus), sold as an organic spray in the US. It infects and kills hatching grubs and is harmless to people, pets, bees and beneficials. Apply it onto the fruit as eggs are hatching, guided by your trap, and reapply through the hatch period because it breaks down in sunlight.
  3. Horticultural oil at the right moment. A light oil spray can smother eggs laid on the fruit. Timing to the egg-laying window (again, read from the trap) matters, and avoid oil on hot days or stressed trees.
  4. Encourage natural enemies. Birds, predatory bugs and parasitic wasps all take codling moth. Avoid broad-spectrum sprays that wipe them out.
Spray-type methods only reach the grub in the short window before it bores into the fruit. Once it is inside, nothing sprayed on the surface will touch it, so timing to egg hatch is everything.

Stronger: when pressure is high and gentler methods are not keeping up

Reserve these for heavy, repeated infestations. Keep prevention and sanitation running underneath them.

  1. Spinosad, well timed. Spinosad is a fermentation-derived insecticide allowed in many organic systems. It is effective on hatching grubs when applied to egg-hatch timing from your trap. It can harm bees while wet, so spray in the evening when bees are not foraging and never on open blossom.
  2. Products labeled for codling moth. Some garden products are labeled specifically for codling moth on apples and pears. Choose a product labeled for the job, follow the label exactly, observe the pre-harvest interval (PHI) before eating fruit, and time applications to egg hatch.
  3. Run multiple timed sprays per generation. Warmer districts get two or three generations a season. Keep the trap up all season and repeat the timed program for each flight, rather than spraying on a calendar.
More spraying is not better. Untimed or broad-spectrum sprays mostly kill beneficial insects and miss the protected grub. Always read the label and respect the pre-harvest interval before eating the fruit.

How to Identify Codling Moth

You will usually meet codling moth as damage long before you see the adult. The tell-tale signs:

Not sure it is codling moth? Cut the fruit in half. Codling moth makes a clean tunnel to the core full of frass, usually with one grub. Spotted wing drosophila or other fruit flies leave soft watery rot and several tiny maggots near the surface with no neat core tunnel. They are completely different pests with different controls.

The Lifecycle, and Why Timing Matters

Everything about controlling codling moth comes back to its lifecycle, because the grub is only exposed for a brief moment.

StageWhere it isCan you reach it?
Overwintering grubIn a cocoon under bark or in litterYes, by scraping bark and clearing debris in winter
Adult moth (spring)Flying at dusk, laying eggs on or near fruit and leavesMonitor with a pheromone trap; this sets your timing
Egg, then newly hatched grubOn the fruit surface, briefly, before boring inYes, this is the only spray window (virus, oil, spinosad)
Grub inside fruitTunneling to the coreNo. Protected. Nothing sprayed on the surface reaches it
Mature grub leaving fruitCrawling down to pupateYes, with trunk banding

Because the grub is only out in the open for a day or two between hatching and boring in, a spray has to already be on the fruit when eggs hatch. Spraying a week too early or too late wastes the spray entirely. That is the whole reason a pheromone trap is worth hanging: it tells you when the moths are flying, so you can put your protection on at egg hatch rather than guessing by the calendar. In warmer districts the cycle repeats two or three times over summer, so monitoring runs all season.

Prevention That Lasts

Affected Plants

Codling moth is a specialist of pome fruit. It is a major problem on:

It does not attack stone fruit, citrus, berries or vegetables. If something is tunneling those crops, look to a different pest such as a fruit fly. See our broader pest management guide for the wider picture.

When It Is Serious

For a backyard tree, codling moth is a quality problem rather than a threat to the tree's life: the tree itself stays healthy, but a large share of the fruit can be ruined if it is ignored. It becomes serious when:

Region Note (United States)

Codling moth is a major pest of apples and pears across the cooler apple-growing regions of the US, including the Pacific Northwest, the Northeast, the Mountain West and the Midwest. It is generally not a factor in Florida and the Deep South, where apples and pears are rarely grown. Warmer regions tend to push two or three generations per season, lengthening the monitoring and spray-timing window, so use the trap to read your own season rather than a fixed date. Keep the pheromone trap up the whole season and time every action off the catches it shows you.

Time Your Codling Moth Actions in the App

Use the Planting Season app's Pest Calendar to set reminders for trap checks and egg-hatch spray windows, and the Harvest Planner to plan your apple and pear crop for the season.

Open the App →

Frequently Asked Questions

How do I know it is codling moth and not something else?

Cut the fruit open. Codling moth leaves a tunnel that bores to the core, packed with crumbly brown frass, often with a single pinkish-white grub inside. The entry hole on the skin is usually plugged with frass. Fruit flies, by contrast, leave soft watery rot and tiny maggots near the surface, with no neat tunnel to the core.

Why does spray timing matter so much for codling moth?

Most sprays only work on the newly hatched grub during the short window before it bores into the fruit. Once it is inside, it is protected. The grub hatches from eggs laid on or near the fruit, so the spray has to be on the fruit surface as eggs are hatching. That is why a pheromone trap matters: it tells you when the moths are flying so you can time the spray to egg hatch rather than guessing.

Do pheromone traps control codling moth on their own?

In a backyard with one or two trees, traps are mainly a monitoring tool, not a cure. They catch male moths and tell you when flights start, which lets you time other actions. They can reduce numbers a little but should be paired with sanitation, banding or fruit bagging for real control.

Does bagging the fruit really work?

Yes. Slipping a barrier over each young fruit, such as a fabric exclusion bag or even a stretched old sock, physically stops the moth laying on the fruit. It is the most reliable organic method for a small number of trees, though it is fiddly and you need to do it early, soon after fruit set.

What is codling moth granulosis virus?

It is a naturally occurring virus (Cydia pomonella granulovirus), sold as an organic spray in the US, that infects and kills codling moth grubs while being harmless to people, pets, bees and beneficial insects. Like other controls it has to be on the fruit as grubs hatch, and it breaks down in sunlight, so it needs reapplying through the egg-hatch period.

Will picking up fallen fruit make a difference?

It makes a big difference over the season. Grubs leave infested fruit to pupate, so removing dropped and infested fruit promptly, and not composting it loose, removes the next generation before it can mature. Sanitation is one of the highest-value low-effort steps you can take.

Is codling moth a problem everywhere in the US?

Codling moth is widespread in the cooler apple and pear growing regions of the US, including the Pacific Northwest, Northeast, Mountain West and Midwest. It is generally not present in Florida and the Deep South, where apples and pears are rarely grown. Warmer areas can see two or even three generations a season, which means longer monitoring and more spray timing windows.