Carbon dioxide and bicarbonate ions are effectively a buffer pair. If carbon dioxide is added to body fluids, the direct effect is the production of carbonic acid and thus a rise in the pH as some of this carbonic acid dissociates to produce free H+ ions.