Neuron Action Potential

Stimulate a neuron and watch sodium and potassium channels shape the action potential

Intermediate

Interactive simulation

10 μA/cm²

Threshold for this pulse: 6.9 μA/cm²

1.0 ms
6.3 °C

Gates move 1.00× faster than at 6.3 °C (Q₁₀ = 3)

Second pulse

10.0 ms
10 μA/cm²

Channel blocker

Lower graph

Playback

0.00 ms
Time
0.00 ms
Membrane potential
-65.0 mV
Phase
Rest
Peak voltage
-65.0 mV
Threshold crossed
No
Refractory
None
Second pulse
Off
gNa / gK (mS/cm²)
0.0 / 0.4
  • Membrane potential V
  • m: Na⁺ activation (fast)
  • h: Na⁺ inactivation (1 = not inactivated)
  • n: K⁺ activation (slow)
  • Stimulus pulse

Hodgkin-Huxley squid axon model, integrated with RK4 at a 0.01 ms step. The faint curve ahead of the playhead is where the trace is going. Refractory bands: absolute until 7.0 ms after the first pulse starts (no pulse up to 100 μA/cm² fires), relative until 16.0 ms (a pulse 10% above threshold fires again).

How an action potential works

A neuron at rest is like a charged battery: the inside sits about 65 mV below the outside. Two gradients store the energy. There is more Na⁺ outside the cell and more K⁺ inside, and the membrane at rest lets K⁺ leak out more easily than Na⁺ leaks in.

An action potential is a brief reversal of that voltage, about 100 mV high and one to two milliseconds long, that travels along the axon. In 1952 Alan Hodgkin and Andrew Huxley measured the currents in the giant axon of the squid and wrote down equations that reproduce it. This page integrates their model.

  1. 1
    A stimulus pushes positive charge into the cell and the membrane depolarises a little.
  2. 2
    If it reaches threshold, voltage-gated Na⁺ channels open. Na⁺ flows in, which depolarises the membrane further and opens still more Na⁺ channels.
  3. 3
    Within a millisecond the inactivation gate of each Na⁺ channel swings shut, so sodium entry stops even though the voltage is still high.
  4. 4
    Voltage-gated K⁺ channels, which open more slowly, let K⁺ flow out and bring the voltage back down.
  5. 5
    The K⁺ channels close slowly, so the membrane briefly dips below rest before settling. Until the Na⁺ channels recover, the cell is refractory.

All or nothing

Below threshold the membrane just drifts back to rest. Above it, the spike always reaches about the same height, whatever the size of the stimulus. Neurons encode stimulus strength in how often they fire, not in how tall each spike is.

Key formulas

The membrane equation

C dV/dt = I − ḡNa m³h (V − ENa) − ḡK n⁴ (V − EK) − gL (V − EL)

C
membrane capacitance, 1 μF/cm²
I
injected stimulus current, μA/cm²
ḡNa, ḡK, gL
maximum conductances 120, 36 and 0.3 mS/cm²
ENa, EK, EL
reversal potentials +50, −77 and −54.4 mV

Gating variables

dx/dt = φ [αx(V) (1 − x) − βx(V) x]

x
m, h or n: the fraction of gates of that type in the permissive state
αx, βx
voltage-dependent opening and closing rates, per ms
φ
temperature factor 3^((T − 6.3 °C) / 10)

m is fast and rises with depolarisation. h is slower and falls with depolarisation, which is inactivation. n is slow and rises with depolarisation.

Nernst equation

E = (RT / zF) ln([ion]outside / [ion]inside)

R, F
gas constant and Faraday constant
T
absolute temperature
z
charge of the ion, +1 for Na⁺ and K⁺

Phases of the action potential

PhaseVoltageChannelsWhat happens
Restingabout −65 mVMost Na⁺ and voltage-gated K⁺ channels closedLeak channels, mostly K⁺, hold the inside negative. The Na⁺/K⁺ pump keeps the concentration gradients in place.
Depolarisationthreshold to about +40 mVNa⁺ activation gates (m) open within a fraction of a millisecondNa⁺ rushes in down its gradient. Each bit of depolarisation opens more Na⁺ channels: positive feedback.
Repolarisationpeak back down towards restNa⁺ inactivation gates (h) close; K⁺ gates (n) openSodium entry stops and K⁺ flows out, carrying positive charge out of the cell.
Hyperpolarisationbelow rest, towards −77 mVK⁺ channels are slow to closeThe extra K⁺ conductance pulls the membrane towards EK (−77 mV) before it settles back to rest.
Refractoryduring and after the spikeNa⁺ channels recovering from inactivationAbsolute: no stimulus can fire another spike. Relative: a stronger than normal stimulus can.

Model assumptions

  • A single patch of membrane with the same voltage everywhere (a space-clamped axon), so the spike does not travel.
  • Classic squid giant axon parameters at 6.3 °C, with voltages shifted so that rest is −65 mV.
  • Ion concentrations stay constant: one spike moves only a tiny fraction of the ions in the cell.
  • TTX is modelled as a complete block of Na⁺ channels. TEA blocks 90% of the voltage-gated K⁺ channels; the resting K⁺ leak is TEA-insensitive, so rest stays at −65 mV.
  • A spike is counted when V rises above −20 mV with the Na⁺ conductance larger than the K⁺ conductance. The threshold line is the highest voltage reached by the strongest pulse that does not fire.

Real-world applications

Local anaesthetics

Lidocaine and benzocaine block voltage-gated Na⁺ channels from inside the axon, so pain fibres cannot reach threshold and no signal reaches the brain.

Pufferfish poison

Tetrodotoxin (TTX) plugs the outer mouth of Na⁺ channels. Nerves and muscles stop firing, which is why badly prepared fugu can cause fatal paralysis.

Anti-seizure drugs

Phenytoin and carbamazepine bind preferentially to inactivated Na⁺ channels and slow their recovery, damping the rapid repeated firing of a seizure.

Multiple sclerosis

Loss of myelin exposes K⁺ channels and lets current leak away. 4-aminopyridine, a K⁺ channel blocker, can improve conduction and walking in some patients.

Heart rhythm

Cardiac cells use the same channel families with a long plateau. Class I and III antiarrhythmics act on Na⁺ and K⁺ channels to change refractoriness.

Cold and nerves

Channel gating slows roughly threefold for every 10 °C of cooling, so cold numbs fingers and slows conduction, as the temperature slider shows.

Practice problems

Problem 1: Potassium equilibrium potential

A mammalian neuron at 37 °C has 140 mM K⁺ inside and 5 mM K⁺ outside. What is EK? (RT/F = 26.7 mV at 37 °C.)
Show solution

EK = 26.7 mV × ln(5 / 140)

ln(5 / 140) = ln(0.0357) = −3.33

EK ≈ −89 mV

Problem 2: Maximum firing rate

A neuron has an absolute refractory period of 2 ms. What is the highest rate at which it could possibly fire?
Show solution

At most one spike every 2 ms

1 / 0.002 s = 500 spikes per second

500 Hz (real neurons rarely exceed a few hundred Hz)

Problem 3: Which drug?

After a toxin is applied, a strong stimulus moves the membrane a few mV but never produces a spike. Is the toxin more likely to block Na⁺ or K⁺ channels?
Show solution

The upstroke needs Na⁺ to flow in.

Without K⁺ channels a spike still fires but repolarises slowly.

Na⁺ channels, like TTX. Try it in the simulation.

Spotted a mistake on this page?

Wrong formula, broken animation or confusing wording. Tell us and we will fix it.