Storing Cake

Can You Leave Cake Out? How Long Cake Keeps at Room Temperature

Can you leave cake out on the counter? It depends on the frosting and filling. Learn which cakes keep at room temperature, for how long, and when to refrigerate.

On this page
  1. The short answer
  2. Why frosting and filling matter
  3. Cakes that generally keep at room temperature
  4. Cakes that belong in the refrigerator
  5. The two-hour rule
  6. How to store a cake on the counter
  7. When to throw cake away
  8. Quick reference

The short answer

Often, yes, but it depends on what is in and on the cake. A plain cake, or one covered in a sturdy frosting such as American buttercream or ganache, can usually sit at room temperature for a day or two if it is covered. A cake with cream cheese frosting, whipped cream, custard, fresh fruit filling or similar perishable ingredients should not stay out for long, and the common guideline is no more than about two hours.

The cake layers themselves are rarely the problem. Sugar, fat and flour make a fairly stable base. The frosting and filling are what decide whether a cake can sit on the counter.

Why frosting and filling matter

Food safety guidance generally treats dairy, eggs and cream as perishable. A cake made with those ingredients in the filling or topping is treated like any other perishable food: it should not sit at room temperature for long.

Ingredients with a lot of sugar or fat and little water, such as a thick American buttercream made with butter and powdered sugar, hold up better. Even so, they soften in a warm room, and recipes and bakeries differ in how long they consider them safe, so use the times below as rough guidance and not a guarantee.

Cakes that generally keep at room temperature

These are usually fine on the counter, covered, for a day or two:

  • Unfrosted butter cakes, pound cakes, bundt cakes and loaf cakes
  • Oil-based cakes such as carrot cake without cream cheese frosting, or banana bread
  • Sponge or layer cakes with American buttercream or ganache
  • Cakes covered in fondant over a stable filling

If the room is hot, or the kitchen gets direct sun, treat the cake as perishable even if the frosting is stable. Buttercream can slump, and a warm kitchen speeds up spoilage.

Cakes that belong in the refrigerator

Plan on refrigerating cakes that contain:

  • Cream cheese frosting
  • Whipped cream or whipped topping
  • Pastry cream, custard or pudding filling
  • Fresh cream or mousse
  • Meringue-based frostings with a custard or cream filling
  • Cheesecake and other cheesecake-style desserts
  • Tres leches style cakes soaked in milk

If you are serving one of these, bring it out shortly before serving and put the leftovers back in the fridge soon after.

The two-hour rule

A widely used food safety guideline says perishable food should not be left at room temperature for more than two hours, and for only about one hour when the room is very hot, roughly 90°F or above. This is a conservative rule for foods that can support bacterial growth, and it applies to a party cake with cream cheese frosting or custard filling.

If a perishable cake sat out longer than that, the safest choice is usually to throw it away. Reheating or refrigerating it later will not necessarily make it safe.

How to store a cake on the counter

If the cake is fine to leave out, a few habits keep it from drying out:

  • Let it cool completely before frosting or wrapping.
  • Cover it with a cake dome, an upside-down large bowl or a cake carrier.
  • For a cut cake, press plastic wrap against the exposed crumb, or place a slice of bread against the cut side if you have no wrap.
  • Keep it away from the stove, sunny windows and other heat sources.
  • Eat it within a couple of days for the best texture.

If you are planning ahead, our notes on baking a cake the day before cover how to keep layers fresh until the party. If you are wondering what changes after a night out, see what happens if I leave my cake out overnight.

When to throw cake away

Discard cake if you see mold, notice a sour or off smell, or the filling has separated or turned slimy. Also throw away a perishable cake that has sat out well past the two-hour mark. When you are unsure, it is better to be cautious, especially if you are serving young children, older adults, pregnant guests or anyone with a weakened immune system.

Quick reference

Type of cake Counter Refrigerator
Unfrosted pound or butter cake 2 to 3 days, covered Optional, may dry out
Cake with American buttercream 1 to 2 days, covered Fine if the room is warm
Cake with cream cheese frosting About 2 hours Yes
Whipped cream or custard filled About 2 hours Yes
Cheesecake About 2 hours Yes

These are general estimates. Recipes and ingredients vary, so when in doubt, refrigerate.

Keep exploring

Guides from other topics

All topics →