Curious Minds

Clear answers to science and history questions

How Do Worms Get Inside Nuts?

· 7 min read · Science

Worms get inside nuts primarily when a female insect—usually a moth or weevil—lays eggs on or near the developing nut, and the hatching larva chews its way through the shell or husk to feed on the kernel inside. In most cases the worm is the larval stage of a pest that targets a specific nut crop, such as the navel orangeworm in almonds or the filbertworm in hazelnuts, and the infestation begins while the nut is still on the tree.

The Main Culprits: Moths and Weevils

Two groups of insects account for the vast majority of wormy nuts: certain moths (order Lepidoptera) and certain weevils (order Coleoptera). Moth larvae are the classic “worms” found in nuts—soft-bodied caterpillars that hatch from eggs laid on the nut surface or nearby foliage. Weevil grubs, which are legless and often white or cream-colored, develop inside the nut after an adult female drills a tiny hole and deposits an egg. Common examples include:

  • Navel orangeworm (Amyelois transitella) – a major pest of almonds, pistachios, and walnuts in California.
  • Codling moth (Cydia pomonella) – attacks walnuts and sometimes other nuts, though it is better known as an apple pest.
  • Filbertworm (Cydia latiferreana) – the key pest of hazelnuts in the Pacific Northwest.
  • Pecan weevil (Curculio caryae) – a serious pest of pecans in the southern United States.
  • Hickory shuckworm (Cydia caryana) – affects pecans and hickory nuts.

Each species has its own timing and preferred nut host, but the general strategy is similar: the adult female seeks out a nut at a susceptible stage, lays one or more eggs, and the resulting larva does the damage.

How the Worm Gets In: Entry Points and Timing

The exact route depends on the nut and the insect. Some moths lay eggs directly on the nut’s surface; the tiny larva then bores through the shell or husk. Others lay eggs on leaves or twigs near the nuts, and the newly hatched caterpillar wanders until it finds a nut to enter. A few species take advantage of existing openings—suture splits along the shell, cracks from weather, or holes made by other insects—rather than chewing through intact tissue.

Timing is critical. Nuts are most vulnerable during the period when the shell is still soft and expanding, often called the “water stage” or “gel stage” in almonds and pistachios. Once the shell hardens, it becomes a much stronger barrier, though some pests can still penetrate it. Weevils, for instance, often attack nuts that have fallen to the ground, drilling through the shell to lay eggs inside the kernel.

After the egg hatches, the larva feeds on the kernel—the edible part—for several weeks. It may consume a large portion of the nut, leaving behind frass (insect droppings) and webbing. When fully grown, the larva either chews an exit hole and drops to the soil to pupate, or it remains inside the nut through harvest, which is why wormy nuts are often discovered only after cracking.

Why Some Nuts Are More Vulnerable

Not all nuts are equally likely to host worms. Several factors influence susceptibility:

  • Shell thickness and hardness: Thin-shelled varieties (e.g., some almond and walnut cultivars) are easier for larvae to penetrate.
  • Husk or hull characteristics: Nuts with tight, intact husks may deter egg-laying, while split or damaged husks invite pests.
  • Harvest timing: Nuts left on the tree or ground too long are exposed to more insect activity.
  • Orchard sanitation: Overwintering pests survive in leftover nuts (mummies) on the tree or ground; poor cleanup increases the next season’s pressure.
  • Weather: Warm, dry conditions tend to favor many nut pests, while wet weather can promote fungal damage that creates entry wounds.

For example, in almonds, the navel orangeworm is strongly associated with “mummy” nuts—almonds left on the tree after harvest—because the moth lays eggs on these old nuts, and the larvae then move to the new crop. In hazelnuts, the filbertworm prefers nuts with intact husks, but it can also enter through the open end of the nut.

Signs of Infestation and What You Might See

Worm damage is not always obvious from the outside. On the tree, you might notice small entrance holes, sawdust-like frass, or webbing around the nut. Fallen nuts with tiny round holes are a common sign of weevil activity. Once you crack a nut, the evidence is clearer: a hollowed-out kernel, brownish frass, silk-like threads, and sometimes the larva itself. In some cases, the nut looks normal externally but is light in weight—a clue that the kernel has been consumed.

For commercial growers, detection often involves monitoring traps for adult moths, inspecting nuts during the season, and cutting samples to check for larvae. Home gardeners can do similar visual checks.

Prevention and Control in the Orchard or Garden

Managing nut worms relies on breaking the pest’s life cycle. The most effective strategies combine cultural practices, monitoring, and—where necessary—targeted insecticides. Key steps include:

  1. Sanitation: Remove and destroy leftover nuts (mummies) from trees and the ground during the dormant season to eliminate overwintering sites.
  2. Timely harvest: Harvest nuts promptly when mature, and avoid leaving them on the ground where weevils can attack.
  3. Monitoring: Use pheromone traps to track adult moth flights and time other interventions accordingly.
  4. Biological control: Encourage natural enemies such as parasitic wasps and birds, though these alone rarely provide complete control.
  5. Chemical control: If needed, apply insecticides according to local extension recommendations, targeting the vulnerable stages (e.g., egg hatch). Always follow label instructions and safety precautions.
  6. Resistant varieties: Where available, choose nut varieties with thicker shells or other resistance traits.

For home growers, sanitation and prompt harvest often make a big difference. Insect netting or bags over individual nut clusters can also exclude egg-laying females, though this is practical only for small trees.

Are Wormy Nuts Safe to Eat?

Accidentally eating a worm or its frass is generally not harmful—insects are not known to transmit diseases to humans through nuts—but the nut itself may be compromised. Worm-damaged kernels are more susceptible to mold and aflatoxin-producing fungi, which can pose health risks. For that reason, commercial operations sort out infested nuts, and home growers should discard any nuts with visible damage, frass, or mold. If you crack a nut and find a worm, it is best to throw it away rather than try to salvage the remaining kernel.

Frequently Asked Questions

Can worms get into nuts after they are shelled and packaged?

It is very unlikely. Most nut pests lay eggs on the growing nut in the field, and the larvae develop inside the shell. Once nuts are harvested, shelled, and properly stored, the risk of new infestation is low, though stored products can be attacked by pantry pests like Indian meal moths if they are already present in the storage area. Keeping nuts in airtight containers helps prevent this.

Are the worms always moth larvae?

No. While moth caterpillars are the most common, weevil grubs also infest nuts, particularly pecans, hazelnuts, and acorns. Weevil larvae are typically legless and grub-like, whereas moth larvae have a distinct head and may have legs. Both types can be found inside nuts.

Do all nuts get worms?

Any nut can potentially be attacked, but the likelihood varies by crop, region, and year. Almonds, pistachios, walnuts, pecans, and hazelnuts are among the most commonly affected. Some nuts with very hard shells, like macadamias, are less susceptible, though they are not immune.

What should I do if I find a worm in a nut I just cracked?

Discard the nut. Do not eat the remaining kernel, as it may be contaminated with frass or mold. Check the rest of the batch for similar damage, and store nuts properly to prevent further issues.

Can I prevent worms in my home-grown nuts without chemicals?

Yes, several non-chemical methods help: remove and destroy all leftover nuts from the tree and ground, harvest promptly, and consider bagging individual nut clusters with fine mesh. These practices reduce egg-laying opportunities and break the pest cycle.

Is it true that a worm in a nut means the nut is fresh?

No, that is a misconception. A worm indicates that the nut was infested by an insect, not that it is fresh. In fact, infested nuts are often older or damaged and may be of lower quality.

In this article
  1. The Main Culprits: Moths and Weevils
  2. How the Worm Gets In: Entry Points and Timing
  3. Why Some Nuts Are More Vulnerable
  4. Signs of Infestation and What You Might See
  5. Prevention and Control in the Orchard or Garden
  6. Are Wormy Nuts Safe to Eat?
  7. Frequently Asked Questions