How Long Cooked and Uncooked Pasta Lasts in the Refrigerator
Cooked Pasta Lasts Three to Five Days When Stored Properly
Cooked pasta keeps for three to five days in the refrigerator if you store it in an airtight container or a sealed bag. The exact length depends on how quickly you cool it after cooking and how consistently cold your refrigerator stays. Pasta stored in a loose container or uncovered on a plate will dry out faster and may pick up odors from other foods, cutting that window down to two days.
The reason cooked pasta has this window is moisture loss and bacterial growth. Pasta absorbs water during cooking, and that moisture gradually evaporates in the refrigerator's dry air. At the same time, any bacteria present (from the cooking water, utensils, or air) can multiply slowly at refrigerator temperatures. Keeping pasta sealed slows both processes.
Cool cooked pasta to room temperature before refrigerating it—don't put hot pasta directly into the fridge. Hot food raises the temperature inside your refrigerator, which can warm other foods and create conditions where bacteria multiply faster. Spread the pasta on a plate for 15 to 20 minutes, then transfer it to a container.
Key Takeaways
- Cooked pasta stays fresh for three to five days when stored in a sealed container in the refrigerator.
- Tossing cooked pasta with a small amount of oil before refrigerating slows moisture loss and prevents clumping.
- Uncooked dried pasta does not belong in the refrigerator; it lasts for years in a cool, dry pantry.
- Discard cooked pasta if it smells sour, feels slimy, or shows visible mold, even if it is within the five-day window.
- Frozen cooked pasta lasts two to three months and thaws quickly in the microwave or on the stovetop.
Toss Pasta With Oil to Prevent Sticking and Drying
Before you refrigerate cooked pasta, coat it lightly with olive oil or the oil from your sauce. Use about one teaspoon per two cups of cooked pasta. This step serves two purposes: it prevents the pasta from drying out as quickly, and it stops individual pieces from sticking together into a solid block.
If you forget to oil the pasta before refrigerating and it has clumped, you can still separate it. Run the clump under warm water or place it in a microwave-safe bowl with a splash of water, then microwave for 30 to 60 seconds. Stir gently with a fork to break it apart. This method works because the warm water rehydrates the pasta surface without cooking it further.
Uncooked Dried Pasta Does Not Need Refrigeration
Uncooked dried pasta—the kind you buy in boxes—does not belong in the refrigerator. It lasts for years in a cool, dry pantry or cabinet, away from direct sunlight and moisture. Refrigerating it actually shortens its shelf life because the moisture in the refrigerator can cause the pasta to absorb water and become brittle or develop an off flavor.
Store dried pasta in its original box or in an airtight container. If you transfer it, label the container with the pasta type and the date you opened the box. Dried pasta that has been open for several years may cook unevenly or have a stale taste, though it is still safe to eat.
Fresh Pasta From the Store or Homemade Lasts One to Three Days
Fresh pasta—the refrigerated kind you find near the dried pasta aisle, or pasta you make at home—has a much shorter window than cooked dried pasta. It lasts one to three days in the refrigerator, stored in its original package or in an airtight container. Fresh pasta has a higher moisture content and softer texture than dried pasta, which makes it more vulnerable to bacterial growth and mold.
Check the package date before you buy fresh pasta. Many brands print a "use by" date that is more reliable than a general guideline, because the manufacturer knows exactly when the pasta was made and packaged. If you make pasta at home and do not plan to cook it within a day, freeze it instead. Homemade fresh pasta freezes well for up to three months.
Freeze Cooked Pasta for Up to Two to Three Months
Cooked pasta freezes well and is a practical way to extend its life. Spread cooled, oiled pasta on a baking sheet in a single layer and freeze it for two to three hours until solid. Then transfer it to a freezer bag or airtight container, label it with the date, and freeze for up to two to three months.
Freezing in a single layer first prevents the pasta from forming one solid block, so you can thaw only what you need. When you are ready to use it, thaw the pasta in the refrigerator overnight, or reheat it directly from frozen on the stovetop with a splash of water or in the microwave. Frozen pasta may be slightly softer than fresh cooked pasta, but the flavor and safety are not affected.
Signs That Cooked Pasta Has Gone Bad
Discard cooked pasta if it shows any of these signs, even if it is still within the three- to five-day window. A sour or off smell is the clearest signal that bacteria have multiplied to unsafe levels. A slimy or sticky texture that does not improve after rinsing under warm water also indicates bacterial growth. Visible mold—usually white, green, or black spots—means the pasta is no longer safe to eat.
Pasta that has simply dried out or lost its sauce is still safe; it just tastes less appealing. You can revive it by reheating it with a little water or sauce. But if you are unsure whether the pasta is safe, throw it out. The cost of a small portion of pasta is far less than the risk of foodborne illness.
Store Pasta Sauce Separately to Extend Both
If you are storing pasta with sauce, keep them in separate containers. Sauce can make pasta soggy and accelerate spoilage, and wet pasta can dilute the sauce. Cooked pasta sauce lasts three to four days in the refrigerator, which is slightly longer than plain pasta, but storing them apart lets you use each one on its own timeline.
When you are ready to eat, reheat the pasta and sauce separately, then combine them. This approach also gives you flexibility: you can use leftover pasta with a different sauce, or use leftover sauce with fresh pasta or another grain.
Frequently Asked Questions
Can I eat cooked pasta that has been in the refrigerator for a week?
No. Cooked pasta is safe for three to five days, and after that bacteria can reach unsafe levels even if the pasta looks and smells normal. If you need pasta to last longer, freeze it instead. Frozen cooked pasta lasts two to three months.
Does pasta go bad faster if I leave it out on the counter?
Yes. Cooked pasta left at room temperature enters the danger zone (40°F to 140°F) where bacteria multiply rapidly. Discard cooked pasta that has sat on the counter for more than two hours, or one hour if the room is warmer than 90°F.
Why does my refrigerated pasta smell like vinegar?
A vinegar or sour smell means bacteria are producing acids as they break down the pasta. This is a sign the pasta has gone bad and should be thrown out, even if it looks normal. Do not taste it to confirm.
Can I reheat frozen pasta in the microwave?
Yes. Place frozen pasta in a microwave-safe bowl, add a tablespoon of water, cover loosely, and microwave on high for one to two minutes, stirring halfway through. Add more water if the pasta seems dry. Alternatively, thaw it overnight in the refrigerator and reheat on the stovetop.
Is it safe to eat pasta that has been refrigerated but never cooked?
Fresh refrigerated pasta that has gone past its use-by date should not be eaten raw or cooked. Cooking does not make old fresh pasta safe. Dried uncooked pasta, however, lasts for years and is safe to cook and eat well past any printed date.