To soft-boil an egg, place it in gently boiling water with a slotted spoon and cook for three and a half minutes for a medium-sized egg and four minutes for a large egg.