Calculate pCO2 from pH and DIC
Estimate dissolved CO2 species and partial pressure of carbon dioxide from measured pH and dissolved inorganic carbon (DIC). This calculator supports freshwater and seawater style constants, allows temperature adjustment, and visualizes carbonate speciation.
Typical natural water range is about 6.5 to 9.2 depending on system.
Enter dissolved inorganic carbon concentration.
The calculator converts all DIC values internally to mol/L.
Temperature strongly affects Henry’s law constant and dissociation constants.
Choose the equilibrium model closest to your sample matrix.
For dilute conditions, uatm and ppm are numerically similar.
Expert guide: how to calculate pCO2 from pH and DIC
Calculating pCO2 from pH and dissolved inorganic carbon, usually shortened to DIC, is a standard task in aquatic chemistry, limnology, oceanography, aquaculture, and environmental engineering. The reason this works is that the carbon dioxide system in water is governed by a set of linked equilibrium reactions. If you know how much total inorganic carbon is present and you know the hydrogen ion activity through pH, you can estimate how that DIC is distributed among dissolved carbon dioxide plus carbonic acid, bicarbonate, and carbonate. Once the dissolved CO2 fraction is known, Henry’s law lets you estimate the corresponding partial pressure of CO2, or pCO2.
In practical terms, this calculation helps answer a central question: is the water undersaturated, near equilibrium, or oversaturated with respect to the atmosphere? Streams receiving groundwater or respiration inputs often show pCO2 values many times higher than air equilibrium. Productive lakes can swing below atmospheric pCO2 during daytime photosynthesis and then rise sharply at night. Estuaries and coastal seawater can also vary widely because of mixing, temperature, biology, and alkalinity effects.
The chemistry behind the calculation
The dissolved inorganic carbon pool is defined as the sum of three main species:
- CO2(aq) + H2CO3, often treated together as CO2*
- HCO3- or bicarbonate
- CO3 2- or carbonate
These species are linked by two acid dissociation constants, commonly called K1 and K2:
- CO2* ⇌ H+ + HCO3-
- HCO3- ⇌ H+ + CO3 2-
Given pH, the hydrogen ion concentration is H = 10-pH. With H, K1, and K2, we compute the fractional composition of DIC:
- alpha0 = fraction present as CO2*
- alpha1 = fraction present as HCO3-
- alpha2 = fraction present as CO3 2-
The fraction present as dissolved CO2 is:
alpha0 = 1 / (1 + K1/H + K1K2/H2)
Then dissolved CO2 concentration is simply:
CO2* = DIC × alpha0
Finally, Henry’s law is applied:
pCO2 = CO2* / K0
where K0 is the temperature-dependent solubility coefficient for CO2 in water. A colder sample generally holds more dissolved CO2 for the same pCO2, so temperature matters a great deal.
Why pH and DIC can be enough
In the carbonate system, any two independent measurable parameters can define the system if the relevant equilibrium constants are known. Common parameter pairs include pH and alkalinity, alkalinity and DIC, or pH and DIC. The pH plus DIC pair is especially useful when field meters provide pH and laboratory analysis or sensors provide DIC. It is not always the most robust pair in every environment, but it is mathematically valid and often highly informative.
There are limits, however. Real systems can deviate from idealized chemistry due to salinity, ionic strength, pressure, non-carbonate alkalinity, nutrient acid-base species, and measurement scale differences. Seawater calculations usually require more careful treatment because marine pH can be reported on free, total, or seawater scales, and the apparent constants depend on salinity. This page uses a practical screening approach with separate freshwater and seawater approximations so the calculation stays useful while remaining easy to operate.
How to use this calculator correctly
- Enter the measured pH of the sample.
- Enter DIC and choose the correct unit. Natural waters are often reported in mmol/L or umol/L.
- Enter temperature in degrees Celsius.
- Select freshwater if the sample is a river, lake, pond, or low ionic strength groundwater. Select seawater for marine or high salinity coastal samples.
- Choose the output unit for pCO2, then click the calculate button.
The result panel shows estimated pCO2, dissolved CO2 concentration, and species fractions. The chart then visualizes the partitioning of DIC across CO2*, bicarbonate, and carbonate. In most natural waters near neutral to mildly alkaline pH, bicarbonate dominates. As pH drops, the CO2 fraction rises quickly, which can push pCO2 much higher even if total DIC changes only modestly.
Interpreting the output
If the calculated pCO2 is near current atmospheric levels, the sample is roughly in equilibrium with air. If it is substantially above atmospheric levels, the water is supersaturated and likely to outgas CO2 under open-air conditions. If it is below atmospheric levels, the water can take up CO2 from the air. This interpretation is common in stream and estuary metabolism studies, lake productivity analyses, and carbon budgeting.
| Reference point | Approximate value | Interpretation |
|---|---|---|
| Preindustrial atmospheric CO2 | About 280 ppm | Useful for long-term historical comparison of equilibrium conditions. |
| Recent global atmospheric CO2 | About 420 ppm | Rough modern benchmark when comparing water pCO2 to present-day air. |
| Many groundwater-fed streams | Often 1,000 to 10,000+ uatm | Typically strongly supersaturated due to soil respiration and groundwater inputs. |
| Open ocean surface waters | Often near 350 to 450 uatm | Can be close to atmospheric equilibrium but varies seasonally and regionally. |
The benchmark values above are broad but useful. Surface ocean pCO2 often tracks atmospheric forcing and biological uptake. Inland waters can be far more variable and often have much higher pCO2 than the atmosphere because heterotrophic respiration, catchment inputs, and carbonate weathering shift the chemistry.
Worked conceptual example
Suppose you measure pH 8.10, DIC 2.10 mmol/L, and temperature 25 C in a low salinity sample. At this pH, most DIC is bicarbonate, a smaller portion is carbonate, and only a modest share is dissolved CO2*. But because pCO2 depends directly on the CO2* fraction, even a small shift in pH can significantly change the calculated gas pressure. If pH dropped from 8.10 to 7.60 while DIC stayed the same, the CO2* fraction would rise sharply, which could increase pCO2 by several fold. That sensitivity is why pH quality is so important.
Common sources of error
- Poor pH calibration: Small pH errors can create large pCO2 errors because CO2* changes exponentially with hydrogen ion concentration.
- Wrong DIC unit: Confusing umol/L, mmol/L, and mg/L as C can shift the answer by factors of 10 to 1,000.
- Temperature mismatch: Using field pH but lab temperature can distort equilibrium estimates.
- Ignoring salinity: Marine and freshwater constants are not interchangeable for precision work.
- Assuming ideal equilibrium: Samples not in equilibrium with the atmosphere can still have a valid water-column pCO2, but handling and degassing during measurement can alter pH and DIC.
Freshwater versus seawater behavior
Freshwater systems often have lower ionic strength and more variable alkalinity than seawater, so apparent constants and buffering can differ. Seawater is generally better buffered, with relatively stable major ion composition, but marine carbon calculations often require salinity and pH-scale corrections to achieve research-grade precision. This calculator uses a seawater approximation that is reasonable for screening and educational use, but not a substitute for a full marine carbon system package when publication-level exactness is required.
| System | Typical DIC range | Typical pH range | Typical pCO2 pattern |
|---|---|---|---|
| Open ocean surface | About 1.9 to 2.3 mmol/L | About 7.9 to 8.2 | Often near atmospheric equilibrium, with seasonal and regional deviations. |
| Lakes and reservoirs | About 0.5 to 5+ mmol/L | About 6.5 to 9.5 | Can swing from strong CO2 uptake to strong outgassing over daily cycles. |
| Streams and rivers | About 0.3 to 8+ mmol/L | About 6.0 to 8.5 | Frequently supersaturated due to watershed and groundwater carbon inputs. |
| Groundwater | About 1 to 15+ mmol/L | About 5.5 to 8.0 | Often very high pCO2 relative to the atmosphere. |
Why the species chart matters
The chart is not just decorative. It helps users understand whether pCO2 is being driven by a large DIC pool, a lower pH that shifts carbon into dissolved CO2, or both. For example, at pH around 6.5, a meaningful fraction of DIC can exist as CO2*, producing high pCO2 even in modest-DIC water. At pH around 8.3 to 8.5, bicarbonate and carbonate dominate, and the CO2* fraction shrinks, often lowering pCO2 unless DIC is very high.
When you should use a more advanced method
Advanced calculations are recommended when you are working with seawater datasets, regulatory submissions, high-precision flux calculations, carbonate saturation indices, or long-term monitoring where comparability among campaigns is essential. In these cases, additional variables such as alkalinity, salinity, phosphate, silicate, pressure, and pH scale become important. Widely used scientific packages can solve the full carbonate system from any valid parameter pair, including pH plus DIC, but with more complete thermodynamic corrections.
Authoritative resources
For deeper technical references, see the U.S. Environmental Protection Agency overview of carbonate buffering, the NOAA ocean carbon and acidification resources, and educational material from the Woods Hole Oceanographic Institution. These sources explain why the carbonate system is central to water quality, carbon cycling, and ocean acidification science.
Bottom line
To calculate pCO2 from pH and DIC, you first determine the fraction of DIC present as dissolved CO2 from carbonate equilibrium, then convert that dissolved CO2 concentration into partial pressure using Henry’s law. The method is powerful because it translates two familiar water chemistry measurements into a direct indicator of carbon gas exchange potential. Used carefully, it can reveal whether a water body is likely acting as a CO2 source or sink and how sensitive that status is to pH, temperature, and total inorganic carbon.