You just brewed a big pitcher of iced tea and are not sure how long it can sit on the counter. You also have a box of green tea bags and a tin of loose leaf that you are wondering whether to keep in the pantry or the fridge. The answers are different for each, and getting the brewed tea wrong has real food safety consequences.
Does tea need to be refrigerated?
The short answer: Dry tea, both bags and loose leaf, does not need refrigeration. In fact, the fridge can hurt dry tea by introducing moisture. Brewed tea must be refrigerated within 2 hours of brewing and lasts 3 to 5 days. Cold brew tea should be made in the refrigerator from the start and never at room temperature.
For a complete reference on storing over 100 foods, see our Food Storage Guide
For shelf life figures, spoilage signs, and the sun tea food safety warning, see our companion post Does Tea Go Bad?

Key Takeaways

Dry tea bags and loose leaf: cool dark pantry, never the fridge
Brewed tea: refrigerate within 2 hours of brewing, use within 3 to 5 days
Cold brew tea: always brew and store in the refrigerator
Sweetened brewed tea: use within 3 days; sugar accelerates bacterial growth
Brewed tea left at room temperature more than 8 hours: discard
Boba and bubble tea: refrigerate immediately, use within 24 hours

Dry Tea: Pantry, Not the Fridge
Dry tea does not need refrigeration. Tea bags and loose leaf tea are shelf-stable products with very low moisture content. Without moisture, bacteria cannot grow, and cold temperatures provide no meaningful preservation benefit for dry tea.
In fact, refrigerating dry tea creates a problem. Tea is hygroscopic, meaning it actively absorbs moisture from the surrounding environment. Each time you take cold tea out of the refrigerator and open the container in a warmer room, condensation forms and moisture enters. That moisture accelerates staling and, in quantity, can cause mold. The result is that refrigerated dry tea often spoils faster than tea stored in a cool dry pantry.
The ideal storage location for dry tea is a cool, dark, airtight container away from heat, light, and strong odors. A pantry shelf away from the stove is perfect. Keep tea away from coffee, spices, and other strongly aromatic foods, because tea absorbs surrounding odors readily. For our thoughts on the health benefits of green tea, freshness is particularly important since green tea’s antioxidant catechins degrade more quickly than those in black tea.
Brewed Tea: Always Refrigerate Within 2 Hours
Brewed tea must go into the refrigerator within 2 hours of brewing. This is the standard USDA two-hour rule for all perishable foods. Once water is added to tea, the beverage becomes capable of supporting bacterial growth. At room temperature, particularly in warm kitchens, bacteria multiply rapidly.
Washington State University Extension and Iowa State University Extension, both citing CDC guidance, confirm that brewed tea should not be held at room temperature for more than 8 hour 

Author