Soft boiled eggs are safe when the egg comes from a healthy chicken and you cook it properly, but the runny yolk does carry a small risk of salmonella that hard boiled eggs do not.

The risk is real but manageable. A raw or undercooked yolk can contain salmonella bacteria if the chicken that laid the egg was infected. For most people—healthy adults and older children—this risk is low enough that soft boiled eggs are eaten regularly without illness. For pregnant people, very young children, older adults, or anyone with a weakened immune system, the risk is higher, and hard boiled eggs are the safer choice.

The bacteria die when the yolk reaches 160°F (71°C) throughout. A soft boiled egg—one with a runny yolk and set whites—reaches only about 140°F (60°C) in the center, which is why the yolk stays liquid. This is the trade-off: you get the texture you want, but you accept a small chance of foodborne illness.

Key Takeaways

  • Soft boiled eggs carry a small risk of salmonella because the runny yolk does not reach the temperature needed to kill the bacteria.
  • Healthy adults and older children can eat soft boiled eggs regularly with low risk, but pregnant people, very young children, and immunocompromised people should choose hard boiled eggs instead.
  • Cooking time matters: 4 to 6 minutes produces a runny yolk; 7 to 8 minutes produces a jammy center; 10 to 12 minutes produces a fully cooked yolk.
  • The source of the egg matters less than you might think—salmonella can be present in eggs from any farm, including backyard chickens and organic producers.
  • If you are in a high-risk group and want soft boiled eggs, pasteurized eggs reduce the risk significantly, though they are harder to find in regular grocery stores.

How Salmonella Gets Into Eggs

Salmonella bacteria live in the intestines of chickens. If a chicken is infected, the bacteria can end up inside the egg before the shell forms, or on the outside of the shell during laying. Either way, the bacteria can survive on a raw or undercooked yolk.

This happens in both large commercial operations and small backyard flocks. Organic eggs, cage-free eggs, and eggs from farmers markets are not safer from salmonella than conventional eggs. The bacteria does not care where the chicken lives. A chicken can look and act completely healthy and still carry salmonella without showing any signs of illness.

The good news: salmonella is not common. The U.S. Food and Drug Administration estimates that roughly 1 in 20,000 eggs contains salmonella inside the shell. That means most people who eat soft boiled eggs never encounter the bacteria. But the risk is not zero, which is why it matters for certain groups.

Who Should Avoid Soft Boiled Eggs

If you are pregnant, very young (under 5), very old (over 65), or have a condition that weakens your immune system—such as HIV, diabetes, or cancer treatment—your body cannot fight off salmonella as well as a healthy adult can. For these groups, even a small risk is worth avoiding.

People taking immunosuppressant medications, including some drugs for autoimmune disease, fall into this category too. If you are unsure whether your condition or medication puts you at higher risk, ask your doctor. The answer is usually yes or no, and it takes one conversation.

If you live with someone in a high-risk group, soft boiled eggs are still safe for you to eat—salmonella does not spread through the air or by touch. But wash your hands after handling raw eggs and clean any surfaces the raw egg touched, just as you would with any raw food.

The Right Temperature and Timing for Soft Boiled Eggs

Bring water to a rolling boil in a pot, then gently lower room-temperature eggs into the water using a spoon. Start timing when ready. For a runny yolk with set whites, cook for 4 to 6 minutes—4 minutes gives you a very liquid center, 6 minutes gives you a slightly thicker yolk that still runs.

If you want a jammy yolk (soft but not runny), cook for 7 to 8 minutes. At 10 to 12 minutes, the yolk is fully cooked and pale yellow throughout. These times assume large eggs; medium eggs cook 1 minute faster, and extra-large eggs cook 1 minute slower.

Transfer the eggs to an ice bath when ready when the timer goes off. This stops the cooking and sets the whites completely. Leave them in the ice bath for at least 2 minutes. The yolk will not cook further once you remove the egg from hot water, so the ice bath is just for cooling and handling.

Pasteurized Eggs as an Alternative

Pasteurized eggs have been heat-treated to kill salmonella bacteria while still in the shell. They look and cook like regular eggs, but the risk of salmonella is nearly eliminated. You can eat them soft boiled without worry, even if you are pregnant or immunocompromised.

The catch: pasteurized eggs are harder to find. Some grocery stores carry them in the regular egg section, but you may need to check specialty stores, order online, or ask your grocer to stock them. They cost slightly more than regular eggs. If you are in a high-risk group and want soft boiled eggs regularly, they are worth seeking out.

Pasteurized eggs cook slightly differently—the whites set a bit faster—but the difference is small. Use the same timing as regular eggs and adjust by 30 seconds if needed.

What Salmonella Poisoning Feels Like

If you do get salmonella, symptoms usually start 6 to 72 hours after eating the contaminated food. You will feel stomach cramps, diarrhea, and fever. Most people recover on their own within a week without treatment. Drink plenty of water and rest.

Seek medical care if you have severe diarrhea, blood in your stool, a fever above 102°F (39°C), or signs of dehydration like extreme thirst or dark urine. These are rare, but they can happen, especially in older adults or people with weakened immune systems.

Frequently Asked Questions

Can I eat soft boiled eggs if I am pregnant?

No, not safely. Salmonella infection during pregnancy can cause serious complications for you and your baby. Hard boiled eggs are the safe choice. If you want soft boiled eggs, ask your doctor about pasteurized eggs, which eliminate the risk.

Are brown eggs safer than white eggs?

No. Egg color depends on the chicken breed and has nothing to do with salmonella risk. A brown egg and a white egg from the same farm have the same risk. The shell color is just pigment.

What if I crack a soft boiled egg and the white is still runny?

Put it back in the hot water for another minute or two. A runny white means the egg is undercooked overall, and the yolk is likely too soft to eat safely. The whites should be completely set and opaque before you eat the egg.

Is it safe to eat soft boiled eggs from backyard chickens?

No more or less safe than store-bought eggs. Backyard chickens can carry salmonella just like any other chicken. If you raise your own chickens, keep their living space clean and wash your hands after handling them or their eggs, but do not assume they are salmonella-free.

Can I make soft boiled eggs ahead of time and refrigerate them?

Yes. Refrigerate them in their shells within 2 hours of cooking. They will keep for up to 4 days. Reheat them gently in warm (not boiling) water for a few minutes before eating, or eat them cold. Do not leave cooked eggs at room temperature for more than 2 hours.