...
Jupiterimages/Comstock/Getty Images

Cooked Spaghetti Squash.

Refrigerate cooked spaghetti squash or other types of winter squash in an airtight container or covered in plastic wrap for up to 3 to 5 days. The squash should be refrigerated within 2 hours of cooking to prevent bacteria growth and spoilage.

Raw Spaghetti Squash.

Sliced or chopped raw spaghetti squash will keep in the refrigerator for about 2 to 4 days. Whole raw spaghetti squash can be stored in the refrigerator for 1 to 2 weeks, but it keeps longer and maintains a better texture and flavor if stored in a pantry.

Bottom Line

Eat cooked spaghetti squash within 3 to 5 days of putting it in the refrigerator. Although whole raw spaghetti squash can be stored for 1 to 2 weeks in the refrigerator, it keeps for 1 to 2 months in the pantry or another cool, dry location.