
Storage and Shelf Life
How long every bake and every baking ingredient lasts, where to keep it, and how to tell when it's done for.
Jump to the charts ↓- Counter for a few days, freezer for longer, almost never the fridge. Bread and cake go stale fastest at fridge temperature.
- The fridge is for perishable fillings only: cream cheese, custard, whipped cream, fresh fruit.
- Cool it completely, then wrap it tight. Warm and wrapped means sticky and moldy.
- Baking powder fades about six months after you open it. Test it before you blame the recipe.
- One rule for the pantry: airtight, dry, cool, dark, dated, first in, first out.
At my bakery everything on the shelf has a date on it, and the oldest one gets used first. We make dough ahead, freeze it, and bake it the second we need it. None of that is fussy. It's how you get the same result on Friday that you got on Monday, and it's how we keep bakes soft for days without a single preservative.
This lesson covers both ends: how to keep your ingredients working, and how to keep what you baked tasting like the day you baked it. Start with the tool. Pick what you made and it tells you where it goes and how long it has.
Storage rules are the same for everyone. Pick yours and I'll point out what changes for you.
How long will it keep?
Wrap it airtight once it's fully cool. Press plastic against any cut side.
How long baked goods last
These are for best quality, wrapped airtight, in a kitchen that isn't hot. In summer, lean toward the low end or freeze it.
| Bake | Counter | Fridge | Freezer |
|---|---|---|---|
| Crusty bread | 2–3 days | No | 3 months |
| Sandwich bread and rolls | 3–5 days | No | 3 months |
| Gluten-free bread | 1–2 days | No | 3 months, sliced |
| Muffins and quick breads | 2–3 days | No | 3 months |
| Cake, plain or with buttercream | 2–4 days | No | 1–3 months |
| Cake with cream cheese, custard, whipped cream or fresh fruit | 2 hours at most | 3–4 days | 1 month, if the filling freezes well |
| Soft cookies | 3–5 days | No | 3 months |
| Crisp cookies and biscotti | 1–2 weeks | No | 3 months |
| Brownies and bars | 3–4 days | No | 3 months |
| Scones and biscuits | 1–2 days | No | 3 months |
| Cinnamon rolls | 2 days | Only with cream cheese icing | 2 months |
| Fruit pie | 2 days | 2 more days | 3 months |
| Pumpkin, custard and cream pies | 2 hours at most | 3–4 days | Pumpkin only, 1 month |
| Cheesecake | 2 hours at most | 5 days | 2 months |
| Cookie dough, scooped | No | 2–3 days | 3 months |
| Pie crust, unbaked | No | 2 days | 3 months |
Why the fridge is the wrong place
Most people think stale means dried out. It doesn't. Staling is the starch in the crumb slowly re-crystallizing and squeezing its water back out. A loaf sealed in a bag still goes stale.
That process runs fastest at about 35 to 45°F. That's your refrigerator, almost exactly. So putting bread or cake in the fridge parks it right where it stales quickest.
| Where | What happens to the crumb | Use it for |
|---|---|---|
| Counter | Stales slowly. | Anything you'll eat in the next few days. |
| Fridge | Stales fastest. | Perishable fillings only. Food safety wins. |
| Freezer | Staling stops. | Everything else. A thawed cake comes back closer to fresh than a three-day-old one from the fridge. |
I go deeper on this in how to store a cake without the fridge.
The two-hour rule
Anything with cream cheese frosting, custard, whipped cream, pastry cream or cut fresh fruit is perishable. It gets two hours at room temperature, total, and then it goes in the fridge. Wrap it airtight, and bring it back to room temperature before you serve it so the crumb relaxes and the fat softens. You lose a little to staling. That's the trade for not making someone sick.
How to wrap it
- Cool it completely first. Wrap a bake while it's warm and you trap steam against it. The top goes tacky and it molds faster.
- No air gap. Press plastic wrap or parchment directly against any cut side. Not loosely over the top. Against it.
- Then airtight. A container with a tight lid, a zip bag with the air pressed out, or a cake dome.
- Crusty bread is the exception. Plastic turns the crust soft. Stand it cut side down on a board, or use a paper bag, and eat it within a couple of days.
- Keep crisp and soft apart. Crisp cookies in a tin with soft ones will turn soft too.
How to freeze and thaw
- Freeze it the day you bake it. The freezer holds a bake where it is. It doesn't bring it back.
- Slice first. Bread, loaf cakes and bars. Then you can pull out one piece at a time.
- Freeze separated, then bag. Cookies, scones and slices go on a tray until hard, then into a bag. They won't stick together.
- Wrap twice. Plastic against the bake, then a bag or container. That keeps out freezer smell and freezer burn.
- Thaw baked goods still wrapped, at room temperature. The condensation lands on the wrap, not on the crumb.
- Don't thaw dough. Cookies, scones, biscuits and pie crust go from the freezer straight into a fully hot oven. That's how we do it at the bakery, and it's why I say bake straight from frozen.
- Refresh bread for 5 to 10 minutes in a 350°F oven and the crust comes back.
And put a date on it. A freezer full of mystery bags is a freezer full of things you'll throw away.
Shelf life starts in the recipe
Most people try to fix shelf life after the bake is out of the oven. By then most of the work is done. How long a bake stays soft is decided mostly by what went into the bowl.
- Sugar holds water. Cut the sugar hard and it's fine on day one, sandy by day two. A spoon of honey, maple or brown sugar holds even more. More in what sugar does.
- Fat slows the starch down. Too little fat and a bake stales fast. More in what fat does.
- Binders lock water in. Psyllium and the other binders hold water inside the crumb. More in binders.
- Let the batter hydrate. Flour that never took up its water gives it up early. Gluten-free flours are slow to drink.
The full breakdown is in how to make your bakes last longer.
The recipe builder Sandy by day two? That's the recipe, not the wrap. This is the tool I built to run my bakery. It checks your sugar, fat and binder ratios as you type and tells you what to change. Try it free →How long baking ingredients last
These are for best quality once the package is open. Most of them don't become unsafe. They just stop working, or start tasting off.
Leaveners
| Ingredient | Once opened | Where | How to tell it's gone |
|---|---|---|---|
| Baking powder | 6 months | Airtight, dry | Doesn't bubble in hot water. |
| Baking soda | 6 months for baking | Airtight, away from smells | Weak fizz in vinegar. Clumps. |
| Dry yeast | 4 months fridge, 6 freezer | Airtight, cold | No foam after 10 minutes in warm water with a pinch of sugar. |
| Cream of tartar | Years | Airtight, dry | Hard clumps from moisture. |
Flours and starches
| Ingredient | Once opened | Where | How to tell it's gone |
|---|---|---|---|
| All-purpose and bread flour | 1 year | Airtight, cool pantry | Smells musty or sour. |
| Whole wheat flour | 3 months pantry, 1 year freezer | Airtight, cold is better | Smells bitter, like old oil. |
| White rice flour | 1 year | Airtight, cool pantry | Musty smell. |
| Whole-grain gluten-free flours (oat, brown rice, sorghum, buckwheat, teff) | 3 months pantry, 1 year freezer | Airtight, fridge or freezer | Bitter smell or taste. |
| Almond and other nut flours | 6 months fridge, 1 year freezer | Airtight, fridge or freezer | Smells like paint or old oil. |
| Coconut flour | 6–12 months | Airtight, cool, dry | Smells sour. Hard clumps. |
| Starches (corn, tapioca, potato, arrowroot) | 2 years | Airtight, bone dry | Clumps, or picks up other smells. |
Binders, nuts and seeds
| Ingredient | Once opened | Where | How to tell it's gone |
|---|---|---|---|
| Xanthan and guar gum | 2–3 years | Small airtight container, dry scoop | Set into a brick. |
| Psyllium husk | 2 years | Airtight, dry | Clumps. Musty smell. |
| Ground flax and chia | 3–6 months | Fridge or freezer | Bitter or fishy smell. |
| Nuts and seeds | 3 months pantry, 1 year freezer | Airtight, cold for the long haul | Bitter, sharp taste. |
| Nut and seed butters | 3 months pantry, 6 fridge | Fridge once opened | Sharp smell, darker color. |
| Shredded coconut and dried fruit | 6–12 months | Airtight, cool | Coconut smells soapy. Fruit is hard or moldy. |
Sugars and sweeteners
| Ingredient | Once opened | Where | How to tell it's gone |
|---|---|---|---|
| White sugar | Indefinitely | Airtight, dry | It doesn't go bad. It just clumps. |
| Brown sugar | Indefinitely | Airtight, with a terracotta disc or a slice of bread | Rock hard. Still good, just dried out. |
| Powdered sugar | 2 years | Airtight | Clumps, or tastes like the cupboard. |
| Honey | Indefinitely | Pantry, lid on | Crystals are normal. Warm the jar gently. |
| Maple syrup | 1 year | Fridge once opened | Mold on the surface, or a sour smell. |
| Molasses | 1–2 years | Pantry, lid on | Sour smell. |
Fats, dairy and eggs
| Ingredient | Once opened | Where | How to tell it's gone |
|---|---|---|---|
| Butter | 1–3 months fridge, 9 freezer | Wrapped tight. It soaks up smells. | Sour smell, darker yellow outside. |
| Plant-based butter | By the date on the pack | Fridge, or freezer for longer | Sour or soapy smell. |
| Neutral oils (canola, sunflower, avocado) | 6–12 months | Cool, dark, lid on | Smells like crayons or paint. |
| Coconut oil | 1–2 years | Cool pantry | Yellow color, sour smell. |
| Shortening | 1 year | Cool pantry | Darker color, off smell. |
| Eggs | 3–5 weeks | Fridge, in the carton | It floats in a glass of water. |
| Milk, cream, buttermilk, yogurt | By the date, about a week once open | Fridge | Sour smell, lumps. |
| Plant milk, shelf-stable | 7–10 days once open | Pantry sealed, fridge once open | Sour smell, thick or lumpy. |
Chocolate, cocoa, spices and extracts
| Ingredient | Once opened | Where | How to tell it's gone |
|---|---|---|---|
| Cocoa powder | 2–3 years | Airtight, away from spices | Smells flat. Clumps. |
| Dark chocolate | 2 years | Airtight, cool. Skip the fridge. | A gray film is bloom. Fine to bake with. |
| Milk and white chocolate | 1 year | Airtight, cool | Tastes sour or like the cupboard. |
| Ground spices | 1–2 years | Airtight, dark, not above the stove | Rub some in your palm. No smell, no flavor. |
| Whole spices | 3–4 years | Airtight, dark | Same test, after you crush one. |
| Vanilla and other extracts | Years | Dark, cool, cap on tight | Smells weak. The alcohol evaporated. |
| Salt | Indefinitely | Airtight | It only clumps. |
Test your leaveners in ten seconds
- Baking soda: drop a spoonful into a splash of vinegar or lemon juice. It should fizz hard and fast. A weak, lazy fizz means it's tired.
- Baking powder: drop a spoonful into hot water. It should bubble up right away. If it just sits there, it's done.
Baking powder dies faster because it reacts twice, once when it gets wet and again in the oven. Any moisture in the container sets off the first reaction early, and half your lift is gone before you bake. And if your soda is clumpy, grind it down first. The whole pantry is covered in my pantry storage guide.
What to buy, and what to spend
Write what it is and the day you opened it. This is the cheapest thing on the list and it saves the most. Every container in my bakery has one.
Start hereGet lids that snap or clamp shut, and containers you can see through. Square ones waste less shelf space than round ones. Nothing stays in the bag or the box it came in.
The thicker freezer bags, not the thin sandwich ones. Wrap first, then bag, then press the air out.
You don't need a vacuum sealer or a matching set of jars. Not sure how to store something? Ask me below and I'll tell you where I'd keep it.
What went wrong? Tap your problem
Storage explains a lot, but it's never the only suspect. So for each problem, here's the storage answer and what else to check.
Stale by the next day
It went in the fridge, or it sat out with the cut side open to the air.
The fix: Counter, wrapped tight, plastic pressed against the cut side. Freeze what you won't eat in two days.
- Not enough sugar or fat in the recipe.
- It was overbaked, so it started out dry.
- The batter didn't get time to hydrate.
- Gluten-free bakes stale faster. That part is normal.
Go deeper: Make your bakes last longer · Internal temperatures
Sticky, tacky top
It was wrapped while it was still warm. The steam had nowhere to go, so it soaked back into the top.
The fix: Cool it all the way on a rack, out of the pan, before you wrap it.
- A humid kitchen. Sugar pulls water out of the air.
- A lot of honey, maple or brown sugar in the recipe.
- It was a little underbaked.
Go deeper: How to store a cake without the fridge
Moldy in a few days
Warm, damp and sealed is exactly what mold wants. It was wrapped warm, or kept in a hot kitchen.
The fix: Cool completely before wrapping. In hot weather, freeze it on day one and pull out what you need.
- A very moist bake with fresh fruit in it.
- Low sugar. Sugar slows mold down.
- A knife or hands that weren't clean.
Go deeper: What sugar does
Tastes like the freezer
Air got to it. Fat soaks up smells, and dry freezer air pulls water out of anything that isn't sealed.
The fix: Wrap it against the surface, then bag it and press the air out. Use it within three months.
- Something strong in the freezer, like onions or fish.
- The freezer door gets opened a lot, so it thaws and refreezes.
Go deeper: Bake straight from frozen
Soggy after thawing
It was unwrapped while it was still frozen, so the condensation landed on the bake. Or it was dough, and dough shouldn't be thawed at all.
The fix: Thaw baked goods still wrapped. Bake cookie dough, scones and crust straight from frozen.
- It went into the freezer still warm.
- A filling or frosting that doesn't freeze well, like custard or whipped cream.
Go deeper: Bake straight from frozen · How to store a cake
Flat or soapy bakes
Your leavener is tired or clumpy. An open box pulls moisture from the air. A clump of soda is soapy where it lands and flat everywhere else.
The fix: Test it, sieve it, and keep it airtight with a dry scoop.
- Too much baking soda, or no acid for it to react with.
- The oven was too cool.
- The batter sat too long before baking.
Go deeper: Pantry storage guide · The pH side of it · Oven temperatures
Bitter, off taste
Something with oil in it went rancid. Nut flours, whole-grain flours, ground flax, nuts and old oil are the usual ones.
The fix: Smell everything before it goes in the bowl. Keep the oily ingredients in the fridge or freezer.
- Too much baking soda or baking powder.
- Cocoa or a sweetener with a bitter edge.
- It's a little burnt on the bottom.
Go deeper: Flour handling · Pantry storage guide
Brown sugar rock hard
Brown sugar is the opposite of everything else on the shelf. It doesn't pull water in. It loses it.
The fix: Seal it in a container with a damp terracotta disc or a slice of bread overnight. Keep it airtight from then on.
- Nothing else. This one is always storage.
Go deeper: Pantry storage guide
Quick questions
Should bread go in the fridge?
No. Bread goes stale fastest at fridge temperature. Keep it on the counter for a few days, and freeze the rest sliced.
How long does cake last on the counter?
Two to four days, wrapped airtight, if it has no perishable filling. Cakes with cream cheese frosting, custard, whipped cream or fresh fruit go in the fridge within two hours.
Can you freeze cake?
Yes, for one to three months. Wrap it tight, and thaw it at room temperature still wrapped so the condensation lands on the wrap and not on the cake.
How long do cookies last?
Soft cookies keep three to five days in an airtight container. Crisp cookies keep one to two weeks in a tin. Both freeze for three months.
Does flour go bad?
Yes. White flour keeps about a year in an airtight container. Whole-grain and nut flours have natural oils that turn bitter, so they keep about three months in the pantry and up to a year in the freezer.
Does baking powder expire?
It loses strength about six months after you open it. Drop a spoonful into hot water. If it doesn't bubble right away, replace it.
Do I wrap it hot, warm or cool?
Cool, always. Wrapping a warm bake traps steam, so the top goes tacky and it molds faster.
Ten quick ones before you go
Get 7 right and the lesson is done.
Where does a plain cake go stale fastest?
You're freezing scooped cookie dough. How do you bake it?
How do you test baking powder?
How long can a cake with cream cheese frosting sit out?
Your banana bread is still warm. When do you wrap it?
What is staling, really?
Where do almond flour and ground flax belong?
How do you keep crusty bread for a day or two?
How do you thaw a frozen cake?
How long does baking powder stay strong once it's open?
Ask me about storage
Not sure where something goes, or whether it's still good? Ask here. I read every question, and your answer helps the next baker too.