If kept in an airtight container, homemade peanut butter should last for two to three months in the refrigerator.