For soft-boiled eggs with a runny yolk, boil for about 4-6 minutes. For hard-boiled eggs with a fully set yolk, boil for around 9-12 minutes.