2 to 3 minutes is the optimal time to boil raw shrimp. Transfer the shrimp to an ice bath, which is a dish of ice and water. This will quickly stop the cooking process, keeping the shrimp wonderfully succulent and tender.