How Does Milk Turn Into Yogurt?

Milk turns into yogurt when friendly bacteria eat its sugar and make acid. Lactic acid bacteria convert lactose into lactic acid, and as the milk sours, its casein proteins lose their electrical charge and link up into a soft, wobbly gel. That gel is yogurt: the tang comes from the acid, and the thickness comes from proteins that have stopped repelling each other.
What happens to milk proteins when yogurt sets?
Milk is mostly water, but it's carrying a lot of hidden structure. About 80% of its protein is casein, packed into tiny spheres called casein micelles. Each micelle is a cluster of thousands of protein molecules held together with calcium phosphate, and coated with a hairy outer layer of a protein called kappa-casein.
At milk's normal pH of about 6.7, those hairy surfaces carry a negative charge. Like-charged particles push each other apart, so the micelles drift freely and the milk pours like, well, milk.
As acid builds up, two things happen:
- The calcium phosphate dissolves out of the micelles, loosening their structure.
- The negative charges get neutralised. As the pH falls towards about 4.6, called casein's isoelectric point, the micelles stop repelling each other.
With nothing keeping them apart, the micelles bump, stick and form chains, which link into a continuous three-dimensional network. Water gets trapped in the mesh, and the liquid sets into a spoonable gel. The finished yogurt usually ends up at around pH 4.2 to 4.5.
This is the same physics that makes milk curdle when you add lemon juice, just done slowly and evenly by bacteria instead of all at once. If you've ever wondered why a cream sauce splits when it meets wine or tomatoes, our guide on why milk and cream curdle in sauces covers the messy, fast version.
Which bacteria make yogurt?
Classic yogurt is made by two bacteria working as a team:
- Streptococcus thermophilus grows fast early on. It makes lactic acid quickly, plus small amounts of formic acid and carbon dioxide that help its partner.
- Lactobacillus delbrueckii subsp. bulgaricus is better at breaking casein into small peptides and amino acids, which S. thermophilus needs. It takes over later, when the milk is more acidic, and pushes the tang further.
This kind of mutual back-scratching is called protocooperation. Together, the two make acid faster than either can alone, which matters for both texture and safety. L. bulgaricus is also the main source of acetaldehyde, the molecule behind yogurt's fresh, green-apple-ish signature aroma.
Many commercial yogurts add extra species such as Lactobacillus acidophilus or Bifidobacterium, often for marketing reasons. They don't change how the gel forms much.
Why do recipes heat the milk first?
You'd think you'd just warm the milk to body temperature, add culture and wait. You can, but the yogurt will be thin and weepy. The pre-heat is the secret to a firm set.
The other 20% of milk protein is whey protein, mainly beta-lactoglobulin. Normally it floats around doing nothing for texture. Heating milk to about 82 to 85°C (180 to 185°F) and holding it for roughly 10 minutes (or around 90°C/195°F for a few minutes) unfolds it, a process called denaturation. The unfolded whey proteins then stick to the kappa-casein on the micelle surfaces.
Now, when acid sets the gel, the whey proteins are built into the network instead of being left out. The result is a thicker, smoother yogurt that holds its whey better. You'll see a skin forming on the milk and small bubbles at the edge of the pan as it gets close. Stir gently and keep the heat moderate so the bottom doesn't scorch.
The pre-heat also kills off any stray bacteria in the milk so your culture doesn't have competition. Always start with pasteurised milk; homemade yogurt is not a safe way to treat raw milk.
Chef Fizz says: Heating the milk is like setting up scaffolding before the builders arrive. The bacteria do the building, but the heat decides how sturdy it gets.
Want to practise the temperatures without wasting milk? The Cooking Scientist app has a quick lesson on fermenting yogurt warm, with a mini game where you keep the culture in its happy zone.
Why does temperature matter so much during incubation?
Yogurt bacteria are thermophiles, meaning heat lovers. They grow best around 40 to 45°C (104 to 113°F), a lot warmer than the human body.
- Too cool (below about 35°C/95°F): Acid builds slowly. The yogurt takes many hours to set and can end up thin. Slow souring also gives other microbes more time to grow.
- Just right (about 43°C/110°F): A good culture sets milk in 4 to 8 hours.
- Too hot (above about 50°C/122°F): The bacteria slow down and start to die. Above about 55°C (130°F), you can kill the culture outright, and the milk won't set at all.
That's why recipes say to cool the milk to 43 to 46°C (110 to 115°F) before stirring in the starter. It should feel distinctly warm on your wrist, but not hot. A probe thermometer takes all the guesswork out.
To keep it warm while it sets, you can use a yogurt maker, a multicooker's yogurt setting, an oven with just the light on (check with a thermometer, since this varies a lot), or a jar wrapped in towels inside a cooler with a jar of warm water beside it.
How do you get thicker, tangier or milder yogurt?
Once you understand the gel, you can steer it:
| You want | Try this |
|---|---|
| Thicker | Hold the pre-heat longer, add 2 to 3 tbsp of skim milk powder per litre, or strain it |
| Tangier | Incubate longer, up to 10 to 12 hours |
| Milder | Stop as soon as it's set, then chill quickly |
| Smoother | Whisk the starter into a little warm milk before adding it, and don't stir the pot while it sets |
Greek-style yogurt is simply strained yogurt. Spoon set yogurt into a sieve lined with a coffee filter or cheesecloth and leave it in the fridge for 2 to 4 hours. The greenish-yellow liquid that drips out is acid whey. Straining removes about half the volume and gives a dense, creamy result.
Fat matters for richness but not for setting. Skim milk makes perfectly good yogurt; it's just leaner and a little firmer.
Is homemade yogurt safe?
Yes, when you follow a few simple rules. The key safety feature is speed: a lively culture makes the milk acidic within hours, and below about pH 4.6 most food-poisoning bacteria can't grow.
- Start with pasteurised milk and heat it as described.
- Use clean jars, spoons and thermometers.
- Use a fresh, active starter so acid develops quickly. Store-bought plain yogurt that says "live and active cultures" works well, about 1 to 2 tablespoons per litre.
- If the milk hasn't set after about 12 hours, don't eat it. Throw it out and start again with a fresh starter.
- Once set, refrigerate it at 4°C (40°F) or below. Homemade yogurt is best within about 1 to 2 weeks.
- Discard any yogurt with mould, pink or orange patches, or a smell that's off rather than just sour.
Try it at home
Run a side-by-side test to see what the pre-heat does. Pour 500 ml of pasteurised milk into each of two saucepans.
Heat pan A to 85°C (185°F) and hold it there for 10 minutes, stirring gently, then cool to 45°C (113°F). Warm pan B only to 45°C (113°F). Stir 1 tablespoon of plain live-culture yogurt into each, pour into two labelled clean jars, and incubate both together at about 43°C (110°F) for 6 hours. Then chill them.
What you'll see: jar A sets into a firm, glossy gel that holds a spoon-shaped dent. Jar B is softer and looser, and is more likely to have whey pooling on top. Same milk, same bacteria, same time; the only difference is whether the whey proteins were unfolded and built into the gel.
Common mistakes
- Adding the starter to milk that's still too hot. Above about 50°C (122°F) the cultures start to die, and the milk may never set. Cool it to 43 to 46°C (110 to 115°F) first and check with a thermometer.
- Skipping the pre-heat. Without it, whey proteins stay out of the gel and the yogurt is thin and watery. Hold the milk at 82 to 85°C (180 to 185°F) for about 10 minutes.
- Using too much starter. More isn't better. A crowded culture runs out of food and acidifies unevenly, giving a grainy, sour result. About 1 to 2 tablespoons per litre is plenty.
- Stirring or jostling while it sets. The casein network is fragile as it forms, and moving it breaks it apart, releasing whey. Leave the jars alone until they're set.
- Using an old or heat-treated starter. Some yogurts are heat-treated after culturing and contain few live bacteria. Check the label for live or active cultures, or save a few spoonfuls from each fresh batch.
- Leaving a failed batch out and hoping. If the milk is still liquid after about 12 hours, the culture didn't take, and other microbes may be growing. Discard it rather than tasting it. For another tangy kitchen ferment that runs on lactic acid, see how sauerkraut ferments, and read about the unfolding process in protein denaturation.
Questions
What temperature should milk be to make yogurt?
Heat the milk to about 82 to 85°C (180 to 185°F) and hold it there for around 10 minutes, then cool it to 43 to 46°C (110 to 115°F) before stirring in the culture. Keep it near 43°C (110°F) while it sets.
Why is my homemade yogurt runny?
The usual causes are skipping the pre-heat, incubating too cool, a weak or old starter, or stopping too soon. Heating the milk first and holding it warm for long enough gives a much firmer set.
How long does yogurt take to set?
Most yogurt sets in 4 to 8 hours at around 43°C (110°F). Longer incubation makes it tangier and a little firmer. If it hasn't set after about 12 hours, something has gone wrong and it is safest to discard it.
Can I use store-bought yogurt as a starter?
Yes. Use a plain, unsweetened yogurt whose label says it contains live or active cultures, about 1 to 2 tablespoons per litre of milk. Flavoured yogurts and ones heat-treated after culturing will not work well.