How Long Do Cookies Last?
Homemade cookies last 1–2 weeks in an airtight container at room temperature and 6 months or more in the freezer. Opened packaged cookies keep 3–4 weeks in the pantry, and unopened packages about 2 months.
Cookies — homemade
shelf life- Opened: 3–4 weeks in the pantry
- Unopened: 2 months in the pantry
Fridge at 40°F (4°C) or below · freezer at 0°F (−18°C). Freezer times are for best quality; frozen food stays safe longer.
Cookies are small, sweet baked goods with very little water left in them after baking, plus a high proportion of sugar and fat. That dryness makes them one of the most shelf-stable baked foods: they go stale, soft or rancid long before they become unsafe. The exceptions are cookies with cream cheese, custard or fresh dairy fillings.
How to store cookies
- Store crisp cookies and soft cookies in separate containers; together, the crisp ones pull moisture from the soft ones and both end up mediocre.
- Tuck a slice of sandwich bread into a container of soft cookies. The cookies draw moisture from the bread and stay chewy for several more days.
- Cool cookies completely on a rack before packing them, or trapped steam will make them soggy and can encourage mold.
- Freeze baked cookies in a freezer bag with parchment between layers, and thaw them on the counter for 15–30 minutes; freeze decorated cookies undecorated where possible.
How to tell if cookies have gone bad
- A stale, paint-like or cardboard smell means the butter, nuts or oils have gone rancid.
- Mold, which is rare on dry cookies but does appear on soft, moist ones or those with fruit or jam fillings.
- Crisp cookies that have turned bendy, or soft cookies that have turned rock hard, are stale rather than unsafe.
- A white, dusty film on chocolate chips is cocoa butter bloom, not mold, and is harmless.
Bacteria that cause food poisoning usually do not change the look, smell or taste of food. Go by the time limits first, and the signs above second.
Cookies shelf life chart
| State | Fridge | Freezer | Pantry |
|---|---|---|---|
| Homemade | Not recommended | 6–8 months | 1–2 weeks |
| Soft cookies are best within 3–5 days. Refrigerate only cookies with cream cheese or dairy fillings, for up to 1 week. | |||
| Opened | Not recommended | 8–12 months | 3–4 weeks |
| Packaged store-bought cookies, resealed or moved to an airtight container. | |||
| Unopened | Not recommended | 8–12 months | 2 months |
| Packaged cookies; go by the printed date, which is often longer. | |||
Not safe = perishable: no more than 2 hours at room temperature (1 hour above 90°F / 32°C). Not recommended = possible, but quality suffers or it serves no purpose.
Frequently asked questions
How do you keep homemade cookies fresh?
Keep them in an airtight container at room temperature once they are fully cool, and they will stay good for 1–2 weeks. Soft cookies taste freshest in the first 3–5 days. For anything longer, the freezer beats the pantry: frozen cookies hold their texture for months and thaw in under half an hour.
Should cookies be stored in the fridge?
No, not ordinary cookies. The fridge does not make them safer and tends to dry them out and let them pick up odors. The exception is cookies with perishable parts, such as cream cheese frosting, whipped ganache with fresh cream, or cheesecake filling, which should be refrigerated and eaten within about a week.
Can you eat cookies after the expiration date?
Usually, yes. The date on packaged cookies is a best-quality date, not a safety deadline. Unopened cookies stored in a cool, dry pantry are often fine for weeks past it, though they slowly lose crunch and the fats can go rancid. If they smell like old oil or crayons, they are past it.
Is it better to freeze cookies or cookie dough?
Both work, but frozen dough gives a fresher result. Baked cookies freeze well for 6–8 months and are ready in minutes. Portioned dough balls keep about 2 months and can be baked straight from frozen with a minute or two added to the baking time, so you get warm cookies on demand.
Related foods
| Food | Fridge | Freezer | Pantry |
|---|---|---|---|
| Cookie Dough Homemade |
2–4 days | 2 months | Not safe |
| Brownies Homemade |
1 week | 3 months | 3–4 days |
| Crackers Unopened |
Not recommended | 3–4 months | 8 months |
| Granola Bars Unopened |
Not recommended | Not recommended | 6–8 months |
| Chocolate Unopened |
Not recommended | 1 year | 1 year |
| Muffins Fresh |
1 week | 2–3 months | 1–2 days |
Reviewed 2026-09-20. Times follow published USDA FoodKeeper / FSIS, FDA and CDC storage guidance; where sources differ we use the shorter time. How we compile this data.