New measurements of the solubility of carbon dioxide in water and seawater confirm the accuracy of the measurements of Murray and Riley, as opposed to those of Li and Tsui. Corrections for non-ideal behavior in the gas phase and for dissociation in distilled water are required to calculate solubility coefficients from these sets of data. Equations for the solubilities of real gases are presented and discussed. Solubility coefficients for carbon dioxide in water and seawater are calculated for the data of Murray and Riley, and are fitted to equations in temperature and salinity of the form used previously to fit the solubilities of other gases.