Download the CO2sys_macro_PC.xls or CO2sys_macro_MAC.xls Program
Please Cite As: Lewis, E., and D. W. R. Wallace. 1998. Program Developed for CO2 System
Calculations. ORNL/CDIAC-105. Carbon Dioxide Information Analysis Center, Oak
Ridge National Laboratory, U.S. Department of Energy, Oak Ridge, Tennessee.

2Abteilung Meereschemie
Institut fuer Meereskunde
Duesternbrooker Weg 20
24105 Kiel, Germany
Prepared by
Linda J. Allison
Carbon Dioxide Information Analysis Center
Oak Ridge National Laboratory
Oak Ridge, Tennessee, U.S.A.
Choices for Constants in this Program
Investigators interested in studying the ocean carbonate system are not in complete agreement on how to calculate inorganic carbon speciation in seawater. Over the years there have been many determinations and reviews of the constants used to describe the dissociation of carbon dioxide (CO2) in the ocean, but no universally accepted set of constants exists. Several subtly different pH scales remain in common use, as do variations in the definition of total alkalinity and arguments over the relative merits of reporting the partial pressure versus the fugacity of CO2. As ocean CO2 measurements become steadily more accurate and investigators seek to evaluate very small changes in concentrations, these issues grow in importance.
We recently released a computer program that we hope will be of general use and perhaps help to clear up some of the confusion. Given any two of the four measurable carbonate system parameters, this program calculates the other two, together with the inorganic carbon speciation and the saturation of calcite and aragonite. The program also allows the user to select from four different pH scales and several sets of dissociation constants widely cited in the literature.
Run in "single input" mode, the program reports calculated results together with the sensitivity of the calculated parameters to uncertainties in input parameters, constants, and the like. Run in "batch input" mode, the program can be used to process large data sets, such as cruise data derived from spreadsheets. In writing the code we spent considerable time cross-checking the relevant literature and checking units and scales. We are reasonably confident that the program itself does not introduce any errors and is consistent with the primary literature.
The program is written in compiled MICROSOFT QuickBASIC and runs under DOS on almost any personal computer processor. As a result, the user interface is functional but not flashy. The program includes on-line documentation as well as a listing of typographical errors and inconsistencies culled from the literature. We may develop a MICROSOFT Visual Basic for Applications version if the demand for it is sufficient.
More information on this program is available from Ernie Lewis. This work was supported by the U.S. Department of
Energy, Office of Biological and Environmental Research, under Contract No. DE-ACO2-76CH00016.
The program CO2SYS performs calculations relating parameters of the carbon dioxide (CO2) system in seawater and freshwater. The program uses two of the four measurable parameters of the CO2 system [total alkalinity (TA), total inorganic CO2 (TCO2), pH, and either fugacity (fCO2) or partial pressure of CO2 (pCO2)] to calculate the other two parameters at a set of input conditions (temperature and pressure) and a set of output conditions chosen by the user. It replaces and extends the programs CO2SYSTM.EXE, FCO2TCO2.EXE, PHTCO2.EXE, and CO2BTCH.EXE, which were released in May 1995. It may be run in single-input mode or batch-input mode and has a variety of options for the various constants and parameters used. An on-screen information section is available that includes documentation on various topics relevant to the program. This program may be run on any 80 x 86 computer equipped with the DOS operating system by simply typing CO2SYS at the prompt after loading the executable file CO2SYS.EXE.
The CO2 system in seawater is characterized by four measurable parameters: TA, TCO2 (i.e., the sum of the dissolved CO2, the carbonate, and the bicarbonate), pH, and either fCO2 or pCO2. pCO2 is the partial pressure of CO2 in wet (100% water-saturated) air which is in equilibrium with the sample. Both fCO2 and pCO2 are proportional to the dissolved CO2. The fugacity is about 0.3% to 0.4% lower than the partial pressure over the range of interest, due to the nonideality of CO2. TA and TCO2 are independent of temperature and pressure; fCO2, pCO2, and pH are not. The knowledge of any two of these parameters, along with the temperature, salinity, pressure, abundances of other constituents of seawater, and the relevant equilibrium constants, allows the determination of the other two parameters.
Unfortunately, this is not as easy as it sounds. The two definitions of alkalinity in current usage differ in how minor species are treated. Four different pH scales [total, seawater, free, and NBS (National Bureau of Standards, now the National Institute of Standards and Technology)] are in current usage (it is even more complicated in the literature where the distinction between the total scale and the seawater scale has not always been made). The situation with the equilibrium constants is potentially more confusing: There are several different formulations of K1 and K2 (the first and second dissociation constants of carbonic acid in seawater) and also several formulations for the other dissociation constants of interest, on various pH and concentration scales.
Many of these differences are slight, but their importance is in direct proportion to the desired precision of the calculated values. The correction for the nonideality of CO2, for instance, is only around 0.3% under most conditions, but this correction is near the precision of some measurements systems. The difference in the definitions of alkalinity consists mainly in the treatment of phosphate. This difference may seem minor, but a modest phosphate concentration, such as 3 micro-moles per kilogram of seawater (µmol/kg-SW), can result in a difference in fCO2 (or pCO2) of 20 micro-atmospheres (µatm) or more, when calculated from TA and TCO2, depending on the definition of alkalinity. This difference, therefore, is quite significant.
We evaluated several other programs that performed calculations relating the seawater CO2 system parameters. These programs differed in the values of the constants used and in what contributions to the alkalinity were considered. To get an idea of the differences, we ran three programs with the following inputs: TA = 2300 µmol/kg-SW; TCO2 = 2000 µmol/kg-SW; no phosphate or silicate (two of the programs did not have an option to include these); and temperature (°C), salinity [on the Practical Salinity Scale (PSS)], and pressure (in dbar) equal to 20, 35, and 0, respectively. The results were as follows:
| Program | pCO2 (µatm) |
pH | pH scale | HCO3- (µmol/kg) |
CO32- (µmol/kg) |
|---|---|---|---|---|---|
As can be seen, the pH values are on different pH scales and thus are difficult to compare. The values for pCO2, though, should be the same regardless of pH scale, as should the values for the concentrations of HCO3- and CO32-.
Closer inspection (this means looking at the codes) reveals some of the reasons for the differences. Program 1 did not include the contribution of OH to the alkalinity (which would be about 5 µmol/kg-SW), nor did it include the contributions of phosphate and silicate. It used the K1 and K2 values from Goyet and Poisson (1989) and the value of KSO4 from data of Khoo et al. (1977) but refit by other investigators. It did not include a correction for the nonideality of CO2, but did include pressure corrections. Program 2 did not include the contributions of phosphate and silicate, but did include pressure corrections and a correction for the nonideality of CO2. The values of K1 and K2 were those of Roy et al. (1993), and the value of KSO4 was that of Dickson (1990a). Program 3 did include the contributions of phosphate and silicate, but had no corrections for the nonideality of CO2 or for pressure. The values of K1 and K2 used were from Mehrbach et al. (1973). Each of the programs used a different value for KB, the dissociation constant for boric acid.
It can thus be seen how different programs, with no coding errors, can yield very different results. Because of this, we decided to provide a single program that encompassed a wide variety of choices for CO2 system constants, pH scales, etc. in order to facilitate the assessment of the CO2 system calculations to such choices.
The program CO2SYS is designed for either single-input mode or batch-input mode, and allows for a variety of options, including the choice of various formulations for K1 and K2, two distinct formulations for KSO4 (Dickson 1990a; Khoo et al. 1977), the choice of four pH scales (free, total, seawater, or NBS), and the use of either fCO2 or pCO2.
Any two CO2 system parameters (TA, TCO2, fCO2 or pCO2, and pH) may be chosen as the inputs from which the other two parameters will be calculated. Contributions to the alkalinity from phosphate, silicate, and OH are included, as are the effects of pressure and the nonideality of CO2. An on-screen information section is available that includes discussions of the various options and provides references for the values used and for other topics that are relevant to the program. Every effort has been made to make this program as correct, complete, and user-friendly as possible. However, the program is not fail-safe, and some familiarity with the CO2 system in seawater is assumed. Most of the fits to the constants are valid only over a restricted range of salinities (mostly 20 to 40). Values outside of this range should not be expected to yield correct results.
The units used for the variables in this program are micro-moles per kilogram of seawater (µmol/kg-SW) for concentrations of TA, TCO2, etc.; micro-atmospheres (µatm) for pCO2 and fCO2; and parts per million (ppm) for the mole ratio of CO2 in dry air. All temperatures are in °C, all salinities are on the PSS, and all pressures are in dbar. Depth in meters may be used instead of pressure; these parameters differ by only 3% at 10,000 dbar and less at lower pressures, well within the uncertainties of the pressure effects on the equilibrium constants. In this program, units for the concentration of [H+], necessary to clearly define the pH scale, are mol/kg-SW for the total, seawater, and free pH scales (note that the original definition in the literature for the free pH scale was in molal units), and mol/kg-H2O (molal) for the NBS scale (by definition).
Because the equilibrium constants given in the literature are on various pH scales and in various concentration units (molar, molal, or mol/kg-SW), it is imperative that they be converted correctly to the desired scale. In developing this program, much work was done to ensure that these conversions were made correctly. Data are sparse for many of the constants. The values used in this program were those we chose to be the best from the available data. Many errors and inconsistencies were found in the literature. In writing this program, a list of these typographical errors was compiled. This list is included as an Appendix to this report because it may be of interest to those involved in calculations for the carbonate system. Although most of the errors are very minor, it is hoped that the use of this list will save time and effort for anyone wishing to delve further into the topic.
Occasionally, for certain inputs of TCO2 and fCO2 or pCO2, the system has no solution for the given input conditions. If this situation arises in single-input mode, the user is notified and the parameters may be re-entered. If this occurs in batch-input mode, -999 is printed for TA, pH, and the other calculated parameters for that sample.
The programs CO2SYSTM.EXE, FCO2TCO2.EXE, PHTCO2.EXE, and CO2BTCH.EXE were released in May 1995. To the best of our knowledge, no serious errors have been found in these programs. One possible problem is that the fits for the constants are not valid for extrapolation to salinity 0.
Program CO2SYS replaces and extends the above four programs listed above.
Version 0.00, from February 1997, was only preliminary and should not be used for calculations. The pressure corrections to the carbonate solubilities were incorrect.
Version 1.02 was released in March 1997. The pressure corrections to the pH scale conversions were done incorrectly. These errors had a very minor effect in most cases.
Version 1.03 was released in May 1997. It is believed to be accurate.
Version 1.04 was released later in May 1997. It differs from version 1.03 only cosmetically (typographical errors were corrected, etc.). No differences should exist between calculations performed using this version and version 1.03.
Version 1.05 was released in October 1997. It differs from version 1.04 cosmetically (e.g., typographical errors were corrected) and in that some different code was used for better efficiency (no code errors were found). No differences should exist between calculations performed using this version and versions 1.03 and 1.04.
In single-input mode, after selection of the various options for the values of the constants, etc., the user is prompted for the following:
The input temperature and pressure, at which the values of the two known CO2 system parameters are given, may be those at which measurements were performed in the laboratory, for example, while the output conditions may refer to in situ conditions. The program will use "default" values for a variable (i.e., the last value occurring for that particular variable, given in parentheses) when the user hits the "enter" key. These default values may be useful for comparing the effects that various formulations of the constants have on the calculated parameters.
The program will then calculate the other two CO2 system parameters at the input conditions. TA and TCO2, which do not vary with temperature and pressure, are used to calculate the pH and fCO2 or pCO2 at the output conditions. Also calculated for both the input and the output conditions are
The user may scroll forward or backwards through the various screens. Information is available on-screen for the various options and can be accessed while running the program.
The program lists the estimated accuracy of K0 and the 2S (two standard deviation) precision of the constants K1 and K2 to allow an estimate to be made of the uncertainty of the final answer due to the uncertainty in the equilibrium constants.
Batch-input mode is designed to be used with large data sets such as files created by MICROSOFT EXCEL or other spreadsheet programs. In this mode, data are read from an input file and results are calculated and printed to an output file. After the various options are chosen, the user is prompted for:
Each line in the input file must contain the following fields for one sample:
It is VERY IMPORTANT that the input data be in the correct format and that the correct order of the CO2 system parameters be followed:
Units used are µmol/kg-SW and µatm.
Six example data files, CASE1.INP - CASE6.INP, are included with the
program; there is one data file for each of the choices of CO2 system input parameters.
Following
is the sample data file CASE1.INP:
This is CASE1.INP, a test program for CO2SYS. It works for case 1. line1, 35., 3., 55., 20., 0, 5, 1000, 2400., 2200. line2, 35., 0, 0, 20, 0, 5, 1000, 2400., 2300. line3, 33., 2., 122., 15, 0, 5, 0, 2300., 2200. line4, 35., 0, 0, 20, 0, 15, 0, 2300., 2100. line5, 33., 3., 2., 25, 0, 10, 100, 2200., 2100.
In this example, the input data are comma-separated (this is recommended), but they may also be space-separated. For space-separated data, the ID fields MUST be within double quotes; for comma-separated data, this is not required. (Note that MICROSOFT EXCEL puts double quotes around each double quote when importing a CSV file). It can occur that for certain inputs of TCO2 and fCO2 (or pCO2), the system has no solution for the given input conditions. If this occurs, -999 is printed for the TA, pH, and the other calculated parameters.
Because a data set may contain values that are missing or unknown, the user may define a numeric value to be the missing-value designator (MVD). If an MVD is not defined by the user, the default value -9 will be used. IT IS IMPERATIVE THAT A VALUE BE PROVIDED IN EACH OF THE INPUT DATA FIELDS; therefore, unknown values should always be set equal to the MVD.
If the MVD is input for one of the CO2 system parameters, no calculations will be made and each output variable will be given the value of the MVD. If the MVD is input for one of the non-CO2 system parameters, a default value will be used in calculations and that sample will be flagged (if that option has been chosen). HOWEVER, the MVD will be printed in the output file for that variable. OBVIOUSLY, CAUTION SHOULD BE USED IN INTERPRETING THE RESULTS WHEN THERE ARE MISSING VALUES IN THE INPUT FILE.
The defaults used are
The output file will contain header lines with the following:
The output data are comma-separated with one line per sample. Each line contains the same fields as the input data plus the following calculated values:
If the user chooses to flag missing data, an extra field will be appended. This field will contain the MVD value if there are missing data or a zero if there are no missing data. The pH values are reported on the scale chosen by the user. To load the output file into MICROSOFT EXCEL, simply open it as comma-separated with the extension "CSV".
A large number of values are needed in the calculations. These include the following:
These values have been determined by many different investigators in many ways. Most assume values of temperature and salinity within ranges normally found in the oceans, so the use of values outside these ranges may result in fits being extrapolated beyond the region where data were collected.
There are eight choices for the constants used in this program. They differ mostly in the formulation of K1 and K2, but there are other slight differences as well, which are described below. These eight choices are
Constants are converted to the appropriate pH and concentration scales, if necessary, before calculations are made.
In all cases, K0, the solubility of CO2 in seawater, is from Weiss (1974), who combined the measurements of Murray and Riley (1971) with some of his own and fit the resulting data. Estimates of the accuracy of K0 vary from 0.2% (Weiss 1974) to 0.5% (Dickson and Riley 1978). The virial coefficients of CO2 and CO2-air are from Weiss (1974). The vapor pressure of H2O above seawater is from Weiss and Price (1980). The concentrations of sulfate and fluoride are from Morris and Riley (1966) and Riley (1965), respectively. The value of KSO4 is from either Khoo et al. (1977) or Dickson (1990a) (this is a choice the user makes). Both of these are given in units of mol/kg-H2O and both are (inherently) on the free pH scale. KF is from Dickson and Riley (1979). It is also (inherently) on the free pH scale and is given in units of mol/kg-H2O. Sulfate and fluoride contribute almost nothing to the alkalinity under most circumstances, but their concentrations and dissociation constants are important in converting between the various pH scales. The value used for fH, the activity coefficient of the hydrogen ion (also necessary in converting between pH scales) is from the fit given in Takahashi et al. (1982), except for the Peng Choice, in which case the fit given in Peng et al. (1987) is used.
The relevant equilibrium constants that define the speciation of CO2 in seawater, K1 and K2, have been determined for various temperatures and salinities by several different investigators. Four sets of measurements remain worthy of consideration. These measurements were made by Roy et al. (1993) on the total pH scale in units of mol/kg-H2O, Goyet and Poisson (1989) on the seawater pH scale in units of mol/kg-SW, Hansson (1973a,b) on the total pH scale in units of mol/kg-SW, and Mehrbach et al. (1973) on the NBS pH scale in units of mol/kg-SW. The data of Hansson (1973a,b) and Mehrbach et al. (1973), both separately and together, have been refit by Dickson and Millero (1987) on the seawater scale in units of mol/kg-SW. Both GEOSECS (Takahashi et al. 1982) and Peng et al. (1987) used the fit given in Mehrbach et al. (1973).
The following are approximate 2S precisions of the fits of the data: (Remember that precision and accuracy are NOT the same!):
| Source | K1 | K2 |
|---|---|---|
| Roy et al. (1993) | 2% | 1.5% |
| Goyet and Poisson (1989) | 2.5% | 4.5% |
| Hansson (1973a,b), refit by Dickson and Millero (1987) | 3% | 4% |
| Mehrbach et al. (1973), refit by Dickson and Millero (1987) | 2.5% | 4.5% |
| Dickson and Millero (1987), combined fit | 4% | 6% |
| Mehrbach et al. (1973) | 1.2% | 2% |
| Freshwater Choice | 0.5% | 0.7% |
Constant Choices 1 to 5 differ only in the values of K1 and K2 and are therefore discussed together. The value of KB is from Dickson (1990b) and TB is from Uppstrom (1974). The calcium concentration used is from Riley and Tongudai (1967). The values of Ksp for calcite and aragonite are from Mucci (1983). The effects of pressure on K1 and K2 are from Millero (1995). The effects of pressure on KB are from Millero (1979) (but without the salinity dependence). Note that typographical errors in Millero (1995) include a factor of 1000 left out of the definition of Kappa and an incorrect value and incorrect units for the gas constant R (see Appendix). The pressure correction for Ksp for calcite is from Ingle (1975) and that for aragonite from Millero (1979).
The definition of alkalinity used is that of Dickson (1981):
Values of KW, KP1, KP2, KP3, and KSi are from Millero (1995), where they are given on the seawater scale.
The GEOSECS option was designed to replicate the calculations performed in the GEOSECS atlases by Takahashi et al. (1982). These calculations were made on the NBS pH scale using the values of K1 and K2 from Mehrbach et al. (1973) and the value of KB from Lyman (1957) as fit by Li et al. (1969).
The definition of alkalinity used was
which did not include effects of OH, phosphate, or silicate. No correction was applied for the nonideality of CO2 (thus implying fCO2 and pCO2 are the same). The boron concentration was from Culkin (1965) and is about 1% lower than that used for Constant Choices 1 to 5. A fit for fH was given for salinities of 20-40.
Some typographical errors in the GEOSECS report were noted and corrected: in the pressure dependence of K2, the given value 26.4 should be 16.4, and in the equation for ln KW, the expression C/ln T should be C*ln T. One can verify these corrections by checking the original references for Takahashi et al. (1982). The ratio Ksp(aragonite) / Ksp(calcite) is given as 1.48 in the original reference (Berner 1976), but the value of 1.45 given in the GEOSECS report was used both in that work and in this program for the GEOSECS Choice. The GEOSECS report also contains a discussion on the effects of OH, phosphate, and silicate (see pp. 79-82, especially Table 1 on p. 81, of Takahashi et al. 1982). From this discussion, it can be seen how important the effects of these species can be, especially for the calculated value of fCO2 (or pCO2). The GEOSECS table also has a typographical error: 17.8 for Aw in Pacific Surface Water should be 7.8.
This choice replicates the calculation scheme used by Peng et al. (1987), which is similar to that of GEOSECS (Takahashi et al. 1982). This scheme has been used extensively by modelers. Peng et al. (1987) worked on the NBS pH scale and included effects of phosphate, silicate, and OH, but did not distinguish between fCO2 and pCO2. The values of K1 and K2 used were from Mehrbach et al. (1973) as given in that paper, and the value of KB was from Lyman (1957) as fit by Li et al. (1969). The boron concentration was from Culkin (1965) and is about 1% lower than that used for Constant Choices 1 to 5. The value of fH given in their paper was NOT the same as that given in the GEOSECS report as claimed; rather, it had been rounded off and was therefore ~1% higher, corresponding to a change of 0.004 in pH. Note that the check value given in Peng et al. (1987) does not match either fit.
Peng et al. (1987) did not treat calcite and aragonite solubility or pressure effects. However, these effects are included in the program CO2SYS for the Peng Choice by using values for solubility and pressure dependence of K1, K2, and KB from GEOSECS and values for the pressure dependence of OH and phosphate and silicate dissociation as are used in Constant Choices 1 to 5.
Peng et al. (1987) used KP2 and KP3 from Kester and Pytkowicz (1967), KSi from Sillen et al. (1964, p. 751), and KW from Millero (1979).
The definition of alkalinity used by Peng et al. (1987) is:
This differs from the equation for TA of Dickson (1981) which is used in Constant Choices 1 to 5 mainly in that it is greater by an amount equal to the total phosphate:
This seems insignificant, but can under certain conditions affect the calculated fCO2 appreciably.
The definition of alkalinity used in this case is
K1, K2, and KW are from Millero (1979): KW is a refit of data from Harned and Owen (1958); K1 is a refit of the data of Harned and Davis (1943); and K2 is a refit of the data of Harned and Scholes (1941). Pressure effects on these constants are from Millero (1983).
The activity coefficient of H+, fH, does NOT equal 1 at salinity 0 due to liquid junction effects (included in its definition). It has also been found to be electrode dependent. Thus, while the values of pH on the free, total, and seawater scales will coincide at salinity 0, the value on the NBS scale will differ. For these reasons, for this choice only, a pH value is given without reference to a pH scale.
Only one set of measurements of K1 and K2 have been made in seawater at salinity <10. Although the values can be extrapolated to salinity 0, they change by a considerable amount over this interval: between salinities 0 and 5, K1 varies by a factor of 2 and K2 varies by a factor of 6.5 to 9.2, depending on temperature; for comparison, between salinities 5 and 35, K1 varies by a factor of less than 1.5 and K2 varies by a factor of less than 3. Thus, a fit of K1 and K2 for values of salinity in this range would be prone to large uncertainty. For this reason, only values of K1 and K2 valid at salinity 0 (freshwater) are used.
The definition of alkalinity (TA) used in this program for Constant Choices 1 to 5 is the same as that of Dickson (1981):
except that the contributions of HS, S, and NH3 are not included.
For the Peng Choice, the definition of Peng et al. (1987) is used. The main difference is that it is greater by an amount equal to the total phosphate:
Though this seems small, it can have a large effect on the calculated fCO2. For instance, when fCO2 (or pCO2) is calculated from TA and TCO2, a modest phosphate concentration, such as 3 µmol/kg-SW, can result in a difference of 20 µatm or more, depending on which definition of alkalinity is used.
The definition used for the GEOSECS Choice is from Takahashi et al. (1982):
and for the Freshwater Choice is:
In this program values of alkalinities are given in micro-moles per kilogram of seawater (µmol/kg-SW).
KSO4 is defined to be the dissociation constant for the reaction
thus,
There are two equations for KSO4 that are still in current usage: Khoo et al. (1977) and Dickson (1990a). Although many older papers used values of Khoo et al. (1977), the values of Dickson (1990a) are now recommended. The values of Khoo et al. (1977) are between 15 to 45% lower than those of Dickson, depending primarily on temperature. The main effect of this difference will occur when converting from one pH scale to another, or when working on a scale for which equilibrium constants must be converted (e.g., most constants were determined on either the total scale or the seawater scale). The use of the Dickson values when converting from the total pH scale to the free pH scale will result in pH values that are 0.015 to 0.03 units lower than those obtained using values of Khoo et al. (1977).
The fugacity of CO2 (fCO2) in water is defined to be the fugacity of CO2 in air which is in equilibrium with the water. The partial pressure of CO2 in wet (100% water-saturated) air (pCO2) is defined to be the product of the mole fraction of CO2 in wet air and the total pressure. This is the same as the product of the mole fraction of CO2 in dry air [xCO2(dry)] and (ptot - pH2O), where pH2O is the vapor pressure of water above seawater. At pressures of the order of 1 atm, fCO2 in air is about 0.3% lower than the pCO2 due to the nonideality of CO2 (see Weiss 1974). This program assumes a pressure near 1 atm (where most equilibrators function) for the conversion between partial pressure and fugacity.
fCO2 is related to TCO2 and pH by the following equation:
[CO2*] TCO2 H*H
fCO2 = ------ = ---- * ------------------
K0 K0 H*H + K1*H + K1*K2
where [CO2*] is the concentration of dissolved CO2, K0 is the solubility coefficient of CO2 in seawater, and K1 and K2 are the first and second dissociation constants for carbonic acid in seawater.
Units for fCO2 and pCO2 in this program are µatm. The value of xCO2(dry) given in this program assumes ptot = 1 atm. GEOSECS (Takahashi et al. 1982) and Peng et al. (1987) did not distinguish between fCO2 and pCO2 nor did some other programs that we have evaluated.
The Revelle, or homogeneous buffer, factor is the percent change in fCO2 (or pCO2) caused by a 1% change in TCO2 at constant alkalinity. It depends on temperature, salinity, and the total alkalinity and TCO2 (or any combination of two of the CO2 system parameters) of the sample. It is calculated at both the input and output conditions using:
Normal seawater values are between 8 and 20.
The solubility product (Ksp) is calculated for both calcite and aragonite, and the saturation states are given in terms of the solubility ratio, Omega, which is defined as
Thus, values of Omega < 1 represent conditions of undersaturation, and values of Omega > 1 represent conditions of oversaturation.
The concentration of calcium, [Ca2+], is assumed to be proportional to the salinity, and the carbonate concentration, [CO32-], is calculated from TCO2, pH, and the values of K1 and K2 for carbonic acid. For Constant Choices 1 to 5, the calcium concentration used is from Riley and Tongudai (1967). The values of Ksp for calcite and aragonite are from Mucci (1983). The pressure correction for Ksp for calcite is from Ingle (1975) and that for aragonite is from Millero (1979).
For the GEOSECS Choice and the Peng Choice , the concentration of calcium is from Culkin (1965). The value of Ksp for calcite is from Ingle (1975). [GEOSECS had referenced Ingle et al. (1973), but this is incorrect.] The value of Ksp for aragonite is from Berner (1976). (Berner stated that Ksp for aragonite is 1.48 times Ksp for calcite; GEOSECS gave and used the value 1.45 instead of 1.48. The program CO2SYS also uses 1.45.) The pressure corrections to these constants are from Takahashi et al. (1982). [The original reference given for the pressure corrections is not valid, and the fit used appears to be new to Takahashi et al. (1982).]
The equilibrium constants depend on pressure as well as on temperature and salinity. Data are scarce on the effects of pressure on these constants in seawater, and most values are estimated from molal volume data. Few measurements have been made for K1 and K2 (of carbonic acid) and KB (of boric acid) at only a few combinations of temperature, salinity, and pressure in seawater (mostly in artificial seawater). All of the work assumed that fH, the activity coefficient of H+ (including liquid junction effects), is independent of pressure. Some of the pH scale conversions do depend on pressure, however. Values of the constants should be (1) converted to the seawater or NBS pH scale WITHOUT pressure-corrected pH scale conversions, (2) then corrected for pressure, and (3) then converted to the desired pH scale WITH pressure-corrected pH scale conversions. Measurements have also been made for the effects of pressure on the solubility of calcite and aragonite in seawater.
Depth in meters and pressure in decibars are used interchangeably in this program. They differ by only 3% at 10,000 dbar and less at lower pressures-well within the uncertainties of the pressure effects on the constants. No salinity dependence of the pressure corrections is used in this program.
For the Freshwater Choice, the effects of pressure on K1, K2, and KW are from Millero (1983).
Peng et al. (1987) did not consider the effects of pressure, but they are included in the program CO2SYS for the Peng Choice. For Constant Choices 1 through 5 and the Peng Choice, the effects of pressure on the values of KP1, KP2, and KP3 are from Millero (1995). The only mention of KSi was in Millero (1995), where it is stated that the values have been estimated from the values of boric acid, but they are not listed in the table. In the program CO2SYS, the values used are the same as those for the pressure effects on KB given in Millero (1995). For the effects of pressure on KW, the fit given in Millero (1983) is used. GEOSECS did not include the effects of OH, phosphate, or silicate, so these are irrelevant for that choice.
For the GEOSECS Choice and the Peng Choice , the effects of pressure on K1, K2, and KB are those given in the GEOSECS report (Takahashi et al. 1982). The reference given there is Culberson and Pytkowicz (1968), but the fits are actually those from Edmond and Gieskes (1970) who in turn quote Li (personal communication). In the fit for the correction for K2 due to pressure, the GEOSECS report had the value 26.4, but the value 16.4 was used, which was consistent with their calculations as well as with the fit given in Edmond and Gieskes (1970). The effects of pressure on the solubility of calcite and aragonite are also those from Takahashi et al. (1982). [The original reference given in that work for the pressure corrections is not valid and the fit used appears to be new to Takahashi et al. (1982)].
For the Constant Choices 1 to 5, the effects of pressure on K1 and K2 are from Millero (1995), and those for KB are from Millero (1979) but without the salinity dependence. These fits are from the data of Culberson and Pytkowicz (1968). The effects of pressure on KSO4 and KF are from Millero (1995). Note that typographical errors in Millero (1995) include a factor of 1000 left out of the definition of Kappa and an incorrect value and incorrect units for the gas constant R. The pressure correction for Ksp for calcite is from Ingle (1975) and that for aragonite is from Millero (1979).
The various pH scales are inter-related by the following equations:
aH = 10( -pHNBS) = fH * Hsws ,
Hfree = Htot / (1 + TS/KSO4) = Hsws / (1 + TS/KSO4 + TF/KF) ,
where
aH is the activity and fH is the activity coefficient
of the H+ ion
(this includes liquid junction effects),
TS and TF are the concentrations of SO42- and fluoride, and
KSO4 and KF are the dissociation constants of
HSO4- and HF in seawater.
The conversions depend on temperature, salinity, and pressure. At 20°C, salinity 35, and 1 atm, pH values on the total scale are (about)
The concentration units for aH on the NBS scale are mol/kg-H2O. The concentration units used in the program CO2SYS for [H+] on the other scales are mol/kg-SW (note that the free scale was originally defined in units of mol/kg-H2O). The difference between mol/kg-SW and mol/kg-H2O is about 0.015 pH units at salinity 35 (the difference is nearly proportional to salinity). The seawater scale was formerly referred to as the total scale, and each scale is still sometimes referred to as the other in the literature.
The fit of fH used in this program is valid from salinities 20 to 40. fH has been found to be electrode-dependent, and does NOT equal 1 at salinity 0 due to the liquid junction potential.
Values on the NBS pH scale are only accurate to (at best) 0.005.
All work on pressure effects on pH has assumed that fH is independent of pressure.
For discussions of the various pH scales see Dickson (1984, 1993), Millero et al. (1993), Butler (1992), or Culberson (1981). Attention is required because in some of these references the distinction between the total and the seawater pH scales was not made.
An information section that may be accessed from several places in the program provides on-screen help for the following topics:
For questions, comments, or to report any problems, please contact:
Ernie Lewis
Department of Applied Science
P. O. Box 5000
Brookhaven National Laboratory
Upton, NY 11973-5000
elewis@bnl.gov
(516)344-7406
or
Douglas Wallace
Abteilung Meereschemie
Institut fuer Meereskunde
Duesternbrooker Weg 20
24105 Kiel
Germany
dwallace@ifm.uni-kiel.de
(49)-0431-597-3810
A very useful reference for all aspects of the CO2 system in seawater is the Handbook of Methods for the Analysis of the Various Parameters of the Carbon Dioxide System in Sea Water (DOE 1994). The web site for information on this reference is: http://www-mpl.ucsd.edu/people/adickson/CO2_QC/. A listing of the errata in this handbook is also available at this site.
A copy of the printed report may be obtained from the Carbon Dioxide Information
Analysis Center at no charge while supplies last. Requests should be addressed
to:
Carbon Dioxide Information Analysis Center
Oak Ridge National Laboratory
Post Office Box 2008
Oak Ridge, Tennessee 37831-6335, U.S.A.
Telephone: (865) 574-0390 or (865) 574-3645
Fax: (865) 574-2232
Electronic Mail: Internet: cdiac@ornl.gov
Other particularly useful references are Park (1969), Skirrow (1975), Butler (1991), Millero and Sohn (1992), and Millero (1995) (see the Appendix for a listing of some of the errata in this paper).
The Appendix to this report lists some typographical errors found in the references for this report as well as in other papers on this topic.
Significant help, advice, and clarification on all aspects of the CO2 system in seawater were supplied by Dr. Andrew Dickson of Scripps Institution of Oceanography. Many helpful comments were supplied by Dr. Rik Wanninkof of NOAA/AOML/OCD and Dr. Dave Chipman of Lamont-Doherty Earth Observatory. We would also like to acknowledge Dr. Frank Millero of the Rosenstiel School of Marine and Atmospheric Sciences at the University of Miami for his numerous contributions to this field.
This work was supported by the U.S. Department of Energy Office of Biological and Enviromental Research under contract DE-ACO2-76CH00016, through a project entitled `Inorganic Carbon for the World Ocean Circulation Experiment - World Hydrographic Program' (D.W.R. Wallace and K.M. Johnson, PIs).
Berner, R. A. 1976. The solubility of calcite and aragonite in seawater in
atmospheric pressure and 34.5°/°° salinity.
American Journal of Science 276:713-730.
Butler, J. N. 1991. Carbon Dioxide Equilibria and Their Applications. Lewis
Publishers, Inc., Chelsea, Mich.
Butler, J. N. 1992. Alkalinity titration in seawater: How accurately can the data
be fitted by an equilibrium model? Marine Chemistry 38:251-282.
Culberson, C. H. 1981. Direct potentiometry. pp. 187-261. In
M. Whitfield and D. Jagner (eds.),
Marine Electrochemistry: A Practical Introduction. John Wiley and Sons,
New York.
Culberson, C. H., and R. M. Pytkowicz. 1968. Effect of pressure on carbonic acid,
boric acid, and the pH of seawater. Limnology and Oceanography
13:403-417.
Culkin, F. 1965. The major constituents of sea water. pp. 121-161. In J. P. Riley and
G. Skirrow (eds.), Chemical Oceanography. Academic Press, New York.
Dickson, A. G. 1981. An exact definition of total alkalinity and a procedure
for the estimation of alkalinity and total inorganic carbon from
titration data. Deep-Sea Research 28A:609-623.
Dickson, A. G. 1984. pH scales and proton-transfer reactions in saline media such
as sea water. Geochemica et Cosmochemica Acta 48:2299-2308.
Dickson, A. G. 1990a. Standard potential of the reaction: AgCl(s) + 1/2 H2(g) =
Ag(s) + HCl(aq), and the standard acidity constant of the ion
HSO4-
in synthetic seawater from 273.15 to 318.15 K. Journal of Chemical
Thermodynamics 22:113-127.
Dickson, A. G. 1990b. Thermodynamics of the dissociation of boric acid in synthetic
seawater from 273.15 to 318.15 K. Deep-Sea Research 37:755-766.
Dickson, A. G. 1993. pH buffers for sea water media based on the total hydrogen
concentration scale. Deep-Sea Research 40:107-118.
Dickson, A. G., and F. J. Millero. 1987. A comparison of the equilibrium constants
for the dissociation of carbonic acid in seawater media. Deep-Sea
Research 34:1733-1743.
--. 1989. Corrigenda. Deep-Sea Research 36:983.
Dickson, A. G., and J. P. Riley. 1978. The effect of analytical error on the
evaluation of the components of the aquatic carbon-dioxide system.
Marine Chemistry 6:77-85.
Dickson, A. G., and J. P. Riley. 1979. The estimation of acid dissociation constants
in seawater media from potentiometric titrations with strong base.
I. The ionic product of water - KW. Marine Chemistry 7:89-99.
DOE (U.S. Department of Energy). 1994. Handbook of methods for the analysis of the
various parameters of
the carbon dioxide system in sea water. Version 2. ORNL/CDIAC-74.
A. G. Dickson and C. Goyet (eds.), Carbon Dioxide Information Analysis Center,
Oak Ridge National Laboratory, Oak Ridge, Tenn.
Edmond, J. M., and J. M. T. M. Gieskes. 1970. On the calculation of the degree of
saturation of
seawater with respect to calcium carbonate under in situ conditions.
Geochemica et Cosmochemica Acta 34:1261-1291.
Goyet, C., and A. Poisson. 1989. New determination of carbonic acid dissociation
constants in seawater as a function of temperature and salinity.
Deep-Sea Research 36:1635-1654.
Hansson, I. 1973a. A new set of acidity constants for carbonic acid and boric acid
in sea water. Deep-Sea Research 20:461-478.
Hansson, I. 1973b. The determination of dissociation constants of carbonic acid in
synthetic sea water in the salinity range of
20 - 40°/°° and
temperature range of 5 - 30°C. Acta Chemica Scandanavia
27:931-944.
Harned, H. S., and R. Davis, Jr. 1943. The ionization constant of carbonic acid in
water and the solubility of carbon dioxide in water and aqueous salt
solutions from 0 to 50°. Journal of the American Chemical Society
65:2030-2037.
Harned, H. S., and B. B. Owen. 1958. The Physical Chemistry of Electrolyte Solutions.
American Chemical Society Monograph Series. Reinhold Pub. Corp., New York.
Harned, H. S., and S. R. Scholes, Jr. 1941. The ionization constant of
HCO3-
from 0 to 50°. Journal of the American Chemical Society 43:1706-1709.
Ingle, S. E. 1975. Solubility of calcite in the ocean. Marine Chemistry 3:301-319.
Ingle, S. E., C. H. Culberson, J. E. Hawley, and R. M. Pytkowicz. 1973. The
solubility of calcite in seawater at atmospheric pressure
and 35°/°°
salinity. Marine Chemistry 1:295-307.
Kester, D. R., and R. M. Pytkowicz. 1967. Determination of the apparent dissociation
constants of phosphoric acid in seawater. Limnology and Oceanography
12:243-252.
Khoo, K. H., R. W. Ramette, C. H. Culberson, and R. G. Bates. 1977.
Determination of hydrogen ion concentrations in seawater from 5 to
40°C: standard potentials at salinities from 20 to
45°/°°.
Analytical Chemistry 49(1):29-34.
Li, Y. H., T. Takahashi, and W. S. Broecker. 1969. Degree of saturation of CaCO3
in the oceans. Journal of Geophysical Research 74:5507-5525.
Lyman, J. 1957. Buffer mechanism of sea water. PhD. thesis. University
of California, Los Angeles.
Mehrbach, C., C. H. Culberson, J. E. Hawley, and R. M. Pytkowicz. 1973.
Measurement of the apparent dissociation constants of carbonic acid
in seawater at atmospheric pressure. Limnology and Oceanography
18:897-907.
Millero, F. J. 1979. The thermodynamics of the carbonate system in seawater.
Geochemica et Cosmochemica Acta 43:1651-1661.
Millero, F. J. 1983. Influence of pressure on chemical processes in the sea.
pp. 1-88. In J. P. Riley and R. Chester (eds.), Chemical Oceanography.
Academic Press, New York.
Millero, F. J. 1995. Thermodynamics of the carbon dioxide system in the oceans.
Geochemica et Cosmochemica Acta 59:661-677.
Millero, F. J., and M. L. Sohn. 1992. Chemical Oceanography. CRC Press,
Boca Raton, Fla.
Millero, F. J., J. Z. Zhang, S. Fiol, S. Sotolongo, R. N. Roy, K. Lee,
and S. Mane. 1993. The use of buffers to measure the pH of seawater.
Marine Chemistry 44:143-152.
Morris, A. W., and J. P. Riley. 1966. The bromide/chlorinity and sulphate/
chlorinity ratio in sea water. Deep-Sea Research 13:699-705.
Mucci, A. 1983. The solubility of calcite and aragonite in seawater at various
salinities, temperatures, and one atmosphere total pressure.
American Journal of Science 283:781-799.
Murray, C. N., and J. P. Riley. 1971. The solubility of gases in distilled water
and seawater - IV. Carbon dioxide. Deep-Sea Research 18:533-541.
Park, P. K. 1969. Oceanic CO2 system: an evaluation of ten methods of
investigation. Limnology and Oceanography 14:179-186.
Peng, T. H., T. Takahashi, W. S. Broecker, and J. Olafsson. 1987. Seasonal
variability of carbon dioxide, nutrients and oxygen in the northern
North Atlantic surface water: Observations and model.
Tellus 39B:439-458.
Riley, J. P. 1965. The occurrence of anomalously high fluoride concentrations in
the North Atlantic. Deep-Sea Research 12:219-220.
Riley, J. P., and M. Tongudai. 1967. The major cation/chlorinity ratios in sea
water. Chemical Geology 2:263-269.
Roy, R. N., L. N. Roy, K. M. Vogel, C. Porter-Moore, T. Pearson,
C. E. Good, F. J. Millero, and D. M. Campbell. 1993. The dissociation
constants of carbonic acid in seawater at salinities 5 to 45 and
temperatures 0 to 45°C. Marine Chemistry 44:249-267.
--. 1994. Erratum. Marine Chemistry 45:337.
--. 1996. Erratum. Marine Chemistry 52:183.
Sillen, L. G., A. E. Martell, and J. Bjerrum. 1964. Stability constants of metal-ion complexes,
2nd ed. Special Publication no. 17. Chemical Society (Great Britain), London.
[Referenced in Takahashi et al. 1982 as Sillen and Martel (1964).]
Skirrow, G. 1975. The dissolved gases - carbon dioxide. pp. 1-192. In
J. P. Riley and G. Skirrow (eds.), Chemical Oceanography, Vol. 2.
Academic Press, New York.
Takahashi, T., R. T. Williams, and D. L. Bos. 1982. Carbonate chemistry.
pp. 77-83. In W. S. Broecker, D. W. Spencer, and H. Craig,
GEOSECS Pacific Expedition, Volume 3, Hydrographic Data 1973-1974.
National Science Foundation, Washington, D.C.
Uppstrom, L. R. 1974. The boron/chloronity ratio of deep-sea water from the
Pacific Ocean. Deep-Sea Research 21:161-162.
Weiss, R. F. 1974. Carbon dioxide in water and seawater: the solubility of a
non-ideal gas. Marine Chemistry 2:203-215.
Weiss, R. F., and B. A. Price. 1980. Nitrous oxide solubility in water and
seawater. Marine Chemistry 8:347-359.
The Appendix lists errors that have been found in references for the program documentation as well as in other papers related to this topic; however, the listing is not meant to be comprehensive. Although many corrections are extremely minor, it is hoped that this compilation will save both time and effort for those who use it.
Last revision version 1.08, 10-13-97.
********************
Campbell, D. M., F. J. Millero, R. Roy, L. Roy, M. Lawson, K. M. Vogel, and C. Porter-Moore. 1993. The standard potential for the hydrogen-silver, silver chloride electrode in synthetic seawater. Marine Chemistry 44:221-233.
Chen, H., R. Wanninkhof, R. A. Feely, and D. Greeley. 1995. Measurement of fugacity of carbon dioxide in seawater: an evaluation of a method based on infrared analysis. NOAA Technical Memorandum ERL AOML-85. Atlantic Oceanographic and Meteorological Laboratory, Miami.
Clayton, T. D., and R. H. Byrne. 1993. Spectrophotometric seawater pH measurements: total hydrogen ion concentration scale calibration of m-cresol purple and at-sea results. Deep-Sea Research 40: 2115-2129.
Clayton, T. D., R. H. Byrne, J. A. Breland, R. A. Feely, F. J. Millero, D. M. Campbell, P. P. Murphy, and M. F. Lamb. 1995. The role of pH measurements in modern oceanic CO2-system characterization: Precision and thermodynamic consistency. Deep-Sea Research II 42:411-429.
Dickson, A. G. 1990a. Standard potential of the reaction: AgCl(s) + 1/2 H2(g) = Ag(s) + HCl(aq), and the standard acidity constant of the ion HSO4- in synthetic seawater from 273.15 to 318.15 K. Journal of Chemical Thermodynamics 22:113-127.
Dickson, A. G. 1990b. Thermodynamics of the dissociation of boric acid in synthetic seawater from 273.15 to 318.15 K. Deep-Sea Research 37:755-766.
Dickson, A. G., and F. J. Millero. 1987. A comparison of the equilibrium constants for the dissociation of carbonic acid in seawater media. Deep-Sea Research 34:1733-1743.
Dickson, A. G., and J. P. Riley. 1979a. The estimation of acid dissociation constants in seawater media from potentiometric titrations with strong base. I. The ionic product of water - KW. Marine Chemistry 7:89-99.
Dickson, A. G., and J. P. Riley. 1979b. The estimation of acid dissociation constants in seawater media from potentiometric titrations with strong base. II. The dissociation of phosphoric acid. Marine Chemistry 7:101-109.
Goyet, C., and E. Peltzer. 1994. Comparison of the August-September 1991 and 1979 surface partial pressure of CO2 distribution in the Equatorial Pacific Ocean near 150° W. Marine Chemistry 45:257-266.
Goyet, C., and A. Poisson. 1989. New determination of carbonic acid dissociation constants in seawater as a function of temperature and salinity. Deep-Sea Research 36:1635-1654.
Hansson, I. 1973a. A new set of acidity constants for carbonic acid and boric acid in seawater. Deep-Sea Research 20:461-478.
Lee, K., and F. J. Millero. 1995. Thermodynamic studies of the carbonate system in seawater. Deep-Sea Research 42:2035-2061.
Mehrbach, C., C. H. Culberson, J. E. Hawley, and R. M. Pytkowicz. 1973. Measurement of the apparent dissociation constants of carbonic acid in seawater at atmospheric pressure. Limnology and Oceanography 18:897-907.
Millero, F. 1979. The thermodynamics of the carbonate system in seawater. Geochemica et Cosmochemica Acta 43:1651-1661.
Millero, F. J. 1983. Influence of pressure on chemical processes in the sea.
Chapter 43. In J. P. Riley and R. Chester (eds.), Chemical Oceanography.
Academic Press, New York.
Millero, F. J. 1995. Thermodynamics of the carbon dioxide system in the oceans. Geochemica et Cosmochemica Acta 59:661-677.
Millero, F. J., T. Plese, and M. Fernandez. 1988. The dissociation of hydrogen sulfide in seawater. Limnology and Oceanography 33:269-274.
Millero, F. J., and M. L. Sohn. 1992. The carbonate system. pp. 267-319. In F. J. Millero and M. L. Sohn, Chemical Oceanography. CRC Press, Boca Raton, Fla.
Millero, F. J., J. Z. Zhang, S. Fiol, S. Sotolongo, R. N. Roy, K. Lee, and S. Mane. 1993. The use of buffers to measure the pH of seawater. Marine Chemistry 44:143-152.
Millero, F. J., J. Z. Zhang, K. Lee, and D. M. Campbell. 1993. Titration alkalinity of seawater. Marine Chemistry 44:153-166.
Peng, T. H., T. Takahashi, W. S. Broecker, and J. Olafsson. 1987. Seasonal variability of carbon dioxide, nutrients and oxygen in the North Atlantic surface water: observations and a model. Tellus 39B:439-458
Roy, R. N., L. N. Roy, K. M. Vogel, C. Porter-Moore, T. Pearson, C. E. Good, F. J. Millero, and D. M. Campbell. 1993. The dissociation constants of carbonic acid in seawater at salinities 5 to 45 and temperatures 0 to 45°C. Marine Chemistry 44:249-267.
Takahashi, T., R. T. Williams, and D. L. Bos. 1982. Carbonate chemistry. pp. 77-83. In W. S. Broecker, D. W. Spencer, and H. Craig, GEOSECS Pacific Expedition, Volume 3, Hydrographic Data 1973-1974. National Science Foundation, Washington, D.C.
UNESCO. 1987. UNESCO Technical papers in marine science 51: Thermodynamics of the carbon
dioxide system in seawater.
Weiss, R. F., and B. A. Price. 1980. Nitrous oxide solubility in water and
seawater. Marine Chemistry 8:347-359.
--.Errata. 1980. Marine Chemistry 9:221.