# Water electrolysis

> Splitting water into hydrogen and oxygen with a current

- Date: 1789
- Era: Industrial age
- Domain: [Electricity & Electronics](https://lastcodex.org/en/domains/electricity/)
- Rebuild stage: IV (Science & industry)
- Difficulty: 2/5
- URL: https://lastcodex.org/en/inventions/water-electrolysis/

Water electrolysis passes an electric current through water to split it into hydrogen and oxygen, which rise as bubbles at the two electrodes, twice as much hydrogen as oxygen. Two Dutch chemists reported decomposing water with electric discharges in 1789; the voltaic pile made it a steady process in 1800, and it is now one of the ways hydrogen is made.

![Water electrolysis · Splitting water into hydrogen and oxygen with a current](https://lastcodex.org/_astro/plate.Cpm0DXHU_Z1PsRXp.webp)

## Legend

1. Voltaic pile
2. Negative electrode, where hydrogen forms
3. Positive electrode, where oxygen forms
4. Tube collecting hydrogen
5. Tube collecting oxygen
6. Water made conductive with a little acid

## What it is

Electrolysis of water is the splitting of water into its two elements with an electric current. Two electrodes dip into the water and are connected to a source of direct current. Bubbles of hydrogen form on the negative electrode and bubbles of oxygen on the positive one, and the volume of hydrogen is about twice that of oxygen, the proportion in which the two gases combine to make water.

The process turns electrical energy into chemical energy stored in the gases. Burning the hydrogen, or recombining it with oxygen in a [fuel cell](/en/inventions/hydrogen-fuel-cell/), gives part of that energy back. Industry uses electrolysers, stacks of cells in which the two gases are kept apart by a separator, to make hydrogen and oxygen.

## How it works

Pure water conducts electricity very poorly, so the water is made conductive by dissolving a little acid, alkali or salt in it. The current is carried through the liquid by ions, charged particles that drift towards the electrode of opposite sign.

At the negative electrode, the cathode, electrons from the circuit turn hydrogen ions or water into hydrogen gas. At the positive electrode, the anode, oxygen is released and electrons return to the circuit. The two gases appear only at the surfaces of the electrodes, never in the bulk of the liquid between them.

![Cutaway of a modern alkaline electrolysis cell: two metal electrodes face each other across a porous separator in a liquid, with hydrogen bubbles on one side and oxygen bubbles on the other rising to separate outlets](https://lastcodex.org/_astro/v2.E4_37RhP_Z2r68dx.webp)
_In an alkaline cell a porous separator lets the liquid conduct but keeps the hydrogen and oxygen apart._

The material of the electrodes matters. Platinum and gold are not attacked and give off both gases. Graphite, the lead of a pencil, also gives off a gas at each electrode, though it slowly wears away. In Nicholson and Carlisle's tube of water, a brass wire tarnished where platinum gave off gas. Industrial alkaline cells have used iron, steel and nickel electrodes; nickel is among the metals that best resist the alkali. A dissolved chloride, such as table salt, gives chlorine, a toxic gas, at the positive electrode in place of oxygen.

Industrial electrolysers come in three main kinds. Alkaline cells use a solution of potassium or sodium hydroxide with a porous separator. Proton exchange membrane cells use a thin solid plastic that lets only hydrogen ions through. Solid oxide cells use a ceramic that conducts oxygen ions and run at very high temperatures, where heat from another source can replace part of the electricity.

## How to do it

![Two pencils sharpened at both ends pushed through a card laid over a glass of water, their lower tips in the liquid and their upper tips clipped to a 9-volt battery, with fine bubbles rising from both leads](https://lastcodex.org/_astro/v1.D25oUcAP_1nLWzr.webp)
_Two pencil leads and a 9-volt battery are enough to split water; the bubbles are thicker on the negative lead._

You need two wooden pencils, a sharpener, a stiff card, two crocodile-clip leads, a 9-volt battery, a glass of water and a little Epsom salt (magnesium sulfate). Use Epsom salt rather than table salt, which would give off chlorine.

Sharpen both pencils at both ends so the graphite shows. Dissolve the Epsom salt in the water. Push the pencils through the card and lay the card on the glass so the lower tips are in the water and do not touch. Clip one lead from each battery terminal to the upper tip of a pencil.

Fine bubbles rise from both leads, more of them on the pencil connected to the negative terminal: that is the hydrogen. Swap the two clips on the battery and the thicker stream moves to the other pencil. Watch for a few minutes, then unclip the battery. The pencil tips slowly wear away as they work.

> **Safety.** Hydrogen mixed with air explodes when lit and burns with an almost invisible flame. Keep flames and sparks away from the glass and let the bubbles escape: never catch them in a tube or a closed container.

## History and evolution

![A large frictional electrical machine of the late 18th century: a glass disc turned by a crank between leather rubbers, a brass conductor on glass legs, and a battery of Leyden jars standing in a wooden box beside it](https://lastcodex.org/_astro/v3.vh4wKIcS_Z7mJHM.webp)
_The decomposition of water in 1789 used the sparks of a frictional machine charging Leyden jars._

In 1789 two Dutch chemists, the Amsterdam merchant Adriaan Paets van Troostwijk and the physician Jan Rudolph Deiman, reported in the Journal de physique that they had turned water into "inflammable air" and "vital air", hydrogen and oxygen, with electric discharges. They sent through water the discharges of a large frictional machine, stored in [Leyden jars](/en/inventions/capacitor/). The instrument maker John Cuthbertson built their apparatus. The amounts of gas were very small, and the historian E. L. Scott notes that they could not show conclusively which gases they had. With Cuthbertson, the English physician George Pearson repeated the work in the 1790s and gave a more convincing proof. In Haarlem, Martinus van Marum designed an apparatus in 1791 to show the reverse at Teylers Museum: hydrogen and oxygen, lit by electric sparks in a glass flask, formed water, and the gases combined two volumes to one.

The [battery](/en/inventions/battery/) changed the scale of the experiment. Alessandro Volta described his pile in 1800, and a few weeks later William Nicholson and Anthony Carlisle connected a pile of 36 pairs of half-crowns and zinc discs, separated by pasteboard, to two brass wires in a tube of water. Hydrogen bubbled from one wire while the other tarnished. With platinum wires they got both gases.

By 1902 more than 400 industrial water electrolysers were at work. Some made hydrogen by electrolysing a solution of caustic soda between iron electrodes. The alkaline cell is still the classic electrolyser. Membrane cells and high-temperature ceramic cells came later, and electrolysers now range from units the size of an appliance to plants connected directly to a power station.

## Key facts

- Decomposition by electric discharges: 1789, Paets van Troostwijk and Deiman, with a frictional machine and Leyden jars
- Decomposition with a steady current: 1800, Nicholson and Carlisle, with a pile of 36 pairs of half-crowns and zinc discs
- Volume of the gases: About twice as much hydrogen as oxygen

## Requires

- [Capacitor](https://lastcodex.org/en/inventions/capacitor/): Holding electric charge between two plates (1745)
- [Glass](https://lastcodex.org/en/inventions/glass/): Melted sand you can see through (c. 2,500 BCE)
- [Drawing iron wire by hand](https://lastcodex.org/en/inventions/wire-drawing/): A steel drawplate and tongs turn soft iron rods into wire (c. 1100)

## Leads to

- [Hydrogen fuel cell](https://lastcodex.org/en/inventions/hydrogen-fuel-cell/): Electricity from hydrogen and oxygen (1838)

## Sources

- [A. Paets van Troostwijk and J. R. Deiman, Lettre à M. de la Métherie sur une manière de décomposer l'eau en air inflammable et en air vital, Observations sur la physique 35, part 2 (November 1789), 369–378](https://archive.org/details/observationsetm35pari), Journal de physique, scanned by the Internet Archive
- [Troostwijk, Adriaan Paets van](https://www.encyclopedia.com/science/dictionaries-thesauruses-pictures-and-press-releases/troostwijk-adriaan-paets-van), Complete Dictionary of Scientific Biography, via Encyclopedia.com
- [Pearson, George (entry by E. L. Scott)](https://www.encyclopedia.com/science/dictionaries-thesauruses-pictures-and-press-releases/pearson-george), Complete Dictionary of Scientific Biography, via Encyclopedia.com
- [G. Pearson, Experiments and observations, made with the view of ascertaining the nature of the gaz produced by passing electric discharges through water, Philosophical Transactions of the Royal Society 87 (1797), pp. 142–158](https://doi.org/10.1098/rstl.1797.0008), Royal Society
- [Verbrandingstoestel voor waterstof, 1790–1791 (FK 0219)](https://teylersmuseum.nl/nl/ontdek/topstukken/instrumenten/fk-0219/verbrandingstoestel-voor-waterstof), Teylers Museum, Haarlem
- [J. W. van Spronsen, Historie van de scheikunde in Europese musea (1973), pp. 36–37: Van Marum's combustion apparatus for hydrogen and oxygen, 1791, spark between platinum electrodes, half a volume of oxygen](https://chg.kncv.nl/l/library/download/urn:uuid:de11d126-538d-4fd3-a5d7-4b434e595d5f/spronsen-chem%2Bhist%2Bgroep,%2Bhistorie%2Bvan%2Bde%2Bscheikunde%2Bin%2Beuropese%2Bmusea%2B(1973)%2Bkopie.pdf?ext=.pdf&format=save_to_disk), Rijksmuseum voor de Geschiedenis der Natuurwetenschappen, Leiden (Mededeling 141), via KNCV Werkgroep Historie
- [Grote elektriseermachine met Leidse flessen (FK 0508)](https://teylersmuseum.nl/nl/ontdek/topstukken/instrumenten/fk-0508/grote-elektriseermachine-met-leidse-flessen), Teylers Museum, Haarlem
- [W. Nicholson, Account of the new Electrical or Galvanic Apparatus of Sig. Alex. Volta, and Experiments performed with the same, Journal of Natural Philosophy, Chemistry and the Arts 4 (July 1800)](http://knowledge.electrochem.org/estir/hist/hist-38-Nicholson-dl.pdf), Electrochemical Society, ESTIR Historic Publications in Electrochemistry
- [Electrolysis (1911 Encyclopædia Britannica)](https://en.wikisource.org/wiki/1911_Encyclop%C3%A6dia_Britannica/Electrolysis), Encyclopædia Britannica, 11th edition, transcribed on Wikisource
- [Hydrogen (1911 Encyclopædia Britannica)](https://en.wikisource.org/wiki/1911_Encyclop%C3%A6dia_Britannica/Hydrogen), Encyclopædia Britannica, 11th edition, transcribed on Wikisource
- [Hydrogen Production: Electrolysis](https://www.energy.gov/cmei/fuels/hydrogen-production-electrolysis), U.S. Department of Energy, Hydrogen and Fuel Cell Technologies Office
- [Safe Use of Hydrogen](https://www.energy.gov/cmei/fuels/safe-use-hydrogen), U.S. Department of Energy, Hydrogen and Fuel Cell Technologies Office
- [Electrolysis](https://www.britannica.com/science/electrolysis), Encyclopaedia Britannica
- [Nicholson und Carlisle: Wasserzersetzung mit der Voltasäule (pile of 36 pairs of half-crowns, zinc and pasteboard; brass and platinum wires)](https://www.uni-ulm.de/fileadmin/website_uni_ulm/nawi.inst.251/Didactics/Geschichte_der_Elektrochemie/modern/nichol3.html), Universität Ulm, Didaktik der Chemie, Geschichte der Elektrochemie
- [D. M. F. Santos, C. A. C. Sequeira and J. L. Figueiredo, Hydrogen production by alkaline water electrolysis, Química Nova 36 (2013), pp. 1176–1193](https://www.scielo.br/j/qn/a/KyQvF9DMHK6ZJXyL5zQNy7N/?lang=en), Sociedade Brasileira de Química, via SciELO
- [M. Carmo, Alkaline water electrolysis: a quick history of water electrolyzers (Liquid Alkaline Workshop, January 2022)](https://www.energy.gov/sites/default/files/2022-02/2-Intro-Liquid%20Alkaline%20Workshop.pdf), U.S. Department of Energy, Hydrogen and Fuel Cell Technologies Office (presentation by Nel Hydrogen)
- [Electrolysis of Water (demonstration with a 9-volt battery and Epsom salt; pencil variant)](https://highschoolenergy.acs.org/how-do-we-use-energy/electrolysis-of-water.html), American Chemical Society, Energy Foundations for High School Chemistry
- [Pencil Electrolysis (enrichment activity: 9-volt battery, pencils sharpened at both ends, Epsom salt solution)](https://www.acs.org/content/dam/acsorg/education/outreach/kidszone/pencil-electrolysis.pdf), American Chemical Society, Kids Zone outreach
- [Microscale chemistry experiments, Part 1, Experiment 3: electrolysis of Na2SO4 solution with carbon electrodes](https://microscale-exp.csj.jp/MCEexperiments_eng.html), The Chemical Society of Japan

Fact-checked on 2026-10-22.

---

The Last Codex · https://lastcodex.org/en/inventions/water-electrolysis/ · © The Last Codex. Texts, plates and figures: CC BY-NC-ND 4.0.
