How to Cook Boiled Eggs: Perfect Every Time

Updated November 5, 2026

Jump to recipe

How to Cook Boiled Eggs: Perfect Every Time

Boiled eggs are a simple, protein-packed staple, but getting them exactly as you like—soft, jammy, or hard—takes a bit of technique. This guide walks you through the process from start to finish, including timing charts, peeling tricks, and fixes for common problems. Whether you want a dippy egg for soldiers or a firm egg for salad, you’ll find everything you need here.

What You’ll Need

  • Eggs (as many as you like, but make sure they fit in a single layer in your pot)
  • A saucepan or pot with a lid
  • Water
  • A slotted spoon
  • A bowl of ice water (for shocking)
  • A timer
  • Optional: a pin or needle to prick the eggshell

Step-by-Step

  1. Start with room-temperature eggs (optional but helpful). Take the eggs out of the fridge 15–20 minutes before cooking. This reduces the temperature shock and helps prevent cracking. If you’re in a hurry, you can skip this, but proceed gently.
  2. Place eggs in a single layer. Put the eggs in the saucepan without stacking them. Add cold water so it covers the eggs by about 1 inch (2.5 cm). Starting with cold water helps the eggs heat gradually, which reduces cracking.
  3. Bring to a rolling boil. Set the pan over high heat, uncovered, and bring the water to a full, rolling boil. Watch for the water to bubble vigorously.
  4. Turn off the heat and cover. As soon as the water reaches a rolling boil, turn off the heat, cover the pan with the lid, and let the eggs sit in the hot water. This gentle cooking method yields tender whites and avoids rubbery texture.
  5. Set your timer according to desired doneness. Use the following times (measured from the moment you turn off the heat):
    • Soft-boiled (runny yolk): 4 minutes
    • Medium-boiled (jammy yolk): 6–7 minutes
    • Hard-boiled (fully set yolk): 10–12 minutes

    For a large egg (about 50 g), these times work well. Adjust by 30 seconds for extra-large or medium eggs.

  6. Shock the eggs in ice water. When the timer goes off, immediately use the slotted spoon to transfer the eggs to a bowl of ice water. Let them sit for at least 5 minutes. This stops the cooking process, prevents the green ring from forming around the yolk, and makes peeling much easier.
  7. Peel and enjoy. Gently tap the egg on a hard surface to crack the shell, then roll it between your hands to loosen the shell. Start peeling from the wider end, where the air pocket is. Rinse under cold water to remove any shell fragments.

Common Mistakes

  • Overcooking: Leaving eggs in hot water too long results in a greenish-gray ring around the yolk and a sulfurous smell. Stick to the times above and shock immediately.
  • Starting with boiling water: Dropping eggs into already-boiling water can cause them to crack and cook unevenly. Always start with cold water.
  • Peeling too soon: Eggs that are still warm are harder to peel. Let them cool completely in ice water before peeling.
  • Using very fresh eggs: Eggs that are too fresh (less than a week old) are notoriously difficult to peel. Slightly older eggs (1–2 weeks) peel more easily because the air pocket expands and the membrane separates.
  • Not using enough water: If the water evaporates during cooking, the eggs won’t cook evenly. Ensure there’s enough water to cover the eggs by at least an inch.

Tips

  • Prick the shell: Use a pin or egg pricker to make a tiny hole in the wider end of the egg before cooking. This releases air and helps prevent cracking.
  • Add salt or vinegar to the water: Some people add a teaspoon of salt or vinegar to the water. This can help coagulate any egg white that leaks from a crack and makes peeling easier.
  • Steam instead of boil: If you prefer, you can steam eggs in a steamer basket over boiling water. The times are similar (about 12 minutes for hard-boiled), and steaming can make peeling even easier.
  • Use a bowl for peeling: Peel eggs under running water or in a bowl of water. The water helps separate the shell from the white.
  • Store properly: Cooked eggs can be refrigerated in the shell for up to one week. Keep them in a covered container to prevent them from absorbing odors.

Troubleshooting

  • Eggs cracked while cooking: If an egg cracks, it’s usually because it was too cold or heated too quickly. To minimize damage, add a pinch of salt to the water—this helps the white coagulate quickly and seal the crack. The egg is still safe to eat.
  • Green ring around the yolk: This is caused by overcooking or not cooling quickly enough. It’s harmless but looks unappetizing. To avoid it, stick to the timing and shock in ice water immediately.
  • Eggs are hard to peel: This often happens with very fresh eggs. Try using older eggs, or peel them under cold running water. Another trick: after boiling, gently crack the shell all over before placing in ice water—the water gets under the shell and helps release it.
  • Yolk is too runny or too firm: Adjust the cooking time by 30 seconds to 1 minute. If your eggs are larger or smaller than standard large, you’ll need to tweak the times.
  • White is rubbery: This happens when eggs are cooked at a full boil for too long. The off-heat method prevents this by cooking gently.

Frequently Asked Questions

How long do boiled eggs last in the fridge?

Hard-boiled eggs (in the shell) can be refrigerated for up to one week. Peeled eggs should be stored in a covered container with a damp paper towel and used within 2–3 days.

Can I boil eggs in the microwave?

No, boiling eggs in the microwave is dangerous—they can explode. If you want to cook eggs quickly, use a microwave egg poacher or scramble them in a mug.

Why do my eggs have a green ring?

The green ring is a reaction between iron in the yolk and sulfur in the white. It happens when eggs are overcooked or not cooled quickly. It’s safe to eat but not pretty. Follow the timing and shock in ice water to prevent it.

How do I make soft-boiled eggs with runny yolks?

Use the off-heat method: bring to a boil, cover, and let sit for 4 minutes for a runny yolk. Then immediately shock in ice water to stop cooking.

Are boiled eggs safe to eat if left out overnight?

No. Per USDA guidelines, cooked eggs should not be left at room temperature for more than 2 hours (1 hour if it’s over 90°F/32°C). Refrigerate them promptly.

Can I reuse the cooking water?

Yes, you can reuse the water for other cooking (like pasta or vegetables), but it will have some egg residue. It’s fine, but many prefer fresh water for taste.

Related

More recipes to cook

Safety notes: safe minimum internal temperatures from USDA FSIS; raw and undercooked fish guidance from the U.S. FDA. Food safety notes

Spotted an error? Tell us and we will correct it (corrections policy).