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- 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
- Press plastic wrap or parchment directly against the cut face of the cake; the exposed crumb is where it dries out first.
- Keep a buttercream cake under a cake dome or an upturned bowl on the counter rather than in the fridge for the first day or two, since refrigeration firms the butter and dulls the crumb.
- To refrigerate a frosted cake, chill it uncovered for 15–20 minutes so the frosting sets, then wrap it loosely so the plastic does not pull the decoration off.
- Freeze leftover slices individually on a tray, then wrap each one in plastic and foil so you can thaw a single piece in the fridge overnight.
- Let refrigerated cake sit at room temperature for 30–60 minutes before serving; cold butter-based cake tastes dry and dense.
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
| State | Fridge | Freezer | Pantry |
|---|---|---|---|
| Fresh | 1 week | 2–4 months | 1–2 days |
| Unfrosted, or frosted with buttercream, ganache or fondant. | |||
| Fresh, cream or custard filled | 3–4 days | Not recommended | Not safe |
| Includes whipped cream, pastry cream, mousse, fresh fruit and cream cheese frosting. Whipped cream and custard weep when thawed. | |||
| Unfrosted layers | 1 week | 2–4 months | 1–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
| Food | Fridge | Freezer | Pantry |
|---|---|---|---|
| Cupcakes Fresh |
1 week | 2–3 months | 1–2 days |
| Frosting Opened |
2–3 weeks | 2–3 months | Not recommended |
| Cheesecake Fresh |
5–7 days | 2–3 months | Not safe |
| Brownies Homemade |
1 week | 3 months | 3–4 days |
| Whipped Cream Opened |
3–4 weeks | Not recommended | Not safe |
| Banana Bread Homemade |
1 week | 3 months | 3–4 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.