How Long Does Cookie Dough Last in the Fridge? Homemade and Store-Bought
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.
More free baking tools
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.
| Dough | Counter | Fridge | Freezer (best quality) |
|---|---|---|---|
| Drop cookie dough with eggs | 2 hours max | About 3 days | About 3 months |
| Rolled or cut-out dough with eggs | 2 hours max | About 3 days | 2 to 3 months |
| Egg-free butter dough (shortbread) | 2 hours max | Up to 5 days | About 3 months |
| Dough with cream cheese, yogurt or fresh fruit | 2 hours max | About 2 days | About 1 month |
| Store-bought, unopened | 2 hours max | Until the use-by date | About 2 months |
| Store-bought, opened | 2 hours max | Until the use-by date | About 2 months |
| Edible dough (heat-treated flour, no eggs) | 2 hours max | Up to 5 days | About 3 months |
| Frozen dough thawed in the fridge | 2 hours max | Bake within 2 days | Don'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.
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.
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 fridge | What's happening | What to do |
|---|---|---|
| 30 minutes to 2 hours | Butter firms up, less spreading | Fine to bake any time |
| 12 to 24 hours | Flour fully hydrated, better color | The sweet spot for most drop cookies |
| 24 to 72 hours | Deeper, toffee-like flavor | Bake by the end of day 3 |
| Day 3 to day 5 | Surface dries, flavor dulls, eggs past the safe window | Should already be baked or frozen |
| Past day 5 | Smells stale, leavening weaker, food safety risk | Throw 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.
- 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.
- 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.
- 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.
- 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.
- 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.
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.
- Day 1. The dough firms up and turns a little darker. Chocolate chip dough may look slightly gray at the edges as the flour soaks up butter and sugar. That's normal.
- Day 2. The flavor deepens. The dough is stiffer and may need 10 to 15 minutes on the counter before you can scoop it. Cookies bake up thicker and more evenly browned.
- Day 3. Peak flavor for many recipes, and the last day to bake or freeze dough with eggs. Discs may start to crack around the edges, especially if they weren't double wrapped.
- Day 4 and after. The outside dries and darkens, the butter can taste stale, and some doughs start to smell sour. Dough with eggs is past its safe window.
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 dough | Fridge time | Best shape to store | Notes |
|---|---|---|---|
| Chocolate chip | About 3 days | Scooped balls in a sealed container | Many bakers think it tastes best after 24 to 36 hours |
| Oatmeal or oatmeal raisin | About 3 days | Scooped balls | Oats soak up moisture, so the dough firms a lot |
| Peanut butter | About 3 days | Scooped balls | Very stiff when cold, give it 10 minutes before pressing |
| Sugar cookie cut-outs | About 3 days | Flat discs, double wrapped | Edges crack if they dry, so wrap well |
| Gingerbread | About 3 days | Flat discs, double wrapped | Molasses keeps it soft, but it still has eggs |
| Snickerdoodles | About 3 days | Scooped balls, roll in cinnamon sugar right before baking | The coating gets damp if added ahead |
| Shortbread (no eggs) | Up to 5 days | Log or disc | Picks up fridge smells easily, so wrap twice |
| Thumbprints | About 3 days | Balls, filled just before baking | Jam 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.
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.
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.
- Unopened: keep it in the fridge until the use-by date. Don't leave it out on the counter, even if the package is sealed.
- Opened: rewrap it tightly or close it in a zip-top bag, and use it by the same date. Opening it never adds time. Some packages give a shorter "use within" time once opened, and if yours does, follow that.
- Freezing: most store-bought doughs can be frozen for about 2 months for the best quality. Freeze it before the use-by date, not after. Check the package for baking directions from frozen.
- Past the date: throw it out. You can't tell from looking whether old dough with eggs is safe.
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.
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.
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:
- Mold. Fuzzy spots in any color, usually on the surface or where the dough touched the wrap. Don't cut it away. Throw out the whole batch.
- A sour or fermented smell. Fresh dough smells like butter, sugar and vanilla. A sharp, sour, yeasty or cheesy smell means something is growing.
- A slimy or sticky wet surface that wasn't there before, or liquid pooling in the container.
- Rancid butter. A smell like old crayons or paint means the fat has gone off. Cookies made from it taste bitter and stale.
- Time is up. Dough with eggs past 3 days, store-bought dough past its use-by date, or any dough that sat out for more than 2 hours.
Changes that are fine
- Darker color, especially in doughs with brown sugar.
- A dry, slightly crusty outer layer on day 2 or 3 if the wrap wasn't tight. Scrape it off if it's hard.
- Stiffness. Cold butter makes dough firm. Give it a few minutes on the counter.
- Chocolate chips with a pale coating. That's bloom from cold storage and is harmless.
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.
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.
- Expect thicker cookies. Cold butter melts more slowly, so cold dough spreads less. That's usually a plus. If you want flatter cookies, press the balls down slightly before baking. For more control, how to stop cookies from spreading covers the other levers.
- Add a minute. Cold dough often needs 1 to 2 extra minutes. Watch the edges, not the clock. How to tell when cookies are done explains what set edges and soft centers look like.
- Soften very stiff dough briefly. If it's too hard to scoop, leave it on the counter for 10 to 15 minutes. That time counts toward the 2 hour limit, so put the rest back in the fridge between batches.
- Rolled dough needs a short warm-up. A disc straight from the fridge cracks when you roll it. Let it sit for 5 to 10 minutes, then roll.
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
- Leaving the bowl out while you bake batch after batch. A big batch can take 2 hours to bake through. Keep the dough in the fridge and take out only what fits on the next sheet.
- Thinking resting time adds storage time. A 72 hour rest uses up the whole fridge window. It doesn't start a new one.
- Covering the bowl loosely. The dough dries and picks up smells. Press wrap directly onto it.
- Freezing dough on its last day. It works, but it bakes up flatter in flavor. Freeze early.
- Tasting the dough to see if it's still good. Raw dough isn't safe to eat at any age, and spoilage often doesn't show in taste.
- Thawing frozen dough on the counter. Bake it from frozen or thaw it in the fridge.
- Letting kids snack on dough at a decorating party. Make a small batch of edible dough for them instead. Planning a kids' cookie decorating party has the dough amounts.
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.



