Baking Resources
Home › Guides

How Long Do Cupcakes Last? Times for Every Frosting

Baking Resources Editorial · Reviewed by Joan Ramos · Updated November 2026 · 18 min read

How Long Do Cupcakes Last? Frosted, Unfrosted and Filled

Unfrosted cupcakes and cupcakes with butter-and-sugar buttercream last about 2 days on the counter, about 3 days in the fridge once frosted, and 1 to 2 months in the freezer for the best quality. Cupcakes with cream cheese frosting, whipped cream, fresh fruit or a cream filling are different: they need the fridge and shouldn't sit out longer than 2 hours.

So the frosting, more than the cake, decides how long a cupcake keeps and where it belongs. Pick your cupcakes and the day you baked them in the calculator below, and it shows the last good day on the counter, in the fridge and in the freezer, so you know when to serve them and when to freeze the extras.

Free calculator

Cupcake storage calculator

Pick your cupcakes and the day you baked or bought them to see the last good day.

Cupcake storage times at a glance

Here's the quick version. Times count from the day you baked the cupcakes. Counter times assume a cool room, under about 70°F, with the cupcakes in a closed container out of the sun.

CupcakesCounterFridgeFreezer (best quality)
UnfrostedUp to 2 daysNot ideal, they dry outUp to 2 months
Buttercream (butter and sugar)Up to 2 daysUp to 3 daysUp to 1 month
Cream cheese frosting2 hours maxUp to 3 daysUp to 1 month
Whipped cream frosting2 hours maxAbout 1 dayNot with the cream on
Cream or custard filled2 hours max1 to 2 daysNot once filled
Topped with fresh fruit2 hours max1 to 2 daysFreeze them plain
Store-bought, buttercreamUp to 2 days, or the label dateUp to 3 daysUp to 1 month

When a cupcake fits two rows, use the shorter time. A buttercream cupcake with a strawberry on top is a fruit-topped cupcake, because the fruit is the part that spoils first. Pull the fruit off any leftovers and the rest can be treated as buttercream again, as long as it stayed cold.

The frosting decides where cupcakes go

The cake part of a cupcake is a lot like any butter or oil cake. It's fully baked, fairly sweet and holds its moisture well for a couple of days, so it's safe on the counter. What changes the rules is what goes on top or inside.

The 2 hour limit comes from food safety guidance about the danger zone, 40°F to 140°F, where bacteria grow fastest. Room temperature sits right in that range. It's the same limit that applies to cheesecake and pumpkin pie. If you're not sure which group your frosting falls in, how to store frosting lists every common type with its own times, and how to make buttercream explains the difference between the five main kinds.

Baking guideHow to Store Frosting: Fridge, Freezer and CounterRead the storage guide → Baking guideHow to Make Buttercream: The 5 Types and When to Use EachSee how it's done →

How to store unfrosted cupcakes

Unfrosted cupcakes are the easiest to store, but they also dry out the fastest, because there's no frosting to seal the top. A few simple steps keep them soft.

  1. Take them out of the pan after about 5 minutes. Left in a hot pan, the bottoms keep steaming and the liners turn damp. Move them to a wire rack.
  2. Cool them completely. This takes about an hour. A cupcake that's still warm inside will steam up the container and the tops turn sticky.
  3. Store them in a single layer in an airtight container. A big plastic tub or a cake carrier works well. Don't stack them, since the tops are soft and stick together.
  4. Keep them on the counter. Up to 2 days in a cool spot away from the oven, the dishwasher and sunny windows.
  5. Freeze the rest. If you won't frost them within 2 days, freeze them now, while they're fresh. A cupcake frozen on day 1 thaws tasting better than one left out until day 3.

Sticky tops on the second day are normal. Sugar in the crust pulls moisture from the air and from inside the cupcake. It doesn't mean they've gone bad. If you lay a paper towel across the top of the container under the lid, it absorbs some of that moisture.

Why the liners pull away

Liners that peel away from the cake after storage are usually a moisture issue: steam trapped while cooling, or a humid kitchen. It's a looks problem only. Why cupcake liners peel explains the causes and how to keep them stuck on.

Baking guideCupcake Liners Peeling Away? Why It Happens and How to Fix ItFix it next time →

How to store frosted cupcakes

Frosting makes storage trickier, because a container lid can squash it. The goal is a closed container with plenty of headroom.

Baking guideHow to Keep Buttercream from Melting at Outdoor PartiesShow me how →

Fondant toppers and sugar decorations do best at room temperature, since fridge condensation makes them sticky and colors can bleed. If you've made decorations ahead, how to store fondant decorations covers keeping them crisp until you add them.

Baking guideHow to Store Fondant Decorations So They Stay SharpSee how long it keeps →

Storing cupcakes in the fridge

The fridge is a must for cream cheese frosting, whipped cream, fruit and cream fillings. For other cupcakes it's optional, and it has a downside: cold air dries out cake and firms up butter. A cupcake straight from the fridge can taste dense and dry, with a hard frosting.

Here's how to do it well:

  1. Chill them uncovered first, for about 20 to 30 minutes, until the frosting firms up. That way the wrap or lid won't stick.
  2. Cover them well. A closed container keeps them from drying out and keeps them from picking up smells. Frosting, especially cream cheese, absorbs odors from onions and leftovers.
  3. Bring buttercream cupcakes back to room temperature before serving. About 30 minutes on the counter softens the frosting and the cake. Cream cheese or whipped cream cupcakes can come out about 20 minutes ahead, and that time counts toward the 2 hours.

Hot cars and outdoor parties

Heat shortens every time on this page. When the air is above 90°F, perishable cupcakes get only 1 hour out of the fridge, not 2, and that includes the drive. A closed car in summer gets much hotter than the air outside, so cream cheese or whipped cream cupcakes should ride in a cooler with ice packs, and go straight into a fridge or back into the cooler when you arrive. Buttercream cupcakes are safe in the heat for longer, but the frosting melts, slides and turns greasy, so they need shade and a cool spot too. At an outdoor party, set out a few at a time and keep the rest in the cooler, rather than putting the whole batch in the sun.

Count fridge days from the day you baked the cupcakes, not the day you frosted them or moved them to the fridge. A buttercream cupcake baked Monday, kept on the counter Monday and Tuesday, then refrigerated, should still be eaten by Thursday.

Filled cupcakes

Filled cupcakes hide their filling, which is why they're easy to mishandle. A cupcake that looks like a plain buttercream cupcake can have pastry cream in the middle.

FillingWhere to storeFridge timeCan you freeze it filled?
Jam or fruit preservesCounter, like the frosting on topSame as the frostingYes, up to 1 month
Ganache made with creamFridge after 2 hoursUp to 3 daysYes, up to 1 month
Buttercream or marshmallow fluffCounter, like buttercreamUp to 3 daysYes, up to 1 month
Lemon curdFridge after 2 hours1 to 2 daysNot recommended
Pastry cream or custardFridge after 2 hours1 to 2 daysNot recommended
Pudding or mousseFridge after 2 hours1 to 2 daysNot recommended

Custard and curd fillings make the crumb around them soggy within a day or two, and they turn watery after freezing. The best plan is to bake and freeze the cupcakes plain, make the filling the day before, and fill and frost them on serving day. Label filled cupcakes at a party or in a shared fridge, so nobody leaves them out thinking they're plain.

How to freeze cupcakes

Cupcakes freeze very well, especially unfrosted. Freezer times here are for best quality. Cupcakes kept frozen solid at 0°F stay safe longer, but they slowly dry out and pick up freezer flavors.

Unfrosted cupcakes

  1. Cool them completely on a rack.
  2. Wrap each one in plastic wrap, or set them in a single layer in a freezer container.
  3. Put the wrapped cupcakes in a freezer bag, press out the air, and label it with the date.
  4. Thaw them on the counter, still wrapped, for about 1 hour. Condensation forms on the wrap instead of the cake.

Frosted cupcakes

  1. Freeze them unwrapped on a tray for about 1 hour, until the frosting is hard.
  2. Move them to a tall airtight container, with space between them so the frosting doesn't touch.
  3. Thaw them in the fridge overnight in the container, then bring buttercream ones to room temperature for about 30 minutes before serving. Taking them out of the container while frozen, before they thaw, keeps condensation off the frosting.
What you freezeBest qualityThawingNotes
Unfrosted cupcakesUp to 2 monthsCounter, about 1 hour, wrappedThe best way to work ahead
Buttercream frostedUp to 1 monthFridge overnightPiping can soften a little at the edges
Cream cheese frostedUp to 1 monthFridge overnightFrosting turns a bit softer after thawing
Whipped cream frostedNot recommendedNot applicableCream turns watery and flat
Custard or curd filledNot recommendedNot applicableFilling weeps and the cake goes soggy
Frosting aloneUp to 3 months (buttercream)Fridge overnight, then rewhipFreeze in a bag with the air pressed out

The same method works for whole layers, and how to freeze cake walks through wrapping larger cakes. Once thawed, eat cupcakes within the fridge or counter times for their type, and don't refreeze them.

Baking guideHow to Freeze Cake Layers Without Drying Them OutGet the storage times →

Box mix, vegan and gluten-free cupcakes

The recipe behind the cupcake changes how fast it dries out, and sometimes how fast it molds, but the frosting rules stay the same for all of them.

Cupcakes for school events and lunch boxes

For a classroom party or a bake sale table that sits out for hours with no fridge nearby, choose buttercream cupcakes. They hold up at room temperature, and you don't have to worry about the 2 hour clock. Cream cheese and whipped cream cupcakes need a cooler with ice packs and someone keeping track of time. For a lunch box, a plain or buttercream cupcake is fine without an ice pack until lunchtime. A frozen unfrosted cupcake packed in the morning thaws by noon and helps keep the rest of the lunch cold.

Store-bought cupcakes

Cupcakes from a grocery bakery or a cupcake shop are usually made with a firm, sweet buttercream or a whipped icing. Many grocery cupcakes are sold at room temperature in a clear plastic clamshell. Follow what the label says. If it says to refrigerate, do that. If there's no instruction and the frosting is buttercream, they can stay at room temperature for about 2 days, or until the label date if that comes sooner.

Some grocery "whipped" frostings are shelf-stable whipped toppings rather than real cream, and some are real cream. If the label lists cream or says keep refrigerated, treat them like whipped cream cupcakes. Anything with cream cheese frosting goes in the fridge, store-bought or not.

You usually don't know exactly when store-bought cupcakes were baked, so count from the day you bought them, and lean toward eating them sooner. For a party, buy them the day before or the day of, not three days ahead.

How to tell if cupcakes have gone bad

A stale cupcake and a spoiled cupcake look different. Stale is about texture. Spoiled means throw it out.

Throw them out if you see

Signs that are only about quality

A cupcake that's dry but otherwise fine can be saved. Warm it for 5 to 10 seconds in the microwave, split it and fill it with jam, or crumble it into a trifle with fresh whipped cream and fruit. If you're getting dry cupcakes often, the cause is usually in the baking rather than the storage, and why muffins turn out dry covers the same causes, since cupcakes and muffins fail in the same ways.

Baking guideWhy Are My Muffins Dry? 6 Causes and the Fix for EachFind out why →

Don't taste a cupcake to check whether it's safe. The bacteria that cause food poisoning often don't change the smell or look of food. If it's past its time or was left out too long, throw it out.

Why cupcakes dry out faster than a whole cake

A cupcake has a lot of outside compared with its inside. Every cupcake has a top crust, a side surface and a bottom, and most of its crumb sits close to the edge. A big layer cake, by comparison, has a large, protected center. That's why a whole buttercream cake can keep on the counter for 2 to 3 days while an unfrosted cupcake starts to taste dry by day 2.

A few things help cupcakes stay moist longer:

Baking guideSimple Syrup for Cake: Ratio, Flavors and How to Brush ItRead the guide →

Size matters too. Mini cupcakes dry out even faster than standard ones, and jumbo cupcakes keep a little better. If you're switching sizes, cupcake pan sizes shows how much batter each holds and how the baking time changes. For whole cakes, how to store cake has the full set of times.

Baking guideJumbo, Standard and Mini Cupcake Pan Sizes and BatterFind my pan size → Baking guideHow to Store Cake: Counter, Fridge and Freezer RulesTake a look →

Worked example: cupcakes for a Christmas party

Say you're bringing 24 cupcakes to a Christmas party on Saturday, December 19: 12 with vanilla buttercream and 12 red velvet with cream cheese frosting.

Sunday, December 13. You bake both batches, cool them completely, wrap them and freeze them unfrosted. They're good in the freezer for up to 2 months, so there's no rush.

Friday, December 18. You take the cupcakes out in the morning and thaw them on the counter, still wrapped, for about an hour. You make both frostings in the afternoon. The vanilla cupcakes get buttercream and go in a tall container on the counter. The red velvet cupcakes get cream cheese frosting and go in the fridge. Count from Friday, the thaw day, as if they were freshly baked.

Saturday, December 19. You pack the buttercream cupcakes in a carrier at room temperature. The red velvet ones ride in a cooler with ice packs. At the party, they go on the table at 7 p.m. The cream cheese cupcakes need to be back in a fridge or cooler by 9 p.m.

The leftovers. Buttercream cupcakes are fine on the counter through Sunday, December 20, the second day after frosting, or in the fridge through Monday, December 21. Cream cheese leftovers stay in the fridge and should be eaten by Monday, December 21, three days after thawing.

For help with frosting amounts, the frosting calculator above works out how much you need for a dozen or more, and how to transport a cake has tips for getting a carrier full of cupcakes to the party upright.

Holiday make-ahead plan for cupcakes

Cupcakes are popular at Christmas parties, winter birthdays and school holiday events, and December is when fridges are most crowded. A plan built around the freezer takes the pressure off.

WhenWhat to doWhy
Up to 2 months aheadBake and freeze unfrosted cupcakesBest quality window for unfrosted cupcakes
Up to 3 months aheadMake and freeze buttercream in bagsButter-and-sugar buttercream freezes well
1 week aheadMake fondant or sugar decorationsThey need time to dry and keep at room temperature
1 day aheadThaw cupcakes, thaw and rewhip frosting, frostFresh frosting, cupcakes at their best
Serving dayAdd fruit, whipped cream or delicate toppingsThese spoil or weep fastest

Cream cheese frosting is best made fresh the day before, since it only keeps 3 to 4 days in the fridge. If you're short on time, how to soften cream cheese gets the blocks ready in minutes. And if you're baking several things for the holidays, how to store baked goods covers the bread, cookies and pies that share the counter.

Common cupcake storage mistakes

Questions people ask

Do cupcakes need to be refrigerated?

It depends on the frosting. Unfrosted cupcakes and cupcakes with butter-and-sugar buttercream keep at cool room temperature for about 2 days. Cupcakes with cream cheese frosting, whipped cream, fresh fruit or a custard or cream filling need the fridge, and they shouldn't sit out for more than 2 hours in total, or 1 hour above 90°F.

How long do cupcakes last in the fridge?

Buttercream and cream cheese frosted cupcakes last up to 3 days in the fridge, counting from the day they were baked. Cupcakes with whipped cream are best within about a day, and custard-filled or fruit-topped cupcakes within 1 to 2 days. Keep them in a closed container and let buttercream ones sit out for about 30 minutes before serving.

Can you freeze frosted cupcakes?

Yes, if the frosting is buttercream or cream cheese. Freeze them unwrapped until the frosting is hard, then move them to a tall airtight container. They keep their best quality for up to 1 month. Thaw them in the fridge overnight. Don't freeze cupcakes topped with whipped cream or filled with custard, since both turn watery.

How long can cupcakes sit out?

Unfrosted and buttercream cupcakes can sit out for about 2 days in a cool room, in a closed container. Cupcakes with cream cheese frosting, whipped cream, fruit or a custard filling can sit out for no more than 2 hours, or 1 hour on a hot day above 90°F. After that, throw them out.

How far ahead can I make cupcakes for a party?

Bake them up to 2 days ahead and keep them on the counter, or up to 2 months ahead if you freeze them unfrosted. The best plan is to thaw and frost them the day before the party. Add whipped cream, fresh fruit or delicate decorations on the day you serve them, since those don't keep well.

How do you keep cupcakes moist overnight?

Cool them completely, then store them in a single layer in an airtight container on the counter, not in the fridge. Frosting them helps, since it seals the top. If they're unfrosted, a paper towel under the lid keeps the tops from getting sticky. If you need to hold them longer than 2 days, freeze them.

How can you tell if cupcakes have gone bad?

Look for mold, including under the liner and on the bottom, and smell the frosting. Throw them out if the frosting smells sour, has separated into a watery or oily layer, or feels slimy, or if fridge-only cupcakes sat out longer than 2 hours. A dry crumb or a crusty frosting is only staleness, not spoilage.

How long do store-bought cupcakes last?

Store-bought buttercream cupcakes usually keep about 2 days at room temperature or 3 days in the fridge, or until the date on the label if that comes sooner. Follow any storage directions on the package. Cupcakes with cream cheese frosting or real whipped cream should go in the fridge as soon as you get home.