In this study the ground-based measurements of solar IR radiation absorption spectra with high spectral resolution in Peterhof which were carried out in different ranges of electromagnetic waves to evaluate the total atmospheric column of CO2 and its content in troposphere and stratosphere were analyzed. Two spectral schemes consisting of solar spectra measurements in the ranges of 2600 and 3100–3300 cm–1 were chosen according to the analysis of the errors of different spectral schemes and comparison with independent observations and modelling data. The temporal evolution of CO2 content in the troposphere and stratosphere in 2018–2019 was studied. For most of the period the values of tropospheric XCO2 were higher than stratospheric XCO2 with the difference up to 5–10 ppm. However, the stratospheric XCO2 appeared to be higher than the tropospheric XCO2 in summer and in the beginning of autumn. It was related to photosynthesis processes (consuming of CO2 by plants in the troposphere). The comparison of the ground-based observations with CAMS modelling data and satellite observations (OCO-2 and ACE instruments) demonstrated close agreement for the total column of CO2 and its content in the troposphere and stratosphere. The errors are within 1% provided that systematic uncertainties are excluded.