Soft boiled eggs are safe to eat for most people when cooked properly, but the risk depends on how the egg was handled before cooking and who is eating it
A soft boiled egg cooked to 160°F (71°C) for at least 3.5 minutes kills the bacteria most likely to cause foodborne illness. The yolk stays runny, but the white sets firm. The real safety question is not whether soft eggs can be safe—they can—but whether the egg itself was contaminated before you cooked it, and whether you or someone in your household is in a group where even a small risk matters.
Salmonella, the main concern with undercooked eggs, lives inside the egg before you crack it. Cooking to the right temperature kills it. But some people—pregnant women, young children, older adults, and anyone with a weakened immune system—should not eat runny yolks at all, even from properly cooked eggs, because the risk is not zero.
Key Takeaways
- Soft boiled eggs reach a safe temperature when the white is fully set and the yolk is still runny, which takes 3.5 to 4 minutes in boiling water.
- Salmonella is killed at 160°F (71°C), but the bacteria lives inside the egg before cooking, so the source of the egg matters less than the cooking time.
- Pregnant women, children under 5, adults over 65, and people with compromised immune systems should eat fully cooked eggs with no runny yolk.
- Cracked or visibly dirty eggs should be discarded before cooking, as bacteria on the shell can contaminate your hands and kitchen surfaces.
How Temperature and Time Kill Salmonella in Soft Boiled Eggs
Salmonella dies at 160°F (71°C) when held at that temperature. A soft boiled egg reaches this temperature throughout the white and the outer edge of the yolk in about 3.5 to 4 minutes of boiling. The center of the yolk stays cooler and remains runny, which is the whole point of a soft boiled egg.
The timing depends on the size of the egg. A large egg takes 3.5 to 4 minutes; a medium egg takes 3 to 3.5 minutes; an extra-large egg takes 4 to 4.5 minutes. Start timing the moment the water returns to a rolling boil after you add the eggs. Use a timer—guessing by eye is how people undercook them.
The water itself must be at a full boil before the eggs go in. Slowly heating eggs in cool water does not reach the temperature fast enough to kill bacteria reliably. Boiling water is the only method that works for soft boiled eggs.
Who Should Avoid Soft Boiled Eggs Entirely
Even a properly cooked soft boiled egg carries a small risk for certain groups. The U.S. Food and Drug Administration recommends that pregnant women, children under 5, adults 65 and older, and people with weakened immune systems eat only eggs cooked until both the white and yolk are firm. For these groups, the runny yolk is not worth the risk.
If you are cooking for a household with a pregnant woman, a young child, or an older adult, cook their eggs fully instead. It takes only one more minute—5 to 6 minutes total—and eliminates the risk. If you are unsure whether someone in your home falls into a higher-risk group, ask them directly before serving soft boiled eggs.
How to Reduce Risk When Handling Raw Eggs
Bacteria on the outside of the eggshell can transfer to your hands and then to other foods. Wash your hands with soap and warm water after handling raw eggs, even if you are about to cook them. Do not touch your face, other foods, or kitchen surfaces between handling the egg and washing your hands.
Discard any egg with a visible crack, leak, or dirt caked on the shell. A cracked egg is more likely to have bacteria inside it. If an egg breaks while you are boiling it, throw out that batch and start over with fresh eggs.
Use a separate cutting board or surface for eggs if you are also preparing raw meat. Salmonella lives in both, and cross-contamination is straightforward to miss. Wash the board, your knife, and your hands after handling either one.
The Difference Between Farm-Fresh and Store-Bought Eggs
The source of the egg does not change how you cook it safely. Both farm-fresh and store-bought eggs can carry Salmonella inside them. Cooking time and temperature are what matter, not where the egg came from. A soft boiled egg from a backyard chicken is just as safe as one from a grocery store if you cook it for the same amount of time at the same temperature.
Store-bought eggs in the United States are washed and sometimes treated to reduce surface bacteria, but this does not affect the bacteria that may be inside the egg. Farm-fresh eggs are not washed, so bacteria on the shell is more likely, but again, proper cooking kills the bacteria that matters—the kind inside.
What to Do If You Undercooked an Egg
If you realize you cooked a soft boiled egg for only 2 minutes instead of 3.5, do not eat it. Put it back in boiling water for another 2 minutes to finish cooking. The yolk will be less runny, but it will be safe.
If you have already eaten an undercooked egg and you are in a higher-risk group (pregnant, very young, very old, or immunocompromised), contact your doctor. Most people who eat undercooked eggs do not get sick, but these groups should not take the chance. If you are not in a higher-risk group, watch for symptoms of Salmonella infection over the next few days: diarrhea, fever, and stomach cramps. These usually appear 6 to 72 hours after eating contaminated food. If they do, see a doctor and mention the undercooked egg.
Frequently Asked Questions
Can I eat a soft boiled egg if I am pregnant?
No. The FDA recommends that pregnant women eat only eggs cooked until both the white and yolk are firm. Cook the egg for 5 to 6 minutes instead of 3.5 to 4 minutes. The risk of Salmonella infection is small, but it can cause serious complications during pregnancy.
How do I know if my soft boiled egg is cooked long enough?
The white should be completely opaque and firm when you tap it. The yolk should jiggle slightly when you tilt the cup but should not run out when you crack the shell. If the white is still translucent or runny, cook it longer.
Is it safer to use pasteurized eggs for soft boiling?
Pasteurized eggs have been heat-treated to kill Salmonella before you buy them, so they are safer for soft boiling. However, they are harder to find and more expensive than regular eggs. If you can find them and you are in a higher-risk group, they are worth buying.
What if the water stops boiling after I add the eggs?
Remove the eggs when ready and wait for the water to return to a full rolling boil before putting them back in. Then start your timer again. If the water does not boil, the eggs will not reach the safe temperature in the time you expect.
Can I soft boil eggs in an when ready pot or other appliance?
Yes, but follow the manufacturer's instructions for timing, as pressure cookers and steamers cook eggs differently than boiling water does. The same rule applies: the egg must reach 160°F throughout the white and outer yolk. If you are unsure whether your appliance reaches that temperature, use boiling water instead.