Carefully place eggs in a single layer at the bottom of a saucepan. Add enough cold water to cover the eggs by about an inch.
Place the saucepan over high heat and bring the water to a rolling boil. Once boiling, immediately remove the pan from the heat.
Cover the pan tightly with a lid and let the eggs sit in the hot water for your desired doneness: 6-7 minutes for soft-boiled, 8-9 minutes for medium-boiled, or 10-12 minutes for hard-boiled.
While eggs are resting, prepare an ice bath by filling a large bowl with ice and cold water.
Once the cooking time is up, use a slotted spoon to transfer the eggs from the hot water directly into the ice bath. Let them cool for at least 5 minutes.
To peel, gently tap the cooled egg on a hard surface to crack the shell all over. Roll it between your hands to loosen the shell, then peel under cool running water or in the ice bath for easier removal.
Serve immediately or store peeled or unpeeled eggs in the refrigerator for up to 7 days.