FridgeLife

How Long Does Mac and Cheese Last?

Prepared mac and cheese lasts 3–4 days in the fridge and 1–2 months in the freezer. Refrigerate it within 2 hours; an unopened boxed mix keeps about 1 year in the pantry.

Mac and Cheese — cooked

shelf life
Fridge
3–4 days
Freezer
1–2 months
Pantry
Not safe
  • Dry (uncooked): 1 year in the pantry

Fridge at 40°F (4°C) or below · freezer at 0°F (−18°C). Freezer times are for best quality; frozen food stays safe longer.

Mac and cheese is cooked elbow pasta in a sauce of milk, butter and melted cheese, either stirred together on the stove, baked with a crumb topping, or made from a boxed mix. Once prepared, the milk-based sauce and soft pasta are perishable regardless of which kind it is. The pasta keeps absorbing sauce in storage, so leftovers are always drier than the original.

How to store mac and cheese

How to tell if mac and cheese has gone bad

  • A sour-milk smell from the sauce.
  • A slimy coating on the pasta or a watery, curdled-looking liquid collecting at the bottom.
  • Blue, green or white fuzzy mold on the surface or the crumb topping.
  • Sauce that looks stiff, clumpy or oily when cold is normal; cheese sauce firms up in the fridge and loosens when reheated with milk.

Bacteria that cause food poisoning usually do not change the look, smell or taste of food. Go by the time limits first, and the signs above second.

Mac and Cheese shelf life chart

StateFridgeFreezerPantry
Cooked3–4 days1–2 monthsNot safe
Homemade, boxed and deli mac and cheese all follow this once prepared.
Dry (uncooked)Not recommendedNot recommended1 year
Unopened boxed mix; follow the best-by date. Quality fades slowly after it, but the mix stays safe if dry.

Not safe = perishable: no more than 2 hours at room temperature (1 hour above 90°F / 32°C). Not recommended = possible, but quality suffers or it serves no purpose.

Frequently asked questions

How long does mac and cheese last in the fridge?

Prepared mac and cheese lasts 3–4 days in the fridge at 40°F (4°C) or below. It does not matter whether it came from a box, a restaurant or a homemade baked recipe. The milk and cheese sauce is the limiting ingredient, so do not push it toward a week as you might with plain pasta.

Can you freeze mac and cheese?

Yes, for 1–2 months at best quality at 0°F (−18°C). Creamy stovetop versions can turn a little grainy because the sauce separates, while baked, béchamel-based versions hold up better. Thaw in the fridge, then reheat covered with a splash of milk and stir well to bring the sauce back together.

Is mac and cheese left out overnight safe to eat?

No. Mac and cheese that has been at room temperature for more than 2 hours should be discarded. Both the dairy sauce and the cooked pasta support fast bacterial growth, and reheating does not destroy every toxin. It will not necessarily smell sour, so the clock is the only reliable guide.

Does boxed mac and cheese expire?

An unopened box is best within about 1 year and is generally safe past its best-by date if it has stayed dry and sealed. The dry pasta lasts a very long time; the cheese powder slowly loses flavor and can clump or darken. Discard it if you see pantry insects, moisture damage or an off smell.

Why does leftover mac and cheese get dry and oily?

The pasta continues to soak up the water in the sauce as it sits, and high reheating temperatures make the cheese release its fat. Add a little milk before reheating, warm it slowly over low heat or at medium microwave power, and stir every minute to keep the sauce emulsified.

Related foods

FoodFridgeFreezerPantry
Cooked Pasta
Cooked
3–5 days1–2 monthsNot safe
Casserole
Cooked
3–4 days2–3 monthsNot safe
Lasagna
Cooked
3–4 days2–3 monthsNot safe
Cheddar Cheese
Opened
3–4 weeks6 monthsNot recommended
Shredded Cheese
Opened
1 month3–4 monthsNot safe
Dry Pasta
Dry (uncooked)
Not recommendedNot recommended1–2 years

All leftovers

Reviewed 2026-09-20. Times follow published USDA FoodKeeper / FSIS, FDA and CDC storage guidance; where sources differ we use the shorter time. How we compile this data.