The nerve has a resting membrane potential which is a difference in charge The major ion contributing to this RMP is the because it is able to across the membrane, down its electrochemical gradient. As it does so, it leaves behind , and this results in the difference in charge.
