An arterial blood gas analysis measures the balance of oxygen and carbon dioxide in your blood to see how well your lungs are working.