Leftover spaghetti will last in the refrigerator for up to four days. If you use it to make spaghetti frittata, keep in mind that you should use the frittata within the four-day period for the pasta, or else freeze it within that time frame. If you make fried spaghetti frittata with freshly cooked pasta, you can refrigerate the frittata for up to four days.