In the lungs, hydrogencarbonate ions diffuse back into the red blood cells where they are converted into carbonic acid, and then into water and carbon dioxide. The carbon dioxide then diffuses out of the blood capillaries into the alveoli, and is expelled when you breathe out.