You can split water into hydrogen and oxygen with a small electric current, two electrodes, and a container of water. The process is called electrolysis, and it works because water molecules (H₂O) can be pulled apart when electricity passes through them. Add a pinch of an electrolyte like baking soda to plain water and the reaction speeds up. This is a real chemistry demonstration you can run on a kitchen counter, and it is also the basis of industrial hydrogen production worldwide.
How To Turn Water Into Hydrogen With Electrolysis?
Electrolysis uses electricity to break the chemical bond holding water together. Two electrodes sit in the water, a power source pushes current between them, and hydrogen gas collects at one electrode while oxygen collects at the other.
The reaction at the negative electrode (the cathode) produces hydrogen. The reaction at the positive electrode (the anode) produces oxygen. You get roughly twice as much hydrogen by volume as oxygen, because each water molecule contains two hydrogen atoms and one oxygen atom.
Here is the basic setup:
- A glass or plastic container filled with water
- Two electrodes that will not corrode easily — graphite (pencil lead) or platinum works well; avoid iron or copper, which react with the water
- A DC power source such as a 9-volt battery
- A small amount of electrolyte to help the water conduct electricity
- Two small test tubes or inverted cups to trap the gas at each electrode
Connect the battery terminals to the electrodes with wires. The electrode connected to the negative terminal produces hydrogen. The one connected to the positive terminal produces oxygen. Bubbles will start forming almost immediately.
One detail that trips people up: pure water conducts electricity very poorly. That is why you need an electrolyte. The electrolyte does not get used up in the overall reaction — it just carries the current through the water.
What Happens at Each Electrode During Electrolysis?
The two electrodes do different chemistry, and understanding this explains why you get two separate gases.
At the cathode, water molecules gain electrons. This splits them into hydrogen gas and hydroxide ions. The hydrogen bubbles up and collects. This is called a reduction reaction.
At the anode, water molecules lose electrons. This produces oxygen gas and hydrogen ions. This is an oxidation reaction.
The overall result is simple: two water molecules go in, two hydrogen molecules and one oxygen molecule come out. The gases are physically separated because they form at different electrodes, which is why you can collect them in separate containers.
If you use baking soda as your electrolyte, the reactions at each electrode are slightly more complicated than pure water electrolysis, but the main products are still hydrogen and oxygen. Some research has looked at how different electrolytes affect the efficiency and byproducts of the process. The core result — hydrogen at the negative electrode, oxygen at the positive — holds regardless.
What Should You Use as an Electrolyte?
Common table salt (sodium chloride) is the electrolyte most people reach for first, and it is also the one that causes the most problems. When salt is present, the anode can produce chlorine gas instead of, or alongside, oxygen. Chlorine gas is toxic and irritates the lungs. In a small, well-ventilated room, even modest amounts are unpleasant and not something to breathe.
Baking soda (sodium bicarbonate) is a better choice for a simple demonstration. It conducts electricity, it is cheap, and it does not produce chlorine gas at the anode. Some hobbyists use Epsom salt (magnesium sulfate) for the same reason.
A few practical notes:
- Use a small amount of electrolyte — a pinch is enough for a small container
- Keep the setup in a ventilated space regardless of which electrolyte you use
- Do not seal the container; gas needs to escape or be collected, not trapped under pressure
- Graphite electrodes work but can degrade over time and cloud the water
No clinical guidelines exist for electrolyte amounts in home demonstrations, because this is a chemistry exercise, not a medical one. The amounts are not critical to safety in a small open container — the main safety issue is the gases themselves, not the electrolyte quantity.
Is Hydrogen From Electrolysis Dangerous?
Hydrogen gas is flammable, and it burns with a nearly invisible flame. That is the main hazard in any electrolysis setup. Oxygen supports combustion, so a mixture of the two gases is more dangerous than either alone.
The risks are manageable with basic precautions:
- Keep the setup away from open flames, sparks, and heat sources
- Do not collect hydrogen in a sealed glass container — pressure can build and shatter it
- Work in a ventilated area, especially if you used salt as your electrolyte
- Do not store collected hydrogen; use it for the demonstration and let it dissipate
- Keep the whole exercise away from children without supervision
Hydrogen disperses quickly in air, which limits how much can accumulate in an open room. In a small, closed space, though, it can build up to a flammable concentration. Treat it the way you would treat any flammable gas.
The chlorine gas issue with salt deserves repeating. It is the most common mistake in home electrolysis. If you notice a sharp, swimming-pool smell at the anode, stop and ventilate the area.
Why Doesn’t Electrolysis Produce Unlimited Hydrogen?
Electrolysis is limited by the energy you put in. The amount of hydrogen produced is proportional to the electrical current and the time you run it. More current and more time means more gas, up to the point where your power source or electrodes give out.
There is also an efficiency ceiling. Some of the electrical energy always turns into heat rather than chemical bonds. In a home setup with a 9-volt battery, the amounts of gas are small — enough to see bubbles and collect a little in a test tube, not enough to fill a balloon quickly.
Industrial electrolysis is a different scale entirely. Commercial systems use large stacks of cells, carefully chosen electrodes, and optimized electrolytes to produce hydrogen at high purity. The chemistry is the same; the engineering is what changes.
Is Electrolysis a Practical Way to Make Hydrogen Fuel at Home?
No. Home electrolysis is a demonstration, not a fuel-production method. The energy you get out as hydrogen is always less than the electrical energy you put in — the process cannot create energy, and in practice it loses some to heat and resistance.
For hydrogen to be a useful fuel, you need a source of cheap electricity, efficient equipment, and a way to store the gas safely. Home setups have none of these at scale. The gas produced is small in volume, low in pressure, and difficult to store safely.
This matters because some online claims suggest home electrolysis can produce free or cheap fuel. That is not accurate. The electrical energy, the equipment, and the safety requirements all cost more than the hydrogen is worth at this scale. Electrolysis is a real and important industrial process, but it is not a home energy solution.
What Is the Difference Between Electrolysis and Other Ways to Make Hydrogen?
Most hydrogen made today does not come from electrolysis. The majority is produced from natural gas through a process called steam methane reforming, which is cheaper but releases carbon dioxide. Electrolysis is used when you need high-purity hydrogen or when the electricity comes from a low-carbon source.
There are also biological and thermal methods, but they are not common at commercial scale. The table below shows the main comparison points.
| Method | Main input | Typical use |
|---|---|---|
| Electrolysis | Electricity and water | High-purity hydrogen; low-carbon hydrogen when powered by clean electricity |
| Steam methane reforming | Natural gas and steam | Most industrial hydrogen today |
| Biological production | Microbes and organic matter | Research and niche applications |
The key point for a home experimenter is that electrolysis is the method you can actually do yourself, and it is the cleanest in terms of byproducts when you use the right electrolyte. It is also the method that produces the purest hydrogen, because the gas comes off the electrode directly.
Frequently Asked Questions
Can I make hydrogen from water at home safely?
Yes, in small amounts with proper ventilation and no open flames nearby. The main risks are flammable hydrogen and, if you use salt as an electrolyte, toxic chlorine gas.
What is the best electrolyte for water electrolysis?
Baking soda is a common choice for home demonstrations because it conducts electricity without producing chlorine gas. Table salt works but can release chlorine at the positive electrode.
How much hydrogen does electrolysis produce?
The amount depends on current and time — more current and longer run time produce more gas. A small battery-powered setup produces only enough to collect in a test tube, not enough for fuel use.
Why does electrolysis need an electrolyte?
Pure water conducts electricity poorly, so the current barely flows. An electrolyte like baking soda adds ions that carry the current through the water without being consumed in the overall reaction.

