Cooked pasta lasts 3 to 5 days in the fridge when stored properly at 40°F (4°C) or below. That’s the direct answer, and it’s the one the USDA’s food safety guidance backs up. Uncooked dry pasta is a completely different story — it keeps for 1 to 2 years in the pantry — and fresh refrigerated pasta lands in between at about 4 to 5 days unopened. The 3-to-5-day window for cooked pasta assumes you refrigerated it within two hours of cooking and kept it in an airtight container. Leave it on the counter overnight and the clock works very differently.

Pasta Shelf Life at a Glance
- Cooked plain pasta (refrigerated): 3–5 days
- Cooked pasta with sauce (refrigerated): 3–4 days (meat sauces on the shorter end)
- Dry uncooked pasta (pantry): 1–2 years past the “best by” date, often longer
- Fresh uncooked pasta (refrigerated): 4–5 days unopened; 1–2 days once opened
- Cooked pasta (frozen): 1–2 months at best quality
Pasta with meat sauce or dairy-heavy sauces deserves the shorter end of the range — proteins and dairy give bacteria more to work with. Plain pasta tossed in a little olive oil is the most forgiving.
How to Store Cooked Pasta So It Actually Lasts
The two-hour rule is the one that matters most. Bacteria multiply fastest between 40°F and 140°F — the famous “danger zone” — so get leftovers into the fridge within two hours of cooking (one hour if your kitchen is above 90°F). Spread pasta in a shallow container so it cools quickly rather than sitting warm in a deep pot.
Use airtight containers or zip-top bags with the air pressed out. Tossing cooked pasta with a teaspoon of olive oil before storing keeps the strands from fusing into a solid brick, which also makes reheating far more pleasant. Store sauce separately when you can — sauced pasta gets mushy faster, and separate storage gives you more flexibility at reheating time.
Keep your fridge at or below 40°F. If you’re unsure, a five-dollar fridge thermometer settles the question. Plenty of home fridges quietly run at 42–45°F, which shortens the safe life of everything in them, not just pasta.
Can You Freeze Cooked Pasta?
Yes, and it freezes better than its reputation suggests. Portion it into freezer bags, press flat to remove air, and use within 1–2 months for best texture. Undercook it by a minute or two before freezing, since reheating will finish the job — fully cooked pasta tends to go mushy on the second round. Thaw overnight in the fridge, then reheat in simmering water or sauce rather than the microwave for the best texture.
Signs Your Pasta Has Gone Bad
Trust your senses, in this order: slime is the clearest giveaway — if the pasta feels slippery or slimy even after rinsing, it’s done. Next, smell: sour or off odors mean toss it. Discoloration — dull, grayish, or white spots beyond normal starch — is another red flag, as is any visible mold. When in doubt, throw it out. Leftover pasta is not worth a night of food poisoning; the savings are measured in cents.
Reheating Without Ruining It
The microwave works, but it heats unevenly and can turn pasta gummy. Better: drop plain pasta into boiling water for 30–60 seconds, or warm it in a skillet with a splash of water and a lid to steam it back to life. Sauced pasta reheats best in a saucepan over medium-low heat with a spoonful of water to loosen the sauce. Get it steaming hot all the way through — 165°F if you want to be precise about it.
For more fridge-life questions, the same rules apply to plenty of leftovers — see how long chili lasts in the fridge and how long bone broth keeps. And if you’re stocking the pantry side too, our bagel storage guide covers the room-temperature end of things.
The FoodSafety.gov site run by the US government has the official storage charts these timelines come from — worth bookmarking if you batch-cook often.
FAQs
Can you eat 5-day-old pasta?
Day 5 is the edge of the safe window. If it was refrigerated promptly, stored airtight, and shows no slime, off-smell, or discoloration, it’s generally fine — but day 3 or 4 is the sweeter spot for both safety and texture.
Does pasta sauce change how long it lasts?
Yes. Plain pasta keeps the full 3–5 days; pasta mixed with meat sauce is safer at 3–4 days. Dairy-based sauces like alfredo also lean shorter. Storing sauce separately buys you the maximum window.
Can cooked pasta sit out overnight?
No — that’s the riskiest scenario. Cooked pasta left at room temperature for more than two hours should be thrown out. Bacteria, including types that produce heat-stable toxins reheating won’t destroy, thrive on starchy foods in the danger zone.
How long is pasta salad good for in the fridge?
About 3–5 days, same as other cooked pasta, assuming it stayed chilled. Pasta salad served at a picnic or barbecue follows the two-hour rule strictly — one hour in heat above 90°F — so don’t graze on the bowl all afternoon and pack up the rest.



