The trick to making the perfect boiled egg is to place the eggs in a pot and cover them with cold water, then bring the water to a boil.
Let the eggs boil for two minutes.
Remove the pot from the heat, cover it, and let the eggs sit for 15-18 minutes.
After the desired time, remove the eggs from the hot water and place them in an ice bath. This will stop the eggs from cooking further and help with peeling the shells.