Storing and freezing baked goods: room, refrigerator and freezer
Reference

Storing and freezing baked goods: does pumpkin pie need to be refrigerated, and how long things last

One row per bake: whether it keeps at room temperature or must be refrigerated (pumpkin pie included), how long, and how long it keeps its quality frozen, with the source. Federal figures first.

Federal figures come first. Whether a bake must be refrigerated is from the USDA Food Safety and Inspection Service's power-outage list in Keep Your Food Safe During Emergencies (last updated 2013, a current FSIS page) and its Mail Order Food Safety table (2015), which is the only FSIS table we found with times for frosted cakes and cheesecake. Pie times are from FoodSafety.gov's Cold Food Storage Chart (reviewed September 2023) and FSIS's Shell Eggs from Farm to Table; the two-hour rule is from FSIS's "Danger Zone" page. These three hosts refuse automated requests and load normally in a browser.

Where no federal figure exists, extension services fill in. Room-temperature days are from Iowa State University Extension and Outreach's AnswerLine, Food Safety Practices for Baked Goods (September 2026) and Pie Storage and Storing Pumpkin and Pecan Pie, and from University of Illinois Extension's Do I Need to Refrigerate the Pie? The default freezer time is NDSU Extension's Food Freezing Guide (FN403), reviewed January 2024 and the most recently reviewed of the extension tables; the others are compared under the freezer.

BakeMust be refrigerated?Room temperatureRefrigeratorFreezer (quality)Source
Yeast bread and rolls, bakedNo; FSIS keeps bread and rolls after a power outage3 to 4 days in an airtight container (Iowa State)No figure in our sources2 to 3 months (NDSU)USDA FSIS; Iowa State; NDSU
Yeast dough, unbakedNo federal statement for yeast dough; FSIS lists batters and doughs (its examples are pancake batter and cookie dough) among foods to discard after more than 4 hours above 40 °F (4 °C)While it rises, as the recipe directsNo figure in our sources2 to 3 months, freezer-dough recipes only (NDSU)USDA FSIS; NDSU
Cookies, bakedNo3 to 4 days in an airtight container (Iowa State)No figure in our sources6 to 12 months (NDSU)Iowa State; NDSU
Cookie dough, unbakedYes; FDA (Handling Flour Safely) says to refrigerate cookie and pastry dough at 40 °F (4 °C) as the package directs, and FSIS discards cookie dough after more than 4 hours above 40 °FNot kept outAs the recipe or package says3 months (NDSU)FDA; USDA FSIS; NDSU
Quick breads and muffins, bakedNo; FSIS keeps muffins3 to 4 days in an airtight container (Iowa State)No figure in our sourcesMuffins 6 to 12 months; gingerbread, nut and fruit breads and coffee cake 2 to 4 months (NDSU)USDA FSIS; Iowa State; NDSU
Fruit and nut breadsNo; FSIS lists them for cold or room temperatureFSIS gives no room time7 days (FSIS)6 months (FSIS); 2 to 4 months (NDSU)USDA FSIS; NDSU
Biscuits, bakedNo3 to 4 days, as a quick bread (Iowa State)No figure in our sources2 to 3 months; reheat unthawed at 350 °F (177 °C) for 15 to 20 minutes (NDSU)Iowa State; NDSU
Cake, unfrosted or with a plain frostingNo; FSIS keeps cakes, except those with cream cheese frosting or cream fillings2 to 3 days, covered (Iowa State, for plain cakes)No figure in our sources2 to 4 months (NDSU)USDA FSIS; Iowa State; NDSU
Frosted cakes, layered tortes, petit foursDepends on the frosting and filling (see the next row); FSIS's mail-order table says "frozen or refrigerator cold" and also lists 2 days at room temperature2 days (FSIS)3 days (FSIS)2 months (FSIS); NDSU lists a purchased frosted layer cake at 4 monthsUSDA FSIS; NDSU
Cake with cream cheese frosting, whipped cream or a cream or custard fillingYes; FSIS excludes these from the cakes it keeps, and Iowa State calls dairy and custard fillings perishableNo more than 2 hours (1 hour above 90 °F, 32 °C)No separate federal figure; FSIS's frosted-cake row gives 3 daysNo figure in our sourcesUSDA FSIS; Iowa State
Angel food and other egg-white cakesNo2 to 3 days, covered (Iowa State, for plain cakes)No figure in our sources6 months (NDSU)Iowa State; NDSU
CheesecakeYes; FSIS calls it perishable and discards cheese pies after more than 4 hours above 40 °FNo more than 2 hours (1 hour above 90 °F)7 days (FSIS)3 months (FSIS)USDA FSIS
Fruit pie made with sugar, no dairy, bakedNo; FSIS keeps fruit piesUp to 2 days, loosely covered (Illinois; Iowa State)2 more days, loosely wrapped (Iowa State)Up to 4 months (Iowa State); NDSU has no baked fruit pie rowUSDA FSIS; Illinois; Iowa State
Fruit pie, unbakedNo figure in our sourcesNo figure in our sourcesNo figure in our sources2 to 4 months; do not cut vents before freezing (NDSU)NDSU
Pumpkin or pecan pie, bakedYes; Iowa State, citing USDA, says to refrigerate egg-rich pies after cooling unless served within 2 hoursNo more than 2 hours (1 hour above 90 °F)3 to 4 days (FoodSafety.gov)1 to 2 months (FoodSafety.gov)FoodSafety.gov; USDA FSIS; Iowa State
Custard and chiffon pies, bakedYesNo more than 2 hours (1 hour above 90 °F)3 to 4 days (FoodSafety.gov; FSIS)Do not freeze (FoodSafety.gov; FSIS)FoodSafety.gov; USDA FSIS
Cream pies and cream-filled pastriesYes; FSIS discards cream-filled pastries after more than 4 hours above 40 °FNo more than 2 hours (Illinois)Up to 4 days (Iowa State)Do not freeze well (Iowa State); do not refreeze a cream pie that has thawed (NDSU)USDA FSIS; Illinois; Iowa State; NDSU
Quiche, bakedYesNo more than 2 hours3 to 5 days (FoodSafety.gov)2 to 3 months (FoodSafety.gov)FoodSafety.gov; USDA FSIS
Pie pastry, unbakedKeep it chilled until it is rolled (King Arthur)No figure in our sourcesKing Arthur chills its dough 30 minutes to overnight6 to 8 weeks (NDSU); King Arthur gives up to 2 monthsNDSU; King Arthur Baking
Pie pastry, baked shellNo figure in our sourcesNo figure in our sourcesNo figure in our sources2 to 3 months (NDSU)NDSU
Cream puff shells, unfilledNo figure in our sourcesNo figure in our sourcesNo figure in our sources1 to 2 months (NDSU)NDSU
FruitcakeNo; better refrigerated or frozen (FSIS)1 month (FSIS)6 months (FSIS)1 year (FSIS)USDA FSIS
Frosting made aheadDepends on what is in it; see the refrigeratorNot statedThaw frozen frosting overnight in the refrigeratorUp to 3 months (King Arthur)King Arthur Baking

Freezer times in this table are for quality. FoodSafety.gov says food kept continuously at 0 °F (-18 °C) stays safe indefinitely; it only loses quality. Physical principle The occasion plan dates each bake backward from your event: see the occasion plan.

Room temperature and the two-hour rule

FSIS's rule: do not leave perishable food out of refrigeration for more than 2 hours, or more than 1 hour above 90 °F (32 °C). Bacteria grow quickly between 40 and 140 °F (4 and 60 °C). For baked goods, Iowa State says the two hours start when baking finishes, not when the bake goes on the table, so a custard pie cooling on the counter is already using its time. Convention

What can stay out depends on moisture and what the bake contains. Iowa State says low-moisture, high-sugar bakes (bread, rolls, cookies, quick breads) keep at room temperature for 3 to 4 days in an airtight container, and plain cakes and baked fruit pies for 2 to 3 days covered. Bakes and frostings with dairy, eggs, custard, fresh fruit or vegetables, or meat, or with high moisture, are perishable and go in the refrigerator. Iowa State calls these TCS foods: foods that need time and temperature control for safety.

A store pumpkin pie sold unrefrigerated is not a model for a homemade one. Illinois explains that a commercial shelf-stable pumpkin pie reaches 180 °F (82 °C) at its coldest point and carries preservatives, microbial testing and a use-by date, and homemade pie has none of these. Iowa State adds that shelf-stable store pies go in the refrigerator once cut.

Caution

Custard, cream, pumpkin and chiffon pies, cheesecake, cream-filled pastries and anything with cream cheese frosting go in the refrigerator within 2 hours of leaving the oven, or 1 hour above 90 °F. At a party or a bake sale, the clock keeps running while they sit on the table. To hold a pie longer at a table, Iowa State says to set it on ice.

The refrigerator

Keep the refrigerator at 40 °F (4 °C) or below (FoodSafety.gov). Which bakes need it: the FSIS power-outage list keeps fruit pies, bread, rolls, muffins and cakes, and discards batters and doughs, custard, chiffon and cheese pies, cream-filled pastries, and cakes with cream cheese frosting or cream fillings after more than 4 hours above 40 °F. We use that list to say which bakes need the cold; we do not treat 4 hours as a holding time. Convention

Frostings are the hard case. Kansas State University Research and Extension's Food Safety of Frostings and Fillings (MF3544) tested 49 recipes and found that cream cheese frostings varied: some needed refrigeration and some did not, which a home baker cannot tell without testing. It names a frosting or filling that is at least 65 percent sugar by weight as a practical choice for room-temperature stability. Test it Kansas fairs allow no cream cheese frostings at all. We treat cream cheese frostings and cream fillings as refrigerated, as FSIS does. On egg-based frostings, FSIS says to avoid icings made with uncooked eggs or whites; seven-minute frosting, made by pouring hot syrup into beaten whites, is on its safe list.

Cooling and covering a pie: Iowa State says to cool it completely, chill it uncovered, then cover it loosely, so condensation does not make the crust soggy. A pie not cool within 2 hours goes into the refrigerator unwrapped to finish cooling.

The freezer

Keep the freezer at 0 °F (-18 °C) or below. Cool a bake completely before wrapping it, and double-wrap it (Kansas State's Freezing Baked Goods; Iowa State). Freezing does not refresh a bake; it keeps the quality it had when it went in, says University of Illinois Extension's Freezer Storage page. A warmer freezer loses quality faster: NDSU says the quality lost in one year at 0 °F is lost in three months at 10 °F (-12 °C), three weeks at 20 °F (-7 °C) and five days at 30 °F (-1 °C). Physical principle

Some bakes freeze poorly. Custard and cream pies do not freeze well (Illinois; University of Missouri Extension's How to Freeze Home-Prepared Foods (GH1505)), meringue toughens (Missouri), and egg-white frostings and custard fillings do not freeze well (Kansas State). Freeze a cake and its frosting separately for best results; fudge and powdered-sugar frostings made with fat freeze well, and cooked candy-type frostings crack (Clemson Cooperative Extension's Freezing Prepared Foods (HGIC 3065)).

Go deeper

The extension tables disagree, by up to three times. The table above uses NDSU, the most recently reviewed. The others are University of Missouri Extension's How to Freeze Home-Prepared Foods (reviewed August 2026), Kansas State's county handout (undated), Illinois Extension's Freezer Storage page (undated) and Clemson Cooperative Extension's Freezing Prepared Foods (2012). All are quality times at 0 °F. Where a cell is empty, that source gives no figure.

BakeNDSU (2024)Missouri (2026)Kansas StateIllinoisClemson (2012)
Yeast bread and rolls, baked2 to 3 months3 months6 to 8 months2 to 3 months (3 months in a second table on the same page)6 to 8 months
Yeast dough, unbaked2 to 3 months, freezer recipes onlyUp to 1 month, freezer recipes only1 month (double yeast and sugar)1 monthUp to 1 month, freezer recipes only
Cookies, baked6 to 12 months3 monthsUnfrosted up to 12 months; frosted up to 28 to 12 months6 months
Cookie dough, unbaked3 months3 monthsUp to 6 months3 months6 months
Cake, unfrosted2 to 4 monthsAbout 3 monthsUp to 6 months2 to 4 monthsShortened cakes 2 to 4 months
Cake, frosted4 months (purchased layer cake)Freeze the frosting separatelyUp to 3 months1 monthFreeze the frosting separately
Quick breads2 to 4 months (nut and fruit breads)2 to 4 months2 to 3 months2 to 4 months
Muffins6 to 12 months2 to 4 months2 to 3 months6 to 12 months
Fruit pie, unbaked2 to 4 months8 monthsUp to 4 months2 to 4 months3 to 4 months
Fruit pie, baked3 to 4 monthsUp to 4 months1 to 2 months3 to 4 months
Pumpkin pie, unbaked4 to 5 weeks4 to 5 weeks4 to 5 weeks
Pumpkin pie, bakedUp to 4 months
Chiffon pie1 to 2 months2 weeks
Cream piesDo not refreeze if meltedDo not freeze wellCustard fillings do not freeze well3 months (cream pies and pastries)Soak the crust
Cheesecake2 to 3 months
Pastry, unbaked6 to 8 weeks6 to 8 weeks
Angel food cake6 months (egg-white cakes)6 to 12 months6 months

Two conflicts with the federal rows: FoodSafety.gov and FSIS say not to freeze custard and chiffon pies, while NDSU gives chiffon pies 1 to 2 months and Clemson 2 weeks; and FoodSafety.gov gives baked pumpkin pie 1 to 2 months against Kansas State's 4. We follow the federal rows.

Thawing and reheating

Missouri's rule: baked goods without a filling may thaw at room temperature in their wrapping; anything with meat, eggs or dairy, and any frosted or filled cake, thaws in the refrigerator. Convention

BakeHow to thaw or bake from frozenSource
Unfrosted cakeCovered, 2 to 3 hours at room temperatureKansas State
Frosted or filled cakeOvernight in the refrigeratorKansas State; Missouri
CheesecakeIn the refrigerator, 4 to 6 hoursKansas State
Bread and rollsWrapped in foil, 300 °F (149 °C) for 15 minutes; rolls 5 to 10 minutesNDSU; Missouri
BiscuitsUnthawed, 350 °F (177 °C) for 15 to 20 minutesNDSU
Unbaked yeast doughIn the refrigerator, about 16 hoursKansas State
Cookie dough, formedBake unthawed at 400 °F (204 °C): NDSU's table gives about 20 minutes, Kansas State about 10; start checking at the shorter timeNDSU; Kansas State
Cookie dough, in bulkThaw until soft enough to dropNDSU
Unbaked fruit pieBake unthawed at 450 °F (232 °C) for 15 to 20 minutes, then 375 °F (191 °C) for 20 to 30 minutes. NDSU says not to cut vents before freezing; Missouri says to cut them just before bakingNDSU; Missouri
Unbaked pumpkin pieBake unthawed at 400 °F (204 °C) for 10 minutes, then 325 °F (163 °C) until setMissouri; Clemson
Baked fruit pieThaw 1 hour, then warm at 375 °F (191 °C) for about 30 minutesIowa State
Baked pumpkin, pecan and other egg piesIn the refrigeratorIowa State
Unbaked pastry shellBake frozen at 475 °F (246 °C) until light brownNDSU; Missouri
FrostingOvernight in the refrigeratorKing Arthur Baking

The frosting figure is from King Arthur Baking's How much frosting do I need for a cake?; the pastry figure from its Pie Crust guide; the cookie-dough refrigeration line from the US Food and Drug Administration's Handling Flour Safely. Planning a bake-ahead timeline is in Baking ahead and for an occasion.

Limits

Freezer times are quality times, and the extension tables disagree; none of them is a safety limit. Room and refrigerator rules for perishable bakes are federal guidance, and this page does not loosen them. The FSIS mail-order and emergency pages are dated 2015 and 2013 and are cited with their dates. This page does not say whether a bake is safe for someone with a food allergy, and it does not cover selling baked goods: bake-sale and cottage food rules belong to your state or county health or agriculture department, which is where to ask.