A plain or buttercream-frosted cake lasts about 7 to 10 days in the fridge, based on the USDA FoodKeeper window for commercial cakes. Cakes with cream cheese frosting, whipped cream, custard or fresh fruit are more perishable: refrigerate them within 2 hours and eat them within 3 to 4 days.
The frosting and filling decide most of the answer, not the cake itself. Below is a breakdown by type of cake, how to store it so it does not dry out, which cakes freeze well and how to thaw a frozen cake without ruining the frosting.
Cake Storage Times by Type
The USDA FoodKeeper lists commercial cakes and muffins at 3 to 7 days at room temperature, 7 to 10 days in the refrigerator and 6 months in the freezer. It does not list every homemade cake, so for perishable fillings the table below uses the closest FoodKeeper entries, such as cream pies and whipped cream, as the conservative guide.
| Cake type | Counter | Fridge, 40°F (4°C) | Freezer, 0°F (-18°C) |
|---|---|---|---|
| Unfrosted cake, pound cake, bundt | 3 to 7 days, covered | 7 to 10 days | Up to 6 months (best within 2 to 3 for homemade) |
| Buttercream (butter and sugar only) | 3 to 7 days in a cool room | 7 to 10 days | 2 to 3 months |
| Cream cheese frosting | 2 hours max | 3 to 4 days | 2 to 3 months |
| Whipped cream frosting | 2 hours max | About 1 day | 1 to 2 months (texture suffers) |
| Custard, pudding or cream filling | 2 hours max | 3 to 4 days | Not recommended |
| Fresh fruit topping | 2 hours max | 1 to 2 days at best quality | Not recommended |
| Cheesecake | 2 hours max | 5 to 7 days | 2 to 3 months |
| Fruitcake | Up to 6 months | Up to 12 months | Up to 12 months |
Sources: USDA FoodKeeper entries for commercial cakes, cheesecake, fruit cake, cream pies and sweetened whipped cream; FSIS for the 2-hour rule. The homemade freezer windows of 2 to 3 months are our quality recommendation, since homemade cakes have no preservatives and dry out sooner than store-bought ones.
Why the frosting matters
The cake layers are mostly flour, sugar and fat, which is why a plain cake can sit on the counter for days. Frostings and fillings made with cream cheese, whipped cream, milk-based custard or eggs are perishable dairy. The USDA Food Safety and Inspection Service (FSIS) says perishable foods should not sit at room temperature for more than 2 hours, or 1 hour above 90°F (32°C). Oklahoma State University Extension also points out that cakes and pastries with cream cheese fillings and icings need refrigeration, just like cream and custard pies.
A simple American buttercream made from butter and powdered sugar is the most forgiving, because the high sugar content binds the water. Once it includes milk, cream, eggs or cream cheese, treat it like a perishable frosting.
Signs a Cake Has Gone Bad
Most cakes get stale before they get unsafe, but check for:
- Mold of any kind, including small fuzzy spots on fruit fillings or along the cut edge. Throw the whole cake out; soft, moist foods let mold spread below the surface.
- Sour or off smells, especially from cream cheese or whipped cream frosting.
- Weeping, slimy or separated filling in custard or cream layers.
- Hard, dry crumb and cracked frosting. This is staleness, not spoilage. It is safe but not pleasant; stale cake still works in trifles or cake pops.
If a cake with a perishable frosting has been out at a party for more than 2 hours, the FSIS rule says to discard it, even if it looks fine.
How to Store Cake in the Fridge
Fridge air is dry and full of odors, so the goal is to keep the cake sealed:
- Chill frosted cakes briefly uncovered, about 15 to 20 minutes, until the frosting firms up. This keeps plastic wrap from sticking to it.
- Cover it. Use a cake carrier, an upside-down large bowl or an airtight container. For a cut cake, press a piece of plastic wrap against the exposed crumb so it does not dry out.
- Keep it away from strong smells like onions, garlic and leftovers. Butter-rich frostings absorb odors easily.
- Let it sit out 20 to 30 minutes before serving if it is a buttercream cake, so the frosting softens. Perishable frostings should go back in the fridge within 2 hours.
Pro tip: Fondant does not need refrigeration on its own, but the cake and filling underneath often do. Fondant can get sticky from condensation when it comes out of the fridge, so let it warm up in its box or container rather than uncovered.

Cakes You Can Freeze
Most cakes freeze very well. In general, the less moisture-rich the topping, the better the result.
Freeze well:
- Unfrosted cake layers, sheet cakes and cupcakes
- Pound cake, bundt cake, banana bread and other quick breads
- Buttercream-frosted cakes
- Cream cheese-frosted cakes, such as carrot cake and red velvet (see freezing cream cheese for why baked and frosted uses hold up)
- Cheesecake, covered in detail in our guide on whether you can freeze cheesecake
- Chocolate cakes with ganache
Freeze poorly:
- Whipped cream frosting: FoodKeeper lists sweetened whipped cream at 1 to 2 months frozen, but it often weeps and deflates when thawed
- Custard, pastry cream or pudding fillings: FoodKeeper marks cream and chiffon pies as not recommended for freezing, and the same fillings behave the same way in a cake
- Meringue frostings and toppings, which turn rubbery and weep
- Fresh fruit toppings, which go soft and leak juice into the cake
How to Freeze Cake
Unfrosted layers
- Cool the layers completely on a rack, at least 1 to 2 hours. Wrapping warm cake traps steam and makes it gummy.
- Wrap each layer tightly in two layers of plastic wrap.
- Add a layer of foil or slide it into a large freezer bag.
- Label with the type of cake and the date.
Frozen layers are actually easier to frost: they are firm, produce fewer crumbs and can be leveled cleanly. Frost them while still partly frozen.
A frosted cake or slices
- Freeze the cake or slices uncovered on a tray for 1 to 2 hours, until the frosting is firm to the touch.
- Wrap tightly in plastic wrap, then foil, or place in an airtight container.
- For slices, wrap each one individually so you can thaw one at a time.
If you bake ahead for the holidays, the same approach works for many desserts. See can you freeze pumpkin pie and how long cookie dough lasts for a full make-ahead plan.
How to Thaw a Frozen Cake
- Unfrosted layers or plain cake: thaw in the wrapping at room temperature for 1 to 3 hours. Keeping the wrap on lets condensation form on the outside instead of on the cake.
- Frosted cakes: unwrap while still frozen so the frosting does not stick to the plastic, cover loosely with a cake dome and thaw in the refrigerator overnight.
- Cakes with cream cheese or other perishable frostings: always thaw in the fridge, never on the counter, then serve within the fridge window for that frosting.
- Single slices: about 30 minutes at room temperature for buttercream slices, or a few hours in the fridge for perishable frostings.
Do not refreeze a cake that has thawed with a perishable frosting. The texture suffers, and every hour out of the fridge counts toward the 2-hour limit.
How Long Does Ice Cream Cake Last in the Freezer?
The FoodKeeper does not list ice cream cake. It does list ice cream at up to 6 months in a sealed container, as we cover in how long ice cream lasts in the freezer. An ice cream cake, especially once cut, behaves more like an opened tub: it builds ice crystals and freezer burn faster. Our rule of thumb is to finish a cut ice cream cake within 2 to 3 weeks and keep it tightly covered, with plastic wrap pressed against the cut sides. Never let it soften on the counter and refreeze it, since melting and refreezing creates large ice crystals.
FAQ
Does cake need to be refrigerated?
Only if it has a perishable frosting or filling, such as cream cheese, whipped cream, custard or fresh fruit. Plain cakes and simple butter-and-sugar buttercream cakes can stay covered at room temperature for 3 to 7 days, per the FoodKeeper window for commercial cakes.
How long does birthday cake last in the fridge?
A typical buttercream birthday cake lasts 7 to 10 days in the fridge if covered. If it has whipped cream or a custard filling, eat it within 1 to 4 days depending on the filling.
What are the best cakes to freeze?
Unfrosted layers, pound cakes, bundt cakes, cupcakes, cheesecake and cakes with buttercream or cream cheese frosting. Avoid freezing cakes with whipped cream, custard, meringue or fresh fruit toppings.
How do you thaw a frozen cake?
Thaw unfrosted cake in its wrapping at room temperature for a few hours. Unwrap frosted cakes while frozen and thaw them in the fridge overnight.
How long can you freeze cake?
The FoodKeeper lists commercial cakes at up to 6 months. For homemade cakes, aim for 2 to 3 months for the best texture and flavor.
Keep Leftover Cake From Going to Waste
Cake rarely gets eaten all at once, and the leftovers are easy to forget behind everything else in the fridge. Cover it, check the frosting type to know your window, and freeze slices you will not finish within a few days. Freezer Inventory Tracker can log both the fridge leftovers and the frozen slices with their dates and send an expiry reminder, so the last piece of birthday cake gets eaten while it is still good. If you also froze leftover buttermilk from baking, see can you freeze buttermilk.
