Neuron Action Potential
Stimulate a neuron and watch sodium and potassium channels shape the action potential
Interactive simulation
Threshold for this pulse: 6.9 μA/cm²
Gates move 1.00× faster than at 6.3 °C (Q₁₀ = 3)
Second pulse
Channel blocker
Lower graph
Playback
- 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.
- 1A stimulus pushes positive charge into the cell and the membrane depolarises a little.
- 2If it reaches threshold, voltage-gated Na⁺ channels open. Na⁺ flows in, which depolarises the membrane further and opens still more Na⁺ channels.
- 3Within a millisecond the inactivation gate of each Na⁺ channel swings shut, so sodium entry stops even though the voltage is still high.
- 4Voltage-gated K⁺ channels, which open more slowly, let K⁺ flow out and bring the voltage back down.
- 5The 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
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
| Phase | Voltage | Channels | What happens |
|---|---|---|---|
| Resting | about −65 mV | Most Na⁺ and voltage-gated K⁺ channels closed | Leak channels, mostly K⁺, hold the inside negative. The Na⁺/K⁺ pump keeps the concentration gradients in place. |
| Depolarisation | threshold to about +40 mV | Na⁺ activation gates (m) open within a fraction of a millisecond | Na⁺ rushes in down its gradient. Each bit of depolarisation opens more Na⁺ channels: positive feedback. |
| Repolarisation | peak back down towards rest | Na⁺ inactivation gates (h) close; K⁺ gates (n) open | Sodium entry stops and K⁺ flows out, carrying positive charge out of the cell. |
| Hyperpolarisation | below rest, towards −77 mV | K⁺ channels are slow to close | The extra K⁺ conductance pulls the membrane towards EK (−77 mV) before it settles back to rest. |
| Refractory | during and after the spike | Na⁺ channels recovering from inactivation | Absolute: 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
Pufferfish poison
Anti-seizure drugs
Multiple sclerosis
Heart rhythm
Cold and nerves
Practice problems
Problem 1: Potassium equilibrium potential
Show solutionHide solution
EK = 26.7 mV × ln(5 / 140)
ln(5 / 140) = ln(0.0357) = −3.33
EK ≈ −89 mV
Problem 2: Maximum firing rate
Show solutionHide 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?
Show solutionHide 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.