Electrochemical Driving Force Calculator

The Electrochemical Driving Force (EDF) is a concept used in electrochemistry to measure the potential difference or driving force for an ion to move across a membrane. It represents the difference between the actual membrane potential and the equilibrium potential for a specific ion species.

The equation for calculating the Electrochemical Driving Force depends on the ionic species and is given as follows:

For cations (+): EDF = Eeq – Vm

For anions (-): EDF = Vm – Eeq


  • EDF represents the Electrochemical Driving Force.
  • Eeq is the Equilibrium Potential for the ion species.
  • Vm is the Membrane Potential.

In the case of cations (+), the EDF is calculated by subtracting the Membrane Potential (Vm) from the Equilibrium Potential (Eeq). This signifies the driving force for cations to move from regions of higher concentration to regions of lower concentration or vice versa.

Similarly, for anions (-), the EDF is calculated by subtracting the Equilibrium Potential (Eeq) from the Membrane Potential (Vm). This represents the driving force for anions to move across the membrane.

The Electrochemical Driving Force is typically expressed in volts (V). In the example code you provided, the calculated EDF is then multiplied by 1000 to convert it to millivolts (mV) for display purposes.