Using density functional theory, the adsorption of CO, CO2, NO and CO2 gas molecules on different chiralities and diameters of single carbon nanotubes is investigated in terms of energetic, electronic properties and surface reactivity. We found that the adsorption of CO and CO2 gas molecules is dependent on the chiralities and diameters of CNTs and it is vice versa for NO and NO2 gas molecules. Also, the electronic character of CNTs is not affected by the adsorption of CO and CO2 gas molecules while it is strongly affected by NO and NO2 gas molecules. In addition, it is found that the dipole moments of zigzag CNTs are always higher than the armchair CNTs. Therefore, we conclude that the zigzag carbon nanotubes are more preferred as gas sensors than the armchair carbon nanotubes, especially for detecting NO and NO2 gas molecules.