The membrane potential arises from separation of charges across the plasma membrane due to unequal distribution of ions such as sodium, potassium, and chloride between the intracellular and extracellular fluids. Nerve and muscle cells have the greatest membrane potential due to their ability to generate rapid changes in potential when stimulated. The resting membrane potential results from small passive leak of potassium out of the cell, generating a potential of around -70 mV. An action potential is initiated when the membrane potential surpasses the threshold, causing voltage-gated sodium channels to open and allow sodium to rush in, rapidly depolarizing the membrane before voltage-gated potassium channels open to repolarize it.