Cathode (reduction): 2H2O(l)+2e−→H2(g)+2OH−(aq)
Anode (oxidation): 4OH−(aq)→O2(g)+2H2O(l)+4e−
Combining either half reaction pair yields the same overall decomposition of water into oxygen and hydrogen:
Overall reaction: 2H2O(l)→2H2(g)+O2(g)
The number of hydrogen molecules produced is thus twice the number of oxygen molecules.