Most of the carbon dioxide in your body is in the form of bicarbonate. This is made by your kidneys. Bicarbonate is used to keep the acids and bases in your blood in balance. The test measures all types of carbon dioxide in your blood: bicarbonate, carbonic acid, and dissolved CO2.