The AG is an assessment of acid-base status and evaluates unmeasured anions such as ketones, lactate, uremic metabolites, and toxins (e.g., ethylene glycol).
Anion gap = (Na+ + K+) – (HCO3– + Cl–)
If venous blood gas analysis is unavailable substitute TCO2 for HCO3–.
Here is more information from Cornell’s eClinPath website about measurement of the anion gap.