Skip to main content

How Long Cookie Dough Stays Fresh in Your Refrigerator

Cookie dough lasts three to five days in the refrigerator, depending on what's in it

Most cookie dough—butter, sugar, flour, eggs—stays safe to eat for three to five days when stored in an airtight container on a shelf, not the door. The eggs are what set the clock. Raw eggs in dough begin to degrade after a few days, and the risk of bacterial growth rises. If your dough contains no eggs (like some shortbread or sugar cookie recipes), it can last up to a week. If it contains only egg yolks or uses pasteurized eggs, you may get closer to a week as well.

The exact timeline depends on your refrigerator temperature. A fridge set to 40°F (4°C) or colder slows bacterial growth significantly. If yours runs warmer—some do, especially if the door opens frequently—the dough will deteriorate faster. Check your fridge's actual temperature with a simple thermometer; many people assume theirs is cold enough when it isn't.

Key Takeaways

  • Cookie dough with raw eggs lasts three to five days in the refrigerator; dough without eggs can last up to a week.
  • Store dough in an airtight container on a middle or lower shelf, never on the door where temperature fluctuates.
  • Dough that smells sour, looks discolored, or has visible mold should be discarded immediately.
  • Freezing dough extends its life to two to three months and is the best option if you won't bake within a few days.

Why eggs matter: the real reason dough has a time limit

Raw eggs carry the risk of Salmonella, a bacterium that causes food poisoning. Refrigeration slows its growth but does not stop it. After three to five days, the bacterial load in raw egg dough becomes unsafe, even if the dough looks and smells fine. You cannot see or taste Salmonella.

If you are concerned about raw eggs—whether because you are pregnant, very young, very old, or immunocompromised—do not eat raw cookie dough at all. Use pasteurized eggs instead. Pasteurized eggs have been heat-treated to kill pathogens and are safe to eat raw. They cost a bit more but eliminate the risk entirely. Some recipes also use heat-treated flour, which is safe raw as well.

The right way to store cookie dough in your fridge

Use a glass or plastic container with a tight-fitting lid—not plastic wrap alone, which lets air in and dries out the dough. If you do not have a container, transfer the dough to a freezer bag, press out as much air as possible, and seal it. Label the container with today's date so you know when you made it.

Place the dough on a middle or lower shelf, never on the door. The door is the warmest part of the refrigerator because it opens and closes constantly. Temperature swings there are dramatic and speed up spoilage. A middle shelf, away from the back wall (where it can freeze), is ideal.

If your dough is very soft or sticky, chill it for 30 minutes before transferring to storage. This makes it easier to handle and less likely to stick to the container. You can also divide dough into portions before refrigerating—scoop it into balls, place them on a baking sheet, freeze them solid (about two hours), then transfer them to a freezer bag. This way you can bake just what you need without thawing the whole batch.

Signs that cookie dough has gone bad

Throw out dough if it smells sour, yeasty, or off in any way. A sour smell means fermentation or bacterial growth has begun. Discard it even if it looks fine. Discoloration—browning, graying, or dark spots—is another sign to toss it. Visible mold, which appears as fuzzy growth or streaks, means the dough is unsafe.

Separation of liquid from the dough is normal and does not mean it has spoiled. Simply stir it back in. However, if the liquid smells bad or the dough feels slimy, discard it. Trust your senses: if something feels wrong, it probably is.

Freezing dough extends its life to two or three months

If you know you will not bake within a few days, freeze the dough instead. Freezing stops bacterial growth almost entirely. Cookie dough stays safe in the freezer for two to three months, sometimes longer. The texture may change slightly—it can become a bit denser—but it will still bake into good cookies.

Freeze dough in the same airtight container or freezer bag you would use for the refrigerator. If you freeze it in balls on a baking sheet first, you can bake them straight from the freezer without thawing. Add one to two minutes to the baking time. If you freeze dough in a block, thaw it in the refrigerator overnight before baking, or let it sit at room temperature for 30 to 45 minutes until it is soft enough to scoop.

Label frozen dough with the date and the type of cookie. This prevents mystery containers and helps you use older dough first. A freezer kept at 0°F (-18°C) or colder will preserve dough best.

Different dough types have different timelines

Sugar cookie dough and shortbread dough, which often contain no eggs, last longer than dough with whole eggs. Chocolate chip dough with whole eggs lasts three to five days. Brownie batter, which is thicker and has a higher fat content, may last slightly longer—up to five days—because fat slows bacterial growth. Cake batter, which is wetter, should be used within two to three days.

Dough made with oil instead of butter may last slightly longer because oil is more stable than butter at refrigerator temperature. Dough with added vanilla extract or other preservatives does not gain much extra time; the alcohol in vanilla is not present in high enough concentration to preserve the dough significantly.

Room temperature and the two-hour rule

If you leave cookie dough on the counter, the clock moves much faster. Dough should not sit at room temperature for more than two hours. After that, bacterial growth accelerates. If your kitchen is warm—above 70°F (21°C)—reduce that window to one hour. If you have left dough out longer than that, refrigerate it and use it within one to two days, not the full three to five.

This matters if you are scooping dough to bake in batches. Scoop what you need, return the rest to the refrigerator immediately. Do not leave the container open on the counter while you bake the first batch.

Frequently Asked Questions

Can I eat raw cookie dough straight from the refrigerator?

Only if it contains pasteurized eggs or no eggs at all. Raw dough with unpasteurized eggs carries a risk of Salmonella, which refrigeration slows but does not eliminate. If you want to eat raw dough safely, use pasteurized eggs when you make it, or buy dough labeled as safe to eat raw.

What if my cookie dough has been in the fridge for a week?

Discard it. Dough with raw eggs should not be kept longer than five days, and most should be used by day three. If you are unsure how long it has been there, throw it out. The cost of new ingredients is less than the risk of food poisoning.

Does freezing cookie dough change how it bakes?

Slightly. Frozen dough may spread a little less and bake a bit more slowly, so add one to two minutes to the baking time. The flavor and texture of the finished cookie are usually not noticeably different. Thawing dough in the refrigerator overnight gives the most consistent results.

Can I refrigerate dough after I have already scooped it into balls?

Yes. Scooped dough balls last the same amount of time as bulk dough—three to five days for dough with eggs. Freezing scooped balls is even better; you can bake them straight from the freezer without thawing.

Is it safe to bake cookie dough that smells a little off?

No. Baking does not kill all bacteria or their toxins. If dough smells sour, yeasty, or unusual in any way, discard it. A bad smell is a sign that fermentation or bacterial growth has begun, and baking will not make it safe to eat.