Carbon dioxide (CO2) and oxygen (O2) are the 2 gases that move in and out of the leaf stomata. This is because Carbon dioxide and oxygen cannot pass through the leaf cuticle in large amounts that are necessary for optimum photosynthesis.