Yogurt develops bubbles after storing overnight due to the continued activity of the live and active cultures, which produce carbon dioxide as a byproduct of fermentation. This carbon dioxide gets trapped within the yogurt, forming bubbles.
Yogurt is created through the fermentation of milk by beneficial bacteria, primarily *Streptococcus thermophilus* and *Lactobacillus bulgaricus*. These bacteria consume lactose (milk sugar) and produce lactic acid, which thickens the milk and gives yogurt its characteristic tangy flavor. Even after the yogurt is refrigerated, these cultures remain active, albeit at a slower rate.
Overnight, the bacteria continue to metabolize lactose, producing lactic acid and, importantly, carbon dioxide (CO2). This CO2 is a natural byproduct of their metabolic processes. Because the yogurt is a semi-solid, the CO2 becomes trapped within the matrix of the yogurt, forming small bubbles. The amount of bubbling can vary depending on factors such as the specific cultures used, the temperature of storage, and the amount of residual lactose present. Some yogurts, particularly those with added sugars or fruits, may exhibit more bubbling due to the increased availability of fermentable carbohydrates. The presence of bubbles is generally a sign that the yogurt contains live and active cultures and is undergoing continued fermentation. It doesn't necessarily indicate spoilage, but a significant increase in sourness or the presence of mold would be signs that the yogurt is no longer safe to consume.
If you prefer a smoother yogurt texture and want to minimize bubbles, try stirring the yogurt gently before refrigerating it. This can help release some of the trapped CO2 before it has a chance to form noticeable bubbles.