FridgeLife

How Long Does Cookie Dough Last?

Homemade cookie dough lasts 2–4 days in the fridge and about 2 months in the freezer. Store-bought refrigerated dough is good until its use-by date. Do not eat raw dough unless it is labeled safe to eat raw.

Cookie Dough — homemade

shelf life
Fridge
2–4 days
Freezer
2 months
Pantry
Not safe
  • Store-bought: 1–2 weeks in the fridge
  • Store-bought, edible: 1–2 weeks in the fridge

Fridge at 40°F (4°C) or below · freezer at 0°F (−18°C). Freezer times are for best quality; frozen food stays safe longer.

Cookie dough is an unbaked mixture of flour, butter, sugar and usually raw eggs. Both the eggs and the flour are raw agricultural ingredients: eggs can carry Salmonella and flour can carry E. coli, and neither is killed until the dough is baked. That makes dough a refrigerated, short-lived product, unlike the cookies it becomes.

How to store cookie dough

How to tell if cookie dough has gone bad

  • A sour, sharp or fermented smell instead of a sweet, buttery one.
  • Edges that have darkened, turned gray or dried into a hard crust.
  • A slimy or unusually sticky surface, or any mold.
  • A package of refrigerated dough that is swollen or puffed should be discarded.

Bacteria that cause food poisoning usually do not change the look, smell or taste of food. Go by the time limits first, and the signs above second.

Cookie Dough shelf life chart

StateFridgeFreezerPantry
Homemade2–4 days2 monthsNot safe
Store-bought1–2 weeks2 monthsNot safe
Typical window from purchase; the use-by date on the package governs, opened or not. Freeze before that date.
Store-bought, edible1–2 weeks2–3 monthsNot safe
Made with heat-treated flour and no raw egg. Follow the label once opened; many tubs say to eat within about a week.

Not safe = perishable: no more than 2 hours at room temperature (1 hour above 90°F / 32°C). Not recommended = possible, but quality suffers or it serves no purpose.

Frequently asked questions

Is raw cookie dough safe to eat?

No, not regular dough. The CDC and FDA both warn against eating raw dough because raw eggs can carry Salmonella and raw flour can carry E. coli; flour has been the cause of several recalls and outbreaks. Products labeled as edible cookie dough are different: they use heat-treated flour and pasteurized or no eggs.

How long can cookie dough sit out?

No more than 2 hours, or 1 hour in a room above 90°F (32°C). Dough contains raw egg and butter and sits squarely in the temperature range where bacteria multiply. If a recipe tells you to rest dough, rest it in the fridge, which also improves the flavor and reduces spreading.

Can you freeze cookie dough?

Yes, most cookie doughs freeze well for about 2 months at best quality. Drop-cookie and slice-and-bake doughs are ideal: freeze them as scooped balls or as a wrapped log. Thin, cake-like batters such as those for madeleines or tuiles do not freeze well. Bake frozen dough balls without thawing.

Can I make raw flour safe at home by microwaving it?

Do not rely on it. The FDA specifically advises against home heat-treating flour, because microwaves and ovens heat dry flour unevenly and there is no validated home method that reliably kills bacteria throughout. If you want dough to eat raw, buy a product made for that purpose.

Can I use refrigerated cookie dough after the use-by date?

It is best not to. The date on refrigerated dough is set by the manufacturer for a product containing raw egg and flour, and quality and leavening drop off after it. If you know you will not bake it in time, freeze it before the date and use it within about 2 months.

Related foods

FoodFridgeFreezerPantry
Cookies
Homemade
Not recommended6–8 months1–2 weeks
Pizza Dough
Homemade
1–3 days2–3 monthsNot recommended
Eggs
Raw
3–5 weeksNot recommendedNot safe
Flour
Dry (uncooked)
1 year1–2 years6–12 months
Butter
Opened
1–3 months6–9 months1–2 days
Brownies
Homemade
1 week3 months3–4 days

All baked goods

Reviewed 2026-09-20. Times follow published USDA FoodKeeper / FSIS, FDA and CDC storage guidance; where sources differ we use the shorter time. How we compile this data.