How long is baby formula good out of the refrigerator?

5 Hours. Rule of 5s: 5 hours on the counter, 5 days in the refrigerator and 5 months in the freezer. This is true for both formula and breast milk.