An anion gap blood test checks the acid-base balance of your blood and if the electrolytes in your blood are balanced. Healthcare providers most commonly use anion gap to identify cases of metabolic acidosis — when you have higher-than-normal amounts of acid in your blood.