In chemistry, a buffer is a solution that can resist pH change upon the addition of an acidic or basic components.