← Food database

How long baked goods last

49 foods. Times from the U.S. government's USDA FoodKeeper data.
FoodFridgeFreezerPantry
Almond extract——2 years (12 months once opened)
Bagels—3 months1–2 days
Baking powder——6–18 months (3–6 months once opened)
Baking soda——2–3 years (6 months once opened)
BiscuitsUntil the package use-by dateNot recommended—
Bread2–3 months—3–5 days
Cheesecake5–7 days once opened3–6 months—
Chiffon pies1–2 days once openedNot recommended—
Chili powder——2 years
Chocolate——1–2 years (1 year once opened)
Cinnamon extract——2 years (12 months once opened)
Cinnamon rollsUntil the package use-by date——
Cocoa and cocoa mixes——Indefinitely (1 year once opened)
Coconut flour9–12 months9–12 months—
Commercial bread products2–3 weeks once opened3–5 months14–18 days
Commercial cakes and muffins7–10 days once opened6 months3–7 days
Cookie doughUntil the package use-by date2 months—
Cookies—8–12 months2–3 months
Cornmeal1 year once opened—6–12 months (2 years once opened)
Cornstarch——18–24 months (18 months once opened)
Cream pies3–4 days once openedNot recommended—
Dairy filled eclairs2–3 days once opened3 months—
Doughnuts2 days once openedNot recommended1–2 days
Flour1 year once opened—6–12 months (6–8 months once opened)
Frosting or icing2–3 weeks once opened—10–12 months
Fruit cake12 months once opened12 months6 months
Fruit pies1 week once opened8 months1–2 days
Garlic——8–12 months
Gelatin——10–12 months (3–4 months once opened)
Herbs——1–2 years
Lemon extract——2 years (12 months once opened)
Macaroons—3 months1–2 days
Muffins—2–3 months3–7 days
Nut oils6–8 months once opened—6–12 months (3–8 months once opened)
Pastries and danish14 months once openedNot recommended5–10 days
Pie crustUntil the package use-by date2 months—
Pies1 week once opened8 months2 hours
Pure vanilla extract——2 years (12 months once opened)
Quiche3–5 days once opened2–3 months2 hours
Ready-to-bake pie crustUntil the package use-by date2 months—
Seasoning blends——1–2 years
Shortening——1–2 years (6–12 months once opened)
Sugar——Indefinitely (18–24 months once opened)
Sugar substitutes——2 years (indefinitely once opened)
Tamarind paste2–3 months once opened—6–12 months (6 months once opened)
Tapiocas——12 months
Vegetable oil sprays——2 years (1 year once opened)
Whole wheat flour2 years2 years12 months
Yeast4 months once opened6 months2 years

Keep the fridge at 40°F (4°C) or colder and the freezer at 0°F (−18°C). Write the date on containers when you open or cook something.

Source: USDA FoodKeeper data. Updated 2026-10-13.