Unless you properly "preserve" it by properly heat canning it, you should store it in the fridge for up to a week. I would not put it in the cupboard!
The only ways to keep homemade sauces for a long time without spoiling is either by home canning or by freezing.
cooked tomato sauce will last a weekbut some last less than a weekprobably about 2 daysyou should try the del Monte cooked tomato ketchup which lasts for 3 years
Once opened, tomato-based sauces are only good for five days to a week. Don't wait for the mold to form. In many cases, you won't see the mold in the sauce after five days, but it actually could be there. Some mold produce toxins that can be harmful, so why take the risk? Mold grows in very wet environments. What promotes the mold is the high moisture content. No amount of cooking will kill the toxins. So, to be safe, you need to throw it away.
Depending on the acidity of the tomato sauce, or whether artificial preservatives have been added, tomato sauce can be left out at room temperature (68-72 degrees Fahrenheit) for 2-5 days. Home made tomato sauce is likely to have little to no artificial preservatives, but is preserved by the acidity of the tomatoes, the added salt, and various herbs added. Therefore, in my experience, homemade tomato sauce has not gone bad until the third night, assuming that the tomato sauce was made on the first morning. Store-bought tomato sauce may have ascorbic acid, vinegar and/or other preservatives added that allow the tomato sauce to be left out unopened for an undefined amount of time. When opened, the tomato sauce will not be affected for several days. Several of my friends never refrigerate their store-bought tomato sauce, because they use up the entire bottle within the week. However, if the tomato sauce has been excessively handled or contaminated, it may spoil withing 12 hours.
According to a food safety site, 3 days at the most.
You Can Keep Pasta With Sauce For About a Week, If Longer It Will Get Soggy.
You can make a quick sauce that cooks just long enough to heat the tomatoes through or you can make a more complex sauce with more ingredients that may have to cook for hours. The main factor is in the ingredients. If there are ingredient that need heat and time to blend their flavors you need to cook it longer. Or if the tomato sauce is too watery, the cooking may be needed to thicken it.
up to 5 days
opened pasta sauce should be kept in the refrigerator and used or tossed out within 3-5 days.
You should keep foods out of the danger zone to prevent bacteria from forming on foods. Bacteria can form on foods in the danger zone after just an hour. The danger zone is under 145 degrees and over 45 degrees.
No. Tomato sauce is healthy, as long as it is not significantly salted. It should contain onions, garlic, and peppers for maximum benefit to the cardiac patient.
about 12 to 18 months