Half-boiled eggs are safe to eat if the egg white is fully set and opaque, but the yolk does not need to be completely hard
A half-boiled egg—one where the white is firm and the yolk is still soft or runny in the center—is safe to eat for most people. The critical part is that the egg white must be fully cooked and no longer translucent. The yolk can remain soft because the risk of Salmonella contamination is much lower in the yolk than in the white, and the yolk's interior temperature during cooking is usually high enough to kill harmful bacteria even when it looks runny.
The main safety concern with undercooked eggs is bacterial contamination, which happens most often in the white. If your egg white is still runny or cloudy after cooking, that is the sign to cook it longer. A soft yolk by itself does not make an egg unsafe—it is straightforward a matter of preference and how long you boil it.
Key Takeaways
- The egg white must be completely opaque and firm; if any part of the white is still translucent or runny, the egg needs more cooking time.
- A soft or runny yolk is safe to eat once the white is fully cooked, because the yolk interior reaches a high enough temperature to kill most bacteria.
- Eggs from reliable sources with clean shells carry lower contamination risk than eggs with cracks or visible dirt.
- People with weakened immune systems, very young children, and pregnant people should cook egg yolks until fully hard to reduce any remaining risk.
- Boiling time depends on the egg size and starting temperature; medium eggs from a rolling boil take about 6 to 7 minutes for a soft yolk with a set white.
How the white and yolk cook at different rates
Egg white and yolk cook at different speeds because they have different protein structures. The white sets at around 140°F (60°C), while the yolk begins to set at around 149°F (65°C) and fully hardens at 158°F (70°C). This means you can reach a point where the white is completely firm and safe, but the yolk is still soft in the very center.
When you boil an egg, heat travels from the outside in. The white, being on the outside, reaches a safe temperature first. By the time the yolk's center is still soft, the white has been well above the safety threshold for several minutes. This is why a half-boiled egg with a set white and soft yolk is a normal, safe cooking outcome—not an accident or a mistake.
When a soft yolk becomes a safety concern
For most healthy adults, a soft yolk poses very little risk once the white is fully cooked. However, certain groups should avoid soft yolks and cook eggs until the yolk is completely hard throughout. These groups include pregnant people, infants and very young children, older adults with weakened immune systems, and anyone with a diagnosed immune disorder.
If you fall into one of these categories, boil your eggs for 10 to 12 minutes (depending on size) to may support the yolk is hard all the way through. For everyone else, a soft yolk in a fully cooked white is safe and is actually the preferred texture for many cooks and diners.
How to tell when the white is fully cooked
The white should be completely opaque—no translucent or cloudy areas anywhere. When you cut the egg in half, the white should be firm and not jiggle or run. If any part of the white is still clear or runny, the egg needs more time in the water.
A useful test is to gently press the white with a spoon or your finger (after cooling slightly). It should feel solid, not squishy or gelatinous. If it feels soft or jiggles, return the egg to the hot water for another minute or two and check again.
Boiling times for different yolk textures
| Yolk Texture Goal | Boiling Time (Medium Eggs) | What It Looks Like |
|---|---|---|
| Soft, runny center | 6 to 7 minutes | White fully set, yolk soft and liquid in the middle |
| Jammy (soft but not runny) | 8 to 9 minutes | White fully set, yolk creamy but holds its shape |
| Hard-boiled throughout | 10 to 12 minutes | White and yolk both fully firm and opaque |
These times assume you start with eggs at room temperature and place them in already-boiling water. If your eggs are cold from the refrigerator, add 1 to 2 minutes. If you start them in cold water and bring it to a boil, add 3 to 4 minutes total.
After boiling, transfer the eggs to an ice bath (a bowl of cold water with ice) for at least 5 minutes. This stops the cooking process and makes the eggs easier to peel. The ice bath is especially important if you want a soft yolk, because the residual heat will continue cooking the yolk even after you remove the egg from the water.
Egg source and shell condition matter
The risk of Salmonella in eggs is already quite low in most developed countries, but it is lower still when the egg comes from a reliable source and the shell is clean and uncracked. Before boiling, rinse the egg under cool running water and rub it gently with your fingers or a soft cloth to remove any visible dirt or debris.
Do not use eggs with cracks in the shell, because bacteria can enter through the crack during storage or cooking. If an egg cracks while boiling, it is still safe to eat as long as you cook it fully, but the white may leak slightly into the water.
Storage and reheating of half-boiled eggs
A half-boiled egg with a soft yolk should be eaten within a few hours of cooking, ideally while still warm or at room temperature. If you need to store it, place the cooled egg in the refrigerator in a sealed container and eat it within 24 hours. Do not leave a cooked egg at room temperature for more than 2 hours.
If you want to reheat a half-boiled egg, place it in a bowl of hot (not boiling) water for 2 to 3 minutes, or warm it gently in a low oven. Do not microwave a half-boiled egg in its shell, because the pressure can cause it to explode. If you have already peeled it, you can microwave it briefly, but the yolk may cook further and become less soft.
Frequently Asked Questions
Can I eat a half-boiled egg if the white is still slightly soft?
No. The white must be completely firm and opaque. If any part of the white is still soft, translucent, or runny, the egg needs more cooking time. Return it to the hot water for another 1 to 2 minutes and check again.
Is a runny yolk the same as an undercooked egg?
No. An undercooked egg has a soft or runny white, which is unsafe. A runny yolk with a fully cooked white is a normal, safe result and is called a soft-boiled or half-boiled egg. The yolk does not need to be hard for the egg to be safe.
What if I accidentally boil an egg too long and the yolk turns gray or green?
The gray or greenish ring around the yolk is harmless. It forms when the yolk's iron reacts with sulfur in the white during prolonged cooking. The egg is still safe to eat; the color is just a sign you boiled it longer than needed for a soft yolk.
Do I need to refrigerate a half-boiled egg right away?
You can eat it warm or let it cool to room temperature first, but do not leave it out for more than 2 hours. Once cooled, store it in the refrigerator in a sealed container and eat it within 24 hours.
Can I peel a half-boiled egg while it is still hot?
Yes, but be careful—the soft yolk can break or leak if you handle it roughly. Peel gently under cool running water, starting at the wider end where the air pocket is. The cooler water also helps the white separate from the shell more easily.