Skip to main content

How Long Cake Stays Fresh in Your Refrigerator

Most cakes last 3 to 4 days in the refrigerator, but it depends on the frosting and filling

A plain cake with no frosting will dry out quickly—usually within 1 to 2 days. Once you add frosting, the cake stays moist longer because the frosting seals in moisture. A frosted cake typically lasts 3 to 4 days in the refrigerator before the texture begins to change noticeably. Cakes with cream cheese frosting, buttercream, or ganache all perform similarly in this timeframe.

Cakes with fillings—especially cream, custard, or fruit—have a shorter window. These fillings can break down or separate after 2 to 3 days, and any filling made with dairy products becomes a food safety concern after that point. A cake with fresh fruit between the layers should be eaten within 1 to 2 days. The fruit releases moisture that softens the cake layers and can encourage mold growth.

Temperature matters more than you might think. Keep your refrigerator at 40°F (4°C) or below. A warmer fridge speeds up spoilage and allows bacteria to grow faster, especially in cakes with dairy-based fillings or frostings.

Key Takeaways

  • Frosted cakes last 3 to 4 days in the refrigerator; unfrosted cakes dry out within 1 to 2 days.
  • Cakes with cream, custard, or fresh fruit fillings should be eaten within 1 to 2 days because these fillings break down quickly and pose food safety risks.
  • Store cake in an airtight container or wrap it tightly in plastic wrap to prevent it from absorbing odors and drying out.
  • Keep your refrigerator at 40°F (4°C) or below to slow mold growth and bacterial activity in cakes with dairy ingredients.

Why frosting and filling type matters for storage time

Frosting does two jobs: it seals the cake and adds fat, both of which slow moisture loss. Buttercream, cream cheese frosting, and ganache all contain fat that creates a protective barrier. This is why a frosted cake stays soft and moist longer than a naked one. The frosting also prevents the cake from absorbing odors from other foods in your refrigerator.

Fillings are where the real time limit comes in. Cream fillings, pastry cream, and custard all contain eggs or dairy that support bacterial growth if left at room temperature. Once these fillings are inside the cake and the cake is refrigerated, the cold slows that growth, but it does not stop it. After 2 to 3 days, the risk rises. Fruit fillings introduce another problem: fruit releases juice that soaks into the cake layers, making them soggy and creating an environment where mold can start to grow.

Oil-based cakes (like those made with vegetable oil instead of butter) stay moist longer than butter cakes because oil does not solidify in the cold the way butter does. If you have an oil-based cake with frosting, you may get a full 4 days. A butter cake with the same frosting might start to feel slightly dry by day 4.

How to store cake so it lasts the full time

An airtight container is your best tool. Place the cake inside and seal it tightly. This stops the cake from drying out and prevents it from absorbing smells from other foods—fish, onions, and garlic can all transfer their odor to cake. If you do not have a container large enough, wrap the cake tightly in plastic wrap, then place it in a cake box or on a plate covered with an inverted bowl.

Do not store cake on an open plate in the refrigerator. Even a few hours of exposure to the cold, dry air will begin to dry out the surface. If the cake is already sliced, wrap individual slices in plastic wrap before placing them in a container. This keeps the cut edges from drying out faster than the rest of the cake.

Keep the cake away from the back wall of the refrigerator, where it is coldest and frost can form. The coldest spot in most refrigerators is the back of the bottom shelf. A cake stored there can develop ice crystals on the surface, which changes the texture when it thaws. The middle shelf or door is usually a better choice.

Signs your cake has gone bad

Mold is the clearest sign. Look for fuzzy growth, especially on the cut edges or where frosting meets the cake. Any visible mold means the whole cake should be thrown away—mold roots can spread through the cake even where you cannot see them. Mold can appear as early as day 2 or 3 if the cake was stored improperly or if your refrigerator is warmer than 40°F.

A sour or off smell is another warning. Open the container and smell the cake. If it smells fermented, vinegary, or simply wrong, do not eat it. Bacterial growth produces gases that change the smell before the cake looks obviously spoiled. Trust your nose.

Texture changes are normal—the cake will firm up slightly in the cold—but a slimy or sticky surface is not. If the frosting or cake feels wet or tacky when it should be dry, bacteria or mold is likely present. Throw it away. A cake that tastes sour or has an off flavor should also be discarded, even if it looks fine.

Extending cake storage with the freezer

If you know you will not eat the cake within 4 days, freeze it instead. A frosted cake can be frozen for up to 2 to 3 months. Wrap it tightly in plastic wrap, then place it in a freezer bag or airtight container to prevent freezer burn. Label it with the date so you know how long it has been frozen.

Thaw a frozen cake in the refrigerator, not on the counter. Move it to the fridge the night before you want to eat it. Thawing on the counter allows condensation to form on the surface, which can make the frosting look wet and can encourage mold growth if the cake is not eaten right away.

Unfrosted cake can also be frozen, but it will dry out faster after thawing. If you are freezing an unfrosted cake, wrap it very tightly and plan to use it within 1 to 2 months. Frosted cakes freeze better because the frosting protects the cake layers.

Cakes with special ingredients need shorter storage windows

Cakes made with fresh eggs (not baked into the frosting) have a shorter shelf life. Mousse cakes, chiffon cakes, and cakes with raw egg-based frostings should be eaten within 1 to 2 days. The eggs are a food safety concern if stored longer. If you are unsure whether a frosting was made with raw eggs, assume it was and eat the cake sooner rather than later.

Cheesecake is a special case. It contains cream cheese, which is more perishable than regular frosting. Cheesecake lasts 3 to 5 days in the refrigerator if stored in an airtight container. After 5 days, the risk of bacterial growth increases significantly. Cheesecake also freezes well—up to 1 to 2 months—but the texture becomes slightly grainy after thawing.

Cakes with alcohol (like rum cake or brandy-soaked layers) can last slightly longer because alcohol acts as a preservative. These cakes may stay fresh for 5 to 7 days in the refrigerator. The alcohol slows mold and bacterial growth, but the cake will still eventually dry out or develop off flavors.

Frequently Asked Questions

Can I leave cake out on the counter overnight and then refrigerate it?

Yes, if the cake has no cream, custard, or fresh fruit filling. A frosted cake with only buttercream or ganache can sit at room temperature for up to 8 hours. After that, move it to the refrigerator. If the cake has any dairy-based filling or fresh fruit, refrigerate it within 2 hours of baking.

Does cake go bad faster in a frost-free refrigerator?

Frost-free refrigerators cycle on and off to prevent ice buildup, which causes temperature fluctuations. These fluctuations can dry out cake faster than a standard refrigerator. If you have a frost-free model, wrap your cake extra tightly and store it on a middle shelf where temperature swings are less extreme.

What if I cut into the cake and then refrigerate it?

Cut cake dries out faster because the cut edges are exposed. Wrap individual slices tightly in plastic wrap and store them in an airtight container. The slices will last 2 to 3 days instead of the full 3 to 4 days an uncut frosted cake would last.

Can I refrigerate a cake that was left at room temperature for several hours?

If the cake has no perishable filling and was left out for fewer than 8 hours, yes. Move it to the refrigerator and it will last the normal 3 to 4 days. If it has cream, custard, or fruit filling and was left out for more than 2 hours, throw it away. Bacteria can grow in those fillings at room temperature, and refrigerating it later will not make it safe.

Why does my refrigerated cake taste dry even though I stored it in a container?

Cold air pulls moisture from cake, even in a sealed container. This is normal and happens over 3 to 4 days. You can restore some moisture by placing a slice on a plate, covering it loosely with a damp paper towel, and letting it sit at room temperature for 10 to 15 minutes before eating. Do not microwave it, as that will make it tough.