Baking Resources
Home › Guides

How Long Does Cookie Dough Last in the Fridge? Homemade and Store-Bought

Baking Resources Editorial · Reviewed by Joan Ramos · Updated November 2026 · 17 min read

How Long Does Cookie Dough Last in the Fridge? 3 Days

Homemade cookie dough made with eggs lasts about 3 days in the fridge, tightly wrapped, and no more than 2 hours at room temperature. Store-bought refrigerated dough keeps until the use-by date on the package. If you won't bake it within those 3 days, freeze it, where scooped dough balls keep their best quality for about 3 months.

Raw dough holds raw eggs and raw flour, so it follows food safety rules, not just flavor rules. A short rest in the fridge improves cookies, but a long one doesn't. Pick your dough and the day you mixed or opened it in the calculator below, and it shows the last good day for the counter, the fridge and the freezer.

Free calculator

Cookie dough storage calculator

Pick your dough and the day you mixed it or opened the package to see the last good day.

Cookie dough fridge times at a glance

Here's the quick version. Days count from the day you mixed the dough, or the day you opened a store-bought package. Fridge times assume a fridge at 40°F or colder, with the dough wrapped tightly.

DoughCounterFridgeFreezer (best quality)
Drop cookie dough with eggs2 hours maxAbout 3 daysAbout 3 months
Rolled or cut-out dough with eggs2 hours maxAbout 3 days2 to 3 months
Egg-free butter dough (shortbread)2 hours maxUp to 5 daysAbout 3 months
Dough with cream cheese, yogurt or fresh fruit2 hours maxAbout 2 daysAbout 1 month
Store-bought, unopened2 hours maxUntil the use-by dateAbout 2 months
Store-bought, opened2 hours maxUntil the use-by dateAbout 2 months
Edible dough (heat-treated flour, no eggs)2 hours maxUp to 5 daysAbout 3 months
Frozen dough thawed in the fridge2 hours maxBake within 2 daysDon't refreeze if it sat out

Most homemade cookie doughs contain eggs, so for most people the answer is 3 days. If you aren't sure what's in a dough, or you've lost track of when you made it, treat it as a 3 day dough and bake or freeze it sooner rather than later.

Why the limit is about 3 days

Cookie dough feels sturdy, but it's a raw food. Three things set the clock.

Raw eggs

Most cookie doughs have at least one egg. Raw eggs can carry Salmonella, and food safety guidance treats raw egg mixtures as perishable: keep them at 40°F or below, and use them within a few days. The sugar and fat in dough slow things down a little, but they don't make raw eggs shelf-stable. That's also why raw dough can't sit on the counter for more than 2 hours, or 1 hour if the kitchen is above 90°F.

Raw flour

Flour is a raw farm product. It isn't treated to kill germs, and it has been linked to outbreaks of E. coli. Baking takes care of that, which is why cookie dough is safe once it's baked. Keeping it in the fridge doesn't make raw flour safe to eat, but it keeps anything in the dough from multiplying.

Quality

Even when dough is still safe, it changes. After several days, the surface dries and darkens, the butter picks up fridge smells, and the baking powder or baking soda slowly loses some of its lift. Cookies made from old dough often spread less evenly and taste a little flat. Freezing stops nearly all of that.

Mainstream food safety advice for raw egg mixtures runs from a couple of days up to about 4, and when guidance varies, the shorter end is the safer choice. That's why this page uses 3 days for any dough with eggs, matching the site's guide on how long to chill sugar cookie dough.

Baking guideHow Long to Chill Sugar Cookie Dough Before RollingRead the dough guide →

Resting dough for flavor vs. storing it

Many recipes tell you to chill cookie dough for 24 to 72 hours before baking. That isn't a storage tip. It's a flavor and texture step: the flour soaks up liquid, the butter firms up, and the sugars start to break down, which gives deeper color and a toffee-like taste. Why rest cookie dough explains exactly what changes hour by hour.

Baking guideResting Cookie Dough: Why Time Makes Better CookiesSee the timing chart →

The good news is that a 72 hour rest fits inside the 3 day storage window, so you can rest dough for the full time and still bake it safely. The point to remember is that day 3 is the end of the road, not the start of a second window. If a recipe says to rest dough for 72 hours, bake it on day 3. If plans change and you can't, freeze it before the end of day 3.

Time in the fridgeWhat's happeningWhat to do
30 minutes to 2 hoursButter firms up, less spreadingFine to bake any time
12 to 24 hoursFlour fully hydrated, better colorThe sweet spot for most drop cookies
24 to 72 hoursDeeper, toffee-like flavorBake by the end of day 3
Day 3 to day 5Surface dries, flavor dulls, eggs past the safe windowShould already be baked or frozen
Past day 5Smells stale, leavening weaker, food safety riskThrow it out

Egg-free doughs are a little more forgiving, but the same idea applies: rest for flavor, then bake or freeze. Longer isn't better past a few days.

How to store cookie dough in the fridge

Good wrapping keeps the dough from drying out and from picking up fridge smells. Butter absorbs odors easily, and nobody wants cookies that taste like last night's onions.

  1. Chill it soon after mixing. Don't leave the bowl on the counter while you clean up for an hour. Get it into the fridge within 2 hours of mixing, counting the time it sat out while you scooped or shaped it.
  2. Pick the right shape. For drop cookies, scoop the dough into balls first and store them in a sealed container. They're ready to bake and chill faster. For rolled cookies, press the dough into flat discs about 1 inch thick. For slice-and-bake cookies, roll the dough into logs.
  3. Wrap it tight. Press plastic wrap directly against the dough so no air gets in, then put it in a zip-top bag or airtight container. A bowl with plastic wrap stretched over the top lets the surface dry and crust.
  4. Label it. Write the type and the date you mixed it. Three days goes by fast during the holidays, and dough discs all look alike.
  5. Store it on a shelf, not the door. The door is the warmest part of the fridge and changes temperature every time it opens.

Check your fridge temperature

Every time on this page assumes a fridge at 40°F or colder. Many home fridges run warmer than people think, especially in December when they're packed full and the door opens constantly. A simple fridge thermometer on the middle shelf tells you for sure. If it reads above 40°F, turn the dial colder and give the dough a day less. Dough stored in a cold garage or on a porch isn't a safe substitute, because outdoor temperatures swing too much from day to night and in the afternoon sun.

Old leavening shortens the life of dough too

Baking powder and baking soda start reacting as soon as they get wet, slowly in the fridge and quickly in the oven. Fresh leavening has enough lift left after 3 days. An old can may not. If your cookies from rested dough come out flat and dense, test the can before blaming the dough. How long baking powder lasts has a quick hot water test.

Baking guideHow Long Does Baking Powder Last? 6 to 12 Months Once OpenedSee how long it keeps →

Keep raw dough away from ready-to-eat foods, and wash your hands, bowls and counters after handling it, the same way you would after cracking raw eggs.

What happens to dough day by day

It helps to know what's normal, so you don't toss good dough or keep bad dough.

Darker dough on its own isn't a sign of spoilage. Brown sugar and butter darken as they sit. A sour smell, slime or mold are the real warning signs, covered further down.

Fridge times by cookie type

Different cookies use different doughs, and a few of them have quirks worth knowing. Here's how the common ones hold up in the fridge, with the best way to store each.

Cookie doughFridge timeBest shape to storeNotes
Chocolate chipAbout 3 daysScooped balls in a sealed containerMany bakers think it tastes best after 24 to 36 hours
Oatmeal or oatmeal raisinAbout 3 daysScooped ballsOats soak up moisture, so the dough firms a lot
Peanut butterAbout 3 daysScooped ballsVery stiff when cold, give it 10 minutes before pressing
Sugar cookie cut-outsAbout 3 daysFlat discs, double wrappedEdges crack if they dry, so wrap well
GingerbreadAbout 3 daysFlat discs, double wrappedMolasses keeps it soft, but it still has eggs
SnickerdoodlesAbout 3 daysScooped balls, roll in cinnamon sugar right before bakingThe coating gets damp if added ahead
Shortbread (no eggs)Up to 5 daysLog or discPicks up fridge smells easily, so wrap twice
ThumbprintsAbout 3 daysBalls, filled just before bakingJam added ahead makes the dough soggy

Rolled doughs are where people most often go past the window, since a disc of sugar cookie dough looks the same on day 2 as it does on day 6. If you're making cut-outs, the sugar cookie recipe is written to be mixed, chilled and rolled within a day or two. Gingerbread follows the same 3 day rule, and how long to bake gingerbread cookies covers the timing once you're ready to bake.

Baking guideSugar Cookie Recipe for Cut-Outs That Hold Their ShapeRead the guide → Baking guideHow Long to Bake Gingerbread Cookies: Times for Soft or CrispGet the details →

Does the fridge change the texture?

A little, and mostly for the better within the first day or two. Chilled dough makes thicker, chewier cookies with crisp edges, because cold butter melts more slowly in the oven and the flour has soaked up more liquid. Past day 3, the gains stop and the losses start. Old dough spreads less evenly, browns in patches and tastes flat, partly because the leavening weakens as it sits wet. If you want a specific texture, chewy vs. crispy cookies explains which levers matter more than resting time.

Baking guideHow to Make Cookies Chewy or Crispy: The 8 Real LeversRead it next →

Store-bought refrigerated cookie dough

Packaged cookie dough from the refrigerated case comes in tubs, tubes and pre-cut bars. The maker has worked out how long it keeps in that package, so the date printed on it is the one to follow.

Some store-bought doughs are labeled as safe to eat raw. Those are made with heat-treated flour and pasteurized eggs or no eggs. Unless the package says that clearly, assume the dough needs to be baked.

Egg-free and edible cookie dough

Egg-free baking dough

Some cookie doughs have no eggs at all: classic shortbread, many butter cookies, and doughs made with an egg substitute. Without raw eggs, they keep a little longer in the fridge, up to about 5 days. They still contain raw flour, so they aren't safe to eat raw, and the butter still picks up smells and goes stale. If you replaced eggs with a fruit purée like applesauce or banana, treat the dough like a fruit dough and use it within about 2 days, since those add moisture. Egg substitutes for baking lists which swaps add moisture and which don't.

Baking guideEgg Substitute for Baking: Exact Swaps + Free CalculatorGet the swap chart →

Edible cookie dough

Edible cookie dough is made to be eaten with a spoon, not baked. It skips eggs and uses flour that has been heat-treated, either bought that way or heated at home until it reaches 165°F. It usually has butter and a splash of milk. Keep it in a sealed container in the fridge for up to about 5 days, and freeze it for up to about 3 months. Because it contains butter and milk, it shouldn't sit out longer than 2 hours either.

Heat-treating flour at home works best with a thermometer, since you need the whole batch to reach 165°F, not just the edges. Store untreated flour as usual, and how to store flour explains how long a bag keeps.

Baking guideHow to Store Flour: Shelf Life, Weevils, and FreezingRead the storage guide →

Is it safe to eat raw cookie dough?

Regular cookie dough isn't safe to eat raw, even a spoonful, and even if it's fresh. Food safety agencies warn against it because of two ingredients: raw eggs, which can carry Salmonella, and raw flour, which can carry E. coli. Neither is killed by chilling or freezing. Only baking makes it safe.

That matters most for kids, pregnant people, older adults and anyone with a weakened immune system, since they're more likely to get seriously sick. It also matters at holiday cookie parties, when there are bowls of dough within easy reach for hours. If you love the taste of raw dough, make a separate batch of edible dough for snacking and keep the baking dough for the oven.

Once cookies are baked through, the risk from raw eggs and flour is gone, and the cookies follow the much longer storage times for baked cookies. That's one more reason not to let dough linger in the fridge for a week: a baked cookie keeps far longer on the counter than raw dough does in the fridge. If you have dough on its last day and nowhere to use the cookies, bake them anyway and freeze the baked cookies. Plain baked cookies keep about 3 months in the freezer for the best quality.

The same goes for licking the beaters or the bowl, and for tasting dough to "check" whether it's still good. Your senses can't detect Salmonella or E. coli.

How to tell if cookie dough has gone bad

Throw out the dough if you notice any of these:

Changes that are fine

When in doubt, throw it out. A fresh batch of dough takes 15 minutes. A case of food poisoning takes days.

When to move dough to the freezer

The fridge is for dough you'll bake in the next few days. The freezer is for everything else. A simple rule: if you won't bake it by day 3, freeze it on day 1 or 2. Dough frozen while fresh bakes up better than dough frozen on its last day.

Scooped dough balls freeze best. Freeze them spaced apart on a lined sheet pan until solid, about 1 to 2 hours, then bag them. They keep their best quality for about 3 months, and you can bake them straight from frozen with a minute or two added. Cut-out dough discs keep about 2 to 3 months. Doughs with fresh fruit lose quality fastest, so use them within about a month. The full method, with bake times by scoop size, is in how to freeze cookie dough.

Baking guideHow to Freeze Cookie Dough: Flash Freeze, Then Bag ItCheck the rise times →

If you do thaw frozen dough in the fridge, bake it within about 2 days. If it sat at room temperature for more than 2 hours while thawing, bake it right away or throw it out. Don't put it back in the freezer.

Baking dough straight from the fridge

Cold dough bakes a little differently from fresh dough, and knowing that helps you get good cookies on day 2 or 3.

Baking guideHow to Stop Cookies From Spreading: 7 Dough LeversShow me how →

Worked example: a Christmas cookie week

Say you're baking for a cookie exchange on Saturday, December 12, and you want to mix dough early in the week so baking day goes smoothly.

Monday, December 7, evening. You mix a batch of chocolate chip dough and a batch of sugar cookie dough, both with eggs. The chocolate chip dough gets scooped into balls and sealed in a container. The sugar cookie dough is pressed into two discs and double wrapped. Both go in the fridge with "Mon Dec 7" written on them. Counting 3 days, the last good day for both is Thursday, December 10.

Tuesday, December 8. You realize Saturday morning is the only time you'll have for baking. That's day 5, past the window, so you move both doughs to the freezer now, on day 1. The scooped balls go on a sheet pan for an hour and then into a bag.

Friday, December 11, evening. You move the sugar cookie discs to the fridge to thaw overnight. They need to be baked within 2 days, so by Sunday.

Saturday, December 12, morning. The chocolate chip dough balls bake straight from frozen with 2 extra minutes. The sugar cookie discs roll out after 10 minutes on the counter. Everything is baked by noon, and the leftover dough goes back in the fridge for Sunday.

If you're baking a big batch, planning oven time for a cookie baking marathon helps you work out how many sheets fit in a day, and how long Christmas cookies last covers the baked cookies once they're done.

Common cookie dough storage mistakes

Questions people ask

How long can homemade cookie dough stay in the fridge?

Homemade cookie dough made with eggs keeps about 3 days in the fridge, tightly wrapped, counting from the day you mixed it. Egg-free doughs like shortbread keep up to about 5 days, and doughs with cream cheese, yogurt or fresh fruit about 2 days. If you won't bake it within that time, freeze it while it's still fresh.

Can cookie dough sit out overnight?

No. Cookie dough with raw eggs and raw flour shouldn't sit at room temperature for more than 2 hours, or 1 hour if the room is above 90°F. Dough left out overnight should be thrown away, even if it looks and smells fine. Germs from raw eggs and flour can grow without changing how the dough looks.

Is 5-day-old cookie dough still good?

If it has eggs, it's past the safe window and should be thrown out. Food safety guidance for raw egg mixtures is a few days in the fridge, and 3 days is the conservative limit. An egg-free dough at 5 days is at the end of its window, so bake it that day if it looks and smells normal.

How long does store-bought cookie dough last in the fridge?

Store-bought refrigerated cookie dough keeps until the use-by date printed on the package, whether it's opened or not. Rewrap opened dough tightly. If the package gives a shorter time once opened, follow that. You can freeze it for about 2 months for the best quality, as long as you freeze it before the use-by date.

Does resting cookie dough for 72 hours make it unsafe?

No, a 72 hour rest fits inside the 3 day fridge window, as long as the dough stays wrapped and cold at 40°F or below the whole time. Bake it by the end of day 3. If you can't, freeze it before then. Resting longer doesn't improve the cookies much and pushes dough with eggs past its safe window.

How can you tell if cookie dough has gone bad?

Look for mold, a sour or fermented smell, a slimy wet surface or liquid in the container. A smell like old crayons means the butter has gone rancid. Throw it out if you see any of those, or if dough with eggs is past 3 days, even if it looks fine. Darker color on its own is normal.

Does cookie dough without eggs last longer in the fridge?

A little. Egg-free doughs like shortbread keep up to about 5 days in the fridge, compared with about 3 days for dough with eggs. They still contain raw flour, so they aren't safe to eat raw, and the butter picks up fridge smells over time. Wrap them tightly and freeze anything you won't bake within that window.

Can you bake cookie dough straight from the fridge?

Yes. Cold dough spreads less and often needs 1 to 2 extra minutes in the oven. If it's too firm to scoop, let it sit on the counter for 10 to 15 minutes, then put the rest back in the fridge between batches so it doesn't spend more than 2 hours out in total.