First try at a combined blood gas and Stewart method calculator. I’m not entirely happy with it, but refinements will come soon.
Stewart Method Acid–Base Calculator
Strong Ion Difference (SID), Effective Strong Ion Difference (SIDe), Strong Ion Gap (SIG), Partial pressure of carbon dioxide (PaCO₂), Total concentration of weak acids (ATOT).
Formulas: SIDa = (Na⁺ + K⁺ + Ca²⁺ + Mg²⁺) − (Cl⁻ + Lactate⁻ + other measured strong anions). SIDe = HCO₃⁻ (measured or calculated) + Alb⁻ + Phos⁻. SIG = SIDa − SIDe. HCO₃⁻(calc) = α·PaCO₂·10^(pH − pKₐ); α = 0.0307 mmol·L⁻¹·mmHg⁻¹ (0.2303 mmol·L⁻¹·kPa⁻¹), pKₐ ≈ 6.10 (37 °C). Alb⁻ = (0.123·pH − 0.631)·Albumin(g/L); Phos⁻ = (0.309·pH − 0.469)·Phosphate(mmol/L). ATOT(est) ≈ 0.25·Albumin(g/L) + Phosphate(mmol/L). Use ionised Ca²⁺ where available.
Stewart PA. How to Understand Acid–Base. Elsevier; 1981. Figge J, Mydosh T, Fencl V. J Lab Clin Med. 1992;120:713–719. Figge J, Rossing TH, Fencl V. J Lab Clin Med. 1991;117:453–467.