How batteries work

A course in nineteen chapters and a lab handbook

How batteries work

The electrochemistry of lithium-ion cells, from first principles to the laboratory.

I spent my doctoral years building cells like the ones in this course. This is the explanation I wish someone had given me at the start. Part I builds the cell at rest, from two charges in empty space to the energy a cell can hold. Part II sets it to work, Part III looks inside it, Part IV surveys the materials it is made of, and Part V follows the ways cells age, fail and are recycled. The lab handbook then shows how all of this is measured. Every chapter is built around figures you can play with. Every factual statement was checked against a textbook or a peer-reviewed article, listed at the end of the chapter that uses it; every curve is computed from the equation in its source, and every figure can show you what it is based on. Nothing here is experimental data.

A lithium-ion cell in motion: electrons run through an external wire and light a lamp while a lithium ion leaves the graphite, crosses the electrolyte and enters the positive host; a strip below shows the potential jumping at the two electrodes. The five chapters of Part I are tagged on the parts they explain.
The course in one cell. The numbered tags are the five chapters of Part I: 0 the field in the electrolyte that pushes the ion, 1 the wire and the lamp, 2 the parts of the cell, 3 the voltage between them, 4 the energy the lamp gets. The two electrodes you choose in chapter 3 appear here and travel with you through the course. Schematic, not experimental data.
  • 19chaptersfrom the electron to the recycled cell
  • 6lab pagesthe methods behind every number
  • 134live figuresevery one computed from its source
  • 63sourcestextbooks and peer-reviewed articles
  • 8hoursto read at the Teach me level

The chapters

Read them in order: each chapter uses only what the chapters before it have built. Each card gives the question the chapter answers and an estimate of the reading time at the “Teach me” level.

How to read this course

Three reading levels

Just show me keeps the questions, the figures and the one-line answers. Teach me adds the full explanation, with the “Go deeper” panels and the mathematics folded away until you open them. I want the equations opens every fold. The choice is in the contents panel of every chapter, and the course remembers it.

Figures you can play with

Most figures have sliders, buttons or a play control. Move them: each figure is computed from the equation in its source, and its “Source” toggle names the figure or equation it is drawn from. In chapter 3 you choose the two electrodes of your own cell; the course remembers them and uses them in the later figures.

Finding your way

The Contents button at the top of every page lists the figures and sections of the chapter you are reading and the whole course. Search finds a word in every chapter. On a keyboard, t opens the contents, / the search, and ← → move to the previous or next chapter. A link to a figure in another chapter leaves a button to bring you back.

For reference

An index of terms, each with the sentence that introduces it; the references of the whole course, with the chapters that rest on each one; the list of figures; and the equations of every chapter on one page.

Cite this course

Using this course in teaching, a thesis or an article? Cite it as follows; the date is the last update of the course.

Shyma Sajeevan, A. (2026). How batteries work: The electrochemistry of lithium-ion cells, from first principles to the laboratory. https://asajeevan.github.io/batteries/

↑