Please refer to the excellent tutorial on buffers at the following link. http://chemcollective.org/activities/tutorials/buffers/buffers1