StillSafeFood
USDA/FDA guidance

Can Cooked Pasta Sit Out Overnight?

Last reviewed: May 2026

Quick answer

No. Cooked pasta left out overnight must be discarded. The USDA 2-hour rule applies to all cooked starchy foods — including pasta. Beyond the general bacterial risk, cooked pasta can harbour Bacillus cereus, a bacterium that produces heat-stable toxins at room temperature. Reheating will not make it safe.

Bottom line: discard it

Cooked pasta left out overnight has exceeded the USDA 2-hour safe limit. Discard it — reheating will not make it safe.

The 2-hour rule for cooked pasta

The USDA recommends discarding all perishable cooked food — including pasta — left at room temperature for more than 2 hours. At temperatures above 90°F (32°C), that window shrinks to 1 hour. In the temperature danger zone between 40°F and 140°F (4°C–60°C), bacteria can double roughly every 20 minutes. Overnight exposure means many hours in this zone. See the official food-safety sources used by StillSafeFood for references.

This rule applies to all pasta types and preparations — spaghetti, penne, lasagne, macaroni, pasta salad, and pasta combined with meat or cream sauces.

The Bacillus cereus risk in starchy foods

Cooked pasta, like cooked rice, is a known risk food for Bacillus cereus — a bacterium commonly found in starchy foods. At room temperature, B. cereus can produce heat-stable toxins in cooked pasta. Unlike the bacteria themselves, these toxins survive reheating. This means bringing pasta to a high temperature will not eliminate the risk once the toxins have formed. Rapid refrigeration after cooking is the most effective way to prevent this.

Safe pasta storage

  • Refrigerate cooked pasta within 2 hours of cooking (1 hour above 90°F).
  • Store in a shallow, airtight container at or below 40°F (4°C).
  • Keep sauce and pasta separate if possible to extend freshness.
  • Consume refrigerated cooked pasta within 3–5 days.

Frequently asked questions

Can cooked pasta sit out overnight?

No. Cooked pasta left out overnight must be discarded. The USDA 2-hour rule applies to all cooked starchy foods, including pasta.

Does it matter if the pasta has sauce on it?

No — pasta with sauce must also be discarded if left out overnight. The 2-hour rule applies to pasta with or without sauce.

Can I reheat pasta left out overnight to make it safe?

No. Reheating does not destroy heat-stable toxins that may have formed overnight. Discard pasta left out overnight.

Check your pasta

Use StillSafeFood to check any pasta dish — spaghetti, lasagne, pasta salad, or mac and cheese.

Check your food →

Related food safety questions

If you think you may have food poisoning or feel seriously ill after eating, contact a healthcare provider or your local poison control center.