The CO2 test is most often done as part of an electrolyte or basic metabolic panel. ... This may cause an imbalance in your body's electrolytes. CO2 levels in the blood are affected by kidney and lung function. The kidneys help maintain the normal bicarbonate levels.