How Long Is a Baked Cake Good For?
A baked cake is good for about 1–2 days at room temperature and 3–4 days in the refrigerator once it is frosted or filled with anything perishable. The detail most people get wrong is that the clock depends less on the cake than on what sits on it: a plain unfrosted sponge keeps far longer than a cream-filled or cream-cheese-frosted one, and the fridge that saves a frosted cake will stale a plain one faster than the counter.
Plain, unfrosted cakes — sponge, pound, angel food, a simple butter cake — are the longest-lived case. Wrapped tightly, they hold at room temperature for 3–4 days and in the refrigerator for up to a week. Any cake with a perishable topping or filling (buttercream made with eggs or milk, cream cheese frosting, whipped cream, pastry cream, custard, fresh fruit) follows the 2-hour rule: it can sit out no more than 2 hours, and 1 hour if the room is above 90°F (32°C).
Counter, Fridge and Freezer Times by Cake Type
Match the cake to the column that describes it. A cake that combines two categories takes the shorter time.
| Cake type | Counter (covered) | Fridge (covered) | Freezer (wrapped) |
|---|---|---|---|
| Plain unfrosted sponge, pound or butter cake | 3–4 days | Up to 1 week | 2–3 months |
| Frosted with buttercream or ganache | 1–2 days | 3–4 days | 2–3 months |
| Cream cheese frosting | 2 hours only | 3–4 days | 2–3 months |
| Whipped cream, custard or pastry cream filling | 2 hours only | 2–3 days | Not recommended |
| Fresh fruit topping or filling | 2 hours only | 2–3 days | Not recommended |
| Cheesecake (baked) | 2 hours only | 5–7 days | 2–3 months |
Cheesecake is the outlier in the other direction: it is a custard, so it never sits out beyond 2 hours, but its high fat and egg content and dense crumb let it hold in the refrigerator for up to a week. Freeze cheesecake slices on a tray until firm, then wrap each one, so you can pull a single slice rather than thawing the whole pan.
What Actually Makes a Cake Go Bad
Two separate processes run at once, and they want opposite conditions. Staling is moisture moving out of the crumb and starch recrystallizing; it happens fastest at refrigerator temperatures, roughly 3–5 times faster than at room temperature. Spoilage is microbial growth, and it needs the perishable ingredients — dairy, eggs, cream — plus warmth and time.
That is why the advice splits. A plain cake on the counter stales slowly and has nothing in it that spoils quickly. The same cake in the fridge dries out and firms up within a day or two even though nothing is growing on it. A cream-cheese-frosted cake on the counter is the reverse: the crumb is fine but the frosting is a dairy medium sitting in the temperature range where bacteria multiply.
Air is the third factor. A cut cake exposes crumb on the cut face, and that face dries out within hours. Press plastic wrap directly against the cut surface, then wrap the whole cake or put it in a cake keeper. A dome that sits above the cake traps air but does not seal the cut edge.
Reading the Signs Without Tasting
Do not taste or smell a cake to decide whether it is safe. Use these visible and tactile checks instead, and discard the cake if any of them appear:
- Frosting texture: cream cheese or whipped cream frosting that has gone slack, separated, or looks wet at the base of the cake has been out too long.
- Fruit: berries or sliced fruit that have released juice into the frosting or turned dull and soft are past their point.
- Surface: any fuzz, discoloration, or a sheen that was not there when the cake was frosted.
- Smell: a sour or fermented odor means discard — but a cake can be unsafe without smelling off, which is why smell alone is not a test.
- Crumb: a dry, crumbly, firm texture on a plain cake is staling, not spoilage. It is safe but past its best; refresh it rather than throw it out.
If a frosted cake sat out overnight — more than 2 hours — discard it. The cost of a cake is lower than the cost of a foodborne illness, and there is no way to make a perishable frosting safe again once it has been in the danger zone that long.
A Two-Layer Cake for a Saturday Party
Say you bake two 8-inch (20 cm) layers on Friday evening, cool them completely, and frost with a buttercream made with butter and milk on Saturday morning for a 3 p.m. party. The cake is on the table from 3 p.m. to 6 p.m. — three hours, which exceeds the 2-hour limit for a buttercream containing milk.
The fix is to cut and refrigerate the cake at the 2-hour mark, around 5 p.m., then bring slices back out as needed. Leftovers go into the refrigerator within 2 hours of that point and keep 3–4 days, so they are good through Wednesday. If you want the cake to last into the following weekend, freeze slices Saturday night: wrap each in plastic, then foil, and freeze for up to 3 months. Thaw a slice at room temperature for about 30–45 minutes.
For a plain unfrosted cake baked the same Friday, the schedule is easier: cool, wrap tightly, leave on the counter, and it is good through Monday or Tuesday. Refrigerate it only if your kitchen runs warm and humid, and expect the crumb to firm up within a day if you do.
Freezing, Thawing and Reviving a Stale Cake
Freeze cake before it stales, not after. Cool completely, wrap the layers or the whole cake in two layers of plastic wrap and then foil or a freezer bag, pressing out air. Unfrosted layers freeze best; frosting a thawed cake is easier than thawing a frosted one. Frozen cake keeps 2–3 months before quality drops.
Thaw wrapped cake in the refrigerator overnight, then unwrap once it reaches room temperature so condensation forms on the wrap rather than the cake. A frosted cake thawed in the refrigerator may bead with moisture on the surface; blot it gently with a paper towel.
To revive a plain cake that has firmed up, wrap it in damp paper towels and microwave individual slices for 10–15 seconds, or warm the whole cake, covered, in a 300°F (150°C) oven for 5–8 minutes. This softens the starch and returns some moisture, but it does not undo spoilage — only use it on a cake you know is within its safe window.
Store cake away from strong odors; butter and cream absorb them readily. Keep it out of direct sun and away from the stove, where the local temperature can push a frosted cake past the 2-hour limit faster than the room thermometer suggests.