When learning how to cook eggs in the oven, the most important piece of information to take note of is how long they should be in the oven! I recommend cooking them for about 10 to 12 minutes, as that will leave the yolk a bit runny. Add or remove a minute to ensure the yolk is done to your liking.