Salmonella can be in both places, but the shell surface is far more commonly contaminated than the egg’s interior. Multiple studies testing commercial eggs have recovered Salmonella from eggshell rinses while finding none inside the egg itself. That said, internal contamination does happen, and when it does, it tends to be more dangerous because cooking an intact egg with bacteria sealed inside the yolk is trickier than killing organisms sitting on the outside. The story of how Salmonella gets onto and into an egg involves the hen’s own biology, the egg’s surprisingly sophisticated defense system, and decisions made long after the egg leaves the nest.
How Salmonella Gets on the Shell
The most straightforward route is fecal contamination. Hens lay eggs through the same opening (the cloaca) that they use to excrete waste. If a hen is carrying Salmonella in her intestinal tract, the bacteria can land on the shell as the egg passes through. Even in a clean environment, the shell can pick up bacteria from nesting material, other birds’ droppings, or contaminated surfaces in the coop. An Australian study testing unwashed commercial eggs from 26 flocks recovered Salmonella from eggshell rinses in five of those flocks, but found no Salmonella inside any of the eggs when the shells were crushed open and the contents tested separately.1PubMed. Recovery of Salmonella from eggshell wash, eggshell crush, and egg internal contents of unwashed commercial shell eggs in Australia That pattern, bacteria on the outside but not inside, shows up repeatedly in surveillance work.
A comparison of shell rinse and shell crush methods for detecting Salmonella on U.S. commercial eggs found positive rates of roughly 5% for each technique, with the crush method slightly more sensitive because it captures bacteria embedded within pores and membranes rather than just sitting on the surface.2PubMed. Recovery of Salmonella from commercial shell eggs by shell rinse and shell crush methodologies The takeaway for home cooks is that even a clean-looking shell can harbor bacteria in microscopic crevices you cannot see or feel.
How Salmonella Gets Inside the Egg
Internal contamination happens through two distinct pathways. The first, called transovarian or vertical transmission, occurs when a hen’s reproductive tract is already infected. Salmonella Enteritidis, the serovar most associated with egg-borne illness worldwide, has an unusual affinity for the hen’s reproductive organs.3PubMed Central. An Investigation About the Historic Global Foodborne Outbreaks of Salmonella spp. in Eggs: From Hatcheries to Tables Research has shown that S. Enteritidis preferentially colonizes the tubular gland cells of the isthmus, the part of the oviduct where the shell membranes form around the egg. In laboratory and live-hen experiments, the isthmus was significantly more heavily invaded than the magnum, the section where egg white is deposited.4PubMed. Tubular glands of the isthmus are the predominant colonization site of Salmonella enteritidis in the upper oviduct of laying hens This means the bacteria can be deposited on or within the shell membranes or the albumen before the shell even hardens.
Even so, vertical transmission into the edible contents is rare. One controlled study infected laying hens with Salmonella Typhimurium and then tested every egg laid over the course of the trial. Salmonella was never recovered from the internal contents of any egg.5PubMed Central. Study of Salmonella Typhimurium Infection in Laying Hens That does not mean it never happens in the real world, but it underscores that the egg has strong internal defenses that keep most contamination events from reaching the yolk or albumen.
The second pathway is horizontal: bacteria already on the shell work their way inward through pores. This can happen when conditions are warm and moist, when the cuticle has been damaged, or when the egg sits in contaminated material for extended periods. This route matters more for consumers handling eggs at home than vertical transmission does, because it is the route most influenced by storage and handling choices.
The Egg’s Built-In Defense System
An egg is not a passive container. It has multiple layers of protection that evolved to keep a developing embryo safe from infection, and those same defenses protect a table egg from bacterial invasion.
The outermost barrier is the cuticle, a thin proteinaceous coating laid down in the hen’s oviduct just before the egg is laid. It acts as both a physical plug over the thousands of tiny pores in the shell and a chemical barrier. Research has shown that eggs with the best cuticle coverage were never penetrated by bacteria, and that the quality of the cuticle is moderately heritable, meaning breeders could theoretically select for hens that lay better-protected eggs.6PubMed. Enhancing the egg’s natural defence against bacterial penetration by increasing cuticle deposition Contamination progresses through stages: bacteria first attach to the surface, then penetrate through the cuticle and shell, then multiply in the underlying membranes, and only finally reach the egg contents.7PubMed Central. Effect of Egg Washing and Hen Age on Cuticle Quality and Bacterial Adherence in Table Eggs Each stage is a bottleneck where the egg’s defenses can stop the process.
If bacteria do breach the shell, the egg white presents a hostile environment. The albumen contains proteins that actively fight bacteria. Ovotransferrin starves bacteria of iron, which they need to grow, and also appears to damage bacterial cell membranes directly through physical interaction with the cell surface.8PubMed Central. The Role of Ovotransferrin in Egg-White Antimicrobial Activity: A Review Lysozyme, another egg white protein, attacks bacterial cell walls. The concentrations of these proteins matter: depending on how much is present, the effect ranges from outright killing bacteria to merely holding their numbers steady.9PubMed. Antimicrobial defenses of table eggs: Importance of antibacterial proteins in egg white as a function of hen age in an extended production cycle This is one reason that Salmonella, when it does get inside an egg through vertical transmission, is typically deposited in the albumen or on the yolk membrane rather than free in the yolk — and stays contained there, at least initially.
Why Storage Temperature Changes Everything
The egg’s internal defenses buy time, but they do not hold forever, especially if the egg is kept warm. Temperature is the single biggest factor determining whether a small number of Salmonella cells inside an egg remain harmless or multiply to levels that cause illness.
In eggs stored at room temperature (around 25°C or 77°F), Salmonella Enteritidis inoculated into the yolk multiplied from low starting numbers to roughly 100 million cells per milliliter within 24 hours.10PubMed. Multiplication in Egg Yolk and Survival in Egg Albumen of Genetically and Phenotypically Characterized Salmonella Enteritidis Strains A separate study of Salmonella Typhimurium found that even when bacteria were placed in the albumen rather than the yolk, they migrated through the yolk membrane and grew substantially in the yolk within four days at 25°C. At refrigerator temperature (5°C), counts stayed flat over the same period.11PubMed Central. Refrigeration of eggs influences the virulence of Salmonella Typhimurium
The yolk membrane, which separates the yolk from the albumen, degrades as an egg ages. A fresh membrane is tough enough to prevent or slow bacterial crossing, but over time and at warmer temperatures, it weakens. Research using eggs from six genetically distinct lines of hens confirmed that Salmonella Enteritidis could cross the yolk membrane and multiply inside the yolk during storage at 30°C, even when starting from very small numbers.12PubMed. In vitro penetration of Salmonella Enteritidis through yolk membranes of eggs from 6 genetically distinct commercial lines of laying hens The practical lesson: refrigerate your eggs and use them reasonably promptly. Cold temperatures do not kill Salmonella, but they keep it from multiplying to dangerous levels.
The Washing Debate
This is where egg safety policy diverges sharply between countries. In the United States, Canada, and Japan, commercial eggs are washed and sanitized before sale. In the European Union and many other countries, eggs are sold unwashed, with the cuticle intact. Both systems aim to reduce Salmonella risk, but they approach it from opposite directions.
The American system removes bacteria from the shell surface, which eliminates the most common source of contamination. However, the washing process also strips away the cuticle. One study found that washed eggs had significantly damaged cuticles and that Salmonella Typhimurium penetrated washed eggs at a significantly higher rate than unwashed eggs.13PubMed Central. Effect of egg washing and correlation between eggshell characteristics and egg penetration by various Salmonella Typhimurium strains A follow-up study testing different Salmonella serovars found more variable results: for some strains, washing made no significant difference in penetration rates, though cuticle quality remained a strong predictor of whether bacteria could get through the shell regardless of washing.14PubMed. Effect of egg washing and correlation between cuticle and egg penetration by various Salmonella strains
Wash water temperature adds another wrinkle. Standard commercial washing uses water averaging 49°C (about 120°F), which raises the internal temperature of the egg by 7 to 8 degrees. This creates warmer conditions inside the shell that can favor bacterial growth if any Salmonella is present. Research has shown that cooler wash water, combined with high pH (between 10 and 12), can effectively clean eggs while allowing faster post-wash cooling, without increasing microbial counts for roughly five weeks after processing.15PubMed. The effects of commercial cool water washing of shell eggs on Haugh unit, vitelline membrane strength, aerobic microorganisms, and fungi
The EU rationale for leaving eggs unwashed is that the intact cuticle serves as a continuous barrier. Because unwashed eggs still carry a functioning cuticle, they do not strictly require refrigeration during transport and short-term retail display, though refrigerating them at home is still a good idea. Once a cuticle-intact egg is refrigerated, it should stay cold, because moving it back to room temperature causes condensation on the shell, which can draw surface bacteria through the pores.
How Vaccination Protects Eggs Before They Are Laid
Controlling Salmonella in the hen is arguably more effective than any post-lay treatment, because it addresses both shell and internal contamination at the source. Vaccination programs for layer and breeder flocks have become a major tool in many countries.
A large-scale comparison of integrated poultry operations found that vaccinating breeder hens cut Salmonella prevalence in the reproductive tract from about 52% to 14%, and reduced contamination in the resulting chicks, the farm environment, and the birds entering processing plants.16PubMed Central. Effect of Salmonella vaccination of breeder chickens on contamination of broiler chicken carcasses in integrated poultry operations For laying hens specifically, live Salmonella Enteritidis vaccines administered in multiple doses during the rearing period reduced bacterial shedding, organ colonization, and egg contamination throughout the laying period.17PubMed. Evaluation of different live Salmonella enteritidis vaccine schedules administered during layer hen rearing to reduce excretion, organ colonization, and egg contamination Experimental ghost vaccines, which use emptied bacterial cell envelopes as an immune stimulus, have performed comparably to commercial vaccines in reducing internal egg contamination after challenge with virulent Salmonella strains.18PubMed. Comparative evaluation of Salmonella Enteritidis ghost vaccines with a commercial vaccine for protection against internal egg contamination with Salmonella
Vaccination does not make a flock Salmonella-free, but it lowers the bacterial load enough to dramatically reduce the odds that any given egg is contaminated on the shell or internally. In countries like the United Kingdom, mandatory vaccination of layer flocks contributed to a well-documented collapse in human Salmonella Enteritidis cases starting in the late 2000s.
Backyard Flocks Versus Commercial Operations
People who keep backyard chickens sometimes assume their eggs are safer because the birds roam outdoors and are not part of an industrial system. The evidence is mixed. A North Carolina State study found that Salmonella was actually less prevalent in fecal and environmental samples from backyard farms (about 19%) than from larger commercial operations (about 52%).19Foodborne Pathogens and Disease. Study Compares Salmonella Rates in Backyard, Commercial Poultry Farm Samples But a Bangladeshi survey found that backyard and commercial layer farms had nearly identical Salmonella prevalence, around 28% versus 23%, with no statistically significant difference.20Bangladesh Journal of Veterinary and Animal Sciences. A cross-sectional survey on the prevalence and antimicrobial resistance of Salmonella in commercial and backyard chicken farms in Bangladesh
The inconsistency likely reflects the enormous variation in backyard flock management. A well-kept coop with good hygiene might harbor little Salmonella, while a neglected backyard operation with birds wading through their own waste could be worse than a commercial cage house. The bigger issue for backyard egg producers is that their eggs are almost never washed in a controlled process and are rarely refrigerated as promptly as commercial eggs. If you keep your own chickens, collecting eggs frequently, keeping nesting boxes clean, and refrigerating eggs soon after collection are the interventions that matter most.
What Cooking Actually Does to Salmonella in Eggs
Heat kills Salmonella reliably, but the relationship between temperature, time, and the medium the bacteria are sitting in is not as simple as “cook it until it is done.” In whole liquid egg, a four-log reduction (meaning roughly 99.99% of the bacteria are killed) requires heating at 60°C (140°F) for nearly three minutes, while at 64°C (147°F) the same reduction takes about 18 seconds.21PubMed. Thermal Inactivation Kinetics of Three Heat-Resistant Salmonella Strains in Whole Liquid Egg The fat and protein in egg yolk are protective for bacteria, making them harder to kill than they would be in plain water. When salt is added, as it is in many processed egg products, thermal resistance increases further: at 64.4°C, the time needed to eliminate Salmonella jumps dramatically in 10% salted yolk compared to plain yolk.22PubMed. Thermal Resistance of Salmonella spp. and Listeria monocytogenes in Liquid Egg Yolk and Egg Yolk Products
For home cooking, the practical translation is straightforward. A fully cooked egg, scrambled until firm, fried with a set yolk, or hard-boiled, reaches temperatures well above what is needed to kill Salmonella. The risk concentrates in preparations where the yolk stays liquid or the egg is barely heated: soft-boiled eggs, sunny-side up with a runny center, homemade mayonnaise, hollandaise sauce, mousse, tiramisu. These preparations are not inherently dangerous if you start with clean, fresh, refrigerated eggs from a well-managed source, but they carry more risk than a fully cooked egg. For people who are immunocompromised, pregnant, very young, or elderly, the standard advice to avoid runny egg preparations exists for good reason.
Duck Eggs and Other Poultry
Chicken eggs dominate the Salmonella conversation, but other poultry eggs carry their own risks. Duck eggs have historically been associated with Salmonella contamination, partly because ducks are often raised with less confinement and more exposure to environmental sources. An early multi-trial study of duck breeder farms found no Salmonella on shells or inside eggs from confined flocks laying in clean conditions, but detected S. Enteritidis on dirty eggshells from farms where ducks were not confined, especially during warmer months.23PubMed. The frequency of salmonellae on duck eggs A more recent Indonesian study testing duck eggs sold at retail found Salmonella species present in all six samples examined.24Journal of Indonesian Medical Laboratory and Science (JoIMedLabS). Identification of Salmonella Sp. in Duck Eggs Sold in Larangan Village These studies are small and geographically specific, so they do not prove that all duck eggs are riskier. But duck eggs are generally less regulated, less likely to be washed in a controlled process, and more likely to come from outdoor systems where environmental contamination is harder to control. Cooking duck eggs thoroughly is especially prudent.
The Role of Fimbriae in Shell Versus Internal Contamination
One of the more counterintuitive findings in Salmonella research involves the hair-like structures called fimbriae that some bacterial strains use to attach to surfaces. A study comparing wild-type Salmonella Enteritidis with a mutant strain lacking type 1 fimbriae found that the mutant actually infected the ovaries and oviducts more heavily. But when it came to egg contamination, the shells were more frequently contaminated by the wild-type strain, the one with intact fimbriae.25Avian Pathology. Effect of type 1 fimbriae of Salmonella enterica serotype Enteritidis on bacteraemia and reproductive tract infection in laying hens In other words, the ability to stick to surfaces made the bacteria better at clinging to the eggshell but did not help it colonize the hen’s reproductive organs. This helps explain why shell contamination and internal contamination are partly independent problems driven by different bacterial traits, and why interventions that reduce one do not automatically reduce the other.