electrolysis involves splitting water into hydrogen and oxygen with the help of electricity when a direct current is passed through the water oxygen appears at the positive anodes while hydrogen is released from the negative cathodes in terms of volume exactly two times more hydrogen is produced than oxygen as pure water is not a good conductor of electricity something like salt is added not a very environmentally sound method if you use a proton exchange membrane pem for short it's possible to extract hydrogen from Pure Water as the membrane provides the necessary particle transport between anodes and cathodes