A reference electrode is used in electrochemical cells to provide a fixed potential that can be used to compare the electrode potentials of other electrodes. The reference electrode is typically made of a metal or a metal salt and is used as a point of reference for measuring the electrode potential of the other electrodes in the cell. The use of a reference electrode allows for accurate and consistent measurements of electrode potentials in electrochemical cells.