Skip to main content
Virtual Laboratory
Chemistry Simulations Free · No Account Free & source-available · CC BY-NC-SA 4.0

Hydrogen–Oxygen Fuel Cell

A hydrogen–oxygen fuel cell converts chemical energy directly into electricity by supplying H₂ and O₂ continuously to porous platinum-carbon electrodes. Its overall reaction, 2H₂(g) + O₂(g) → 2H₂O(l), has a standard potential of 1.229 V at 25 °C and achieves 50%–75% efficiency. Switch acidic PEM or alkaline KOH media, adjust load, and clear electrode flooding below.

Hydrogen–Oxygen Fuel Cell — 3D Bench Preview

Interactive 3D Lab Preview

Runs right on this page in fullscreen · No account required

  • Explain how a fuel cell continuously receives external fuel and oxidant at porous platinum-carbon (Pt/C) gas–liquid–solid three-phase boundaries to convert chemical energy directly into electricity at roughly 50%–75% efficiency (OpenStax Chemistry 2e, §17.5)
  • Write balanced anode and cathode half-reactions for both acidic (H₂SO₄ / proton-exchange membrane) and alkaline (KOH) electrolytes without placing OH⁻ in acidic equations or free H⁺ in alkaline equations
  • Trace the closed circuit—electrons moving through the external wire and ions migrating through the internal electrolyte—and predict why continuous water production slowly raises bulk pH in an acidic cell and lowers it in an alkaline cell

Press Esc or your browser Back button anytime to return to the guide.

Principle, Mechanism & Key Concepts

Hydrogen–Oxygen Fuel Cell

What You Will Investigate
Goal 01

Explain how a fuel cell continuously receives external fuel and oxidant at porous platinum-carbon (Pt/C) gas–liquid–solid three-phase boundaries to convert chemical energy directly into electricity at roughly 50%–75% efficiency (OpenStax Chemistry 2e, §17.5)

Goal 02

Write balanced anode and cathode half-reactions for both acidic (H₂SO₄ / proton-exchange membrane) and alkaline (KOH) electrolytes without placing OH⁻ in acidic equations or free H⁺ in alkaline equations

Goal 03

Trace the closed circuit—electrons moving through the external wire and ions migrating through the internal electrolyte—and predict why continuous water production slowly raises bulk pH in an acidic cell and lowers it in an alkaline cell

Burning hydrogen in oxygen and running a hydrogen fuel cell both produce water. Why does igniting the mixed gases release a loud pop and intense heat, whereas feeding them into a clear acrylic fuel cell stack quietly spins a DC fan?

Spacecraft need both reliable electricity and clean drinking water—and a hydrogen–oxygen fuel cell provides both. By separating oxidation and reduction across a proton-exchange membrane, the porous Pt/C anode splits H₂ into protons and electrons without flame. Electrons are forced through the external copper wire to power instruments and spin the fan before recombining with O₂ at the cathode to condense as pure water droplets, more than doubling the efficiency of an internal combustion engine.

Hydrogen and oxygen need no open flame: electrons travel along the external copper wire while ions cross the internal membrane. The overall reaction always produces pure water, yet the electrolyte medium dictates both half-reactions and the direction of bulk pH drift.
Three-Chamber H₂–O₂ Fuel Cell & Carrier Pathways (Illustrative)Loade⁻ flow →→ e⁻ wire onlyH₂ ChamberFuel inAnode (−) Pt/CElectrolyte / Ion MembraneAcidic: H⁺ moves to cathodeAlkaline: OH⁻ moves to anodeIons in cell only · H₂O dilutesCathode (+) Pt/CO₂ ChamberOxidant inDrain H₂OAcidic vs. Alkaline Half-Reactions & pHA. Acidic H₂SO₄ / PEM (init. pH 1.00, preset)Anode (−): H₂ − 2e⁻ → 2H⁺Cathode (+): O₂ + 4e⁻ + 4H⁺ → 2H₂OH₂O dilutes acid ⇒ [H⁺]↓, bulk pH risesB. Alkaline KOH (init. pH 13.00, preset)Anode (−): H₂ − 2e⁻ + 2OH⁻ → 2H₂OCathode (+): O₂ + 4e⁻ + 2H₂O → 4OH⁻H₂O dilutes KOH ⇒ [OH⁻]↓, bulk pH falls
2D Visual Guide & Diagram — Hydrogen–Oxygen Fuel Cell

Cause-and-Effect Chain

01 Three-Phase H₂ Dissociation
Condition: Feed H₂ into the left chamber and O₂ into the right chamber across porous Pt/C electrodes

Platinum nanoparticles lower the activation energy to split H—H bonds, building an open-circuit potential of about 1.18 V in this simulation (lesson setting, below the 1.229 V standard thermodynamic emf at 25 °C)

→ Reactants are supplied externally rather than stored in the electrodes, so power continues as long as gas flows
02 Electrons in Wire, Ions in Cell
Condition: Close the porcelain-base knife switch to connect the DC load fan

Electrons leave the anode through the copper wire to do work at the load; inside the cell, cations migrate toward the cathode and anions migrate toward the anode

→ Electrons never enter the solution and ions never enter the wire; fan speed rises with power P = UI
03 Medium Sets Half-Reactions
Condition: Switch between acidic H₂SO₄ (PEM) and alkaline KOH electrolyte

Acidic solution cannot sustain abundant OH⁻, whereas in alkaline KOH any H⁺ formed at the anode is neutralized immediately by OH⁻ into water

→ The overall reaction stays 2H₂ + O₂ → 2H₂O, but both electrode half-reactions change completely with the medium
04 Dilution Drives Opposite pH Drift
Condition: Run sustained high-current discharge so liquid water forms and collects at the chamber base

Net product H₂O increases solution volume, diluting [H⁺] in the acidic cell and diluting [OH⁻] in the alkaline cell

→ Under the lesson settings, bulk pH rises gradually from 1.00 in acid and falls from 13.00 in alkali (illustrative trend); timely drainage prevents electrode flooding

Core Formulas & Quantitative Relations

Overall Hydrogen–Oxygen Fuel Cell Reaction (All Media)
2H₂(g) + O₂(g) → 2H₂O(l) (4 mol e⁻ transferred per 2 mol H₂O formed)

Whether the electrolyte is dilute sulfuric acid, aqueous potassium hydroxide, or a solid oxide, the overall reaction stays the same (standard thermodynamic emf E° = 1.229 V at 25 °C; this bench uses a 1.18 V open-circuit voltage with polarization as a lesson setting).

Acidic Medium (H₂SO₄ / PEM) Half-Reactions
Anode (−): 2H₂ − 4e⁻ → 4H⁺ ; Cathode (+): O₂ + 4e⁻ + 4H⁺ → 2H₂O

In an acidic medium, balance charge and atoms only with H⁺ and H₂O; do not include OH⁻ in the half-reactions (OpenStax Chemistry 2e, §17.5, Figure 17.14).

Alkaline Medium (Aqueous KOH / NaOH) Half-Reactions
Anode (−): 2H₂ − 4e⁻ + 4OH⁻ → 4H₂O ; Cathode (+): O₂ + 4e⁻ + 2H₂O → 4OH⁻

In an alkaline medium, balance only with OH⁻ and H₂O (Wikipedia: Alkaline fuel cell — Half Reactions). The anode consumes OH⁻ (lowering local pH) while the cathode generates OH⁻ (raising local pH), and net water production dilutes the bulk solution so overall pH drifts downward.

Bulk pH Drift vs. Local Electrode pH Changes and Water Flooding Recovery

Students often confuse local pH shifts right at an electrode surface with bulk pH changes across the well-mixed electrolyte. Separating ion consumption in each half-reaction from net water dilution in the overall equation clarifies both cases (pH values and curve slopes shown are illustrative lesson settings).

  • Bulk electrolyte (overall reaction view): Both cells share the overall reaction 2H₂ + O₂ → 2H₂O, so moles of H₂SO₄ or KOH stay constant while solvent water grows. Starting from the lesson settings, dilution slowly raises acidic bulk pH from 1.00 toward 7 and slowly lowers alkaline bulk pH from 13.00 toward 7.
  • Immediate electrode vicinity (half-reaction view): In an acidic cell, the cathode consumes H⁺ and forms water, so local cathode pH rises. In an alkaline cell, the anode consumes OH⁻ and forms water (local pH drops), while the cathode generates OH⁻ (local pH rises).
  • Water flooding drop-off: Keeping the lower-right drain valve closed lets condensed water block hydrophobic gas pores in the porous electrode, starving the catalyst of gas so terminal voltage U and fan power plunge until you open the drain.
A. Bulk Electrolyte pH–t Drift During Discharge (Illustrative)Neutral pH = 7Alkaline KOH: 13.00 → 12.55 (falls, illus.)Acidic H₂SO₄: 1.00 → 1.45 (rises, illus.)Discharge time t (illustrative: H₂O dilutes electrolyte)B. Electrode Water Flooding & Drain Recovery (Illustrative)Clear 3-phase boundaryPore flooding dropDrain recoveryOperating time t (vertical axis: power output P = UI)

Concept Breakdown

01

How does a fuel cell differ from a dry cell or lead-acid battery, and why can it double the efficiency of a gasoline engine?

Flameless Power Generation: The Porous Pt/C Three-Phase Boundary

Primary and rechargeable batteries seal a fixed supply of reducing and oxidizing agents inside their casing, so they run down until replaced or recharged. In a fuel cell, the porous graphite electrodes coated with platinum nanocatalysts (Pt/C) are not consumed: fuel (such as H₂, CH₄, or CH₃OH) and oxidant (O₂ or air) flow continuously from external tanks while product water exits. According to OpenStax Chemistry 2e (§17.5), heat engines convert chemical energy into heat, mechanical work, and then electricity—losing much of the energy to Carnot thermal limits for an efficiency of only about 20%–25%. By forming a gas–liquid–solid three-phase boundary across hydrophobic gas pores, conductive carbon, and wet electrolyte, a hydrogen fuel cell converts chemical energy directly to electricity at 50%–75% efficiency.

Try in the 3D bench: In Step 1 on the 3D bench, open the left H₂ and right O₂ cylinder valves to watch microbubbles form on the porous electrodes and the voltmeter rise to about 1.18 V (lesson setting). In Step 7, open the 3-Phase Micro chamber to inspect Pt clusters splitting H—H bonds.
02

If the overall reaction is still 2H₂ + O₂ → 2H₂O, why do both electrode half-reactions change when you replace a proton-exchange membrane with KOH solution?

Medium Dictates Half-Reactions: No OH⁻ in Acid, No Free H⁺ in Alkali

In every fuel cell, the electrode fed with fuel (H₂) loses electrons (oxidation) and acts as the negative electrode (anode), while the electrode fed with oxygen (O₂) gains electrons (reduction) and acts as the positive electrode (cathode). However, the electrolyte determines which ions can persist. In dilute sulfuric acid or an acidic PEM, H⁺ produced by H₂ oxidation stays stable and crosses the membrane to the cathode: H₂ − 2e⁻ → 2H⁺ at the anode and O₂ + 4e⁻ + 4H⁺ → 2H₂O at the cathode. Switch to alkaline KOH, and abundant OH⁻ neutralizes any newly formed H⁺ immediately into water, giving H₂ − 2e⁻ + 2OH⁻ → 2H₂O at the anode. At the alkaline cathode, O₂ reacts with water instead of free H⁺: O₂ + 4e⁻ + 2H₂O → 4OH⁻. You can always verify the anode half-reaction by subtracting the cathode half-reaction from the overall equation.

Try in the 3D bench: In Steps 2 and 5, deliberately select the mismatched equation set in acidic and alkaline modes to see why the mismatch warning triggers, then switch to the matching set and compare crimson H⁺ migrating right against emerald OH⁻ migrating left.
03

Can electrons swim through sulfuric acid? Why does prolonged high-power discharge both shift bulk pH and risk stalling the electrodes?

Charge-Carrier Boundaries and Water Management: pH Drift and Flooding

Two distinct charge carriers keep the circuit closed. Free electrons travel strictly through the metallic external circuit—wires, switch, and fan motor—from the anode to the cathode, never entering the electrolyte. Inside the cell or membrane, only directed ion migration conducts charge (cations toward the cathode, anions toward the anode), and ions never enter the metal wire. As the overall reaction generates water, dilution shifts bulk pH in opposite directions under the lesson's preset initial states: acidic H₂SO₄ rises slowly from pH 1.00 and alkaline KOH falls slowly from pH 13.00 (at an accelerated, illustrative dilution rate). In real operation, if excess condensed water is not drained, a liquid film blocks the porous catalyst's gas channels—a fault called water flooding—causing current and fan speed to plunge until drainage restores gas flow.

Try in the 3D bench: In Steps 4 and 6, switch to High Power to watch condensed droplets fall from the lower-right drain into the beaker while live pH drifts. In Step 8, complete the 18 s troubleshooting challenge (lesson setting) to fix oxygen starvation, electrode flooding, and an equation mismatch at once.

Reference & Comparison Table

Comparison of hydrogen–oxygen fuel cell behavior in acidic (PEM / H₂SO₄) and alkaline (KOH) media (initial pH and drift ranges are illustrative lesson settings)
Comparison ItemAcidic Medium (H₂SO₄ / PEM)Alkaline Medium (Aqueous KOH)Conservation & Checking Notes
Anode (−) half-reaction (H₂ oxidation)H₂ − 2e⁻ → 2H⁺H₂ − 2e⁻ + 2OH⁻ → 2H₂ONo OH⁻ in acidic equations; no free H⁺ in alkaline equations
Cathode (+) half-reaction (O₂ reduction)O₂ + 4e⁻ + 4H⁺ → 2H₂OO₂ + 4e⁻ + 2H₂O → 4OH⁻Exactly 4 mol e⁻ transferred per 1 mol O₂ consumed
External electron flowAnode (H₂) → wire & load → Cathode (O₂)Anode (H₂) → wire & load → Cathode (O₂)Electrons stay in the wire; direction does not depend on pH
Main internal migrating ionH⁺ crosses membrane left (anode) → right (cathode)OH⁻ migrates right (cathode) → left (anode)Cations move to cathode, anions to anode; ions stay in cell
Bulk pH trend during discharge (illustrative)Rises slowly (init. 1.00, Step 4 target ~1.12, high-water illus. up to 1.45+)Falls slowly (init. 13.00, Step 6 target ~12.88, high-water illus. down to 12.55−)Net H₂O product dilutes acid or base (model limits 1.47 / 12.53)
Common Misconceptions

Common Misconceptions

Do electrons leave the negative electrode, pass through the fan to the positive electrode, and then swim back through the electrolyte solution?

No. Aqueous electrolytes and ion-exchange membranes conduct ions, not free electrons. Electrons stay strictly inside the external metal wire, while H⁺ or OH⁻ ions carry charge internally through the solution or membrane. Click the e⁻ / Ion Rule button in Step 3 to verify both pathways.

Because the overall reaction only produces water, does the electrolyte pH stay constant while the fuel cell runs?

No—only a neutral salt or non-aqueous solid electrolyte keeps constant pH. In aqueous acid or alkali, continuous water formation dilutes the solute, lowering [H⁺] so acidic pH rises and lowering [OH⁻] so alkaline pH falls. Compare the live pH readouts in Steps 4 and 6 on the 3D bench.

Do hydrogen and oxygen need to be mixed and ignited inside the chamber before a fuel cell can generate current?

No. The membrane keeps H₂ and O₂ strictly separated in opposite chambers. Mixing them over a platinum catalyst would cause direct exothermic combustion or an explosion instead of forcing electrons through the external circuit. Check the separate gas inlets and membrane barrier in Step 1.

If an alkaline KOH fuel cell burns methane (CH₄) or methanol (CH₃OH) instead of hydrogen, should you write CO₂ gas as the anode product?

No. CO₂ is the product in an acidic medium, but in strongly alkaline KOH any CO₂ reacts immediately with excess OH⁻ to form carbonate ions (CO₃²⁻). Therefore, an alkaline carbon-fuel anode equation must end with CO₃²⁻ rather than CO₂. Review medium-driven products in Step 5.

Practice Quiz

Test your understanding with 6 diagnostic questions

Check concepts, graphs, and experimental error reasoning with immediate feedback for every choice.

Embed & Source Availability

Embed this simulation

Paste this iframe snippet into your non-commercial course page or learning platform.

Free & Source-Available (CC BY-NC-SA 4.0)

This simulation is licensed under CC BY-NC-SA 4.0 for non-commercial educational use, embedding, and adaptation with attribution.

Browse All 159 Free Labs →
Sources, Revision & Feedback

Sources, Revision & Feedback

Quiz →