The Nernst equation is used to calculate the potential of an electrochemical cell at non-standard conditions.