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- 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
- Wrap homemade dough tightly in plastic wrap or press it into an airtight container; exposed dough dries out and picks up fridge odors within a day.
- Scoop the dough into balls, freeze them on a tray until hard, then bag them. Bake straight from frozen, adding 1–2 minutes to the usual time.
- Label the freezer bag with the oven temperature and baking time so you do not have to find the recipe again.
- Wash hands, bowls and counters after handling dough; raw flour dust and raw egg spread to other foods easily.
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
| State | Fridge | Freezer | Pantry |
|---|---|---|---|
| Homemade | 2–4 days | 2 months | Not safe |
| Store-bought | 1–2 weeks | 2 months | Not safe |
| Typical window from purchase; the use-by date on the package governs, opened or not. Freeze before that date. | |||
| Store-bought, edible | 1–2 weeks | 2–3 months | Not 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
| Food | Fridge | Freezer | Pantry |
|---|---|---|---|
| Cookies Homemade |
Not recommended | 6–8 months | 1–2 weeks |
| Pizza Dough Homemade |
1–3 days | 2–3 months | Not recommended |
| Eggs Raw |
3–5 weeks | Not recommended | Not safe |
| Flour Dry (uncooked) |
1 year | 1–2 years | 6–12 months |
| Butter Opened |
1–3 months | 6–9 months | 1–2 days |
| Brownies Homemade |
1 week | 3 months | 3–4 days |
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.