Homemade pesto should last about 5 days in the refrigerator. Storing in an air-tight glass container could increase it's life to 7 days. If you're worried about your pesto going bad before you can finish it, freeze it for later!