Hodgkin-Huxley Neuron: Vanilla Simulation

Wed Sep 16 2026

Tweak the capacitance, injected current, ion channel parameters, or even the gating variable functions themselves, and watch the membrane voltage trace, gating variables, and ionic currents update in real time.

Capacitance: 1.00
Injected current slider: 3.00
Injected Current : (time, V, i) => i
The varaibles are: (time, V, slider) => injected current
Precision Level: 6.00
Simulation Time: 50.00
Max compute steps: 10000.00
Sodium Equilibrium Potential: 115.00
Sodium Max Conductance: 120.00
Conductance Coefficient : (s) => Math.pow(s.variables["m"], 3) * s.variables["h"]
Potassium Equilibrium Potential: -12.00
Potassium Max Conductance: 36.00
Conductance Coefficient : (s) => Math.pow(s.variables["n"], 4)
Leak Equilibrium Potential: 10.61
Leak Max Conductance: 0.30
Conductance Coefficient : (s) => 1
Alpha : (u) => .1 * (25 - u) / (Math.pow(Math.E, (25 - u) / 10) - 1)
Beta : (u) => 4 * Math.pow(Math.E, -u / 18)
Alpha : (u) => .01 * (10 - u) / (Math.pow(Math.E, (10 - u) / 10) - 1)
Beta : (u) => .125 * Math.pow(Math.E, -u / 80)
Alpha : (u) => .07 * Math.pow(Math.E, -u / 20)
Beta : (u) => 1 / (Math.pow(Math.E, (30 - u) / 10) + 1)

Voltage Trace

State Variables

Currents (inverted)