How to make the best soft and hard boiled eggs in the Instant Pot (or electric pressure cooker of your choice). A method that takes less than 10 minutes total, and most of that time is completely hands-off.
Place the trivet rack on the bottom of the Instant Pot liner.
Pour 1 cup of water into the Instant Pot liner.
Place as many eggs as desired on top of the trivet rack. I find that 8 is the most I can fit on the trivet rack, which is why I recommended 8. You can cook as many or as few as desired. The water will not touch the eggs.
Secure the lid and set to Sealing. Set to Manual, High Pressure for 3 minutes for a soft and slightly runny yolk, 4 minutes for a slightly soft and slightly firm yolk, or 5 minutes for a firm and cooked yolk (hard boiled).
While the eggs cook, prepare an ice bath. Fill a large bowl with cold water and add several ice cubes to the water.
As soon as the cooking time is over, perform a quick release (use a towel or hot pad holder). Remove the eggs from the Instant Pot and place them in the ice bath. A large spoon or measuring cup works well, or a small sieve.
Allow the eggs to rest in the ice bath for 5 minutes, then remove and peel. I find it's easiest to remove the shells under running water. Store the eggs in a container with a lid in the fridge for up to a week.
Eggs Cracking: If your eggs crack or "explode" in the Instant Pot, it's because they're too cold. This usually occurs because the eggs are coming straight from the fridge. To fix this issue, place the eggs in a bowl of warm water for a few minutes before placing the eggs in the Instant Pot. Or, take your eggs out and allow them to sit at room temperature for about 10 minutes before cooking in the Instant Pot.