How Do Eggs Get Salmonella Inside and On the Shell?

Eggs can carry Salmonella in two fundamentally different ways: the bacteria can already be inside the egg before the shell even forms, or they can work their way in from the outside after the egg is laid. The first route is the more surprising one, and it’s the reason even clean, uncracked eggs can sometimes make you sick.

Contamination From Inside the Hen

The strain most commonly linked to egg-borne illness, Salmonella Enteritidis, has a unique ability to infect a hen’s reproductive tract. After colonizing the intestines, the bacteria hijack immune cells called macrophages, essentially using the hen’s own defense system as a transport vehicle to reach internal organs, including the ovary and oviduct. Once established there, the hen becomes a “carrier bird,” often showing no signs of illness while passing bacteria directly into eggs as they form. This is called vertical transmission, and it means the yolk or white can be contaminated before the shell is ever deposited around it.

Because the bacteria live inside immune cells, the hen’s body has a hard time clearing the infection. Salmonella effectively hides from the immune response, persisting in reproductive tissue for extended periods. A single infected hen can lay contaminated eggs intermittently over weeks or months.

Contamination Through the Shell

The second route is external. Feces, contaminated bedding, or dirty nesting surfaces can deposit Salmonella on the outside of the shell. From there, bacteria can migrate inward through the shell’s thousands of tiny pores. The egg has three physical defenses against this: a waxy outer coating called the cuticle, the crystalline shell itself, and a pair of thin membranes lining the inside of the shell.

Those defenses aren’t always reliable. The eggshell is most vulnerable in the first minutes after being laid, when the cuticle hasn’t fully hardened and some pores remain open. Temperature also plays a role. A freshly laid egg is at about 42°C (the hen’s body temperature). When it hits cooler air, the contents contract slightly, creating a small vacuum that can pull bacteria inward through the pores. In older eggs, the cuticle dries out and shrinks, leaving pores more exposed. Without a well-formed cuticle, bacterial penetration becomes a frequent event rather than a rare one.

Does Housing Type Matter?

You might assume that free-range eggs are safer or, conversely, that caged hens produce cleaner eggs. The evidence is less clear-cut than either side suggests. Free-range hens face more environmental exposure to wild birds, soil bacteria, and weather stress, all of which could increase Salmonella risk. On the other hand, caged systems can concentrate bacteria in shared environments. Research comparing the two has found no significant difference in Salmonella prevalence between free-range and conventional cage production systems. Housing type matters less than flock management, vaccination, biosecurity practices, and how quickly eggs are collected and refrigerated.

How It Spreads in Your Kitchen

Even if the inside of an egg is perfectly clean, the outside of the shell may not be. Cracking an egg transfers whatever is on the shell surface to your hands, the counter, and the egg contents. One particularly risky habit is separating yolks from whites by passing the yolk back and forth between the two halves of the shell. This technique forces the raw egg to repeatedly contact the outer shell surface. Studies on eggshell-borne pathogens found that 68% of egg white samples and 14% of yolk samples became cross-contaminated using this method. If those components go into a dish that isn’t fully cooked (think homemade mayonnaise, mousse, or cocktails with egg white), any bacteria present will survive to the plate.

A safer alternative is using an egg separator tool or clean hands to isolate the yolk, minimizing contact with the shell exterior. Washing your hands after handling raw eggs, and cleaning any surfaces the shell touched, cuts the risk of spreading bacteria to other foods.

Why Cooking Temperature Matters

Salmonella is reliably killed by heat. Egg dishes need to reach an internal temperature of 160°F (71°C) to be considered safe. For casseroles, quiches, and soufflés, the USDA recommends that same 160°F threshold. If you’re reheating a previously cooked egg dish, bring it to 165°F. The simplest visual rule: cook eggs until both the white and yolk are completely firm. A runny yolk hasn’t reached the temperature needed to eliminate Salmonella throughout.

For recipes that call for raw or barely cooked eggs, you can heat the eggs separately in liquid form over low heat, stirring constantly, until the mixture hits 160°F. This pasteurizes the eggs without scrambling them, making dishes like hollandaise or Caesar dressing safer.

How Pasteurized Eggs Are Made

Commercially pasteurized shell eggs go through a carefully controlled heat treatment designed to kill bacteria without cooking the egg inside. One established method uses a 57°C (135°F) circulating water bath for 25 minutes, which reduces Salmonella by about 99.9%. More aggressive protocols combine water bath heating with extended time in a hot air oven, achieving reductions of 99.99999%, essentially eliminating the bacteria entirely. The egg still looks and tastes raw afterward because the temperatures stay below the point where proteins begin to set. Pasteurized eggs are the safest choice for any recipe where the egg won’t be fully cooked.

Why Refrigeration Slows the Problem

An internally contaminated egg might contain only a small number of Salmonella cells when it’s first laid. At room temperature, those bacteria multiply rapidly. Refrigeration at 40°F (4°C) or below doesn’t kill Salmonella, but it essentially freezes population growth, keeping bacterial counts low enough that the egg remains far less dangerous. This is why the United States requires refrigeration of commercial eggs from processing plant to store shelf to your kitchen. Leaving eggs out on the counter for extended periods, especially in warm weather, gives any bacteria present the chance to multiply to levels that are more likely to cause illness.

The combination of refrigeration, cooking to proper temperatures, and avoiding shell contact with foods you plan to eat raw covers the vast majority of egg-related Salmonella risk. The contamination can start inside the hen or work its way through the shell, but in both cases, cold storage and heat are what stand between the bacteria and your plate.