The composition data

GasInspired air (%)Expired air (%)Change
Oxygen~21~16Decreased
Carbon dioxide~0.04~4Increased
Nitrogen~79~79No change
Water vapourVariableSaturated (high)Increased

Note that expired air still contains substantial oxygen (16%): not all oxygen is absorbed during each breath. This is why rescue breathing works: expired air contains enough oxygen to sustain a non-breathing person.

Explaining the differences

Oxygen decreases because it diffuses from the alveolar air into the blood to be used in aerobic respiration by body cells.

Carbon dioxide increases because it is produced by aerobic respiration in cells, carried by the blood to the lungs, and diffuses from the blood into the alveolar air.

Water vapour increases because the warm, moist surfaces lining the alveoli add water vapour to the exhaled air. Water is also a product of aerobic respiration.

Nitrogen is unchanged because nitrogen is not used or produced by the body: it passes through the lungs without reacting.

Testing the differences

To compare inspired and expired air: bubble each through limewater. Expired air turns limewater milky much faster than inspired air, showing it contains more carbon dioxide. To test for water vapour, breathe onto a cold surface or use cobalt chloride paper, which turns from blue to pink in the presence of moisture.

To test for oxygen differences, use a gas syringe or oxygen probe. Alternatively, a candle or glowing splint burns more brightly in inspired air than in expired air, though this is a rough test rather than a precise measurement.