Homemade cookie dough made with raw eggs lasts about 2 to 4 days in the fridge, the USDA FoodKeeper window for raw eggs out of the shell, while store-bought refrigerated dough is good until the use-by date on the package. In the freezer, cookie dough keeps its best quality for about 2 months, according to the FoodKeeper, and stays safe as long as it is held at 0°F (-18°C).
That means the freezer is your friend for holiday baking: mix big batches now, scoop them, freeze them, and bake a tray whenever you need fresh cookies. This guide covers fridge and freezer times for every kind of dough, the best way to freeze it, and what the FDA says about eating it raw.
Cookie Dough Storage Times
Here is how long each type of cookie dough lasts. Times are from the USDA FoodKeeper unless noted.
| Type of dough | Refrigerator, 40°F (4°C) | Freezer, 0°F (-18°C) |
|---|---|---|
| Homemade, with raw eggs | 2 to 4 days* | About 2 months for best quality* |
| Store-bought refrigerated dough (tubs, tubes, break-apart bars) | Until the package use-by date | 2 months |
| Store-bought frozen dough | Keep frozen | 12 months |
| Baked cookies | Follow the recipe; most keep at room temperature | 8 to 12 months |
*The FoodKeeper does not list homemade cookie dough. The fridge time uses its window for raw eggs out of the shell, the most perishable ingredient, and the freezer time uses its figure for refrigerated cookie dough. Some baking sources suggest up to 3 months in the freezer; dough frozen longer is still safe at 0°F, but it dries out and picks up freezer odors.
Why Homemade Dough Has a Short Fridge Life
Once you crack eggs into a bowl, the clock starts. The FoodKeeper gives raw yolks and whites 2 to 4 days in the fridge, and that does not change when they are mixed with butter, sugar and flour. Store-bought dough is made under controlled conditions and packaged for a specific shelf life, which is why its date is the one to follow, not a general rule.
Many recipes ask you to chill dough for 24 to 72 hours to deepen flavor and reduce spreading. That fits within the safe window. If your plans change and the dough will not be baked by day 3 or 4, move it to the freezer.
Pro tip: Scoop the dough into balls before you freeze it, not after. Frozen dough in one big block is hard to portion, while frozen balls go straight from the bag to the baking sheet.
How to Freeze Cookie Dough
Most drop cookie doughs freeze very well: chocolate chip, oatmeal, peanut butter, snickerdoodle and sugar cookie dough all come out of the oven nearly identical to fresh. Doughs that are thin and runny, such as tuile or lace cookie batter, do not freeze as well.
Drop Cookies (Scooped Balls)
- Scoop the dough into balls the size you normally bake.
- Flash freeze. Place the balls close together, without touching, on a parchment-lined baking sheet and freeze for 1 to 2 hours, until firm.
- Bag them. Transfer the frozen balls to a freezer bag or airtight container. Press out as much air as possible to prevent freezer burn.
- Label it. Write the type of cookie, the date, and the oven temperature and baking time. Future you will not remember them.
This tray method is the same one used for many freezer prep foods, as described in our freezer meal prep guide.
Slice-and-Bake Logs
Shortbread, sugar cookie, icebox and pinwheel doughs work best as logs. Shape the dough into a cylinder, wrap it tightly in plastic wrap, then put it in a freezer bag. Slice the log while it is still frozen or just softened enough to cut cleanly.
Cut-Out Cookie Dough
Roll-out sugar cookie and gingerbread doughs can be frozen as flat disks wrapped in plastic and bagged. Thaw the disk in the fridge overnight before rolling, since frozen dough cracks.

How to Bake Frozen Cookie Dough
You do not need to thaw drop cookie dough. Put the frozen balls on a lined baking sheet and bake at the temperature in your recipe, adding 1 to 3 minutes to the baking time. Watch the first tray and adjust. Frozen dough spreads less, so cookies come out a little thicker, which many bakers prefer.
For logs and disks, thaw in the refrigerator rather than on the counter. Dough containing raw eggs should not sit at room temperature for more than 2 hours, the standard USDA rule for perishable food.
Store-bought frozen dough should be baked straight from frozen as directed on the package. The FoodKeeper notes for frozen doughs: keep frozen, and for safety, cook as directed.
Is It Safe to Eat Raw Cookie Dough?
No. The FDA and CDC both advise against eating raw cookie dough, and the reason is not only the eggs.
- Raw flour. The FDA explains that flour is a raw agricultural product. Milling grain into flour does not kill harmful bacteria, and the FDA has investigated outbreaks of E. coli and Salmonella linked to raw flour and products containing it, including cookie dough and cake mix. Germs are only killed when the flour is baked or cooked.
- Raw eggs. Raw eggs can carry Salmonella. The CDC investigated a Salmonella outbreak linked to raw cookie dough in 2023.
- Home heat-treating is not reliable. The FDA says home methods of heat-treating flour may not kill all bacteria and do not make it safe to eat raw.
The same advice applies to tasting the bowl, letting kids lick the beaters, and stirring homemade raw dough into ice cream. Young children, older adults, pregnant people and anyone with a weakened immune system are at higher risk of serious illness.
What About "Edible" Cookie Dough?
Products labeled as ready to eat raw are a different thing. According to the FDA, edible cookie dough products are made with heat-treated flour and pasteurized eggs or no eggs. Check the label: if a package says to bake before eating, it is not meant to be eaten raw. Treat edible dough like any other perishable product and follow its date and storage instructions.
How to Tell If Cookie Dough Has Gone Bad
Throw cookie dough out if you see any of these:
- A sour, rancid or off smell (butter can turn rancid)
- Mold, or gray or dark discoloration
- A slimy surface in the fridge
- Homemade dough with raw eggs that has been in the fridge longer than 4 days, even if it looks fine
Frozen dough with dry, crusty edges or ice crystals has freezer burn. It is safe to bake, but the cookies may be dry or taste stale. Our guide to freezer burn explains how to prevent it with better wrapping.
Holiday Baking Plan
Cookie season goes smoother when the freezer does part of the work:
- Two to four weeks ahead: mix and freeze doughs that freeze best, such as chocolate chip, oatmeal and snickerdoodle balls, and slice-and-bake logs.
- The week before: thaw cut-out dough disks in the fridge, roll, cut and bake.
- Day of: bake frozen drop cookies so they come out warm.
- After the holidays: freeze baked leftovers. The FoodKeeper gives baked cookies 8 to 12 months in the freezer.
Keep your freezer at 0°F (-18°C) so dough stays firm and fresh; our guide on what temperature a freezer should be explains how to check. If you are also making pies, see can you freeze pumpkin pie, and for yeast doughs, can you freeze pizza dough.
FAQ
How long will cookie dough last in the fridge?
Homemade cookie dough with raw eggs lasts 2 to 4 days in the fridge, based on the USDA FoodKeeper window for raw eggs. Store-bought refrigerated cookie dough lasts until the use-by date on the package.
How long does cookie dough last in the freezer?
About 2 months for best quality, according to the USDA FoodKeeper figure for cookie dough. Store-bought frozen dough lasts 12 months. Dough kept at 0°F (-18°C) remains safe longer but may dry out.
How do you freeze cookie dough?
Scoop the dough into balls, freeze them on a parchment-lined tray until firm, then move them to a labeled freezer bag with the air pressed out. Bake from frozen, adding 1 to 3 minutes.
Is it safe to eat raw cookie dough?
No. The FDA and CDC advise against it because raw flour can carry E. coli and raw eggs can carry Salmonella. Only products labeled as edible, made with heat-treated flour and pasteurized or no eggs, are meant to be eaten raw.
Can you eat cookie dough after the expiration date?
Do not eat store-bought refrigerated cookie dough past its use-by date. If you freeze it before that date, it keeps about 2 months in the freezer and should be baked, not eaten raw.
The Bottom Line
Homemade cookie dough has only a few days in the fridge, but it freezes beautifully for about 2 months. Scoop, flash freeze, label and bake from frozen whenever you want warm cookies, and skip tasting the raw dough. During the holidays it is easy to lose track of which bag went in when, so logging each batch in Freezer Inventory Tracker with its freeze date gives you a reminder to bake it while it is at its best.
