5 days in the refrigerator as it. If you want it to last longer, pour a thin layer of olive oil over the top of the jar of pesto and store for a few weeks. You can also freeze it small portions (see notes below)