You have a box of dry spaghetti in the pantry that’s been there for two years, and a container of leftover fettuccine in the fridge from three days ago. You’ve also purchased one of those ready-to-eat pasta meals from the grocery store that you want to reheat. Three different pasta situations with three different answers.
Does pasta go bad?
Short answer: Yes, and cooked pasta poses two distinct food safety risks that are worth understanding separately. Cooked pasta at room temperature for more than 2 hours can grow Bacillus cereus, a bacterium that produces toxins that are not destroyed when reheated. There is a risk of listeria in pre-prepared refrigerated pasta meals. Dried raw pasta is one of the most shelf-stable pantry staples you can have and lasts for 1 to 2 years beyond its printed date without any meaningful food safety concerns.
See the Food Storage Guide for more information on food storage and safety.
key takeaways
- Cooked pasta: refrigerate within 2 hours; Use within 3 to 5 days
- Reheating does not neutralize the Bacillus cereus toxins already present in the pasta
- Pre-made refrigerated pasta meals: Always follow the use-by date; Do not eat after expiration
- Dry pasta: 1 to 2 years before best by date in a sealed pantry container
- Fresh pasta: 1 to 2 days refrigerated; kept frozen for 2 to 3 months
- Gluten-free pasta (dry): 1 year, sometimes less due to the oil in the rice or bean flour
Two food safety risks in cooked pasta
Most food spoils in one way: bacteria grow, you look at it, you discard it. Cooked pasta has two different 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 is kept at room temperature, those spores germinate and the bacteria grow, producing heat-stable toxins. Because toxins survive reheating, pasta left out for too long remains dangerous even after being completely 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. B. Unlike Cereus, Listeria only grows in the refrigerator and if the pasta becomes re-contaminated after cooking it cannot be neutralized by a previous cooking. Pre-made refrigerated pasta products are at particular risk because they are handled after cooking in commercial environments where Listeria can be introduced during packaging. A 2025 outbreak in the United States involving pre-cooked pasta from Nate’s Fine Foods resulted in 28 illnesses, 27 hospitalizations, and 7 deaths in 19 states before the CDC declared the outbreak ended in February 2026.
How long does pasta last?
| Type | storeroom | refrigerator | freezer |
|---|---|---|---|
| dry pasta (white flour) | 1 to 2 years before best by date | indefinitely (no benefits) | indefinitely (no benefits) |
| dry gluten-free pasta | up to 1 year | up to 2 years | sine die |
| Fresh pasta (refrigerated, unopened) | Refrigerate only | Use by date (1 to 2 weeks) | 2 to 3 months |
| Fresh pasta (rolled out) | Refrigerate only | 1 to 2 days | 2 to 3 months |
| Cooked pasta (plain or with sauce) | maximum 2 hours | 3 to 5 days | up to 2 months |
| pre-made refrigerated pasta meals | Never | Use by date only | Check Product Labels |
2025 pasta listeria outbreak: what happened and what it means
In 2025, a multistate Listeria outbreak linked to precooked pasta products from Nate’s Fine Foods of Roseville, California resulted in 28 confirmed cases, 27 hospitalizations, and 7 deaths in 19 states. The outbreak began in August 2024 and was declared ended by the CDC on February 12, 2026. Products from major grocery retailers were affected, including Walmart Marketside, Trader Joe’s, Kroger, Sprouts, Home Chef, and Scott & John’s branded pasta meals. The recalled products are no longer available for sale. Complete information is on CDC outbreak investigation page.
The mechanism was Listeria contamination in the pre-cooked pasta supply chain, not improper storage by consumers. The recalled products are no longer available for sale. However, the outbreak reinforced two important points for anyone purchasing pre-made refrigerated pasta products:
First of all, the use by date on already prepared refrigerated pasta is not a quality suggestion. This is a safety limit. Listeria can grow in the refrigerator, meaning that a product that has not yet been opened may still be unsafe as it approaches and passes its use-by date. Second, at-risk groups, including pregnant women, adults age 65 and older, and immunocompromised individuals, should be especially careful with pre-made refrigerated pasta meals and should consider reheating them to 165 degrees Fahrenheit (steaming hot) before eating, even within the expiration date, according to CDC listeria guidance.
How to tell if pasta has gone bad
Symptoms of Malfunction
- Sour or off smell: Freshly cooked pasta has a neutral, slightly starchy odor. A sour or fermented odor means that bacterial activity has taken hold. Discard it.
- Sticky Texture: Cooked pasta should feel soft but not smooth or slippery. A sticky layer on the noodles indicates colonization of bacteria.
- Mould: Any cloudy growth on cooked pasta means discard the entire container. Do not take out the moldy part.
- Discoloration: Brown, yellow, or otherwise discolored pasta that turns white or yellow when cooked.
- Cross the time window: More than 2 hours at room temperature, more than 5 days refrigerated, or past the use by date on pre-made product. These time ranges are the most reliable indicators, not just appearance or smell.
Important warnings specific to cooked pasta: Like rice, B. Pasta contaminated with Cereus toxins may show no visual or odorous signs of spoilage. Timing rules are more reliable than sensory tests for pasta left at room temperature.
Does dry pasta go bad?
Dry pasta made from semolina flour is one of the most shelf-stable foods in your pantry. Its very low moisture content (about 12%) creates an environment where bacteria and mold cannot grow. An unopened box or bag of dried pasta, stored in a cool, dry place, remains good for 1 to 2 years beyond the printed best by date, with no meaningful food safety concerns, and often with only a slight quality loss. The printed date reflects quality, not safety.
Exception: Gluten-free pasta made from rice flour, lentil flour, or bean flour has a shorter shelf life of about 1 year, because the alternative flours have a higher oil content, which can go rancid. A musty or paint-like smell from dried pasta is a sign that it is stale. It won’t make you seriously ill but it tastes unpleasant.
Once the dried pasta is opened, transfer to an airtight container to prevent moisture absorption and pantry pests. Moisture is the main enemy of dried pasta quality in long-term storage.
See also

How to Store Cooked Pasta
Best Storage Practices for Cooked Pasta
- Refrigerate within 2 hours of cooking. Do not leave cooked pasta in a colander or pot while you do other work.
- Store in an airtight container. Open pasta dries out and absorbs refrigerator odors.
- Add a little olive oil before refrigerating If you are storing plain pasta without sauce. This prevents clumping.
- Use within 3 to 5 days. Pasta with sauce usually lasts for about 3 days because the moisture in the sauce accelerates the growth of bacteria. Plain cooked pasta lasts for about 5 days.
- Reheat to 165 degrees Fahrenheit (Hot steam is blowing everywhere). It exists in any B. Cereus kills bacteria, although not toxins that have already formed from improper storage.
- Do not reheat more than once.
Recipes that use leftover pasta
The best use of leftover pasta at the end of its window is to reuse it in a dish that reheats it well. Try Gluten-Free Penne Alla Vodka for a fresh pasta night that gives you pasta made right from scratch, or Gluten-Free Chicken Pesto Pasta for a quick weeknight dish. Both give you leftovers worth proper storage. For full USDA guidance on leftover food safety, see USDA FSIS Leftover Food and Food Safety Page. For a complete clinical overview of Bacillus cereus, see NIH StatPearls Bacillus Cereus Review. FDA’s bad bug book As part of its broader foodborne pathogen context, B. Ceres is included. specifically for Listeria, CDC Listeria Home Page It includes symptoms, risk groups and prevention.
Does pasta go bad FAQ
FAQ: Can you get sick from old pasta?
Yes, in two ways. In pasta cooked at room temperature for more than 2 hours, B. Ceres may develop toxins that are not destroyed by reheating. Pre-made refrigerated pasta products that have passed their use-by date have an increased risk of listeria. Dry pasta is the exception: it poses no meaningful food safety risk beyond its printed date, only potential quality degradation.
FAQ: Is it safe to eat pasta left out overnight?
No, cooked pasta left at room temperature overnight has been in the temperature danger zone for 8 or more hours. B. cereus spores would have germinated and the bacteria would have produced heat-stable toxins. Even properly reheated pasta is not safe to eat. Discard it. This is true whether the pasta is covered or uncovered, plain or sauced, in a bowl or in a pot.
FAQ: Does pasta go bad in the freezer?
Cooked pasta stored continuously at 0 degrees Fahrenheit is safe indefinitely according to USDA guidance. The quality is at its best within 1 to 2 months before the texture softens and the flavor fades. Pasta with sauce freezes somewhat better than plain pasta because the sauce protects the noodles while freezing. Thaw in the refrigerator overnight and reheat to 165°F. Use within 24 hours of thawing. Do not refreeze.
FAQ: How long is dry pasta good for after the expiration date?
Standard semolina dry pasta generally remains good for 1 to 2 years after the printed date when stored in a cool, dry place in a sealed container. The date printed on dried pasta is the best quality indicator, not a safety expiration. If its odor is neutral and shows no signs of moisture damage or insect intrusion, it is safe to cook and eat. Gluten-free pasta made from alternative flours has a lower margin due to the oil present in the alternative flours, leading to a shelf life of about 1 year.
Further reading
Better Living may earn commission through affiliate links and may occasionally feature sponsored or partner content. If you purchase through our links, we may receive a small commission at no cost to you.
