Learn how to cook a perfect boiled egg—every single time—with this handy guide.


Here’s a commonly asked cooking question—how long should I boil eggs? For hard-boiled eggs, we say 12 minutes. But the answer really depends on the style of boiled egg you prefer, whether it’s a completely-cooked yolk or soft, creamy center.

The truth is, when it comes to cooking a boiled egg, timing is everything. And if you’re planning to make deviled eggs for a cookout, yummy Avocado-Egg Salad, or if you’re just in need of a quick and easy protein snack—you need to know exactly how long to boil eggs. We can help! This handy guide shows you a foolproof method for boiling eggs, no matter which type you prefer.

How to Make a Perfect Boiled Egg

Rule #1: Don’t just throw cold eggs into boiling water! The sudden change of temperature can lead to “shocked,” or unevenly cooked, eggs or even worse—cracked, damaged eggs. Instead, heat the eggs gently using the water. This allows for a gradual, even cook that equals the perfect hard-boiled egg.

You’ll know that your egg is perfectly cooked if it has an opaque, yellow center. The yolk of an overcooked egg, on the other hand, will turn a greenish-gray color.

Stick to the formula below for a perfect boiled egg, every single time:

  1. Place a single layer of raw eggs in the bottom of a medium or large saucepan. Fill the pan with water to about 2 inches over the eggs.
  2. Place the pan on high heat. Bring to a boil. Remove the pan from the heat. Cover, and let the eggs stand for 12 minutes.
  3. Run the eggs under cold water or place in an ice bath to cool. Peel the hard-boiled eggs, and enjoy.

How Long to Boil Eggs (Soft, Firm, or Hard)

Creamy Kale Caesar Salad with Soft-Boiled Eggs

Whether you want a completely cooked boiled egg or a slightly softer boiled egg, use this trusted timeline:

Soft-boiled egg (slightly runny center)

Let the eggs sit in the water after it comes to a boil for 4 to 5 minutes.

Slightly firmer yolk (custard-like texture)

Leave the eggs in the water for 6 minutes.

Firm yolk (still a bit creamy with some liquid)

Leave the eggs in the water for 10 minutes.

Completely hard-boiled egg (for deviled eggs or egg salad)

Leave the eggs in the water for 12 minutes.

How long do hard-boiled eggs last in the refrigerator? You can safely refrigerate the eggs in their shells for one to 1½ weeks.