Zero-current membrane potential from ion permeabilities (Goldman–Hodgkin–Katz)
physio_ghk_potential
Works out the zero-current membrane potential from potassium, sodium and chloride permeabilities.
- Runs
- On the server
- Level
- Checked against a reference: exact arithmetic: Python fractions and decimal on the recorded equations, written before the engine
What it is
Returns the zero-current membrane potential, inside relative to outside, from K⁺, Na⁺ and Cl⁻ permeabilities. Use when several ions permeate (the Goldman–Hodgkin–Katz voltage equation). Not for one ion's equilibrium potential: use `physio_nernst_potential`. K⁺, Na⁺ and Cl⁻ only; one permeability unit per call; it approximates the resting potential only where pump and other non-passive currents are negligible, which you judge.
Field: In vivo and physiology.
What it does
You give
temperature(required): The temperature, in K or degC, above 0 K. Never assumed. Must be above 0 K.outputUnit(required): The unit of the potentials returned.potassium: K⁺: its permeability and its concentrations inside and outside. Optional.sodium: Na⁺: its permeability and its concentrations inside and outside. Optional.chloride: Cl⁻: its permeability and its concentrations inside and outside. Optional.
No request is recorded for this tool.
Limits
- Research arithmetic for physiology and animal research on values you supply; not a dosing, clinical, veterinary, animal-welfare or diagnostic authority, and it does not decide how many animals to breed or use.
- Membrane potential arithmetic on the concentrations, permeabilities, valence and temperature you supply, inside relative to outside, with concentrations standing in for activities.
- A Nernst potential is an equilibrium potential; a Goldman–Hodgkin–Katz potential is the zero-current potential for K⁺, Na⁺ and Cl⁻ under the equation's assumptions of a constant field and independent ion movement.
- Neither is a measured or resting potential.
- Research and education software: not for diagnosis or treatment decisions.
- Every computed number a reply returns, other than an integer or an exact decimal, is rounded once to 12 significant figures: to the nearest, a change of at most 5 × 10⁻¹² of its value, except that a lower bound is rounded down and an upper bound up, a change of less than 1 × 10⁻¹¹; the method computes, and decides any pass or fail, on the unrounded value.
It will not answer when
- the permeability-weighted sum on one side is zero: the logarithm is undefined; decided exactly on the stated values, a sum being zero only when every one of its terms has a permeability or a concentration of exactly 0.
- a permeability-weighted term P·c with no zero factor, a weighted sum, or the ratio of the two sums is not finite or below the smallest normal double (Drybench ruling, 11 November 2026, item 1); also RT/F or the potential in V, before the output unit's factor, or a value served, that is not finite or is not zero and below the smallest normal double in magnitude.
Every input, with its units5 inputs
temperature(required): The temperature, in K or degC, above 0 K. Never assumed. Must be above 0 K.outputUnit(required): The unit of the potentials returned.potassium: K⁺: its permeability and its concentrations inside and outside. Optional.sodium: Na⁺: its permeability and its concentrations inside and outside. Optional.chloride: Cl⁻: its permeability and its concentrations inside and outside. Optional.
Every refusal, with its code2 refusals
| Code | When |
|---|---|
NO_PERMEANT_ION_ON_ONE_SIDE | the permeability-weighted sum on one side is zero: the logarithm is undefined; decided exactly on the stated values, a sum being zero only when every one of its terms has a permeability or a concentration of exactly 0. |
RESULT_OUTSIDE_DOUBLE_RANGE | a permeability-weighted term P·c with no zero factor, a weighted sum, or the ratio of the two sums is not finite or below the smallest normal double (Drybench ruling, 11 November 2026, item 1); also RT/F or the potential in V, before the output unit's factor, or a value served, that is not finite or is not zero and below the smallest normal double in magnitude. |
The calculation
The method's equations, constants and worked example.
Equation 1
an ion not given contributes no term
| Symbol | Meaning |
|---|---|
V | zero-current potential, inside relative to outside; J/C is the volt (SI Table 4); returned as potential in outputUnit, V |
V_T | thermal voltage RT/F, returned as thermalVoltage in outputUnit, V |
R | molar gas constant, J/(mol·K) |
T | thermodynamic temperature (argument temperature, in K or converted from degC by the Celsius offset), K |
F | Faraday constant, C/mol |
P_K | K⁺ permeability (argument potassium.permeability); one unit for every ion in a call, absolute (cm/s, m/s) or relative (1, or % taken as its number), used as stated and never converted, since the scale cancels, m/s |
P_Na | Na⁺ permeability, in the call's one permeability unit, m/s |
P_Cl | Cl⁻ permeability, in the call's one permeability unit, m/s |
[K]o | K⁺ concentration outside the cell (argument potassium.outsideConcentration; likewise the others), standing in for its activity; every concentration is taken in one unit, so the unit cancels in x, M |
[K]i | K⁺ concentration inside the cell, M |
[Na]o | Na⁺ concentration outside the cell, M |
[Na]i | Na⁺ concentration inside the cell, M |
[Cl]o | Cl⁻ concentration outside the cell, M |
[Cl]i | Cl⁻ concentration inside the cell, M |
x | the logarithm's argument: the outside-weighted sum over the inside-weighted sum (Cl⁻ with its sides swapped), a pure number |
Source 1.
Equation 2
R = N_A·k = 8.314 462 618 153 24 J/(mol·K), exact
CODATA 2018 prints 8.314 462 618... (exact). The printed digits agree with the exact decimal product N_A·k = 8.31446261815324
the code holds the double product N_A·k, which is the nearest double to it
| Symbol | Meaning |
|---|---|
R | molar gas constant, J/(mol·K) |
Source 2.
Equation 3
F = N_A·e = 96 485.332 123 310 018 4 C/mol, exact
CODATA 2018 prints 96 485.332 12... (exact). The printed digits agree with the exact decimal product N_A·e = 96485.3321233100184
the code holds the double product N_A·e, 96485.33212331001, which is the nearest double to it
| Symbol | Meaning |
|---|---|
F | Faraday constant, C/mol |
Source 2.
| Constant | Value | From |
|---|---|---|
molar gas constant, N_A·k, exact: 6.022 140 76 × 10²³ mol⁻¹ × 1.380 649 × 10⁻²³ J/K R | 8.31446261815324 J/(mol·K) | Source 3 |
Faraday constant, N_A·e, exact: 6.022 140 76 × 10²³ mol⁻¹ × 1.602 176 634 × 10⁻¹⁹ C = 96 485.332 123 310 018 4 C/mol; the value below is the nearest double, as computed F | 96485.33212331001 C/mol | Source 3 |
Celsius offset: T/K = t/°C + 273.15 for a temperature given in degC °C | 273.15 K | Source 3 |
Conventions
- MEMBRANE_POTENTIAL_SIGN = inside relative to outside: Fixed by the method; not an argument. Potentials are given as the inside relative to the outside (V_in − V_out): a positive value means the inside is positive relative to the outside. The result's convention field carries the same value.
A definition, not a model: the equation states what the quantity means. A different convention gives a different number.
Worked example
Worked example: one case of physio-ghk-potential@2.0.0, from its inputs through each step to the answer. Values are written as a person writes them; the working carries more digits, so your own figure may differ in the last digit shown.
Inputs
- potassium.permeability = 1
- potassium.insideConcentration = 140 mM
- potassium.outsideConcentration = 5 mM
- sodium.permeability = 0.04
- sodium.insideConcentration = 12 mM
- sodium.outsideConcentration = 145 mM
- chloride.permeability = 0.45
- chloride.insideConcentration = 10 mM
- chloride.outsideConcentration = 110 mM
- temperature = 37 degC
- outputUnit = mV
Steps
- T = 310.15 K, from temperature; by equation 1.
- thermalVoltage = 26.726659 mV, from T; by equation 1; gives thermalVoltage.
- numerator = 15.3 mM, from potassium.permeability, potassium.outsideConcentration, sodium.permeability, sodium.outsideConcentration, chloride.permeability, chloride.insideConcentration; by equation 1.
- denominator = 189.98 mM, from potassium.permeability, potassium.insideConcentration, sodium.permeability, sodium.insideConcentration, chloride.permeability, chloride.outsideConcentration; by equation 1.
- ratio = 0.080534793, from numerator, denominator; by equation 1.
- lnRatio = -2.519066, from ratio; by equation 1.
- V = -67.326218 mV, from thermalVoltage, lnRatio; by equation 1; gives potential.
The working, as the case writes it:
num = 5 + 0.04 × 145 + 0.45 × 10 = 15.3
den = 140 + 0.04 × 12 + 0.45 × 110 = 189.98
26.72666 × ln(15.3/189.98) = 26.72666 × (−2.519066) = −67.3262 mV
Answer
thermalVoltage = 26.726659 mV
potential = -67.326218 mV
Where these values came from: our own exact-arithmetic script and a hand-worked case; the second implementation's run(arguments).
At build the tool returned this answer within the tolerance the file states: potentials and thermal voltages relative 1e-12 (absolute 1e-312 below 1e-300, in each value's unit); conventions, statuses and codes exact; where one path carries more than one unit, or a logarithmic unit, absolute at the relative value times the smallest nonzero magnitude under it (the largest, for a logarithm).
Sources
Nikolaev DM, Mironov VN, Shtyrov AA, Kvashnin ID, Mereshchenko AS et al., Fluorescence Imaging of Cell Membrane Potential: From Relative Changes to Absolute Values, Int J Mol Sci 24(3):2435 (2023)
Used for: Zero-current membrane potential from ion permeabilities and concentrations (Goldman–Hodgkin–Katz). At: equation 9 and the sentence after it (P_X the permeability of ion X); its reference [122], section 5.3.
Read in full, 11 November 2026NIST, Fundamental Physical Constants — Complete Listing, 2018 CODATA adjustment
Used for: Zero-current membrane potential from ion permeabilities and concentrations (Goldman–Hodgkin–Katz). At: section the line "molar gas constant 8.314 462 618... (exact) J mol^-1 K^-1"; section the line "Faraday constant 96 485.332 12... (exact) C mol^-1".
Read in full, 14 November 2026BIPM, The International System of Units (SI), 9th edition, 2019 (complete brochure, 2026 update)
Used for: Zero-current membrane potential from ion permeabilities and concentrations (Goldman–Hodgkin–Katz). At: table 1 (k and N_A exact), section 2.2; table 1 (e = 1.602 176 634 × 10⁻¹⁹ C and N_A exact), section 2.2; section 2.3.1 (t/°C = T/K − 273.15).
Read in full, 10 November 2026
How it is checked
- Level
Checked against a reference.
- Checked against
Our own exact-arithmetic script and a hand-worked case.
- Cases
No case set is linked to this version.
- Not checked
Goldman (1943) and Hodgkin and Katz (1949), the primaries, unread (the first is CC BY-NC-SA, the second not open); divalent ions and other monovalent ions; pump currents; activity coefficients; the constant-field and independence assumptions; the sign convention, inferred from the equations' form.
Changes to its methods1 change
- 14 November 2026, physio-ghk-potential@2.0.0: In 2.0.0 each value in V is range-tested before the output unit's factor (the kit's toOutputUnit; the CTO's third raising batch, item 2(c)), and, because from 2.0.0 the temperature and the output unit also reach RESULT_OUTSIDE_DOUBLE_RANGE, its next step names them (the CSO's memo -3 wording). The values served are unchanged wherever they were computed from normal steps.