FridgeLife

How Long Does Cake Last?

Unfrosted or buttercream-frosted cake lasts 1–2 days on the counter, about 1 week in the fridge and 2–4 months in the freezer. Cake with whipped cream, custard, cream cheese frosting or fresh fruit must be refrigerated and eaten within 3–4 days.

Cake — fresh

shelf life
Fridge
1 week
Freezer
2–4 months
Pantry
1–2 days
  • Fresh, cream or custard filled: 3–4 days in the fridge
  • Unfrosted layers: 1 week in the fridge

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.

Cake is a baked batter of flour, sugar, eggs and fat, usually finished with frosting. The baked crumb and a sugary buttercream are low enough in available moisture to sit out for a day or two, but whipped cream, custard, cream cheese or fresh fruit on or in the cake make it perishable. Staling and drying, not bacteria, are what usually end a plain cake.

How to store cake

How to tell if cake has gone bad

  • Fuzzy white, green or blue mold spots, often starting under the cake board or where a fruit filling meets the crumb.
  • A sour or fermented smell from cream, custard or fruit fillings.
  • Frosting that has turned slick, watery or separated, especially whipped cream that has collapsed into liquid.
  • A hard, dry, crumbly texture means the cake is stale rather than unsafe, but it will not be pleasant to eat.

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.

Cake shelf life chart

StateFridgeFreezerPantry
Fresh1 week2–4 months1–2 days
Unfrosted, or frosted with buttercream, ganache or fondant.
Fresh, cream or custard filled3–4 daysNot recommendedNot safe
Includes whipped cream, pastry cream, mousse, fresh fruit and cream cheese frosting. Whipped cream and custard weep when thawed.
Unfrosted layers1 week2–4 months1–2 days
Wrap each cooled layer twice in plastic wrap before freezing; frost while still partly frozen.

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

Does cake need to be refrigerated?

Only some cakes do. Plain cake and cake frosted with buttercream, ganache or fondant can stay covered on the counter for 1–2 days. Any cake with whipped cream, custard, mousse, cream cheese frosting or fresh fruit is perishable and belongs in the fridge, with no more than 2 hours total at room temperature.

Can you freeze a frosted cake?

Yes, a buttercream or ganache cake freezes well for 2–4 months. Freeze it uncovered for about an hour until the frosting is hard, then wrap it tightly in plastic wrap and foil. Thaw it in the fridge still wrapped so condensation forms on the wrapping instead of the frosting. Whipped cream and custard fillings do not survive freezing well.

Is it safe to eat cake that sat out overnight?

A plain or buttercream cake left covered overnight is fine; that is how it is normally stored. A cake with whipped cream, custard, cream cheese frosting or cut fruit that sat out for more than 2 hours should be thrown away, because bacteria can grow in those toppings without any change in smell or taste.

How far ahead can I bake a cake for a party?

Bake the layers up to 2 days ahead and keep them wrapped at room temperature, or freeze them for up to 2–4 months. Frost the cake the day before or the morning of the party. Freezing the layers actually makes them easier to stack and trim, and keeps them moister than holding them in the fridge.

Related foods

FoodFridgeFreezerPantry
Cupcakes
Fresh
1 week2–3 months1–2 days
Frosting
Opened
2–3 weeks2–3 monthsNot recommended
Cheesecake
Fresh
5–7 days2–3 monthsNot safe
Brownies
Homemade
1 week3 months3–4 days
Whipped Cream
Opened
3–4 weeksNot recommendedNot safe
Banana Bread
Homemade
1 week3 months3–4 days

All baked goods

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.