It's best stored in a tightly sealed jar or container in the refrigerator for up to one week or a couple of months in the freezer. To freeze, add the pesto to an ice cube tray. I love silicone ice cube trays for easy removal. Once they're frozen, easily pop them out and add them to a tightly sealed container or freezer-safe bag until ready to use.