How long do sugar, baking soda and long-keeping baking goods last?

Sugar, baking soda and long-keeping baking goods keep indefinitely in the pantry, according to USDA FoodKeeper.

Quick answer

Fridge—No FoodKeeper guidance
Freezer—No FoodKeeper guidance
PantryIndefinitelyopened: 18–24 months

Storage times by type

TypeFridgeFreezerPantry
Sugar (granulated)——
  • Unopened: Indefinitely
  • Opened: 18–24 months after opening
USDA tips: Pantry: Sugar never spoils, but for best quality use within 2 years of opening.
Sugar (brown)——
  • Unopened: Indefinitely
  • Opened: 18–24 months after opening
USDA tips: Pantry: Sugar never spoils, but for best quality use within 2 years of opening.
Sugar (confectioners)——
  • Unopened: Indefinitely
  • Opened: 18–24 months after opening
USDA tips: Pantry: Sugar never spoils, but for best quality use within 2 years of opening.
Baking soda——
  • Unopened: 2–3 years from purchase
  • Opened: 6 months after opening
Cornstarch——
  • Unopened: 18–24 months from purchase
  • Opened: 18 months after opening
Corn syrup——
  • Unopened: 3 years
USDA tips: Pantry: Keep tightly covered; refrigerate to extend storage life.
Chocolate (unsweetened and semi-sweet, solid)——
  • Unopened: 1–2 years from purchase
  • Opened: 1 year after opening
Cocoa and cocoa mixes——
  • Unopened: Indefinitely from purchase
  • Opened: 1 year after opening
Pure vanilla extract——
  • Unopened: 2 years
  • Opened: 12 months after opening
Shortening (solid)——
  • Unopened: 1–2 years from purchase
  • Opened: 6–12 months after opening

Also covers: sugar, brown sugar, powdered sugar, baking soda, cornstarch, corn starch, corn syrup, chocolate chips, baking chocolate, cocoa, cocoa powder, vanilla extract, extract, shortening.

Never wonder “is this still good?” again

Shelf Shepherd keeps track of what’s in your fridge and pantry and reminds you before food expires. Free for iPhone and Android.

Get early access

These are general guidelines from the USDA’s FoodKeeper data for food stored at safe temperatures: fridge at 40°F (4°C) or below, freezer at 0°F (−18°C). Freezer times are for best quality; food kept constantly frozen at 0°F stays safe longer. Always check the package and the food itself. When in doubt, throw it out. Shelf Shepherd isn’t affiliated with or endorsed by the USDA.

Source: USDA FSIS FoodKeeper data. Last reviewed November 5, 2026.