Chocolate 101

How Long Does Chocolate Last? Shelf Life and Storage

On this page
  1. How long each type of chocolate lasts
  2. Is chocolate safe after the best-before date?
  3. Where to keep chocolate
  4. Can you freeze chocolate?
  5. Why milk and white chocolate go stale sooner
  6. Filled chocolates, truffles and bonbons
  7. For makers: how a best-before date is set
  8. Sources and open questions

Plain dark chocolate keeps its best quality for at least two years, milk chocolate for one and white chocolate for about six months, according to Iowa State University Extension (ISU). The date on a plain bar is about flavor and texture. Past it, ISU says the chocolate is safe to eat unless it smells off, tastes off or shows mold. Filled chocolates are the exception, because cream and ganache bring water back in.

How long each type of chocolate lasts

Of the bars, dark and unsweetened chocolate last longest and white the shortest. The second public source for these figures is the USDA FoodKeeper data set, which counts pantry time from the day of purchase and has a separate figure for after opening. It only has entries for unsweetened and semisweet solid chocolate and for cocoa, so the milk, white and ruby rows rest on ISU alone.

Chocolate ISU Extension, best quality USDA FoodKeeper, pantry from purchase / after opening
Unsweetened (baking) 2 years 1 to 2 years / 1 year
Dark and semisweet, including chips At least 2 years Semisweet, solid: 1 to 2 years / 1 year
Milk 1 year No entry
White About 6 months No entry
Ruby Best berry flavor in the first year No entry
Cocoa powder Indefinite unopened; best within 3 years of opening Indefinitely unopened / 1 year

The date printed on the pack comes first. These are general figures for commercial products, and every one of them is a quality window: after it, the chocolate loses flavor and texture. On opened cocoa powder the two sources disagree, three years from ISU against one from FoodKeeper.

Is chocolate safe after the best-before date?

Yes, for plain chocolate kept dry, as long as it doesn’t smell off, taste off or show mold. ISU describes the date on chocolate as “a reflection of best quality, not food safety,” and that matches how the law treats it (see the maker section below).

The reason is water, or the lack of it. A 2022 University of Udine study measured the water activity of retail bars at 0.51 for dark, 0.53 for milk and 0.55 for a milk bar with a cream filling, and found that molds don’t develop in chocolate at that level, below 0.6.

Bacteria need far more. Ireland’s food safety authority, in its guidance on shelf-life validation, lists 0.94 as the lowest water activity at which Salmonella can grow, and names chocolate among the foods linked to it.

Low water activity stops growth. It doesn’t kill. Researchers at Washington State University stored Salmonella in dark, milk and white chocolate at 22 °C and found it could survive for up to 12 months, with the smallest drop in milk and white. So an old bar doesn’t become safer with age, and a bar contaminated at the factory stays contaminated. Keeping pathogens out is a production job, covered in chocolate food safety.

White streaks or a dull gray film on an old bar point to bloom, which the Canadian Food Inspection Agency says does not pose a health risk; why chocolate turns white explains the causes and how to tell bloom from mold.

Where to keep chocolate

Somewhere cool, dry and dark, in a closed container. Temperature, humidity and the fridge question all live on the bloom page, since getting them wrong shows up as bloom first.

Three points from ISU aren’t about bloom at all. An airtight container keeps out the oxygen that makes chocolate oxidize and lose flavor. Light speeds up oxidation too, so a dark cupboard beats a sunny shelf. And chocolate kept in the fridge can absorb odors from other foods or end up with a damp surface, which is one more reason to keep it sealed if it has to go in there.

Can you freeze chocolate?

Yes, for up to a year, but ISU notes that freezing “does not significantly change the shelf life.” It suits chocolate you plan to bake with or melt, because the temperature shock can cause bloom. ISU’s method gives the chocolate 24 hours in the fridge before it goes, well wrapped, into an airtight container in the freezer, and another 24 hours in the fridge before it comes back to room temperature; the bloom page has the steps.

Why milk and white chocolate go stale sooner

Oxidation is the main reason. Given air and light, the fats in milk and white chocolate turn stale and eventually rancid, well before a dark bar does.

ISU explains white chocolate’s six-month window by the natural antioxidants it lacks, which leaves it “prone to oxidation or rancidity” when exposed to light and air.

For milk chocolate, a 2023 study funded by a confectionery company tracked cholesterol oxidation products in bars stored for 12 months at 18 °C. A sealed oxygen-barrier pack cut them by up to 34%, and bars made with older milk powder started out with more. Packaging and ingredient freshness both move the date.

How the three types differ in the first place is covered in types of chocolate.

Filled chocolates, truffles and bonbons

They keep for less time, and again the reason is water. Pralines from nine makers measured between 0.70 and 0.898 in a 2014 study, and a spoilage yeast grew down to 0.70. How to make bonbons explains what that means for a ganache recipe.

Mold can still turn up in a filled bar. The Udine researchers traced one case to five vanilla-flavored milk bars with a cream filling, bought from a small shop. The spoiled bars measured 0.50, and the authors put the mold down to cocoa butter bloom plus moisture, either from the bloom or picked up during packaging.

Storage temperature also matters more once there’s a filling. In a Mendel University study of filled bars, 6 and 12 °C kept them best, at 20 °C they started to deteriorate after 10 weeks, and 30 °C was unsuitable.

Homemade ganache and truffles have no official keeping time to quote. Their life depends on the recipe, which the bonbon page walks through. For any filled piece, go by ISU’s signs: an off odor, an off flavor or mold means it goes in the bin, and if you can’t tell bloom from mold, throw it out.

For makers: how a best-before date is set

The maker sets it, product by product, and for plain chocolate it’s a quality date. What follows is the EU and US position as of October 12, 2026. The wider regulatory picture for a chocolate business is in chocolate factory regulations.

Who decides

In the EU, the food business operator decides. The European Food Safety Authority’s 2020 opinion on date marking says the choice between “best before” and “use by” is made product by product, looking at the hazards, the product’s characteristics, processing and storage, and that shelf life must allow for “reasonably foreseeable conditions of distribution, storage and use.”

Ireland’s food safety authority adds a working detail on its shelf-life page: the operator is usually the manufacturer, and the decision should be made and documented while building the HACCP-based system.

Its shelf-life guidance is frank about the limits. It says there is no generic method for setting shelf life, that best-before dates apply to dried and ambient foods where quality ends shelf life rather than safety, and that setting a quality shelf life is outside the document’s scope. For a plain chocolate bar, that leaves the maker with their own sensory checks over time.

Best before or use by, and how to print it

Chocolate takes a best-before date. Regulation (EU) No 1169/2011 defines that date as the one until which a food “retains its specific properties when properly stored.” A “use by” date is reserved for foods that are highly perishable from a microbiological point of view, and after it the food is deemed unsafe. The two are not interchangeable.

Annex X of the regulation sets the wording and the level of detail. The label reads “Best before” when the date includes the day and “Best before end” otherwise, and the required detail depends on how long the product keeps:

Product keeps for Date must show at least
Up to 3 months Day and month
More than 3 and up to 18 months Month and year
More than 18 months Year

Where the date only holds under certain conditions, those storage conditions go on the label too (Article 25 and Annex X). Chocolate is not among the products Annex X exempts from a date; the confectionery exemption covers products made almost solely of flavored or colored sugars.

Loose chocolates are treated differently. For food sold unpackaged or packed at the customer’s request, Article 44 makes only allergen information mandatory across the EU, and whether a date is required depends on national rules.

The US position

There is no federal date requirement for chocolate. The USDA’s Food Safety and Inspection Service states that, except for infant formula, product dating is not required by federal regulations, that “Best if Used By/Before” marks best flavor or quality and is not a purchase or safety date, and that there are no uniform descriptions for open dating. FSIS recommends “Best if Used By” to manufacturers who date their products. It lists what drives the date: how long and at what temperature the food is held in distribution and sale, the food’s characteristics, and the type of packaging.

What shortens shelf life, product by product

Plain dark chocolate has the lowest water activity of the bars measured and the longest windows in both public sources, so flavor loss sets its date.

Milk chocolate is limited by oxidation. The 2023 packaging study above points to two levers a maker controls: an oxygen-barrier pack and fresh milk powder.

White chocolate has the shortest window of the three. Light and air are what age it, so the wrapper has to keep out both.

Filled products bring two problems at once: water in the filling, and fat migration from nut fillings into the shell, which surfaces as bloom. Both are covered in detail on the bonbon and bloom pages.

Packaging can make the difference with mold. In the Udine experiment, a mold grew on bars at water activity 0.835 to 0.862 when they were packed with air, and didn’t grow on the same bars packed under vacuum. Packaging at small scale is covered in the bean-to-bar process, and the bigger picture of where storage fits is in how chocolate is made. Label and packaging material rules by market are in chocolate labeling rules.

Sources and open questions

Shelf-life windows, storage, freezing and the white chocolate explanation come from ISU Extension’s AnswerLine (November 7, 2023), which gives chocolate’s water activity as 0.3 to 0.4 without a source; the measured retail values from the Udine study are used here instead.

The EFSA opinion and the Washington State Salmonella study were read as abstracts.

The 2023 milk chocolate packaging study was funded by an Italian confectionery company, and five of its authors were employees; only its packaging result is used here.

The FoodKeeper figures come from data version 128 (modified 2018), read from an archived copy.

Still open:

  • how a small maker should test quality shelf life (sensory intervals, retained samples, warm storage); we found no authority guidance on it;
  • US state date-labeling rules for candy, not yet researched;
  • whether the FSAI shelf-life guidance (Revision 5) is final, since the PDF carries a draft watermark.