Soft boiled eggs are safe when the egg comes from a healthy chicken and you cook it properly
A soft boiled egg—one where the white is set but the yolk stays runny—is safe to eat for most people. The risk comes not from the soft yolk itself, but from Salmonella bacteria, which can live inside a raw or undercooked egg. Cooking the white to a solid state kills most bacteria on the outside; the yolk does not need to reach the same temperature to be safe for a healthy adult.
The U.S. Department of Agriculture says that eggs cooked to 160°F (71°C) throughout eliminate Salmonella. A soft boiled egg does not reach that temperature in the yolk, but the risk is low if the egg came from a healthy chicken and was handled cleanly. The real danger is to people whose immune systems cannot fight off infection: pregnant women, very young children, older adults, and anyone with a weakened immune system.
Key Takeaways
- Soft boiled eggs carry a small risk of Salmonella infection, which is higher for pregnant women, young children, older adults, and people with weakened immune systems.
- The bacteria lives inside the egg, not just on the shell, so washing the outside does not eliminate the risk.
- Eggs from backyard chickens or unknown sources carry higher risk than store-bought eggs, which come from flocks tested for Salmonella.
- If you are in a high-risk group, cooking the yolk until it is fully set removes the risk almost entirely.
- Proper storage—keeping eggs refrigerated and using them within three to four weeks—reduces the chance of bacterial growth.
Where Salmonella comes from in eggs
Salmonella bacteria can be present inside an egg before the shell even forms. An infected hen passes the bacteria into the yolk or white as the egg develops. The bacteria does not make the chicken sick, and you cannot see, smell, or taste it in the egg.
Store-bought eggs in the United States come from flocks that are monitored for Salmonella. The risk of finding the bacteria in a single store egg is roughly 1 in 20,000, according to food safety data. Eggs from backyard chickens, farmers markets, or unknown sources carry much higher risk because those flocks are not tested. Even a chicken that looks healthy can carry the bacteria.
How temperature affects safety in soft boiled eggs
The white of an egg sets at around 140°F (60°C), while the yolk stays runny until about 158°F (70°C). A soft boiled egg—cooked for 4 to 6 minutes in boiling water—reaches roughly 140–150°F in the white and stays well below that in the center of the yolk.
This temperature kills most Salmonella on the surface of the egg, but not all bacteria inside the yolk. For a healthy adult with a normal immune system, the remaining risk is very small. Your stomach acid and immune response can handle the small number of bacteria that might be present. For vulnerable groups—pregnant women, infants, people over 65, and anyone with a compromised immune system—even a small risk may not be worth taking.
Who should avoid soft boiled eggs
The CDC recommends that pregnant women, young children under 5, adults over 65, and people with weakened immune systems eat only eggs cooked until both the white and yolk are fully set and firm. This includes people living with HIV, those taking immunosuppressant medications, and anyone recovering from serious illness.
If you fall into one of these groups and want to eat eggs, cook them until the yolk is solid. A hard boiled egg or a fully cooked scrambled egg carries virtually no risk. If you are unsure whether your immune system is compromised, talk to your doctor about what foods are safe for you.
How to reduce risk when eating soft boiled eggs
If you are a healthy adult and want to eat soft boiled eggs, start with store-bought eggs from a reliable source. Avoid eggs from unknown origins or backyard flocks unless you know the flock has been tested for Salmonella.
Keep eggs refrigerated at 40°F (4°C) or below, and use them within three to four weeks of purchase. Do not eat cracked or visibly dirty eggs. Wash your hands after handling raw eggs, and clean any surface or utensil that touched raw egg before using it for other food. When you boil the egg, use water that is at a rolling boil and time it carefully—4 to 6 minutes for a soft boiled egg with a runny yolk.
The difference between soft boiled and other cooking methods
A soft boiled egg leaves the yolk runny and carries the small risk described above. A medium boiled egg (7 to 8 minutes) has a yolk that is mostly set but slightly soft in the very center—still some risk, though less. A hard boiled egg (10 to 12 minutes) has a fully set yolk and is considered safe for all groups, including pregnant women and young children.
Scrambled eggs, fried eggs cooked until the yolk is set, and baked eggs all reach high enough temperatures to kill Salmonella when cooked properly. If you are in a high-risk group, these methods are safer choices than soft boiled.
What to do if you think you have food poisoning from an egg
Salmonella infection causes diarrhea, fever, and stomach cramps, usually starting 6 to 72 hours after eating the contaminated food. Most people recover on their own within a week without treatment. Drink plenty of fluids and rest.
See a doctor if you have severe diarrhea lasting more than three days, blood in your stool, a fever above 102°F (39°C), or signs of dehydration like extreme thirst or dark urine. Older adults, young children, and people with weakened immune systems should contact a doctor sooner. Do not take over-the-counter anti-diarrheal medication without talking to a doctor first, as it can sometimes make the infection worse.
Frequently Asked Questions
Can I eat soft boiled eggs if I am pregnant?
No. The CDC recommends that pregnant women eat only eggs cooked until both the white and yolk are fully set. Salmonella infection during pregnancy can cause serious complications. Cook your eggs until the yolk is firm.
Is a soft boiled egg safer if I wash the shell first?
Washing the shell removes dirt and reduces surface bacteria, but Salmonella lives inside the egg, not just on the outside. Washing helps with general food safety but does not eliminate the risk of a soft boiled egg.
How do I know if an egg has Salmonella before I cook it?
You cannot tell by looking, smelling, or tasting. Salmonella has no visible signs. Your only protection is buying from a reliable source, storing eggs properly, and cooking them to a safe temperature.
Is a soft boiled egg safe if it is from a backyard chicken?
Backyard flocks are not tested for Salmonella, so the risk is much higher than with store-bought eggs. If you want to eat soft boiled eggs from backyard chickens, know that the risk is real and may not be worth it, especially if anyone in your household is pregnant, very young, or has a weakened immune system.
What temperature should I cook an egg to if I want it to be completely safe?
Cook eggs until both the white and yolk are fully set and firm. This happens at around 160°F (71°C) throughout the egg. A hard boiled egg (10 to 12 minutes in boiling water) or a fully cooked scrambled or fried egg meets this standard.