Baked Goods
Baked, frosted (with shelf-stable frosting)

CakeShelf Life, Storage, and Spoilage Guide

Sourced from
USDA FoodSafety.govFDA

Pantry

2-4 days

Store loosely covered at room temperature in a cool, dry place. If the cake contains perishable ingredients like cream cheese frosting, whipped cream, or custard filling, it must be refrigerated.

Refrigerator

5-7 days

Cover loosely with plastic wrap or store in an airtight container to prevent drying out. Cakes with cream cheese frosting, whipped cream, or custard fillings must be refrigerated immediately after cooling or within 2 hours of preparation.

Freezer

2-3 months

Wrap individual slices or the whole cake tightly in plastic wrap, then in aluminum foil, or place in a heavy-duty freezer bag or airtight container. Thaw in the refrigerator.

Signs of Spoilage

  • Visible mold growth
  • Sour or off-odor
  • Discoloration
  • Slimy or sticky texture (especially on frosting or fillings)
  • Dry, hard, or crumbly texture (indicates staleness, not necessarily spoilage, but quality degradation)

Room Temperature Safety

2-hour rule (1 hour above 90°F/32°C)

40°F–140°F

Perishable cakes (with cream cheese frosting, whipped cream, or custard fillings) should not be left at room temperature for more than 2 hours. If the ambient temperature is above 90°F (32°C), reduce this time to 1 hour. Non-perishable cakes (with shelf-stable frosting) can be stored at room temperature for 2-4 days, but refrigeration extends their quality and safety.

Expert Tips

Safe Handling

1

Always refrigerate cakes with perishable ingredients (like cream cheese frosting, whipped cream, or custard fillings) within 2 hours of baking or purchasing.

2

Ensure hands and all surfaces are clean when handling cake to prevent cross-contamination.

3

Cool cakes completely before frosting or storing to prevent condensation, which can lead to spoilage.

4

Do not leave perishable cakes at room temperature for more than 2 hours (1 hour if above 90°F/32°C).

Related Items

Comparisons

CheesecakeCheesecake typically has a longer freezer life due to its dense texture and ingredients.
Pantry
Not recommended
Fridge
5-7 days
Freezer
6-8 months
Fruit PieFruit pies can be stored at room temperature for 1-2 days, but refrigeration extends shelf life.
Pantry
1-2 days
Fridge
3-4 days
Freezer
6-8 months
Cream/Custard PieCream and custard pies must always be refrigerated.
Pantry
Unsafe
Fridge
3-4 days
Freezer
Not recommended
CookiesMost cookies store well at room temperature in an airtight container.
Pantry
2-3 weeks
Fridge
Not typically needed
Freezer
6-12 months