To make perfect hard-boiled eggs, start by placing the eggs in a pan and covering them with cold water, ensuring the water is an inch or two above the eggs. Bring the water to a rolling boil, then turn off the heat, cover the pan, and let the eggs sit for 10-12 minutes. Reduce the time slightly for smaller eggs, and increase for extra-large eggs. Transfer the eggs into an ice bath or run under very cold water for a few minutes before peeling. This method ensures your eggs are cooked just right!