How Long Cookie Dough Lasts in the Refrigerator
Cookie dough keeps for three to five days in the refrigerator, depending on the recipe
Most cookie dough—whether you made it yourself or bought it ready-to-bake—will stay safe to use for three to five days when stored properly in the refrigerator. The exact timeline depends on what's in the dough. Dough made with eggs, butter, and flour will last closer to three days. Dough with more preservatives or less moisture (like shortbread dough) can stretch to five days. The cold slows bacterial growth, but it doesn't stop it entirely, so timing matters.
The reason for the range is simple: dough is a living system. Yeast ferments, bacteria multiply slowly, and fats oxidize. A refrigerator at 40°F or below slows all of this, but the clock is always running. If your dough smells sour, looks discolored, or has visible mold, throw it out—those are signs that bacteria or mold have taken over.
Key Takeaways
- Store cookie dough in an airtight container or wrapped tightly in plastic wrap to prevent it from drying out and absorbing odors from other foods.
- Dough with eggs should be used within three days; dough without eggs or with commercial preservatives can last up to five days.
- If you want dough to last longer than five days, freeze it instead—frozen dough keeps for up to three months.
- Always check the dough for sour smell, discoloration, or mold before baking, even if it's within the safe window.
Why the refrigerator slows spoilage but doesn't stop it
Cold temperatures don't kill bacteria—they put them to sleep. At 40°F, the bacteria that cause food poisoning multiply very slowly compared to room temperature. This is why the refrigerator buys you time, not forever. The dough itself also continues to change: butter separates slightly, flour absorbs moisture, and if there's yeast in the dough, it keeps fermenting, which is why some doughs develop a slightly sour smell after a few days.
The fat in butter is also vulnerable to oxidation, which means the dough can develop an off or rancid taste even before it becomes unsafe to eat. This is why older dough sometimes tastes stale or flat, even if it looks fine. The cold slows this process, but it doesn't prevent it.
How to store cookie dough so it lasts the full three to five days
The container matters. Use an airtight container—a plastic deli container with a tight lid, a glass bowl covered with plastic wrap, or even a resealable plastic bag with as much air pressed out as possible. Exposure to air dries out the dough and lets it absorb odors from other foods in the refrigerator, both of which shorten its useful life.
If you're storing dough in a bowl, press plastic wrap directly onto the surface of the dough before covering the bowl. This prevents a dry crust from forming on top. Label the container with the date you made it so you don't guess later. Keep the dough toward the back of the refrigerator, where it's coldest and most stable—not on the door, where temperature fluctuates every time you open it.
Different doughs have different timelines
Sugar cookie dough, shortbread dough, and other butter-based doughs without eggs can last the full five days because they have fewer ingredients that spoil quickly. Dough made with eggs should be used within three days because eggs are more perishable. Yeast doughs (like for cinnamon rolls or dinner rolls) ferment actively in the refrigerator and develop flavor over time, but they should still be used within three to five days—after that, the yeast can produce off-flavors.
Store-bought refrigerated cookie dough (the kind in a tube or tub) comes with a printed date on the package. Follow that date, not the three-to-five-day rule. Manufacturers add preservatives and test their products for safety, so their timeline is more reliable than a general guideline. Once you open the package, though, the three-to-five-day window applies to the unused portion.
When to freeze dough instead of refrigerating it
If you know you won't bake within five days, freeze the dough instead. Frozen cookie dough keeps for up to three months and tastes just as good as fresh dough. You can freeze it in several ways: as a single large ball wrapped in plastic wrap and foil, as individual portions in a freezer bag, or as scoops on a baking sheet (then transferred to a freezer bag once solid). The individual-scoop method is convenient because you can bake just a few cookies without thawing the whole batch.
Thaw dough in the refrigerator overnight before baking, or bake it straight from the freezer—most cookies will bake fine, though they may take a minute or two longer. Dough that's been frozen and thawed will be slightly softer than fresh dough, so you may need to chill it again before scooping if it becomes too sticky to handle.
Signs that cookie dough has gone bad
A sour or fermented smell is the clearest sign that dough should be discarded. This happens when bacteria or wild yeast have colonized the dough. Discoloration—dark spots, streaks, or a grayish tint—also means bacteria or mold are present. Visible mold, even a small spot, means the entire batch should go in the trash because mold spreads through dough faster than you can see.
If the dough looks and smells fine but tastes off when you bake a test cookie, that's usually oxidation of the fat, not spoilage. It won't make you sick, but it won't taste good either. This is why using dough within the first three days is the safest bet for both safety and flavor.
Raw dough and food safety
If your dough contains raw eggs, don't taste it raw—even a small amount of raw egg can carry salmonella. This is especially important for children, pregnant people, and anyone with a weakened immune system. If you want to taste cookie dough safely, use pasteurized eggs (sold in cartons in the dairy section) or skip the eggs and make a no-bake dough version with heat-treated flour.
Refrigerating raw dough doesn't make it safe to eat raw. The cold slows bacterial growth but doesn't kill salmonella if it's present. Baking is what makes it safe—the heat kills any bacteria that might be there.
Frequently Asked Questions
Can I leave cookie dough on the counter overnight instead of refrigerating it?
No. Bacteria multiply rapidly at room temperature, and dough left out overnight can become unsafe to eat. If you forgot to refrigerate dough and it sat out for more than two hours, discard it. The refrigerator is the only safe place to store dough short-term.
Does refrigerated cookie dough go bad faster after I open the package?
Yes. Once you open store-bought dough, bacteria from the air and your hands can contaminate it. Use opened dough within three to five days, and always use a clean spoon or scoop when removing portions so you don't introduce bacteria back into the container.
What's the difference between dough that's gone bad and dough that's just old?
Old dough may taste flat or stale but is still safe to eat if it shows no signs of spoilage. Bad dough smells sour, looks discolored, or has visible mold. When in doubt, throw it out—the cost of wasted dough is much lower than the risk of food poisoning.
Can I bake cookie dough straight from the refrigerator, or does it need to come to room temperature first?
Cold dough bakes fine, but it may take a minute or two longer and spread slightly less. If your recipe calls for room-temperature dough, let it sit on the counter for 15 to 20 minutes before scooping. If you're in a hurry, cold dough works—just watch the cookies as they bake.
Is it safe to eat cookie dough that's been refrigerated for exactly five days?
Five days is the outer edge of the safe window, so it depends on how the dough was stored and what's in it. If it was sealed tightly, kept at a steady 40°F, and contains no eggs, it's likely fine. If you're uncertain, smell it first—trust your nose. If there's any doubt, bake it rather than eating it raw, or discard it.