The Feast

Home cooking recipes for everyday dinners and easy entertaining

How Long Can You Leave Cake Out? Safe Time and Storage Tips

· 3 min read · Baking and Desserts

Answer: Up to 2 hours at room temperature (1 hour if the room is above 90 °F/32 °C).

Room‑Temperature Safety Limit

The USDA classifies most cakes as perishable foods because they contain eggs, dairy, or sugar‑based frostings that can support bacterial growth. The rule is simple: do not let any cake sit out longer than two hours at a temperature of 68‑72 °F (20‑22 °C). If the ambient temperature rises above 90 °F (32 °C), the safe window shrinks to one hour.

This limit applies to all cake types, from a plain sponge to a rich cheesecake, because the moisture and protein in the batter or frosting provide a medium for microbes. After the two‑hour window, the risk of spoilage increases sharply, even if the cake looks and smells fine.

Why Some Cakes Appear to Last Longer

A common misconception is that dense, buttery cakes can stay out all day because they seem dry. In reality, the perceived dryness does not stop bacterial growth; it only slows moisture loss. Cakes with high‑fat frostings (buttercream, ganache) may feel firmer, but the fats do not inhibit microbes.

Fruit‑filled or cream‑cheese‑based cakes are especially vulnerable because the added moisture and lower pH create an ideal environment for bacteria. Even a plain pound cake will exceed safe limits after two hours if left uncovered in a warm kitchen.

The correct fact is that any cake containing eggs, dairy, or a moist frosting should be treated like other perishable items: refrigerate within the two‑hour window.

How to Store Cake for Maximum Freshness

Follow these steps to keep cake safe and tasty:

  • Cover the cake with a dome, cake carrier, or a clean kitchen towel as soon as it cools to room temperature.
  • Place the covered cake in the refrigerator. Most cakes stay fresh for three to four days when stored at 40 °F (4 °C) or lower.
  • If you need longer storage, wrap the cake tightly in plastic wrap, then foil, and freeze. Most cakes retain quality for one to two months.
  • When refrigerating layered cakes, keep the frosting side up to prevent the cake layers from drying out.
  • For unfrosted cakes, store them in an airtight container or a zip‑top bag to protect against moisture loss.

Remember to let a frozen cake thaw in the refrigerator, not on the counter, to keep it within the safe temperature range throughout the process.

What to Do If Cake Has Been Out Too Long

If a cake has sat out beyond the two‑hour limit, the safest action is to discard it. Visual inspection or smell cannot reliably reveal bacterial growth. Even if the cake looks normal, pathogens such as Staphylococcus aureus can produce toxins that are heat‑stable.

In a pinch, you can perform a quick risk assessment:

  • Check the ambient temperature at the time the cake was left out. If it was below 70 °F (21 °C) and the cake was only a few minutes over two hours, the risk is lower, but still present.
  • Consider the cake’s components. A plain, dry pound cake without frosting poses less risk than a layered cake with buttercream or cream cheese frosting.
  • If any doubt remains, err on the side of safety and throw the cake away.

When discarding, place the cake in a sealed bag before putting it in the trash to prevent attracting pests.

Quick Reference Table

ConditionMaximum Time OutStorage Afterward
Room temperature ≤ 70 °F (21 °C)2 hours (1 hour if > 90 °F/32 °C)Refrigerate 3‑4 days or freeze 1‑2 months
Room temperature 70‑90 °F (21‑32 °C)2 hours (shorten to 1 hour above 90 °F)Same as above
Outdoor heat > 90 °F (32 °C)1 hourRefrigerate immediately; do not leave out longer
Unfrosted plain cake2 hours (same limits)Wrap tightly; 3‑4 days refrigerated
Frosted or filled cake2 hours (same limits)Cover dome; 3‑4 days refrigerated

By keeping these limits in mind and storing cake promptly, you can enjoy each slice without worrying about food safety.

In this article
  1. Room‑Temperature Safety Limit
  2. Why Some Cakes Appear to Last Longer
  3. How to Store Cake for Maximum Freshness
  4. What to Do If Cake Has Been Out Too Long
  5. Quick Reference Table