Soft boiled eggs are safe for most people, but the risk depends on the egg's source and your health
A soft boiled egg with a runny yolk is safe if the egg came from a reliable source and was handled properly. The main concern is Salmonella, a bacteria that can live inside a raw or undercooked egg yolk. If you buy eggs from a grocery store in the United States, the risk is very low — commercial eggs are produced under safety rules that have reduced Salmonella cases significantly over the past two decades. If you buy eggs from a farmer's market or backyard chickens, the risk is higher but still manageable if you know the source and the birds are healthy.
The real difference is who should eat them. A soft boiled egg is fine for a healthy adult. It is not safe for pregnant people, young children under five, people over 65, or anyone with a weakened immune system — these groups face a much higher risk of serious illness if Salmonella is present. For these people, the yolk must be fully cooked and firm.
Key Takeaways
- Store-bought eggs in the United States carry a very low Salmonella risk because producers follow safety rules, but the yolk must still reach 160°F to be completely safe.
- Soft boiled eggs are safe for healthy adults but not for pregnant people, children under five, older adults, or people with weakened immune systems.
- Eggs from backyard chickens or farmers markets carry higher risk than store eggs and should only be soft boiled if you know the source and the birds are healthy.
- Salmonella lives inside the yolk, not the shell, so washing the outside does not reduce the risk of a runny yolk.
How Salmonella gets into eggs and why store-bought eggs are lower risk
Salmonella can be present inside an egg before the shell forms. It lives in the chicken's ovaries and intestines, and if a bird is infected, the bacteria can end up in the yolk or white. Store-bought eggs in the United States come from large producers that follow rules set by the U.S. Department of Agriculture. These rules include regular testing of flocks, vaccination of hens against Salmonella, and cleaning of facilities. Because of these measures, the chance that a single store-bought egg contains Salmonella is roughly 1 in 20,000.
Eggs from backyard flocks or small farms do not fall under the same rules. If you know the person raising the chickens and can confirm the birds are healthy and well-fed, the risk is lower. But without that knowledge, a soft yolk is riskier. If you buy from a farmer's market, ask the seller whether they test their flock or vaccinate their birds. A seller who can answer those questions is more trustworthy than one who cannot.
What temperature kills Salmonella in eggs
Salmonella dies at 160°F (71°C). A soft boiled egg — one with a runny yolk and set white — reaches only about 140°F to 150°F in the yolk, depending on how long it sits in hot water. That temperature is not high enough to kill the bacteria if it is present.
A hard boiled egg, where the yolk is fully cooked and firm, reaches 160°F throughout and is completely safe. If you want to eat a soft yolk but reduce risk further, you can use a food thermometer to check the yolk temperature. Some people also use pasteurized eggs, which have been heat-treated in the shell to kill Salmonella without cooking the egg. Pasteurized eggs cost more but are safe to eat soft boiled.
Who should avoid soft boiled eggs entirely
Pregnant people should not eat soft boiled eggs because Salmonella infection during pregnancy can cause miscarriage, premature birth, or serious illness in the newborn. Children under five have immune systems that are still developing and cannot fight off Salmonella as well as older children and adults. People over 65 and anyone taking medications that weaken the immune system (such as steroids or chemotherapy drugs) are also at high risk for severe illness.
For these groups, the only safe egg is one cooked until the yolk is firm. If you are cooking for a mixed household where some people fall into these categories, it is simpler to cook all eggs the same way rather than managing separate meals.
How to reduce risk when eating soft boiled eggs
Start with eggs from a source you trust. If you buy from a store, choose eggs that are clean and not cracked — a cracked shell makes it easier for bacteria to enter. Store eggs in the refrigerator at 40°F or below, and do not leave them at room temperature for more than two hours. Use eggs within three to four weeks of purchase.
When you cook, bring the water to a rolling boil before adding the eggs. This kills bacteria on the outside of the shell. Boil for four to six minutes for a soft yolk with a set white. If you are cooking for someone in a high-risk group, boil for ten to twelve minutes instead to may support the yolk reaches a safe temperature throughout.
Pasteurized eggs as a safer option for soft yolks
Pasteurized eggs have been heated in the shell to a temperature that kills Salmonella but does not cook the egg. They cost about 50 cents to $1 more per dozen than regular eggs, depending on the brand and where you shop. Brands like Davidson's and Safest Choice are widely available in grocery stores.
Pasteurized eggs cook the same way as regular eggs and taste the same. The yolk will still be runny if you boil for four to six minutes. Because the Salmonella risk is removed, pasteurized eggs are safe for pregnant people, young children, older adults, and people with weakened immune systems. If you eat soft boiled eggs regularly and fall into one of these groups, pasteurized eggs are worth the extra cost.
What happens if you eat a soft boiled egg with Salmonella
Most people who eat an egg containing Salmonella do not get sick. But if infection does occur, symptoms usually start between six hours and three days after eating. Symptoms include diarrhea, fever, stomach cramps, and sometimes vomiting. For a healthy adult, the illness usually lasts a few days and goes away on its own.
For pregnant people, young children, older adults, or people with weakened immune systems, Salmonella infection is much more serious. It can cause severe dehydration, bloodstream infection, or complications that require hospitalization. This is why these groups should not eat soft boiled eggs made from regular store-bought eggs, even though the risk is low.
Frequently Asked Questions
Can I eat a soft boiled egg if I am pregnant?
No. Salmonella infection during pregnancy can cause miscarriage, premature birth, or serious illness in the newborn. If you want to eat a soft yolk while pregnant, use pasteurized eggs instead. They are safe because the Salmonella risk has been removed during processing.
Are brown eggs safer than white eggs?
No. Egg color depends on the breed of chicken and has nothing to do with safety or nutrition. Both brown and white eggs from the same producer carry the same Salmonella risk. What matters is where the eggs come from, not their color.
Does washing the egg shell reduce the risk of a soft boiled egg?
Washing removes dirt and bacteria from the outside of the shell, which is good practice. But Salmonella lives inside the yolk, not on the shell, so washing does not reduce the risk of a runny yolk. The only way to kill Salmonella is to heat the yolk to 160°F.
How long can I keep soft boiled eggs in the refrigerator?
Soft boiled eggs should be eaten right away or within one to two hours of cooking. Do not store them in the refrigerator and reheat them later. If you want to store boiled eggs, cook them fully hard, and they will keep for up to one week in the refrigerator.
Are farm-fresh eggs safer than store-bought eggs?
Farm-fresh eggs are not automatically safer. They carry higher Salmonella risk than store-bought eggs because backyard flocks are not tested or vaccinated the way commercial flocks are. If you know the farmer and can confirm the birds are healthy, the risk is lower, but it is still higher than store eggs.