Nerve cells transmit electrical signals through action potentials. Action potentials are brief changes in the electrical potential across the cell membrane that are triggered when the membrane potential reaches a threshold. They are generated by the rapid influx of sodium ions through voltage-gated sodium channels, which causes further opening of these channels in a positive feedback loop. After peaking, the membrane repolarizes as sodium channels inactivate and potassium channels open, restoring the ion gradients. Action potentials propagate along axons without loss of strength through the active opening of sodium channels just beyond the leading edge of depolarization.