You can freeze leftover spaghetti for up to 3 months. Allow the dish to cool completely before storing in an airtight container and placing in the freezer. You can also vacuum seal it prior to freezing for added freshness.