EMF, internal resistance and power

A battery's EMF is the energy it gives each coulomb, but its own internal resistance takes $Ir$ of it, so the terminal voltage sags as the current grows; every element converts energy at the rate $P = IV$, which is $I^2R$ in a resistor.

From Physics 2.