What Happens If You Accidentally Eat a Worm in Fruit?

Accidentally swallowing a worm found inside a piece of fruit is, in the vast majority of cases, completely harmless. The “worms” in fruit are almost always insect larvae, and your stomach acid is more than equipped to digest them along with everything else you ate. The experience is understandably unpleasant, but the biological reality is far less dramatic than the panicked feeling that follows the discovery. That said, there are a few uncommon scenarios where fruit-dwelling larvae or the organisms riding along on fruit surfaces can cause genuine health problems worth understanding.

What Those “Worms” in Fruit Actually Are

Most of the small, pale, wriggling creatures people find in fruit are not worms at all in the biological sense. They are larvae of various fly and moth species. The most common culprits include fruit fly larvae (especially from species like the spotted wing drosophila and the Mediterranean fruit fly), codling moth larvae (the classic “worm” inside an apple), and various other moths and flies that lay eggs in or on ripening fruit. These larvae feed on the fruit’s flesh as they develop, and when you bite into an infested piece of fruit, you may encounter one or more of them.

The distinction between a true worm (like an earthworm or parasitic roundworm) and an insect larva matters because it changes the risk profile. Insect larvae that develop inside fruit are generally feeding on plant sugars and have no adaptation for surviving in the human gut. They did not evolve to parasitize mammals. True parasitic worms, by contrast, have sophisticated strategies for surviving digestive enzymes and colonizing intestinal tissue, but those species are not the ones living inside your apple or strawberry.

How Your Digestive System Handles a Stray Larva

Your stomach is an intensely acidic environment, with a pH hovering around 1.5 to 3.5 when actively digesting food. This acid, combined with digestive enzymes like pepsin, breaks down proteins efficiently. A small, soft-bodied insect larva stands very little chance against this chemical assault. The larva is digested much the same way the fruit around it is: broken into its component proteins, fats, and other molecules, then absorbed or passed through. Stomach acids are well documented to break down ingested cysts and larvae from far more resilient organisms than fruit fly maggots.

For the tiny larvae typically found in berries, stone fruits, or apples, the process is essentially invisible to your body. You absorb a trivial amount of extra protein and fat, and the rest moves along. There is no mechanism by which a common fruit fly larva could take hold in your intestine, reproduce, or cause infection. Your immune system and digestive chemistry simply do not give it the opportunity.

Intestinal Myiasis and the Rare Exceptions

While the overwhelming majority of accidental larva ingestion events pass without any symptoms, there is a recognized medical condition called intestinal myiasis, where fly larvae survive transit through the stomach and temporarily establish themselves in the gastrointestinal tract. This is rare and tends to involve specific fly species whose larvae are hardier than typical fruit fly maggots. When it does occur, it is sometimes called pseudomyiasis or accidental myiasis, because the larvae are not true gut parasites but rather organisms that happen to survive passage through the digestive system under unusual circumstances.

A case report from a four-year-old boy documented repeated episodes of cramping abdominal pain and diarrhea, along with the passage of live larvae in his stool, traced to his habit of eating ripe guava from his garden. The larvae were identified as Cochliomyia macellaria, a species commonly known as the secondary screwworm fly. Interestingly, standard antiparasitic medications did not resolve the problem; the boy recovered only after he stopped eating the contaminated guava.1PubMed Central. An Accidental Intestinal Myiasis Caused by Cochliomyia macellaria This case is instructive because it shows that repeated ingestion of larvae from the same contaminated source can maintain symptoms, even though a single accidental exposure would be far less concerning.

Another case report described intestinal myiasis caused by Clogmia albipunctata larvae, with symptoms including nausea, vomiting, abdominal distention, loss of appetite, weight loss, and intermittent diarrhea.2PubMed Central. Intestinal myiasis caused by Clogmia albipunctata in Nepal: a case report These are drain flies, not typically associated with fruit, but the case illustrates the general symptom pattern of intestinal myiasis regardless of the source.

However, researchers have questioned whether many reported cases of intestinal myiasis are genuine. Some fly larvae, like those of the Psychodinae family, have breathing requirements that make it unlikely they could survive, let alone develop, in the gastrointestinal tract. A review of these cases concluded that the evidence tends to favor the larvae being incidental environmental findings rather than true intestinal colonizers.3PubMed Central. Intestinal and Urinary Pseudomyiasis by Psychodinae Larvae in an Adolescent: A Fact, Fallacy, or Harmless Spectator? In other words, even in reported cases, many may not represent actual infection so much as larvae that were already present in the environment or on collecting materials and were mistaken for gut inhabitants.

The Bigger Risk Is What Is on the Fruit, Not Inside It

The worm living inside your apple is, ironically, among the least concerning things on it. A far more significant public health issue involves microscopic parasites and bacteria that can cling to the outer surface of fruits and vegetables. These organisms are deposited through contaminated water used for irrigation, contact with soil containing animal waste, or handling during harvest and sale.

Studies of fresh produce sold in open-air markets have found a striking variety of intestinal parasites on fruit and vegetable surfaces. One cross-sectional study in Ethiopia detected parasitic contamination in a substantial proportion of produce samples, with Ascaris lumbricoides being the most frequently found parasite at about 23%, followed by Strongyloides stercoralis larvae at roughly 19%, and cysts of Entamoeba histolytica at about 15%.4PLoS ONE. Parasitic contamination of fresh vegetables and fruits sold in open-air markets in peri-urban areas of Jimma City, Oromia, Ethiopia: A community-based cross-sectional study Another study in the same region found that roughly 28% of fruit and vegetable samples tested positive for various intestinal parasites, with Entamoeba histolytica cysts being the most common finding at about 10%.5PubMed Central. Prevalence of intestinal parasite and associated factors among fruits and vegetables collected from local markets of woldia town, north east Ethiopia

These parasites are not the same thing as the visible larva inside your fruit. They are microscopic, you cannot see them, and they get into your body not because you ate a worm but because you ate unwashed produce. The practical takeaway here is that thoroughly washing fruit under running water, or peeling it when possible, does far more to protect you than worrying about the occasional visible larva in a berry. The larva you can see is almost certainly harmless; the parasites you cannot see are the ones that cause diarrheal diseases worldwide.

Could You Have an Allergic Reaction?

For a very small number of people, the proteins in insect larvae could theoretically trigger an allergic response. Research into edible insect allergens has documented that allergic reactions to various insect species can occur, and that cross-reactivity exists between insect proteins and crustacean allergens like those in shrimp and crab.6PubMed Central. Allergens from Edible Insects: Cross-reactivity and Effects of Processing The main shared allergen is tropomyosin, a muscle protein found across arthropods.

In practice, this means if you have a known shellfish allergy, there is a theoretical basis for reacting to insect proteins as well. But the amount of protein in a single small fruit larva is minuscule compared to what you would encounter eating a serving of crickets or shrimp. A true allergic reaction from accidentally swallowing one tiny larva would be exceedingly unusual, though not technically impossible for someone with extreme sensitivity. If you have a severe crustacean allergy and you are concerned, it is worth mentioning to your allergist, but this scenario remains firmly in the “extremely unlikely” category for the general population.

Why the Disgust Feels So Intense

For most people, the worst consequence of eating a fruit worm is psychological. The revulsion you feel upon discovering half a larva in your apple is not a minor inconvenience; it can be strong enough to put you off that fruit for weeks or even months. This reaction has a neurological basis that goes deeper than simple squeamishness.

Your brain is wired to form powerful associations between foods and negative experiences, particularly experiences involving nausea or the perception of contamination. This is called conditioned taste aversion, and it is one of the most robust forms of associative learning in mammals. When a taste experience is followed by gastrointestinal distress (or even just the strong perception that something was wrong), the palatability of that food drops sharply, reducing how much you consume in the future.7PubMed Central. Conditioned taste aversion, drugs of abuse and palatability The evolutionary logic is clear: if a food made you sick once, avoiding it in the future is a survival advantage. The system does not wait for you to actually become ill; the mere cognitive appraisal that something disgusting was in your mouth can be enough to trigger the aversion.

This is why someone who bites into a wormy apple may find that all apples taste slightly off for a while, or may reflexively inspect every apple with suspicion for months afterward. The aversion is real, automatic, and difficult to override through logic alone. Knowing intellectually that the larva was harmless does not immediately undo the learned taste association. It does tend to fade with time and repeated safe experiences with the same food, but the initial reaction can be surprisingly persistent.

Pesticide Residues and What Larvae Absorb

A question people sometimes raise is whether eating a larva means you are also ingesting concentrated pesticide residues. The thinking goes that if the larva has been feeding on a treated fruit, it might accumulate pesticide chemicals in its body, creating a more concentrated dose than the fruit itself delivers.

Research on insect larvae and pesticide bioaccumulation suggests this concern is largely unfounded. A study on black soldier fly larvae exposed to various insecticides found that bioaccumulation factors were very low, at 0.01 or below for most substances tested. Even cypermethrin, which showed comparatively higher accumulation, had a bioaccumulation factor of 0.79 at the tested concentration, meaning the larvae still contained less pesticide per unit of body weight than was present in their food substrate.8PLoS ONE. Effects of insecticides on mortality, growth and bioaccumulation in black soldier fly (Hermetia illucens) larvae A bioaccumulation factor below 1 means the organism is not concentrating the chemical beyond what is already in its environment. So eating a larva does not give you a pesticide “dose multiplier” compared to eating the fruit itself.

The pesticide residue on the fruit you are eating is overwhelmingly the more relevant exposure. Regulatory agencies set maximum residue limits for produce, and washing or peeling fruit reduces that exposure further. The larva inside the fruit is, if anything, diluting and metabolizing some of what it consumed rather than concentrating it.

Slugs and Snails on Fruit Are a Different Story

One important distinction worth making: the worm or larva inside a piece of fruit is a very different animal from a slug or snail found on the outside of fruit. Slugs and snails can carry parasitic nematodes, most notably Angiostrongylus cantonensis, the rat lungworm. This parasite uses snails and slugs as intermediate hosts, and its larvae migrate through the snail’s body, including the foot and gastrointestinal tract.9PubMed. Histological studies of the African giant snail (Achatina fulica) experimentally infected with Angiostrongylus vasorum or Angiostrongylus cantonensis If a person accidentally ingests a slug or snail (or even its slime trail on unwashed produce, though this route is debated), there is a genuine risk of rat lungworm infection, which can cause eosinophilic meningitis, a serious and sometimes fatal inflammation of the membranes around the brain.

This risk is geographically concentrated in tropical and subtropical regions, particularly Southeast Asia, the Pacific Islands, the Caribbean, and parts of the southern United States, where the parasite is established in rat and snail populations. The key point is that the visible larvae inside fruit tissue (fly and moth larvae that developed there from eggs) are a fundamentally different risk category from slugs, snails, or their trails on the fruit’s exterior. The former are almost always benign; the latter, while still rare, carry a meaningfully higher risk.

Eating Insects on Purpose

The strong disgust reaction many people in Western countries feel about finding a larva in their food is, in global terms, a cultural outlier. Insects such as crickets, grasshoppers, and ants have been eaten for centuries and remain a regular part of the diet in many parts of Africa, Asia, Latin America, and Oceania.10PubMed Central. Edible Insects: A Historical and Cultural Perspective on Entomophagy with a Focus on Western Societies In some of these food traditions, insect larvae are specifically prized for their high protein and fat content. Mopane worms (actually caterpillars) are a dietary staple in parts of southern Africa. Witchetty grubs have been eaten by Aboriginal Australians for thousands of years. Silkworm pupae are street food across parts of East Asia.

Humans also carry genetic evidence of a long evolutionary relationship with insect consumption. Research on primates has found that genes encoding chitinase, an enzyme that helps break down chitin (the tough material in insect exoskeletons), are present in the human genome. Early primate ancestors appear to have had multiple working copies of this gene, and species that eat the most insects today tend to retain more functional copies. Humans have fewer working copies than heavily insectivorous primates, which likely reflects a dietary shift away from insects over millions of years, but the machinery for processing insect tissue has not disappeared entirely.

None of this is meant to suggest you should feel enthusiastic about the worm in your raspberry. But it does provide some biological reassurance: your body is not encountering something fundamentally alien when it digests an insect larva. Humans have been doing it, intentionally and accidentally, for a very long time.

When to Actually See a Doctor

For a single accidental ingestion of a larva found inside fruit, medical attention is almost never necessary. Your body will handle it without any intervention. However, there are a few specific situations where it makes sense to seek medical advice:

  • Repeated symptoms: If you develop ongoing abdominal cramping, diarrhea, or nausea that persists for more than a day or two after eating fruit from a particular source, especially if you notice anything unusual in your stool, it is worth getting checked. The guava case described earlier showed that repeated exposure to contaminated fruit from the same source can sustain symptoms.
  • Slug or snail ingestion: If you have reason to believe you swallowed a slug, snail, or produce visibly contaminated with snail slime (particularly in a tropical or subtropical region), mention it to a doctor. Rat lungworm infection symptoms can appear one to three weeks after exposure and include severe headache, stiff neck, and tingling or pain in the skin.
  • Allergic symptoms: If you experience hives, swelling, difficulty breathing, or other signs of an allergic reaction after eating fruit containing a larva, treat it as you would any allergic reaction. This is vanishingly rare from a single small larva, but people with severe arthropod or crustacean allergies should be aware of the possibility.

For the vast majority of people who bite into a piece of fruit and discover an unwelcome passenger, the appropriate response is a grimace, a glass of water, and the reassurance that your stomach has already taken care of the problem before you finished worrying about it.