When stored in an airtight container in the refrigerator, this homemade ketchup can last up to 2 weeks. Make sure it's fully cooled before sealing and refrigerating to maintain freshness.