The action potential is the result of ions moving in and out of the cell. Specifically, it involves potassium (K) and sodium (Na) ions. The ions are moved in and out of the cell by potassium channels, sodium channels and the sodium-potassium pump.