Home / Science / Ecology and organisms / Neuroscience / Membrane potential calculatorTool #345

Membrane potential calculator: Nernst potentials and the Goldman-Hodgkin-Katz (GHK) equation with I-V curves

Equilibrium (Nernst) potentials for K⁺, Na⁺, Cl⁻ and Ca²⁺ and the resting membrane potential from the Goldman-Hodgkin-Katz equation, with editable concentrations, permeability ratios and temperature, driving forces and GHK current-voltage curves. For study and teaching, not for clinical use.

Keep it one tap away for everyday use.

Bookmark Membrane potential calculator?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Ions
  2. Permeability
  3. GHK
  4. I–V curve
Nothing is uploadedWorks offline once open

Ions

IonOutside (mM)Inside (mM)Permeability
K⁺
Na⁺
Cl⁻
Ca²⁺

Permeabilities are relative to K⁺ (K⁺ = 1). The example concentrations are illustrative textbook-style values for a mammalian neuron, made up and rounded; type your own.

The GHK voltage equation uses K⁺, Na⁺ and Cl⁻. When Ca²⁺ is given a permeability, the tool also finds the potential where all the currents add to zero. The absolute K⁺ permeability only scales the currents, not the voltages. For study and teaching, not for clinical use.

Result

Each ion

GHK current–voltage curves

Outward current is positive. Each ion's curve crosses zero at its Nernst potential; the total crosses zero at the membrane potential. The bend comes from the unequal concentrations (rectification).

Download

What it does

A nerve cell is negative inside because its membrane lets some ions through more easily than others, and those ions are at different concentrations inside and out. This calculator works out:

  • the Nernst (equilibrium) potential of each ion: the voltage at which that ion would stop flowing, E = (RT/zF) ln(outside/inside);
  • the membrane potential from the Goldman-Hodgkin-Katz (GHK) voltage equation, which weighs K⁺, Na⁺ and Cl⁻ by how permeable the membrane is to each;
  • the driving force on each ion (membrane potential minus its Nernst potential) and its GHK current;
  • GHK current-voltage curves for each ion and their total.

For electrodes and batteries, use the Nernst and cell potential calculator instead; this page is about cells and ion gradients. For study and teaching, not for clinical use.

How to use it

  1. Concentrations: type each ion’s concentration outside and inside the cell, in mmol/L.
  2. Permeability: relative to K⁺. The “Permeabilities” list fills in a resting membrane (K⁺ : Na⁺ : Cl⁻ = 1 : 0.05 : 0.45) or the peak of an action potential (1 : 20 : 0.45), which shows how opening Na⁺ channels swings the voltage.
  3. Temperature changes RT/F: about 26.7 mV at 37 °C and 25.3 mV at 20 °C.
  4. P of K⁺ in cm/s only sets the size of the currents.
  5. Give Ca²⁺ a permeability to include it: the classic GHK voltage equation only handles ions of one charge, so the tool then also finds the potential where all four GHK currents add to zero.

Worked example

The illustrative example neuron at 37 °C: K⁺ 5 mM outside and 140 inside, Na⁺ 145 and 12, Cl⁻ 110 and 10, with resting permeabilities 1 : 0.05 : 0.45.

  • E_K = −89.1 mV, E_Na = +66.6 mV, E_Cl = −64.1 mV, E_Ca = +132.3 mV.
  • Membrane potential (GHK) = −64.9 mV.
  • K⁺ has a driving force of +24.1 mV (it leaks out), Na⁺ −131.5 mV (it leaks in), and Cl⁻ is almost at equilibrium.
  • Choosing “Spike peak” gives +51.1 mV.

Tips

  • The membrane potential always lies between the Nernst potentials of the permeant ions, closest to the most permeant one.
  • Raising outside K⁺ depolarises the cell strongly; raising outside Na⁺ at rest hardly does.
  • The GHK curves rectify: K⁺ carries outward current more easily than inward because there is more K⁺ inside.

FAQ

Why does the sum of currents not include the Na⁺/K⁺ pump? The GHK equation describes passive leak only; the pump’s small electrogenic current is left out.

Does anything leave my device? No. Everything is worked out in your browser.

Where the numbers come from

  • Nernst equation (W. Nernst, 1889); Goldman-Hodgkin-Katz voltage and current equations (D. E. Goldman 1943; A. L. Hodgkin and B. Katz 1949). Constants F and R from CODATA (NIST). Equations only.
  • Checked in the tests against an independent NumPy implementation, with SciPy brentq for the zero-current potential. The example concentrations are illustrative textbook-style values, made up and rounded.

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-11-09.

Related tools

Nernst and cell potential calculator #96 Electrode potentials at any concentration, pH and temperature by the Nernst equation, and full galvanic cells: E°cell, Ecell, the balanced cell reaction, cell notation, ΔG, K and Q. Pick from 44 standard half-reactions or type your own, and convert potentials between SHE, SCE, Ag/AgCl and RHE. Colligative properties calculator #88 Freezing point, boiling point, vapour pressure and osmotic pressure of a solution in water or 10 other solvents, with the van 't Hoff factor, and the molar mass of an unknown from a measured freezing point drop, boiling point rise or osmotic pressure. Publication plot maker #27 Paste columns or open a CSV or Excel file and get a clean scientific figure with error bars, sized for a journal column. Download vector SVG or PDF, or PNG at 300 or 600 dpi. Your data stays in your browser. Notch filter and PSD #346 Paste or open an EEG, LFP or patch-clamp trace (CSV, text, Excel or WAV) and remove 50 or 60 Hz mains hum and its harmonics with IIR notch filters run forwards and backwards. See the Welch power spectrum before and after, band powers (delta to gamma or your own bands), and download the filtered trace as CSV. Hodgkin-Huxley simulator #347 Run the Hodgkin-Huxley (1952) squid giant axon model in your browser. Inject a current step or a pulse train and watch the membrane potential and the m, h and n gates; change the temperature or block Na⁺ and K⁺ channels; find the threshold of a single pulse and draw the firing rate against current (f-I curve). For study and teaching, not for clinical use. Spike train analyser #348 Paste spike times for one or more trials or cells and get the firing rate, inter-spike interval histogram, coefficient of variation, Fano factor, a peri-stimulus time histogram, a raster plot and an autocorrelogram, with CSV and report downloads. Runs in your browser.