Culture medium pH from bicarbonate and incubator CO2
cell_bicarbonate_co2_ph
Works out a culture medium's equilibrium pH from its bicarbonate and the incubator CO2, by Michl 2019.
- Runs
- On the server
- Level
- Checked against a reference: the source's own measured pH (Fig. 1c, Supplementary Data 2) within the stated prediction error, and the authors' printed Eq. 1 values
What it is
Returns a culture medium's equilibrium pH from its bicarbonate and the incubator CO2, by Michl et al. 2019 Eq. 1. Use when setting up a bicarbonate-buffered medium for a CO2 incubator. Not for the bicarbonate to add for a target pH: use `cell_bicarbonate_for_ph`. Not for HEPES, phosphate or another closed buffer: use `calc_buffer_recipe`. Not for blood, plasma or any patient sample. Refuses bicarbonate outside 11 to 44 mM, CO2 outside 5 to 10 % and added buffers.
What it does
You give
bicarbonate(required): The medium's bicarbonate (sodium bicarbonate) concentration. Must be above 0 mM.co2(required): The incubator's CO2 setting as a percentage of the gas. Must be at least 0 % and at most 100 %.mediumBuffers(required): Whether the medium's only buffer is bicarbonate, or a non-volatile buffer (HEPES, PIPES, MES) is also added.
No request is recorded for this tool.
Limits
- Research arithmetic on counts and records the caller read; not for diagnosis, treatment decisions or product release, and no susceptibility, sterility or safety interpretation.
- Medium arithmetic for a bicarbonate-buffered culture medium in a CO2 incubator, checked against one published medium; not for blood, plasma or any patient sample, and not a clinical or diagnostic authority.
- Every computed number a reply returns, other than an integer or an exact decimal, is rounded once to 12 significant figures: to the nearest, a change of at most 5 × 10⁻¹² of its value, except that a lower bound is rounded down and an upper bound up, a change of less than 1 × 10⁻¹¹; the method computes, and decides any pass or fail, on the unrounded value.
It will not answer when
- the bicarbonate concentration is outside the range at which the equation was checked against measured pH.
- the CO2 percentage is outside the levels at which the equation was checked against measured pH.
- the medium contains a non-volatile buffer such as HEPES, PIPES or MES, where the source shows the two-buffer system is not predicted by this equation.
Every input, with its units3 inputs
bicarbonate(required): The medium's bicarbonate (sodium bicarbonate) concentration. Must be above 0 mM.co2(required): The incubator's CO2 setting as a percentage of the gas. Must be at least 0 % and at most 100 %.mediumBuffers(required): Whether the medium's only buffer is bicarbonate, or a non-volatile buffer (HEPES, PIPES, MES) is also added.
Every refusal, with its code3 refusals
| Code | When |
|---|---|
BICARBONATE_OUTSIDE_CHECKED_RANGE | the bicarbonate concentration is outside the range at which the equation was checked against measured pH. |
CO2_OUTSIDE_CHECKED_RANGE | the CO2 percentage is outside the levels at which the equation was checked against measured pH. |
NON_VOLATILE_BUFFER_PRESENT | the medium contains a non-volatile buffer such as HEPES, PIPES or MES, where the source shows the two-buffer system is not predicted by this equation. |
The calculation
The method's equations, constants and worked example.
Equation 1
[CO2] = s·x·p0, s = 0.024 M/atm, x the CO2 fraction, p0 one atmosphere
| Symbol | Meaning |
|---|---|
[CO2] | dissolved CO2 concentration, mM |
s | CO2 solubility, M/atm |
x | the incubator's CO2 fraction, % |
p0 | one standard atmosphere, atm |
Source 1.
Equation 2
| Symbol | Meaning |
|---|---|
pH | equilibrium medium pH, pH |
pK | apparent pK of CO2/HCO3⁻, pH |
[HCO3⁻] | bicarbonate concentration, mM |
[CO2] | dissolved CO2 concentration, mM |
Source 1.
| Constant | Value | From |
|---|---|---|
apparent pK of the CO2/HCO3⁻ buffer pK | 6.15 pH | Source 1 |
CO2 solubility in the medium s | 0.024 M/atm | Source 1 |
Conventions
- CO2_PERCENT_BASIS = x of one standard atmosphere: Fixed by the method; not an argument. A CO2 percentage is taken as that fraction of one standard atmosphere, with no correction for water vapour or barometric pressure, as Michl et al. did.
- TEMPERATURE = the incubation temperature of the measured check: Fixed by the method; not an argument. The constants are used at the incubation temperature of the measured check; the source does not state the temperature of the constants.
A model of nature: it predicts a measurement and can be wrong for your sample. Prediction error: Against measured pH in one published medium (Michl et al. 2019, Fig. 1c and Supplementary Data 2), Eq. 1 differed from the mean measured pH by at most the value given, over the conditions given. Below the checked bicarbonate range it underestimated pH by more than the value given, as the source reports for low bicarbonate. No other medium, serum level or added buffer was checked.
Worked example
Worked example: one case of medium-ph-bicarbonate@1.0.0, from its inputs through each step to the answer. Values are written as a person writes them; the working carries more digits, so your own figure may differ in the last digit shown.
Inputs
- bicarbonate = 44 mM
- co2 = 5 %
- mediumBuffers = bicarbonateOnly
Steps
- co2 = 1.2 mM, from co2; by equation 1; gives dissolvedCo2.
- ph = 7.7142714 pH, from bicarbonate, co2; by equation 2; gives pH.
The working, as the case writes it:
[CO2] = 0.024 M/atm × 0.05 atm = 1.2 mM
44/1.2 = 36.666…
log10 36.666… = 1.5642714
pH = 6.15 + 1.5642714 = 7.7142714 (the authors print 7.71427143). An engine using ln for log10 would give 9.75.
Answer
dissolvedCo2 = 1.2 mM
pH = 7.7142714 pH
Where these values came from: the source's own worked example, The authors' own Eq. 1 predictions printed in Supplementary Data 2, sheet FIG 1, columns W and AA ("Eq 1"), read from the hashed workbook; the other cases in 50-digit decimal arithmetic written from Eq. 1; Michl et al. 2019, Eq. 1 and the paragraph on 44 mM media; 50-digit decimal arithmetic.
At build the tool returned this answer within the tolerance the file states: pH absolute 1e-12; dissolved CO2 and bicarbonate relative 1e-12 with a floor of 1e-15 mM below 1e-3 mM; statuses and codes exact.
Sources
Michl J, Park KC, Swietach P. Evidence-based guidelines for controlling pH in mammalian live-cell culture systems. Commun Biol 2019;2:144
Used for: Equilibrium pH of a bicarbonate-buffered culture medium from its bicarbonate and the incubator CO2. At: section Setting medium pH by pCO2 and [HCO3-]: "CO2 solubility 0.024 M atm-1, i.e. 1.2 mM in 5%"; equation 1, section Introduction (printed in general form, pH = pKa + log [B]/[HB]); applied to CO2 and bicarbonate in "Setting medium pH by pCO2 and [HCO3-]"; section Introduction and "Setting medium pH by pCO2 and [HCO3-]" (citing the source's ref. 7, not read); section Setting medium pH by pCO2 and [HCO3-] (citing the source's ref. 7, not read).
Read in full, 11 November 2026
How it is checked
- Level
Checked against a reference.
- Checked against
The source's own worked example, Michl et al. 2019 Supplementary Data 2 (printed Eq. 1 values), with CPython decimal, CPython 3.13.18, decimal at 50 digits; openpyxl 3.1.5; a published dataset, Michl et al. 2019 Supplementary Data 2 (measured pH), CPython 3.13.18, decimal at 50 digits; openpyxl 3.1.5; our own exact-arithmetic script and a hand-worked case.
- Cases
No case set is linked to this version.
- Not checked
One medium, one serum level and one laboratory; the measured pH is itself a Phenol Red ratio read through the authors' fitted calibration; the source's ref. 7, from which the constants come, was not read; the temperature dependence of the constants (Harned & Davis 1943) was not read.
What was not checked, in fullfrom the method records
- One medium, one serum level and one laboratory; the measured pH is itself a Phenol Red ratio read through the authors' fitted calibration; the source's ref.
- 7, from which the constants come, was not read; the temperature dependence of the constants (Harned & Davis 1943) was not read.
- Altitude, water vapour, other serum levels, serum-free media and media with added buffers are not checked; the intrinsic-buffering correction (Eq.
- 3) is not built.
Changes to its methods0 changes
No change is logged for these method versions.