Cooked spaghetti will stay fresh for about 4 days when stored properly in the refrigerator.