The boiling time for eggs depends on your desired yolk consistency. For soft-boiled eggs with a runny yolk, cook for about 4 to 7 minutes. For hard-boiled eggs with a fully set yolk, boil for about 10 to 12 minutes. Adjust the time based on your preference for the perfect egg texture.