Soft boiled eggs are safe to eat if the egg came from a reliable source and was cooked properly, but the risk is real enough that certain people should avoid them

A soft boiled egg—one with a runny yolk and set whites—can carry Salmonella, a bacteria that causes food poisoning. The bacteria lives inside the egg before it's cooked. Heat kills it, but a soft boil doesn't always reach a temperature high enough or long enough to kill all of it. The yolk stays warm but not hot enough to be sterile.

The actual risk depends on three things: where the egg came from, how fresh it is, and how you cook it. Eggs from commercial farms in the United States are far less likely to carry Salmonella than they were 20 years ago, thanks to vaccination programs. But the risk is not zero. If you are pregnant, very young, very old, or have a weakened immune system, even a small risk is worth avoiding.

Key Takeaways

  • Soft boiled eggs pose a Salmonella risk because the yolk does not reach a temperature that kills the bacteria reliably.
  • Commercial eggs in the United States are vaccinated against Salmonella at the farm level, which has reduced but not eliminated the risk.
  • Pregnant people, young children, older adults, and people with weakened immune systems should eat only fully cooked eggs.
  • If you do eat soft boiled eggs, buy them from a source you trust and use them within a few days of purchase.
  • Cooking an egg to 160°F (71°C) throughout kills Salmonella reliably; a soft boil typically reaches only 140–150°F in the yolk.

How Salmonella gets inside an egg

Salmonella lives in the intestines of chickens. It can contaminate an egg in two ways: the bacteria can be inside the yolk or white before the shell forms (inside the hen), or it can enter through the shell after the egg is laid. Modern egg farms in the United States vaccinate hens against Salmonella, which prevents the bacteria from getting into the yolk in the first place. This is why commercial eggs are safer now than they were decades ago.

Backyard and farm eggs are not vaccinated and carry a higher risk. If you buy eggs directly from someone who raises chickens, ask whether the hens are vaccinated. If you raise your own chickens, you cannot vaccinate them yourself—vaccination happens at the hatchery, before the birds arrive at the farm.

What temperature kills Salmonella in eggs

Salmonella dies at 160°F (71°C) when that temperature is held throughout the egg for at least a few seconds. A fully cooked egg—yolk and white both solid—easily reaches and holds this temperature. A soft boiled egg does not.

In a soft boil, the white sets at around 140°F, but the yolk stays much cooler in the center—often 130–140°F. That temperature is warm enough to feel hot to the tongue, but not hot enough to kill Salmonella reliably. Some bacteria may die, but some may survive. The longer you boil the egg, the hotter the yolk gets, but the moment the yolk stops being runny, you no longer have a soft boiled egg.

Who should not eat soft boiled eggs

The CDC (Centers for Disease Control and Prevention) recommends that certain groups avoid raw and undercooked eggs entirely. This includes pregnant people, children under 5, adults over 65, and anyone with a weakened immune system from illness or medication. For these groups, the risk of Salmonella poisoning is higher, and the illness is more likely to be severe.

If you fall into one of these categories, cook eggs until both the yolk and white are solid. There is no safe way to eat a soft boiled egg if you are in a high-risk group. If you are cooking for someone else and you do not know their health status, assume they may be in a high-risk group and cook eggs fully.

How to reduce the risk if you choose to eat soft boiled eggs

If you are not in a high-risk group and you want to eat soft boiled eggs, you can lower the risk by being careful about where the eggs come from and how fresh they are. Buy eggs from a grocery store or farmer's market where you can see the date they were packed. Use them within a few days. Older eggs are more likely to have bacteria that have had time to multiply.

Store eggs in the coldest part of your refrigerator, not on the door. Cold slows bacterial growth. Wash your hands and any surface that touches raw eggs. If an egg cracks before you cook it, throw it away. When you boil the egg, use water that is already at a rolling boil and keep it boiling for at least 4 to 6 minutes for a soft boil. The hotter the water and the longer the egg stays in, the more Salmonella you kill, even if you do not kill all of it.

What Salmonella poisoning feels like

Salmonella causes food poisoning with symptoms that usually start 6 to 72 hours after eating contaminated food. You may have diarrhea, fever, stomach cramps, and sometimes vomiting. Most people recover on their own within a week without treatment. Drink plenty of water and rest.

Seek medical care if you have a high fever, bloody stools, severe dehydration, or if you are in a high-risk group (pregnant, very young, very old, or immunocompromised). A doctor can test for Salmonella and prescribe antibiotics if needed, though antibiotics are not always necessary.

The difference between soft boiled and other cooking methods

A soft boiled egg has a runny yolk and set whites—the riskiest way to cook an egg for Salmonella. A medium boiled egg has a yolk that is soft in the very center but mostly cooked, which is still risky. A hard boiled egg has a yolk that is fully cooked and solid, which is safe. A fried egg with a runny yolk carries the same risk as a soft boil. A scrambled egg that is cooked until no liquid remains is safe.

If you want to eat eggs with a runny yolk and you want to lower the risk as much as possible, pasteurized eggs are an option. These are eggs that have been heat-treated in the shell to kill Salmonella without cooking the egg. They cost more and are not available everywhere, but they let you eat a soft boiled egg with much less risk. Look for them in the egg section of grocery stores that carry specialty items.

Frequently Asked Questions

Can I get Salmonella from a soft boiled egg if I buy organic or free-range eggs?

Organic and free-range eggs are not safer from Salmonella than conventional eggs unless the hens were vaccinated. Vaccination status depends on the farm, not on how the hens are raised. Ask the producer whether their hens are vaccinated. Conventional eggs from vaccinated hens are safer than organic eggs from unvaccinated hens.

What if I eat a soft boiled egg and nothing happens?

You may have been lucky, or the egg may not have carried Salmonella. One soft boiled egg without illness does not mean it is safe to eat them regularly. The risk is real but not certain—some eggs carry the bacteria and some do not. Repeated exposure increases your chances of getting sick eventually.

Are brown eggs safer than white eggs?

No. Egg color depends on the breed of hen and has nothing to do with Salmonella risk. Safety depends on vaccination status and how the egg was handled, not on shell color.

Can I tell if an egg has Salmonella by looking at it?

No. Salmonella does not change the appearance, smell, or taste of an egg. You cannot see it or detect it without a laboratory test. This is why cooking to the right temperature is the only reliable way to protect yourself.

Is it safe to eat soft boiled eggs if I cook them for longer than usual?

Cooking longer does kill more Salmonella, but there is no way to know when you have killed enough without a thermometer. If you use a food thermometer and cook until the center of the yolk reaches 160°F, the egg is safe—but at that point, the yolk is no longer runny.