How Long to Boil Eggs: Soft, Medium, and Hard
Daniel Gritzer brings hands-on cooking experience and a strong understanding of ingredients, techniques, and food science. His approach connects what happens in the kitchen with why it happens, helping readers understand common cooking questions and improve everyday meals.
Quick answer
For a soft yolk, boil eggs for 3 to 6 minutes after the water reaches a full boil. For a fully hard-cooked egg with a solid white and yolk, cook for about 10 minutes. Transfer eggs to ice water immediately after cooking to stop carryover heat and make peeling easier. The FDA advises that soft-boiled eggs carry a Salmonella risk for young children, older adults, and people with weakened immune systems.
Boiling Times for Each Doneness Stage
The single most useful thing to know: timing starts once the water reaches a rolling boil, not when you put the eggs in. Drop the eggs into already-boiling water, reduce to a steady boil, and start your timer.
- Soft-boiled (runny yolk, set white): 3 minutes by the traditional egg-timer standard, or 5 to 6 minutes if you prefer a slightly thicker but still liquid yolk.
- Hard-cooked (fully solid white and yolk): approximately 10 minutes using the bring-to-boil-then-cook method.
A second technique for hard-cooked eggs skips continuous boiling entirely: bring the water to a boil, remove the pan from the heat, and let the eggs sit in the gradually cooling water. This gentler approach can reduce the risk of overcooking and the rubbery texture that comes with it.
These ranges are guidelines, not guarantees. Egg size, starting temperature (refrigerator-cold vs. room temperature), and your stove’s output all shift the result by a minute or two. Treat the times as a starting point and adjust based on what you observe when you cut the egg open.
Why Timing Controls Texture: The Protein Science
Eggs set because heat causes their proteins to unfold and bond together, a process called coagulation or denaturing. The white and yolk coagulate at different temperatures, which is why you can have a set white with a still-liquid yolk.
- Egg white proteins begin coagulating between 131°F and 140°F (55°C to 60°C) and reach a tender but solid texture at 185°F (85°C).
- Egg yolk proteins thicken at 149°F (65°C) and solidify at 158°F (70°C).
Boiling water is very hot, well above the temperature needed to set both the white and the yolk. So the only variable you control is how long heat has to travel from the shell through the white to reach the yolk. The white insulates the yolk, so the yolk always lags behind. That lag is exactly what makes a soft-boiled egg possible: the white has set, but the yolk center has not yet reached 158°F.
This also explains why starting eggs in already-hot water gives more predictable results than a cold-water start: the heat gradient is steeper and more consistent from the first second.
Food Safety: Doneness Is Not the Same as Safe
A visually set egg is not automatically free of Salmonella. Research shows that inactivating Salmonella bacteria requires holding the egg at a temperature of at least 144°F (62°C) for 30 minutes. Because that low-and-slow approach is impractical on a stovetop, the FDA recommends cooking eggs to the higher temperature of 165°F (74°C), which achieves pathogen reduction much faster.
For a standard hard-cooked egg boiled for 10 minutes, the interior easily exceeds a safe temperature. The safety concern applies mainly to soft-boiled eggs, where the yolk may never reach that threshold.
The FDA specifically advises against soft-boiled eggs for people who are more vulnerable to Salmonella infection, including very young children, older adults, pregnant women, and anyone with a weakened immune system. The USDA Food Safety and Inspection Service echoes this, noting that infants, young children, older adults, pregnant women, and immunocompromised individuals are particularly vulnerable to Salmonella Enteritidis infections from eggs. If you are cooking for someone in these groups, a hard-cooked egg or one made from pasteurized shell eggs is the safer choice. For more on how internal temperature determines safety across different proteins, see how to tell when chicken is done using the 165°F method.
The Ice-Water Shock: Stopping Carryover Cooking
Eggs keep cooking after you pull them from the pot. The shell and white retain heat that continues driving the yolk temperature up, a phenomenon called carryover cooking. To stop it, transfer eggs immediately to a bowl of ice water.
Research cited in food science literature found that cooling eggs in ice water for 15 minutes or longer produced the most successful peeling results. The rapid chill also removes the small dimple at the base of the egg caused by the air pocket inside the shell. If you skip the ice bath and just run cold tap water over the eggs, you slow carryover cooking but may not stop it completely, especially for large eggs.
The ice-water step matters for texture too. A soft-boiled egg left sitting in a warm pot will continue setting and may end up firmer than you intended. Pull it, shock it, and you lock in the texture you aimed for. This is the same heat-and-shock principle used in blanching vegetables to stop cooking at the right moment.
The Green Ring: What Overcooking Looks Like
If you cut open a hard-cooked egg and see a grayish-green ring around the yolk, the egg was overcooked. That ring is iron(II) sulfide, formed when sulfur from the white reacts with iron in the yolk at high temperatures over extended time. It has little effect on flavor but signals that the egg was held at high heat longer than needed.
The reaction happens faster in older eggs because their whites are more alkaline. The fix is straightforward: shorten your cook time and use the ice-water shock immediately. Cooking in gradually cooling water (the off-heat method) also reduces the chance of this reaction because the temperature drops before the sulfide reaction accelerates.
Egg Freshness and Why It Affects Peeling
Fresh eggs are notoriously hard to peel cleanly. As an egg ages, it loses moisture and carbon dioxide through tiny pores in the shell. The contents shrink slightly, the air cell inside grows, and the pH of the white rises. A more alkaline white is less likely to stick to the shell membrane, making peeling easier.
Practically, this means eggs bought a week or two ago peel more cleanly than eggs used the day of purchase. If you need easy-to-peel hard-cooked eggs for deviled eggs or egg salad, use eggs that have been in your refrigerator for at least a week. Starting the eggs in already-boiling water (rather than cold water) also improves peelability. After the ice bath, peeling under cold running water helps lift the shell away cleanly.
Storing Hard-Cooked Eggs Safely
Once cooked, hard-boiled eggs have a shorter safe window than raw eggs. According to USDA FSIS guidance, hard-cooked eggs should be used within two hours if left at room temperature, or within one week if kept refrigerated in the shell. The two-hour room-temperature limit aligns with the general food safety rule for perishable foods. For a broader look at that rule, see the 2-hour rule for food left out.
Peeled hard-cooked eggs stored in the refrigerator should be kept in water or a sealed container to prevent them from drying out, and used within the same one-week window. Do not leave peeled eggs at room temperature; without the shell barrier, they are more exposed to contamination.
Illustrative Example: Planning a Batch of Hard-Cooked Eggs
This is a labeled illustrative example using the time ranges supported by the excerpts above.
You want six large hard-cooked eggs for egg salad, starting from refrigerator-cold eggs. Here is a reasonable sequence:
- Fill a saucepan with enough water to cover the eggs by at least an inch. Bring to a full rolling boil over high heat.
- Lower the eggs gently into the boiling water using a slotted spoon. Reduce heat to maintain a steady boil.
- Set a timer for 10 minutes.
- While the eggs cook, fill a large bowl with cold water and a generous amount of ice.
- At 10 minutes, transfer the eggs immediately to the ice bath. Leave them for at least 15 minutes.
- Peel under cold running water. Use within one week if refrigerated in the shell, or within two hours if left at room temperature.
If you prefer a slightly jammy yolk (set but not fully dry), reduce step 3 to 7 to 8 minutes and check one egg by cutting it open before committing the whole batch.
Frequently asked questions
Can I boil eggs straight from the refrigerator, or do they need to reach room temperature first?
You can boil eggs directly from the refrigerator. Cold eggs dropped into boiling water may need an extra minute compared to room-temperature eggs because the heat has to travel further before the interior reaches the target temperature. The ice-water shock after cooking is still important regardless of starting temperature.
Is a soft-boiled egg safe to eat?
For most healthy adults, a soft-boiled egg carries a low but real Salmonella risk because the yolk may not reach the FDA-recommended 165°F (74°C). The FDA specifically advises against soft-boiled eggs for very young children, older adults, pregnant women, and people with weakened immune systems. Pasteurized shell eggs are an alternative that allows soft cooking with reduced risk.
Why does my hard-cooked egg have a green ring around the yolk?
The green-gray ring is iron(II) sulfide, formed when sulfur in the egg white reacts with iron in the yolk during prolonged high heat. It is harmless and has little effect on flavor, but it signals overcooking. Shorten your cook time and transfer eggs to ice water immediately after cooking to prevent it.
How long do hard-boiled eggs last in the refrigerator?
USDA FSIS guidance states that hard-cooked eggs should be used within one week when kept refrigerated in the shell. If left at room temperature, they should be eaten within two hours. Peeled eggs should be stored in a sealed container or covered in water in the refrigerator and used within the same one-week window.
Does the off-heat method (removing the pan from the burner) produce a different result than continuous boiling?
Yes. In the off-heat method, you bring water to a boil, add the eggs, then remove the pan from the heat and let the eggs sit in gradually cooling water. This gentler temperature drop reduces the risk of the rubbery texture and green yolk ring that come from sustained high heat. The trade-off is slightly less predictable timing, so checking one egg before serving the batch is a good habit.
Sources
- Boiled egg - Wikipedia · en.wikipedia.org
- Shell Eggs from Farm to Table | Food Safety and Inspection Service · fsis.usda.gov
- All Topics - CSU Extension · Colorado State University Office of Engagement and Extension (extension.colostate.edu)
Prepared from these references and checked against them. References retrieved October 11, 2026.
Spotted an error? Tell us what needs correcting.