The simplest way to make hydrogen at home is water electrolysis: passing electricity through water to split it into hydrogen and oxygen gas. A basic setup requires only a power source, two electrodes, water, and an electrolyte. You can produce a visible stream of hydrogen bubbles in minutes, though the volumes are small and best suited for science demonstrations, small experiments, or hobby projects like micro-torching for jewelry work.
How Water Electrolysis Works
Electrolysis forces water molecules apart using electrical current. At the negative electrode (cathode), hydrogen gas forms. At the positive electrode (anode), oxygen gas forms. Pure water conducts electricity poorly, so you need to dissolve an electrolyte in it to carry the current between electrodes. The choice of electrolyte matters enormously for safety, which is covered below.
What You Need for a Basic Setup
A working electrolysis rig can be assembled from hardware store and kitchen supplies:
- Power source: Two 9-volt batteries wired in series, or any DC power supply delivering at least 3 volts. Higher voltage produces gas faster, but also generates more heat.
- Electrodes: Two pieces of graphite (carbon) work best for home use. Graphite is chemically inert, resists corrosion, and conducts electricity well. You can pull graphite rods from inside large pencils or buy them cheaply online. Stainless steel is a common alternative, but lower-grade alloys can corrode and shed metal particles into the water. If you use stainless steel, stick with 316-grade or higher.
- Electrolyte: Baking soda (sodium bicarbonate), dissolved in water at roughly one tablespoon per cup. This is the safest common electrolyte for home use.
- Container: A glass jar or beaker. Avoid plastic that could warp from heat if you run the system for extended periods.
- Wires with alligator clips: To connect the electrodes to your battery or power supply.
Submerge both electrodes in the solution, connect them to the positive and negative terminals of your power source, and bubbles will begin forming almost immediately. The electrode connected to the negative terminal produces hydrogen; the one connected to the positive terminal produces oxygen.
Why You Should Not Use Table Salt
Many online tutorials suggest dissolving table salt (sodium chloride) in the water as an electrolyte. This is a serious mistake. When salt water is electrolyzed, the chloride ions react at the positive electrode and produce chlorine gas instead of oxygen. Chlorine is toxic, and even small amounts irritate your lungs and eyes. The water itself will turn yellowish as dissolved chlorine builds up.
Baking soda avoids this problem entirely. It dissociates into sodium and bicarbonate ions that carry current effectively without producing toxic byproducts. If you want a stronger electrolyte, potassium hydroxide (sold as a drain cleaner ingredient) works well, but it’s caustic and requires gloves and eye protection.
How to Collect the Gas
Hydrogen bubbles rising freely into the air dissipate harmlessly in small quantities, but if you want to capture the gas for use, the standard method is water displacement. Fill a measuring cylinder or narrow glass container completely with water. Cover the opening with your hand, flip it upside down, and lower it into a basin of water so no air enters. Then position the tubing from your cathode so that it feeds into the submerged opening of the inverted container.
As hydrogen travels through the tubing, it rises into the container and pushes water downward. You can watch the gas accumulate and measure its volume by the water level dropping. This method works because hydrogen is nearly insoluble in water, so very little is lost during collection. Keep the open end of the container submerged at all times to prevent the gas from escaping.
For any practical application, you’ll want to keep the hydrogen and oxygen streams separate. A simple way to do this is to house each electrode in its own inverted container, each with its own collection tube. Mixing the two gases creates an explosive combination.
The Aluminum and Lye Method
Electrolysis isn’t the only option. Aluminum reacts vigorously with sodium hydroxide (lye) dissolved in water to produce hydrogen gas. This chemical reaction generates hydrogen faster than a small electrolysis rig and requires no electricity. You dissolve lye in water at roughly 20% concentration by weight, then drop in pieces of aluminum (foil, cans, or scrap). The reaction starts immediately, producing hydrogen gas and leaving behind a solid aluminum hydroxide residue.
The drawbacks are significant. The reaction is highly exothermic, meaning it generates a lot of heat. The sodium hydroxide solution is extremely corrosive and will cause chemical burns on contact with skin. The reaction is also difficult to control once started. You can’t easily slow it down or stop it, which means you need to have your collection apparatus ready before adding the aluminum. Powdered aluminum should be avoided entirely because inhaling fine aluminum dust is harmful to your lungs, and the powder reacts violently fast. Stick with solid pieces you can add gradually.
What Home Hydrogen Is Actually Useful For
The volumes produced by a home setup are small. A pair of 9-volt batteries and a baking soda solution will generate enough hydrogen to fill a small test tube in a few minutes, not enough to power anything meaningful. The practical applications at this scale include science demonstrations (the classic “squeaky pop” test where a lit splint ignites a test tube of hydrogen), filling small soap bubbles that float upward, and feeding a micro-torch.
A micro hydrogen-oxygen torch, sometimes called an HHO torch, combines the hydrogen and oxygen output from an electrolysis cell to produce a tiny, extremely hot flame. Hobbyists use these for small welding jobs, jewelry soldering, and even making synthetic gemstones. Building one requires a combined-output electrolysis device, a flashback arrestor (a one-way valve that prevents the flame from traveling back into the gas supply), and a fine nozzle tip. The flashback arrestor is not optional. Without it, the flame can ignite the gas in the supply line and cause an explosion.
Safety Risks to Take Seriously
Hydrogen is the most flammable of all common gases. It ignites in air at concentrations as low as 4% and remains explosive all the way up to 77%, a far wider flammable range than natural gas or propane. It also burns with a nearly invisible flame in daylight, so you may not see it if it ignites.
A few rules keep the risk manageable:
- Work outdoors or with strong ventilation. Hydrogen is lighter than air and rises quickly, but in an enclosed room it can accumulate near the ceiling and reach explosive concentrations.
- Never store hydrogen in sealed containers. Industrial hydrogen is stored in specially rated pressure vessels with pressure-relief devices. A glass jar, plastic bottle, or any improvised container can rupture. If you collect hydrogen, use it promptly or release it outdoors.
- Keep ignition sources away. No open flames, no sparking tools, no smoking anywhere near your setup while gas is being produced.
- Separate your gases. A mixture of hydrogen and oxygen (which electrolysis produces simultaneously) is far more dangerous than hydrogen alone. If you’re collecting gas, keep the two electrode outputs isolated from each other.
Legal Considerations
There is no specific federal law in the United States that prohibits producing small amounts of hydrogen at home. Regulation of gas production and storage falls primarily to state and local jurisdictions. The National Fire Protection Association has developed standards for hydrogen systems, and some local building codes incorporate these standards. In practice, a tabletop electrolysis experiment is unlikely to draw regulatory attention, but building a larger pressurized system in a residential area could conflict with local fire codes or zoning rules. If you plan to scale up beyond small experiments, check your local fire marshal’s office for applicable codes.

