Homemade butter’s shelf life depends on how thoroughly you extract the buttermilk. If a substantial amount of buttermilk remains, it will sour within a week, otherwise homemade butter can keep for up to 2-3 weeks in the fridge.