Developing high energy density batteries, such as metal–air systems, requires a good understanding of their underlying electrochemical principles.