ChemistryAdvancedExperiment simulation~20 min

Electrochemistry: Galvanic Cells and Electrolysis

A battery turns a chemical reaction into electricity; electrolysis does the opposite and uses electricity to force a reaction. Both are redox reactions with the oxidation and reduction pulled apart into two electrodes. Build a cell from two metals, light a bulb with it, then switch on a power supply and split water into hydrogen and oxygen.

Open circuit
Cell type

A galvanic cell makes electricity from a reaction; an electrolytic cell uses electricity to drive one.

0
0
Connect

With the bulb, current flows and the cell slowly runs down (1 s = 1 hour).

Key

  • Electron in the wire
  • Metal ion (positive) in solution
  • Negative ion in solution
  • Salt bridge: K⁺ (purple) and NO₃⁻ (grey)
—
—
—
—
—
—
—
—
—
—
—
—

Cell voltage over time

The cell voltage against time in hours while the bulb is connected.

    How to use this simulator

    1. In Galvanic mode, choose a metal for each electrode. The simulator works out which one is the anode and which the cathode, and the voltmeter shows the cell voltage.
    2. Switch Connect to Light bulb and press Start. Watch electrons (yellow) flow through the wire, ions move in the salt bridge, the electrodes change mass and the voltage graph slowly fall.
    3. Change the concentrations to see how they shift the voltage.
    4. Switch to Electrolytic, choose a solution and change the power supply voltage. Below the onset voltage nothing happens; above it, products build up in proportion to the charge passed.
    5. Click the electrodes, salt bridge, meter or power supply for explanations. Fresh electrodes and solutions starts the current cell again; Reset restores everything.

    Two kinds of electrochemical cell

    In a redox reaction, electrons pass from a reducing agent to an oxidizing agent. If the two are put in separate containers joined by a wire, the electrons must travel through the wire: an electric current. Agalvanic (or voltaic) cell uses a reaction that happens by itself to produce electricity. Anelectrolytic cell uses electricity from a power supply to drive a reaction that would not happen by itself. In both, oxidation happens at the anode and reduction at the cathode.

    Inside a galvanic cell

    The classic example is the Daniell cell: a zinc electrode in zinc sulfate solution and a copper electrode in copper(II) sulfate solution.

    Anode (oxidation): Zn → Zn²⁺ + 2e⁻Cathode (reduction): Cu²⁺ + 2e⁻ → Cu

    Zinc atoms leave the anode as ions, and the electrons they leave behind make it the negative electrode. The electrons flow through the external circuit to the copper cathode, the positive electrode, where copper ions pick them up and are deposited as copper. Inside the cell, the current is carried by ions. Thesalt bridge, a tube of salt solution or gel, lets negative ions drift towards the anode and positive ions towards the cathode, keeping both solutions neutral. Electrons never travel through the solutions.

    Electrode potentials and cell voltage

    Each half-cell has a standard reduction potential, E°, measured against a standard hydrogen electrode at 25 °C with 1 mol/L solutions. The more negative E° is, the more easily the metal gives up electrons. The half-cell with the lower potential becomes the anode, and the cell voltage is:

    E°cell = E°cathode − E°anode
    Half-reactionE° (V)
    Mg²⁺ + 2e⁻ → Mg−2.37
    Zn²⁺ + 2e⁻ → Zn−0.76
    Fe²⁺ + 2e⁻ → Fe−0.44
    Pb²⁺ + 2e⁻ → Pb−0.13
    Cu²⁺ + 2e⁻ → Cu+0.34
    Ag⁺ + e⁻ → Ag+0.80

    For zinc and copper, E°cell = 0.34 − (−0.76) = 1.10 V. Metals far apart in the list make bigger voltages. Note that E° does not depend on how many electrons are involved: the silver half-reaction is not doubled when it is balanced.

    Why batteries run down

    The voltage also depends on concentration, through the Nernst equation. At 25 °C, for a metal ion of charge n:

    E = E° + (0.0257 / n) × ln[Mⁿ⁺]

    As the cell works, cathode ions are used up and anode ions build up, so the two electrode potentials move closer and the voltage falls. When the reaction reaches equilibrium, the voltage is zero: the battery is flat. The simulator shows this on the voltage graph.

    Electrolysis

    In electrolysis, a power supply pushes electrons into the cathode, which is nownegative, and pulls them from the anode, which is positive. Positive ions move to the cathode and are reduced; negative ions or water molecules are oxidized at the anode. The supply must provide at least the cell’s reversed voltage, plus extra “overpotential” to make the reactions go at a useful rate. Water needs at least 1.23 V to split, but in practice about 1.7 V or more.

    How much product? Faraday’s law

    Every electron passed reduces or oxidizes a fixed amount of substance. One mole of electrons carries 96,485 coulombs, the Faraday constant F.

    charge Q = current I × time tmoles of product = Q ÷ (z × F)

    Here z is the number of electrons per particle of product (2 for Cu²⁺ → Cu or for H₂, 4 for O₂). That is why electrolysis of water gives twice the volume of hydrogen as oxygen.

    Galvanic vs electrolytic

    Galvanic cellElectrolytic cell
    EnergyChemical → electricalElectrical → chemical
    ReactionSpontaneousNon-spontaneous (driven)
    AnodeOxidation, negativeOxidation, positive
    CathodeReduction, positiveReduction, negative
    ExampleBatteries, fuel cellsElectroplating, splitting water

    Real-world applications

    • Batteries, from alkaline cells to the lithium-ion cell in your phone, are galvanic cells; recharging runs them as electrolytic cells.
    • Electroplating coats objects in chromium, nickel, silver or gold.
    • Copper refining dissolves impure copper anodes and deposits pure copper on the cathode.
    • Aluminium is extracted from its molten oxide by electrolysis.
    • Hydrogen for fuel can be made by electrolysis of water using renewable electricity.
    • Corrosion protection: blocks of magnesium or zinc are bolted to ships and pipelines, so that they corrode instead of the steel.

    Common misconceptions

    • “The anode is always positive.” It is negative in a galvanic cell and positive in an electrolytic cell; it is always where oxidation happens.
    • “Electrons flow through the salt bridge or the solution.” Ions carry the current there; electrons only travel through the wires and electrodes.
    • “A battery stores electricity.” It stores chemicals that react to produce electricity.
    • “Doubling a half-equation doubles E°.” Electrode potentials do not depend on the amounts written.

    What the model simplifies

    Standard electrode potentials and the Faraday constant are real values, and the Nernst equation is applied with concentrations in place of activities, which is only approximate at high concentrations. The internal resistance (4 Ω), the bulb (6 Ω), the 100 mL half-cells, the 20 g electrodes and the electrolysis onset voltages are illustrative. Time is speeded up (1 s = 1 hour for the galvanic cell, 1 minute for electrolysis), and the drawn electrode sizes exaggerate mass changes so they can be seen. Real magnesium also reacts slowly with water, chlorine is partly dissolved in the solution, and real cells slow down because of overpotentials and the time ions take to reach the electrodes. The ions and electrons are a handful of symbolic dots, not to scale.

    Key takeaways

    • Electrochemical cells separate oxidation (at the anode) from reduction (at the cathode).
    • In a galvanic cell a spontaneous reaction drives electrons from anode to cathode through the external wire.
    • E°cell = E°cathode − E°anode; the voltage falls as the concentrations change.
    • Ions, not electrons, carry the charge through solutions and the salt bridge.
    • Electrolysis uses electricity to drive non-spontaneous reactions, and the amount of product is proportional to the charge passed.

    Knowledge check

    Electrochemistry: Galvanic Cells and Electrolysis: test your understanding

    Answer each question to get instant feedback and an explanation. Use the simulator to check your thinking.

    10 questions3 basic4 intermediate3 advanced

    0 of 10 answered

    1. Q1BasicIn any electrochemical cell, galvanic or electrolytic, what happens at the anode?
      Show answer

      Answer: B. Oxidation

      The anode is always where oxidation (loss of electrons) happens, and the cathode is always where reduction happens. Only the signs of the electrodes differ between the two kinds of cell.

    2. Q2BasicIn a zinc–copper (Daniell) cell, which way do electrons flow through the external wire?
      Show answer

      Answer: B. From zinc to copper

      Zinc is oxidized (Zn → Zn²⁺ + 2e⁻), releasing electrons that travel through the wire to the copper electrode, where Cu²⁺ ions gain them.

    3. Q3IntermediateWhat is the job of the salt bridge?
      Show answer

      Answer: B. To complete the circuit by letting ions move, keeping both solutions electrically neutral

      Electrons travel only through the wire. In the solutions and the salt bridge, the current is carried by ions: anions move towards the anode beaker and cations towards the cathode beaker. Without the bridge, charge would build up and the reaction would stop almost immediately.

    4. Q4IntermediateUsing standard reduction potentials Cu²⁺/Cu = +0.34 V and Zn²⁺/Zn = −0.76 V, what is the standard voltage of the zinc–copper cell?
      Show answer

      Answer: C. 1.10 V

      E°cell = E°cathode − E°anode = 0.34 − (−0.76) = 1.10 V. The simulator’s voltmeter reads 1.10 V when both solutions are 1 mol/L.

    5. Q5AdvancedYou build a cell from magnesium (E° = −2.37 V) and silver (E° = +0.80 V). Which statement is correct?
      Show answer

      Answer: B. Magnesium is the anode, and the standard voltage is about 3.17 V

      The metal with the more negative electrode potential gives up electrons more readily, so magnesium is oxidized at the anode. E°cell = 0.80 − (−2.37) = 3.17 V. The bigger the difference in reactivity, the bigger the voltage.

    6. Q6AdvancedWhy does the simulated cell’s voltage slowly fall while the bulb is lit?
      Show answer

      Answer: B. The reaction uses up cathode ions and builds up anode ions, so the cell moves towards equilibrium and the voltage drops

      The Nernst equation links the voltage to the concentrations. As Cu²⁺ is used up and Zn²⁺ builds up, the driving force decreases. A completely “flat” battery is one whose reaction has reached equilibrium.

    7. Q7BasicWhat is the main difference between a galvanic cell and an electrolytic cell?
      Show answer

      Answer: A. A galvanic cell uses a spontaneous reaction to produce electricity; an electrolytic cell uses electricity to drive a non-spontaneous reaction

      A battery is a galvanic cell. Electrolysis, used for splitting water, electroplating and extracting reactive metals such as aluminium, needs an external power supply.

    8. Q8IntermediateIn the electrolysis of water, why is the volume of hydrogen twice the volume of oxygen?
      Show answer

      Answer: B. Making one H₂ molecule needs 2 electrons, but one O₂ molecule releases 4, so the same charge makes twice as many H₂ molecules

      Cathode: 2H⁺ + 2e⁻ → H₂. Anode: 2H₂O → O₂ + 4H⁺ + 4e⁻. Every 4 electrons give 2 H₂ and 1 O₂, matching the formula H₂O: two hydrogen atoms for every oxygen atom.

    9. Q9IntermediateIn an electrolytic cell, which electrode is connected to the negative terminal of the power supply, and what happens there?
      Show answer

      Answer: B. The cathode; reduction (positive ions gain electrons)

      The power supply pushes electrons into the cathode, so it is negative and positive ions (cations) are attracted to it and reduced. In a galvanic cell the signs are reversed: the cathode is positive.

    10. Q10AdvancedA current of 0.50 A flows through copper(II) sulfate solution for 1930 s. How many moles of copper are deposited? (F = 96,485 C/mol; Cu²⁺ + 2e⁻ → Cu)
      Show answer

      Answer: B. 0.0050 mol

      Charge Q = I × t = 0.50 × 1930 = 965 C, which is 965 ÷ 96,485 = 0.010 mol of electrons. Each Cu²⁺ needs 2 electrons, so 0.0050 mol of copper (about 0.32 g) is deposited. This is Faraday’s law.

    References and further reading

    1. Flowers, P., et al. (2019). Chemistry 2e, Chapter 17: Electrochemistry (17.2 Galvanic Cells; 17.3 Electrode and Cell Potentials; 17.4 Potential, Free Energy, and Equilibrium; 17.7 Electrolysis). OpenStax. openstax.org (opens in a new tab)
    2. Flowers, P., et al. (2019). Chemistry 2e, Appendix L: Standard Electrode (Half-Cell) Potentials. OpenStax. openstax.org (opens in a new tab)
    3. Bard, A. J., Parsons, R., & Jordan, J. (1985). Standard Potentials in Aqueous Solution. IUPAC / Marcel Dekker.
    4. Bard, A. J., & Faulkner, L. R. (2001). Electrochemical Methods: Fundamentals and Applications (2nd ed.). Wiley.

    This simulator is a simplified educational model. Found an error? Let us know. See our educational disclaimer.