What is an Arterial Blood Gas (ABG)? An ABG is a blood test that measures the acidity, or pH, and the levels of oxygen (O2) and carbon dioxide (CO2) from an artery. ² The test is used to check the function of the patient’s lungs and how well they are able to move oxygen into the blood and remove carbon dioxide.