Skip to content
Home Storage Guide
Shelf life

How Long Does Pasta Last?

By James OkaforReviewed 2026-01-01

Dry pasta keeps 1–2 years airtight in the pantry and stays safe far longer — whole-grain pasta only 3–6 months. Cooked pasta keeps 3–5 days in the fridge and freezes for 2 months. Bugs, mold, or a musty smell mean discard.

Dry pasta is nearly immortal. In an airtight container it keeps for years, survives pantry chaos, and only loses quality slowly. About the only things that can kill it are the same three that threaten all dry goods: moisture, bugs, and time in a warm kitchen. Cooked pasta is a completely different story, with real fridge and freezer windows.

How long pasta lasts

Storage method Duration Best practice
Pantry — dry white pasta 1–2 years Airtight, cool, dark
Pantry — whole-grain pasta 3–6 months Oils in the grain go rancid
Fridge — cooked 3–5 days Toss in oil; sealed container
Freezer — cooked About 2 months Slightly undercooked, freeze flat
Freezer — baked pasta dish 2–3 months Assemble, freeze, bake from frozen

Storage conditions for pasta

Store dry pasta in airtight containers — glass jars or plastic containers — in a cool, dark pantry. The airtight seal keeps out pantry moths and moisture, both of which find their way into cardboard boxes easily. Pasta in the original box is fine short-term; transfer it if you buy in bulk.

Whole-grain and egg pastas are shorter-lived than white pasta because their ingredients (whole-grain oils, eggs) go rancid faster. Buy them in amounts you'll use within a few months, and trust your nose: whole-grain pasta that smells bitter-nutty has oxidized.

Storage tip

Keep pasta boxes in a drawer or container, not on an open shelf in sunlight. Light and heat are the two silent enemies of every dry staple — pasta, rice, and flour all last measurably longer in the dark and cool. ::

How to tell pasta has gone bad

Dry pasta spoils visibly, not silently. Look for the telltales of pantry moths — webbing, tiny bugs, or stuck-together strands — and for mold, which appears as damp spots or gray fuzz and comes from moisture. A musty or rancid smell means the pasta has absorbed odor or its oils have oxidized. Any of these means discard.

Cooked pasta is simpler: sour smell, slime, or more than 3–5 days in the fridge means throw it out. Cooked pasta rarely announces spoilage before it's unpleasant, so use the calendar.

Freezing pasta

Cooked pasta freezes well when you do it right. Cook it a minute or two underdone, drain, toss with a little oil to keep strands separate, cool completely, then freeze flat in airtight bags — it keeps about 2 months. Bake-and-freeze dishes like lasagna and baked ziti freeze for 2–3 months and can go straight from freezer to oven. Frozen pasta stays safe indefinitely; quality is the only limit.

See how to store dry goods and how to freeze leftovers for the step-by-step methods.

Frequently asked questions

How long does dry pasta last?

Dry pasta keeps 1–2 years in an airtight container in a cool, dark pantry — and it's safe to eat years beyond that if stored properly, with only a slow decline in quality. Whole-grain and egg-based pastas are the exception, lasting only 3–6 months because their oils go rancid faster.

How long does cooked pasta last in the fridge?

Cooked pasta keeps 3–5 days in the refrigerator at 40°F or below. Refrigerate it within 2 hours of cooking, toss it with a little oil to stop it from sticking, and store it in a sealed container. Reheat leftovers to 165°F. After 3–5 days, discard.

Can you freeze cooked pasta?

Yes. Cooked pasta freezes well for about 2 months — cook it slightly underdone, toss with oil, cool completely, then freeze flat in airtight bags. For baked pasta dishes like lasagna, freeze the whole assembled dish. Frozen pasta reheats well in a pan or microwave; it stays safe indefinitely frozen.

Does pasta actually expire?

Dry pasta doesn't really expire — it's a quality question, not a safety one. Properly stored dry pasta is safe for years. Whole-grain pasta goes rancid (bitter smell) in months, and any pasta can pick up pantry bugs, moisture, or a stale musty smell. Those are the only reasons to throw dry pasta out.

How can you tell if dry pasta is bad?

Check for pantry bugs (moths, weevils, or webbing in the box), mold (damp spots or gray fuzz), and a musty or rancid smell. Dry pasta that has been in an open box a long time can taste stale. If it smells musty or shows any bugs or mold, discard it — pasta is cheap enough to replace.

Sources

Shelf-life and temperature claims on this page are cited from tier-1 food-safety authorities. Always confirm current guidance before relying on dated information.

Written by

James Okafor

Senior food storage writer

Writer covering food storage shelf life, storage methods, and kitchen organization.

Last reviewed 2026-01-01

Get the storage cheat sheet

One short email a month with the exact shelf-life numbers that matter most — plus pantry organization tips. No spam, unsubscribe anytime.

Newsletter coming soon. We are setting up our email list — this is where you will be able to subscribe.

Your email is never shared. Read our privacy policy.

Shelf life

How Long Does Rice Last?

White rice keeps 2+ years in an airtight container in a cool, dark pantry; brown rice only 3–6 months because its bran oils go rancid — freeze brown rice to stop the clock. Uncooked rice freezes indefinitely. Bugs, mold, or a rancid smell mean discard.

Shelf life

How Long Does Flour Last?

White flour keeps 6–8 months in the pantry; whole-wheat flour only 3 months because its bran oils go rancid. Any flour keeps 1–2 years in the fridge or freezer, airtight. Musty, sour, or rancid smell, mold, or bugs mean throw it out.

Shelf life

How Long Does Bread Last?

Bread keeps 3–5 days in a bread box or paper bag, but stale much faster in the fridge — refrigeration recrystallizes starches. Freeze sliced bread for 3 months, airtight, and toast from frozen. Moldy bread means discard the whole loaf.

Storage method

How to Store Dry Goods

Move every staple into an airtight container with a gasket seal, store at 50–70°F in the cool, dark pantry, freeze new grains for 3 days to kill moth eggs, and label with dates for FIFO. Whole-grain flours and brown rice go in the fridge or freezer.

Storage method

How to Freeze Leftovers

Refrigerate leftovers within 2 hours, portion into meal-sized containers, label with the dish and date, and freeze flat at 0°F for 2–6 months. Reheat to 165°F, only once. Freeze soups, stews, meat, rice, and bread — skip crispy or creamy dishes.

Shelf life

How Long Does Canned Food Last?

Low-acid canned food keeps 2–5 years; high-acid cans 12–18 months — both stay safe years beyond that if the can is intact. Bulging, leaking, or spouting cans mean botulism risk and go straight in the trash, unopened. Opened cans last 3–4 days refrigerated.