The image in the above link shows that CO2 and O2 both pass through the same membrane but still CO2 is exhaled and O2 is taken in the body.
Why doesn't the CO2 mix with O2 and stay in the blood ?
Why is only CO2 passed out through the membrane?
The image in the above link shows that CO2 and O2 both pass through the same membrane but still CO2 is exhaled and O2 is taken in the body.
Why doesn't the CO2 mix with O2 and stay in the blood ?
Why is only CO2 passed out through the membrane?
You actually inhale and exhale both CO2 and O2, what changes is the relative amounts of each.
Besides tiny percentages of various gases and non-gas particles, air contains primarily nitrogen (78%) and oxygen (21%). Carbon dioxide makes up roughly 0.04% of the air you inhale.
By the time you exhale, that air now contains about the same amount of nitrogen, but the amount of oxygen has decreased to around 15% and the amount of carbon dixoide has increased by about a hundred times to around 4%.
On the level of individual cells, both gases pass through the membranes in both directions, what matters is how much passes in each direction. As @porkchop explains, that depends on the relative concentrations. When it reaches the lungs, blood has relatively high CO2 and relatively low O2, compared to the outside air that you inhale. As long as the air stays inside, the two will equilibrate. There will be some molecules going each direction - some CO2 molecules will go into the blood, but many more will leave it and go into the air, and some O2 molecules will go into the air, but many more will come from the air into the blood. As a result, the net flow is CO2 going out of the blood, and O2 into the blood. Diagrams usually only illustrate the net flow.
It all comes down to concentration gradients. In deoxygenated blood, which is what enters the lungs, the O2 concentration is relatively low and the CO2 concentration is higher than that of ambient air. On the flip side, the air that we breathe in has a higher concentration of O2 than deoxygenated blood. The alveolar membrane is thin enough that the gases can diffuse across this gradient almost instantly. And just like that, you have oxygenation of blood, and removal of CO2.