Slices of frosted loaf cake on a plate
Baking School · Lesson 9

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 ↓
The short answer
  • 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.

What do you bake?

Storage rules are the same for everyone. Pick yours and I'll point out what changes for you.

For any baker: butter, eggs and milk are in the charts, and so are the plant-based and gluten-free ingredients.
If you bake vegan: with no dairy or eggs, fewer of your bakes need the fridge. But your pantry is full of things that go rancid: nut flours, seeds, ground flax, nut butters. Those belong in the fridge or freezer.
If you bake gluten-free: your bakes go stale faster than wheat ones, so the freezer is your best friend. Slice bread before you freeze it. And keep whole-grain and nut flours cold. They turn bitter on the shelf.
If you bake vegan and gluten-free: that's my bakery. Build shelf life into the recipe, keep bakes out of the fridge, freeze what you won't eat in two days, and store nut flours, whole-grain flours and flax cold.
Try it

How long will it keep?

Counter2 to 4 days
FridgeSkip itIt goes stale fastest here.
Freezer3 months

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.

BakeCounterFridgeFreezer
Crusty bread2–3 daysNo3 months
Sandwich bread and rolls3–5 daysNo3 months
Gluten-free bread1–2 daysNo3 months, sliced
Muffins and quick breads2–3 daysNo3 months
Cake, plain or with buttercream2–4 daysNo1–3 months
Cake with cream cheese, custard, whipped cream or fresh fruit2 hours at most3–4 days1 month, if the filling freezes well
Soft cookies3–5 daysNo3 months
Crisp cookies and biscotti1–2 weeksNo3 months
Brownies and bars3–4 daysNo3 months
Scones and biscuits1–2 daysNo3 months
Cinnamon rolls2 daysOnly with cream cheese icing2 months
Fruit pie2 days2 more days3 months
Pumpkin, custard and cream pies2 hours at most3–4 daysPumpkin only, 1 month
Cheesecake2 hours at most5 days2 months
Cookie dough, scoopedNo2–3 days3 months
Pie crust, unbakedNo2 days3 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.

WhereWhat happens to the crumbUse it for
CounterStales slowly.Anything you'll eat in the next few days.
FridgeStales fastest.Perishable fillings only. Food safety wins.
FreezerStaling 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

  1. 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.
  2. No air gap. Press plastic wrap or parchment directly against any cut side. Not loosely over the top. Against it.
  3. Then airtight. A container with a tight lid, a zip bag with the air pressed out, or a cake dome.
  4. 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.
  5. 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

IngredientOnce openedWhereHow to tell it's gone
Baking powder6 monthsAirtight, dryDoesn't bubble in hot water.
Baking soda6 months for bakingAirtight, away from smellsWeak fizz in vinegar. Clumps.
Dry yeast4 months fridge, 6 freezerAirtight, coldNo foam after 10 minutes in warm water with a pinch of sugar.
Cream of tartarYearsAirtight, dryHard clumps from moisture.

Flours and starches

IngredientOnce openedWhereHow to tell it's gone
All-purpose and bread flour1 yearAirtight, cool pantrySmells musty or sour.
Whole wheat flour3 months pantry, 1 year freezerAirtight, cold is betterSmells bitter, like old oil.
White rice flour1 yearAirtight, cool pantryMusty smell.
Whole-grain gluten-free flours (oat, brown rice, sorghum, buckwheat, teff)3 months pantry, 1 year freezerAirtight, fridge or freezerBitter smell or taste.
Almond and other nut flours6 months fridge, 1 year freezerAirtight, fridge or freezerSmells like paint or old oil.
Coconut flour6–12 monthsAirtight, cool, drySmells sour. Hard clumps.
Starches (corn, tapioca, potato, arrowroot)2 yearsAirtight, bone dryClumps, or picks up other smells.

Binders, nuts and seeds

IngredientOnce openedWhereHow to tell it's gone
Xanthan and guar gum2–3 yearsSmall airtight container, dry scoopSet into a brick.
Psyllium husk2 yearsAirtight, dryClumps. Musty smell.
Ground flax and chia3–6 monthsFridge or freezerBitter or fishy smell.
Nuts and seeds3 months pantry, 1 year freezerAirtight, cold for the long haulBitter, sharp taste.
Nut and seed butters3 months pantry, 6 fridgeFridge once openedSharp smell, darker color.
Shredded coconut and dried fruit6–12 monthsAirtight, coolCoconut smells soapy. Fruit is hard or moldy.

Sugars and sweeteners

IngredientOnce openedWhereHow to tell it's gone
White sugarIndefinitelyAirtight, dryIt doesn't go bad. It just clumps.
Brown sugarIndefinitelyAirtight, with a terracotta disc or a slice of breadRock hard. Still good, just dried out.
Powdered sugar2 yearsAirtightClumps, or tastes like the cupboard.
HoneyIndefinitelyPantry, lid onCrystals are normal. Warm the jar gently.
Maple syrup1 yearFridge once openedMold on the surface, or a sour smell.
Molasses1–2 yearsPantry, lid onSour smell.

Fats, dairy and eggs

IngredientOnce openedWhereHow to tell it's gone
Butter1–3 months fridge, 9 freezerWrapped tight. It soaks up smells.Sour smell, darker yellow outside.
Plant-based butterBy the date on the packFridge, or freezer for longerSour or soapy smell.
Neutral oils (canola, sunflower, avocado)6–12 monthsCool, dark, lid onSmells like crayons or paint.
Coconut oil1–2 yearsCool pantryYellow color, sour smell.
Shortening1 yearCool pantryDarker color, off smell.
Eggs3–5 weeksFridge, in the cartonIt floats in a glass of water.
Milk, cream, buttermilk, yogurtBy the date, about a week once openFridgeSour smell, lumps.
Plant milk, shelf-stable7–10 days once openPantry sealed, fridge once openSour smell, thick or lumpy.

Chocolate, cocoa, spices and extracts

IngredientOnce openedWhereHow to tell it's gone
Cocoa powder2–3 yearsAirtight, away from spicesSmells flat. Clumps.
Dark chocolate2 yearsAirtight, cool. Skip the fridge.A gray film is bloom. Fine to bake with.
Milk and white chocolate1 yearAirtight, coolTastes sour or like the cupboard.
Ground spices1–2 yearsAirtight, dark, not above the stoveRub some in your palm. No smell, no flavor.
Whole spices3–4 yearsAirtight, darkSame test, after you crush one.
Vanilla and other extractsYearsDark, cool, cap on tightSmells weak. The alcohol evaporated.
SaltIndefinitelyAirtightIt 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

About $5Masking tape and a marker

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 here
$15 to $30A set of clear airtight containers

Get 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.

$10 to $15Freezer zip bags and plastic wrap

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

If it's storage

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.

It might not be storage
  • 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.

Sticky, tacky top

If it's storage

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.

It might not be storage
  • 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.

Moldy in a few days

If it's storage

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.

It might not be storage
  • A very moist bake with fresh fruit in it.
  • Low sugar. Sugar slows mold down.
  • A knife or hands that weren't clean.

Tastes like the freezer

If it's storage

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.

It might not be storage
  • Something strong in the freezer, like onions or fish.
  • The freezer door gets opened a lot, so it thaws and refreezes.

Soggy after thawing

If it's storage

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 might not be storage
  • It went into the freezer still warm.
  • A filling or frosting that doesn't freeze well, like custard or whipped cream.

Flat or soapy bakes

If it's storage

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.

It might not be storage
  • Too much baking soda, or no acid for it to react with.
  • The oven was too cool.
  • The batter sat too long before baking.

Bitter, off taste

If it's storage

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.

It might not be storage
  • Too much baking soda or baking powder.
  • Cocoa or a sweetener with a bitter edge.
  • It's a little burnt on the bottom.

Brown sugar rock hard

If it's storage

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.

It might not be storage
  • Nothing else. This one is always storage.
The recipe builder Bake once, eat all week. Scale a recipe up in one tap, freeze the extra, and keep every ratio where it belongs. It's how we plan a week of baking at the bakery. Try it free →

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.

Check yourself

Ten quick ones before you go

Get 7 right and the lesson is done.

Where does a plain cake go stale fastest?

The fridge. Starch re-crystallizes fastest at fridge temperature.

You're freezing scooped cookie dough. How do you bake it?

Straight from the freezer, into a fully hot oven. Thawing lets the structure fall apart.

How do you test baking powder?

Hot water. It should bubble right away. Vinegar is the test for baking soda.

How long can a cake with cream cheese frosting sit out?

Two hours, total. Then it goes in the fridge.

Your banana bread is still warm. When do you wrap it?

Wrap it warm and you trap steam. The top goes tacky and it molds faster.

What is staling, really?

It's the starch. That's why a loaf sealed in a bag still goes stale.

Where do almond flour and ground flax belong?

Cold. Their natural oils turn bitter on the shelf.

How do you keep crusty bread for a day or two?

Plastic turns the crust soft, and the fridge stales it fastest.

How do you thaw a frozen cake?

Still wrapped, so the condensation lands on the wrap and not on the crumb.

How long does baking powder stay strong once it's open?

About six months. Test it in hot water before you blame the recipe.
Questions and answers

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.

    Ask a question

    ← Back to Baking School