The potential difference is calculated by subtracting this decrease from the cell's energy. This result gives a relation between EMF and potential difference or terminal voltage. The terminal voltage of a cell equals the emf of the cell only if the internal resistance is zero and the circuit is open.