You have a box of dry spaghetti in the pantry that has been there for two years, and a container of leftover fettuccine in the fridge from three days ago. You also bought one of those ready-to-eat pasta meals from the grocery store that you have been meaning to heat up. Three different pasta situations with three different answers.
Does pasta go bad?
The short answer: Yes, and cooked pasta carries two distinct food safety risks that are worth understanding separately. Cooked pasta left at room temperature for more than 2 hours can develop Bacillus cereus, a bacterium that produces toxins reheating cannot destroy. Pre-made refrigerated pasta meals carry a Listeria risk. Dry uncooked pasta is one of the most shelf-stable pantry staples you own and lasts 1 to 2 years past its printed date with no meaningful food safety concern.
For more on food storage and safety, see the Food Storage Guide.

Key Takeaways

Cooked pasta: refrigerate within 2 hours; use within 3 to 5 days
Reheating does not neutralize Bacillus cereus toxins already in pasta
Pre-made refrigerated pasta meals: always follow the use-by date; do not eat after expiry
Dry pasta: 1 to 2 years past best-by date in a sealed pantry container
Fresh pasta: 1 to 2 days refrigerated; 2 to 3 months frozen
Gluten-free pasta (dry): 1 year, sometimes less due to rice or bean flour oils

The Two Food Safety Risks in Cooked Pasta
Most food goes bad in one way: bacteria grow, you notice, you discard it. Cooked pasta has two distinct risk mechanisms that work differently and require different precautions.

Risk 1: Bacillus cereus (homemade and restaurant pasta)
Bacillus cereus is a spore-forming bacterium found in starchy foods including pasta. Cooking kills the active bacteria but not the spores, which survive boiling. When cooked pasta sits at room temperature, those spores germinate and the bacteria multiply, producing heat-stable toxins. Because the toxins survive reheating, pasta that was left out too long remains dangerous even after being thoroughly reheated. This is the same mechanism behind fried rice syndrome and affects any cooked pasta left in the temperature danger zone (40 to 140 degrees Fahrenheit) for more than 2 hours.
Risk 2: Listeria monocytogenes (pre-made refrigerated pasta meals)
Listeria is a different bacterium with a different risk profile. Unlike B. cereus, Listeria grows in the refrigerator itself and cannot be neutralized by previous cooking if the pasta becomes recontaminated after cooking. Pre-made refrigerated pasta products are at particular risk because they are handled after cooking in a commercial environment where Listeria can be introduced during packaging. A 2025 outbreak in the United States linked to pre-cooked pasta from Nate’s Fine Foods resulted in 28 illnesses, 27 hospitalizations, and 7 deaths across 19 states before the CDC declared the outbreak over in February 2026.

How Long Does Pasta Last?

Type
Pantry
Refrigerator
Freezer

Dry pasta (white flour)
 

Author