Why Does Milk Expire? The Science Behind Spoilage

Milk expires because bacteria slowly break down its natural sugars, fats, and proteins, producing acid, off-flavors, and eventually that unmistakable sour smell. Even pasteurized milk still contains small numbers of microorganisms that multiply over days in your refrigerator, and the chemical changes they trigger are what turn a fresh carton into a curdled mess.

What Happens Inside the Carton

Fresh milk is rich in lactose (milk sugar), fat, and protein, which makes it an ideal food source for bacteria. The main spoilage process starts when bacteria consume lactose and convert it into lactic acid. As lactic acid accumulates, the milk’s pH drops. Fresh milk sits at a pH of about 6.7. Once it falls below 5, the casein proteins that give milk its smooth, white appearance lose their structure, clump together, and form visible curds. That’s when milk looks and tastes obviously “off.”

But souring is only one part of the story. Bacteria also produce enzymes that attack milk’s other components. Proteases chop up casein proteins and create bitter flavors. Lipases break apart fat molecules, releasing compounds that taste rancid, soapy, or butyric (think old butter). A third type, phospholipases, damages the thin membrane surrounding each tiny fat droplet in milk, exposing even more fat to breakdown. These enzymatic changes can start before the milk smells sour, which is why milk sometimes tastes slightly off before it curdles.

Why Pasteurization Buys Time but Not Forever

Pasteurization heats milk enough to kill disease-causing bacteria and most spoilage organisms. It does not sterilize the milk. Several types of bacteria survive the process. Spore-forming species like Bacillus and Paenibacillus produce tough, dormant spores that withstand the heat and later reactivate in your fridge. Pasteurization can actually help these survivors by eliminating the competing bacteria that would normally keep them in check.

The more common problem, though, is contamination after pasteurization. The single most frequent post-processing contaminant in milk is Pseudomonas, a cold-loving bacterium that thrives at refrigerator temperatures. Even when introduced at extremely low levels (less than one cell per milliliter), Pseudomonas can multiply to quality-degrading concentrations of about one million cells per milliliter within roughly 10 days. That timeline closely matches the shelf life printed on most milk cartons and explains why pasteurized milk typically lasts one to two weeks under good refrigeration.

Temperature and Light Make It Worse

Cold-loving bacteria grow faster as temperatures rise. The difference between a fridge set at 35°F and one running a few degrees warmer can shave days off milk’s usable life. Every time you leave milk on the counter, even briefly, you give those bacteria a burst of warmth that accelerates their growth. This is why milk stored in the back of the fridge, where temperatures are most stable, lasts longer than milk kept in the door.

Light is a separate, often overlooked factor. Milk contains riboflavin (vitamin B2), which absorbs light energy and triggers a chain of oxidation reactions. These reactions break down proteins and fats, producing sulfur and carbonyl compounds that give milk a flat, cardboard-like taste sometimes called “light-struck” flavor. This can happen in translucent jugs left under fluorescent store lighting or on a sunny kitchen counter. Opaque cartons and containers block this reaction, which is one reason some dairies use cardboard packaging.

What the Date on the Label Actually Means

The date stamped on your milk is not a safety deadline. Federal law does not require date labels on any food product except infant formula. The labels you see on milk are voluntary and mean slightly different things depending on how they’re worded. A “Sell-By” date tells the store when to pull the product from shelves for inventory purposes. A “Best if Used By” date indicates when flavor and quality start to decline. A “Use-By” date marks the last day of expected peak quality. None of these are safety dates.

In practice, properly refrigerated pasteurized milk often remains safe to drink for several days past its printed date. Your senses are a better guide than the label: if milk smells sour, tastes acidic, or looks lumpy, the bacterial and chemical changes have progressed far enough that you should discard it. If it still smells and tastes normal a day or two past the date, it’s generally fine.

What Happens If You Drink Spoiled Milk

Drinking milk that has simply soured from normal lactic acid bacteria is unpleasant but rarely dangerous for most people. The sour taste itself is a deterrent, and the acid-producing bacteria responsible for typical spoilage are not the same organisms that cause serious foodborne illness.

The real risk comes from pathogenic bacteria that can grow without obvious signs of spoilage. Salmonella can cause symptoms within 6 hours to 6 days. E. coli typically produces illness in 3 to 4 days. Listeria may cause gastrointestinal symptoms within 48 hours, but body-wide infection can take 2 to 6 weeks to develop. These pathogens are primarily a concern in unpasteurized (raw) milk or in pasteurized milk that has been severely mishandled, such as being left unrefrigerated for extended periods. For most people drinking ordinary pasteurized milk that went a bit past its date, the worst outcome is a stomachache and some nausea.

How to Make Your Milk Last Longer

Since bacterial growth is the primary driver of spoilage, anything that slows that growth extends shelf life. Keep your refrigerator at or below 38°F (about 3°C). Store milk on an interior shelf rather than the door, where temperature fluctuates every time you open it. Pour what you need and return the container promptly rather than leaving it out during a meal. Keep the cap or spout clean to avoid introducing new bacteria from your hands or the surrounding environment.

Ultra-pasteurized (UHT) milk is heated to a much higher temperature than standard pasteurized milk, killing virtually all bacteria including spores. Unopened, it can last two to three months at room temperature. Once opened, though, it behaves like regular milk and should be refrigerated and used within a week or so, since environmental bacteria will find their way in. Freezing milk is another option. It may separate slightly when thawed, giving it a grainy texture, but it remains safe and works well for cooking or smoothies.