I've been making Yogurt and Coconut Yogurt for a long time. I've always wondered why one can't leave milk out for more than an hour or so without it going off, yet when adding cultures or probiotics all of a sudden this isn't a concern.

  • 2
    Bordering off topic, but depending on the quantity you can leave pasteurized milk out a lot longer than an hour before it goes bad. I've left a nearly full gallon jug out overnight and it was fine.
    – nasch
    Commented Sep 3, 2019 at 15:03
  • @nasch - "it was fine" is relative to your particular situation and standards. In most cases, leaving a gallon of fresh milk out overnight is not going to be long enough to cause noticeable curdling/souring, but that does NOT necessarily mean the milk is "fine." Pasteurized milk can grow all sorts of things: there can be contamination during processing (after pasteurization) or contamination you add after opening a jug. Milk is a very good growth medium for bad bacteria IF contamination has occurred; in which case a jug left overnight may NOT be "fine," regardless of smell/appearance.
    – Athanasius
    Commented Sep 7, 2019 at 2:56
  • By fine I mean smells and tastes as new, and causes no digestive issues. I don't know what else one could ask for. I didn't say it will always be fine in all cases, just that that has been my experience.
    – nasch
    Commented Sep 7, 2019 at 15:31

3 Answers 3


The initial heating of the milk, besides denaturing proteins to improve the texture, also pasteurizes the milk.

The culture needs to be added in a high enough concentration to crowd out harmful bacteria that might exist.

That said, if your tools or containers are dirty or if your starter is dead, or you don't add enough starter, your yogurt can grow accidental bacteria and go off.

As Bob1 commented, this applies to the first few hours of fermentation before the milk has become acidic enough to inhibit other microbes.

  • 13
    It's not that the high enough concentration is crowding out the harmful bacteria - it's more that the ones used for yogurt acidify the substrate, which is not ideal for many bacteria to grow in. If you can get it to the point where the yogurt is acid enough, then the harmful will not grow well. Also, not just bacteria that are the problem - yeasts are equally a problem for contamination.
    – bob1
    Commented Sep 2, 2019 at 4:31
  • 9
    Bob1, it takes some hours for the milk to become acidic enough to inhibit other bacteria. Before that time it is a race between good and bad bacteria. Good sanitation and a huge headstart for the good bacteria are key. I agree that the bad bacteria aren't physically crowded but they can't compete for food before they die from the acidity. Commented Sep 2, 2019 at 12:36

Note that the milk you take out of the fridge has been sterilised (UHT or pasteurisation) - it doesn't have any bacteria (etc.)[1]. It also isn't very acidic or salty. This makes it a wonderful breeding ground for anything that can get in - there's no competition. Yoghurt (and cheese, and varieties of ham and salami, and...) is full of a bacterial cultures that are very prolific in that environment, which makes it very hard for any new culture to get established.

Most of the methods of preservation humans had in the past have been based on this; salting, fermentation etc. Either you make the environment too harsh for bacteria to live in (too salty, too acidic, too dry etc.), or you promote the growth of harmless bacteria. Lactic bacteria have been our best friends ever since we started preserving food - they're harmless and extremely prolific, drowning out most harmful bacteria, especially if you help them with a bit of salt or a somewhat acidic environment.

You can even buy bacterial/yeast cultures that you can add to pasteurised milk to make your homemade yoghurt drink (kefir). A popular choice is the so-called tibetan mushroom (a mix of lactic bacteria and various yeasts). The product is full of bacteria, but they're not only harmless, they actually digest lactose, which allows even lactose intolerant people to ingest dairy products without harm. Most of the easy sugars have been converted to lactic acid, which in addition to the massive lactic bacteria culture means the product is very resistant to the introduction of any harmful bacteria.

As an aside, this mechanism is also the reason why some bacteria, like the botulinum, can still be dangerous - they do not colonise your body, they produce a strong toxin as a side-effect of their normal metabolism, so even a very small culture can make the food toxic. But most bacteria are entirely harmless to humans, and most that are harmful are stopped by either the lactic culture, or the acidity, or the salt (in heavily salted products).

[1] Note that this varies - in the US, normal milk often uses low-temperature pasteurisation which doesn't sterilise the milk; in Europe, UHT is the standard, and you can keep unrefrigerated milk essentially forever (though the quality suffers after a few months as the fats separate, it doesn't become unsafe to drink).

  • Comments are not for extended discussion; this conversation has been moved to chat.
    – rumtscho
    Commented Sep 6, 2019 at 15:30
  • most that are harmful are stopped by either the lactic culture, or the acidity, or the salt (in heavily salted products) – To add a general ecological argument to this: Most pathogenic bacteria are pathogenic because they grow well under the conditions found in the human body, i.e., they are specialised on these conditions. As you describe, the conditions of yogurt (in the making) are considerably different from the human body. Hence different bacteria are specialised to yogurt, and it is unlikely that a bacterium would prevail under both conditions.
    – Wrzlprmft
    Commented Apr 25, 2020 at 9:59

So first off, when making yogurt hygiene is the single most important factor to successfully make yogurt without giving yourself food poisoning. Your statement about having never had a problem and about cultured yogurt never going off concerns me that your luck will make you cocky about it.

inoculation with a known culture helps by prepopulating your yogurt giving your chosen cultures an advantage, but it’s not a guarantee.

However if your hygene practices are not spotless, you can add dangerous bugs into your yogurt. I have had the misfortune it of being food poisoned by my yogurt.

Please don’t get cocky or lackadaisical about hygene and sanitation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.