That bar of chocolate pushed to the back of the pantry, the one that’s developed a dusty white coating, looks like it’s spoiled, similar to how a jar of molasses can look worse than it actually is. It almost certainly isn’t spoiled. Chocolate is one of the more shelf-stable foods in the kitchen, and the thing most people mistake for mold is actually a cosmetic quirk of the chocolate itself.
Does chocolate go bad?
The short answer: Rarely, and almost never dangerously. Dark chocolate can last up to two years properly stored, milk chocolate lasts about a year, and white chocolate, which has no cocoa solids to help protect it, is the shortest-lived at around 6 months. What usually looks like spoilage, a dull white or grayish film called bloom, is a cosmetic change caused by temperature swings, not mold, and the chocolate underneath is still fine to eat. Real spoilage (rancid smell, mold, or an off taste) is uncommon in plain chocolate and shows up mostly in filled chocolates with cream, fruit, or nut centers.
For general pantry storage rules, check the food storage guide. If you’re storing other chocolate-adjacent staples, the cocoa powder and chocolate syrup guides cover related ground.

Does Chocolate Go Bad: At a Glance

Dark chocolate, unopened
Up to 2 years, cool and dry

Milk chocolate, unopened
About 1 year

White chocolate, unopened
About 6 months

Filled chocolate (ganache, cream, fruit)
Weeks to a few months

Refrigeration required?
No; can cause bloom and odor absorption

White or gray dusty film
Bloom, cosmetic only, safe to eat

Real spoilage signs
Rancid, soapy, or musty smell; visible mold

Best storage temperature
60 to 75°F, per Ghirardelli

Key Takeaways

Chocolate is naturally shelf-stable because of its low moisture content, so it doesn’t spoil the way most food does.
Dark chocolate lasts the longest, up to 2 years, because it has little to no dairy. Milk chocolate lasts about a year, and white chocolate is shortest at around 6 months since it has no cocoa solids to help protect it.
That white or grayish film on old chocolate is called bloom. It’s a harmless cosmetic change from temperature swings, not mold, and the chocolate is still safe to eat.
Refrigeration isn’t necessary and isn’t ideal. Chocolate is prone to absorbing odors and developing bloom from condensation.
Filled chocolates with cream, fruit, or nut centers spoil much faster than plain chocolate and deserve more caution.
Dark chocolate’s cadmium and lead content, documented in Consumer Reports testing, is a sourcing issue tied to where and how cacao is grown, not something that changes with how long a bar has been on your shelf.

Why Chocolate Rarely Spoils

The science: bloom is a fat problem, not a mold problem
Chocolate’s shelf stability comes down to moisture, or the lack of it. It’s mostly cocoa solids, cocoa butter, and sugar, an environment with very little water for bacteria or mold to use, the same reason honey and othe 

Author