The cell membrane uses ATP to pump sodium ions out of the cell and to pump potassium ions in. A small amount of potassium ions diffuse out of the cell, but gated channels block sodium ions from flowing into the resting neuron.