An action potential involves Na+ moving inside the cell and K+ moving outside the cell.
In the resting state of a nerve cell membrane, both the Na and K gates are closed and equilibrium concentrations are maintained across the membrane. Inside the cell, the K+ concentration is higher, outside the cell, the Na+ concentration is higher.