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.