Skip to content
OverCalculator
  1. Home
  2. Health & Fitness
  3. Acid Base Calculator
Health & Fitness

Acid Base Calculator

Interpret pH, PCO2, bicarbonate, sodium, chloride, and albumin for educational acid-base pattern review, including anion gap and albumin correction.

Published

Interpretation
pH status
Within stated pH range
Anion gap
16.0 mEq/LWithin 8–16 range
Corrected anion gap
16.0 mEq/L
PCO₂
40.0 mmHg
Bicarbonate
24.0 mEq/L

This does not classify compensation or mixed disorders. Anion gap = sodium − (chloride + bicarbonate); albumin correction uses 2.5 × (4.4 − albumin).

Normal pH range: 7.35–7.45.
Normal PCO₂ range: 35–45 mmHg.
mmHg
Normal bicarbonate range: 22–26 mEq/L.
mEq/L
Normal chloride range: 96–106 mEq/L.
mEq/L
Normal sodium range: 135–145 mEq/L.
mEq/L
Normal albumin range: 3.5–5.5 g/dL.
g/dL

Results update as you type.

For educational purposes only; not medical advice. Calculators may not apply to every person or clinical situation. Consult a qualified healthcare professional for diagnosis, treatment, and interpretation.

Acid Base Calculator

The acid base calculator organizes blood gas and chemistry inputs into an educational acid-base pattern, then adds anion gap and albumin-corrected anion gap calculations. It is written for learning and documentation support, not for bedside diagnosis, because real acid-base interpretation depends on symptoms, oxygenation, sampling, timing, medications, and the full clinical context.

What it measures

The calculator reads six values: pH, PCO2, bicarbonate, chloride, sodium, and albumin. pH describes whether the blood sample is acidemic, alkalemic, or in the usual arterial reference range. PCO2 reflects the respiratory component, because ventilation changes carbon dioxide. Bicarbonate reflects the metabolic component, although measured serum bicarbonate and calculated blood gas bicarbonate can differ by specimen and method. Sodium, chloride, and bicarbonate are used to calculate the anion gap. Albumin is used to correct that gap because albumin contributes substantially to unmeasured anions.

This page overlaps with the anion gap calculator, but it adds pH and PCO2 pattern language. If oxygen transfer is the main question, use the A-a gradient calculator. For a related protein measurement that can influence the gap correction, see the albumin globulin ratio calculator.

Calculation and formula

The calculator first classifies pH:

pH status={Acidemia,pH\<7.35Alkalemia,pH>7.45Normal pH,7.35\<=pH\<=7.45\text{pH status}=\begin{cases}\text{Acidemia},&\text{pH}\<7.35\\\text{Alkalemia},&\text{pH}>7.45\\\text{Normal pH},&7.35\<=\text{pH}\<=7.45\end{cases}

PCO2 and bicarbonate remain visible, but the calculator intentionally does not infer a primary disorder, compensation, or mixed disorder from them.

The anion gap is calculated exactly as:

anion gap=sodium(chloride+bicarbonate)\text{anion gap}=\text{sodium}-\left(\text{chloride}+\text{bicarbonate}\right)

The albumin-corrected anion gap is:

corrected anion gap=anion gap+2.5×(4.4albumin)\text{corrected anion gap}=\text{anion gap}+2.5\times\left(4.4-\text{albumin}\right)

The anion gap item is marked warning when the uncorrected anion gap is greater than 16 or less than 8. The primary interpretation is marked warning when pH is outside 7.35 to 7.45.

Worked example

Consider pH 7.30, PCO2 40 mmHg, bicarbonate 18 mEq/L, sodium 140 mEq/L, chloride 100 mEq/L, and albumin 4.0 g/dL. The primary result is Acidemia because pH is below 7.35. PCO2 and bicarbonate remain visible for clinical interpretation.

The anion gap is:

140(100+18)=22.0 mEq/L140-\left(100+18\right)=22.0\text{ mEq/L}

The corrected anion gap is:

22.0+2.5×(4.44.0)=23.0 mEq/L22.0+2.5\times\left(4.4-4.0\right)=23.0\text{ mEq/L}

The uncorrected gap is above 16, so the anion gap item receives a warning tone and the hint Elevated. The pH status item shows Acidemia. These outputs match the calculation, including one-decimal formatting for the gap values.

Interpretation and clinical context

The calculator’s pattern labels are intentionally narrow. Acidemia with low bicarbonate suggests a metabolic acidosis pattern, and alkalemia with low PCO2 suggests a respiratory alkalosis pattern, but the cause is not determined by the label. Elevated anion gap metabolic acidosis can occur with lactic acidosis, ketoacidosis, renal failure, and some toxic ingestions. Normal-gap acidosis has a different differential. Respiratory disorders require ventilation, oxygenation, and clinical assessment.

A major limitation is mixed or compensated disease. A patient with chronic respiratory acidosis and metabolic compensation, or simultaneous metabolic acidosis and respiratory alkalosis, may have a pH near the stated range. The calculator does not classify those patterns.

Medical disclaimer and urgent cautions

This calculator is for general education only and is not medical advice, diagnosis, triage, or treatment guidance. Blood gas interpretation should be performed by qualified clinicians who can review arterial versus venous sampling, oxygen therapy, lactate, ketones, renal function, glucose, salicylates, toxic alcohol risk, respiratory status, and medications. Severe shortness of breath, altered mental status, shock, suspected poisoning, diabetic ketoacidosis, sepsis, or respiratory failure requires urgent medical care.

Common mistakes

  • Using venous and arterial values interchangeably without noting specimen type.
  • Treating normal pH as normal physiology when PCO2 and bicarbonate may both be abnormal.
  • Forgetting albumin correction when albumin is low, which can mask an elevated gap.
  • Using the calculator as a compensation tool; it does not calculate expected compensation.
  • Ignoring oxygenation, lactate, renal function, glucose, ketones, and clinical status.
  • Assuming an elevated gap identifies a single cause. The differential remains broad.

Sources

Frequently asked questions

What does the acid base calculator use?
It uses pH, PCO2, bicarbonate, chloride, sodium, and albumin. It classifies pH and calculates both the anion gap and albumin-corrected anion gap. PCO2 and bicarbonate are displayed without classifying compensation or mixed disorders.
How does the calculator classify pH status?
A pH below 7.35 is labeled acidemia, a pH above 7.45 is labeled alkalemia, and values from 7.35 through 7.45 are labeled normal pH. A normal pH does not rule out a mixed disorder, because opposing respiratory and metabolic processes can partially offset each other.
Why is albumin used in the corrected anion gap?
Albumin is a major unmeasured anion, so low albumin can make the anion gap look less elevated than it otherwise would. The calculator adds 2.5 for each 1 g/dL that albumin is below 4.4. That correction is educational and still requires clinical interpretation.
Does this calculator assess compensation?
No. It reports pH status and calculates gaps, but it does not apply Winter's formula, expected PCO2, expected bicarbonate, delta gap, or chronic versus acute respiratory compensation rules. A clinician should evaluate compensation, oxygenation, timing, sample quality, and the full clinical picture.
Can this diagnose diabetic ketoacidosis or poisoning?
No. It can show patterns such as acidemia, low bicarbonate, or an elevated anion gap, but it cannot diagnose the cause. Diabetic ketoacidosis, lactic acidosis, kidney failure, toxic alcohol ingestion, salicylates, sepsis, and respiratory failure require urgent clinical evaluation and laboratory context.

Related calculators

Acid Base Calculator updated at