The short answer
Keep cake on the counter if it has a stable frosting, or none, and you will eat it within a day or two. Keep it in the fridge if it has cream cheese frosting, whipped cream, custard or another perishable filling, or if you need it to last longer or your kitchen is warm.
When the counter is better
Refrigerators are cold and dry, and cold tends to make cake crumb firmer and drier. Cakes that do well on the counter, covered:
- Unfrosted or lightly glazed pound, bundt and loaf cakes
- Butter or oil-based layer cakes with American buttercream
- Cakes with a ganache coating
- Fondant-covered cakes (fondant can sweat in the fridge)
A cake dome, cake carrier or a large overturned bowl works well. For a cut cake, press plastic wrap against the cut surface so air does not dry it out. If you have other cakes to compare, see how long cake keeps at room temperature.
When the fridge is better
Use the fridge for:
- Cream cheese frosting
- Whipped cream or whipped topping
- Pastry cream, custard, pudding or mousse fillings
- Cheesecakes
- Cakes with fresh cut fruit
- Any cake in a very warm kitchen
- Cake you want to keep for more than a couple of days
Common food safety guidance is to refrigerate perishable foods within about two hours of serving.
The fridge can dry cake out
Starch in cake firms up faster at refrigerator temperatures, so chilled cake often tastes drier or denser. To limit this:
- Wrap it well, or store it in an airtight container.
- Keep it away from strong-smelling foods such as onions, since butter and cream absorb odors.
- If it is a cut cake, cover the exposed edge with plastic wrap or parchment.
- For frosted cakes, chill the cake uncovered for a short time until the frosting firms, then wrap loosely so the frosting is not marred.
Bringing chilled cake back to serving temperature
Many cakes taste best when they are not cold. Take a refrigerated cake out about 30 to 60 minutes before serving, depending on the cake and the room. Cakes with perishable frosting should not stay out long, so slice and serve, then put leftovers back in the fridge.
Freezing is a third option
If you will not finish the cake in a few days, freezing is often better than leaving it in the fridge. Wrap slices or whole unfrosted layers tightly in plastic wrap and then foil or a freezer bag. Thaw in the refrigerator or on the counter, still wrapped, so condensation forms on the wrap and not the cake. This also makes baking a cake the day before, or further ahead, easier.