Homemade pesto will taste best within 2-3 days, stored in the fridge or for 2-3 months in a freezer bag in the freezer. Thaw overnight in the fridge and let come to room temperature before adding to recipes.