Zero-current membrane potential from ion permeabilities and concentrations (Goldman–Hodgkin–Katz), version 2.0.0
physio-ghk-potential@2.0.0: this version's equations with their symbols, each constant's value, their sources and whether each was read, a worked example where the record holds one, its level and what it was checked against, the number of cases, and what was not checked. This version's record is not rewritten; a correction is added under Changes.
What this page can and cannot show
Level: Checked against a reference; monovalent K⁺, Na⁺, Cl⁻; concentrations for activities; primary unread; R and F exact (SI 2019, CODATA 2018). Reference kind: our own exact-arithmetic script and a hand-worked case.
Checked by this project, not independently reviewed. Every method on this page has its equations, constants, sources and cases on record, and its cases agree with the stated reference within the stated tolerance. A reader can follow each method's worked example by hand; that shows the stated method gives the stated answer for one set of inputs, and does not test the code. The other cases and their values are not printed, so a reader cannot re-run these checks. No independent scientist has yet reviewed them.
Every version of this method · Every method · What the levels mean
Version 2.0.0
Level: Checked against a reference; monovalent K⁺, Na⁺, Cl⁻; concentrations for activities; primary unread; R and F exact (SI 2019, CODATA 2018). Reference kind: our own exact-arithmetic script and a hand-worked case. physio-ghk-potential@2.0.0
Built, not hosted. Generated from a snapshot of the library's records taken on 2026-11-25, as committed on 2026-11-25. A later snapshot replaces this one, so these records and this page can change.
Verification statement: V = (RT/F)·ln x (Nikolaev et al. 2023, eq. 9), re-read and matched by hash 14 November 2026; R = N_A·k and F = N_A·e from the SI Brochure (9th edition, Table 1), matched by hash, and printed separately in CODATA 2018 (NIST listing, read 14 November 2026). A temperature in °C is converted exactly from the shortest decimal of the stated value, T = t + 273.15, and the range test is on that exact value, so −273.15 °C is exactly 0 K and refused. Compared with a second implementation in Python by a separate agent of the same model family (58 cases, 25 at the edges, re-recorded at 2.0.0); the range tests in V, which the unchanged second program does not apply, rest on the record's stated rule worked by hand in stored reference values (2 cases), and the single-ion cases with NEURON 9.0.2's nernst() (13 cases, an anion among them, relative 1e-12). The permeability weighting across ions rests on eq. 9 and the second implementation only. Goldman 1943 and Hodgkin and Katz 1949 not read.
V = (RT/F)·ln((Σ P_c·[c]_out + P_Cl·[Cl]_in)/(Σ P_c·[c]_in + P_Cl·[Cl]_out)) over the K⁺, Na⁺ and Cl⁻ given (monovalent only in 1.0.0), inside relative to outside; permeabilities in one unit per call (cm/s, m/s, relative 1 or %; never converted, since the scale cancels), each at least 0. With one ion it equals the Nernst potential. It approximates the resting potential only where electrogenic pump and other non-passive currents are negligible; the caller judges that. The reply gives the thermal voltage RT/F and the convention. A temperature in °C is converted exactly from the shortest decimal of the stated value, T = t + 273.15, and the range test is on that exact value, so −273.15 °C is exactly 0 K and refused. A concentration that is not zero but below the smallest normal double once converted to M is refused by the kit before the method (INVALID_NUMBER), since the range test is in M (BPP-F20).
- How results are reported: none: full double precision
- Uncertainty: Arithmetic on the caller's permeabilities and concentrations.
- Reference, as its record states it: Exact arithmetic: Python fractions and decimal on the recorded equations, written before the engine
- Level confirmed by this project's ruling of 14 November 2026
What this page can and cannot show
What was checked
60 cases in 2 files, linked by this exact version.
Run through the tool at build against our own exact-arithmetic script and a hand-worked case: 45 agree within the tolerance the file states, 15 refuse as the case expects, 0 differ, 0 were not run.
File 1, 58 cases
- Where the expected values came from: our own exact-arithmetic script and a hand-worked case
- Recorded on: 2026-11-14
- Reference: second implementation (Python 3.13), 2026-11-14; licence BSD-3-Clause
- Tolerance as the file states it: potentials and thermal voltages relative 1e-12 (absolute 1e-312 below 1e-300, in each value's unit); conventions, statuses and codes exact
File 2, 2 cases
- Where the expected values came from: our own exact-arithmetic script and a hand-worked case
- Recorded on: 2026-11-14
- Reference: second implementation (Python 3.13), 2026-11-14; licence BSD-3-Clause
- Tolerance as the file states it: potentials and thermal voltages relative 1e-12 (absolute 1e-312 below 1e-300, in each value's unit); conventions, statuses and codes exact
Apart from the worked example, the cases and their values are not printed here. This shows agreement with this project's recorded cases. It does not show that a method suits your work, and it is not a qualification.
What was 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.
Definition or model
A closed form: the result follows from the inputs by the equations alone.
Equations
Equation 1
V_T = RT/F
x = (P_K[K]o + P_Na[Na]o + P_Cl[Cl]i)/(P_K[K]i + P_Na[Na]i + P_Cl[Cl]o)
V = V_T·ln x
an ion not given contributes no term
| Symbol | Meaning and unit |
|---|---|
| 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: 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), equation 9 and the sentence after it (P_X the permeability of ion X); its reference [122], section 5.3, version of record (MDPI) as deposited in PMC; Europe PMC's JATS XML, not the publisher's copy; read in full on 2026-11-11 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning f50f435412e1. Free to read (CC BY 4.0), checked 2026-11-11. No erratum found (searched crossref, europe-pmc), 2026-11-11.
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 and unit |
|---|---|
| R | molar gas constant, J/(mol*K) |
Source: NIST, Fundamental Physical Constants — Complete Listing, 2018 CODATA adjustment, section the line "molar gas constant 8.314 462 618... (exact) J mol^-1 K^-1", the ASCII listing of the 2018 adjustment; the current listing (the 2022 adjustment) prints the same exact values; read in full on 2026-11-14 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 8c47c05db62c. Free to read (free to read on NIST's site; no licence stated in the listing (values used as facts), held for the General Counsel), checked 2026-11-14. No erratum found (searched the listing itself), 2026-11-14.
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 and unit |
|---|---|
| F | Faraday constant, C/mol |
Source: NIST, Fundamental Physical Constants — Complete Listing, 2018 CODATA adjustment, section the line "Faraday constant 96 485.332 12... (exact) C mol^-1", the ASCII listing of the 2018 adjustment; the current listing (the 2022 adjustment) prints the same exact values; read in full on 2026-11-14 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 8c47c05db62c. Free to read (free to read on NIST's site; no licence stated in the listing (values used as facts), held for the General Counsel), checked 2026-11-14. No erratum found (searched the listing itself), 2026-11-14.
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.
Constants
| Constant | Value and unit | Source | Date read |
|---|---|---|---|
| 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) | BIPM, The International System of Units (SI), 9th edition, 2019 (complete brochure, 2026 update), table 1 (k and N_A exact), section 2.2 | 2026-11-10 |
| 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 | BIPM, The International System of Units (SI), 9th edition, 2019 (complete brochure, 2026 update), table 1 (e = 1.602 176 634 × 10⁻¹⁹ C and N_A exact), section 2.2 | 2026-11-10 |
| Celsius offset: T/K = t/°C + 273.15 for a temperature given in degC (°C) | 273.15 K | BIPM, The International System of Units (SI), 9th edition, 2019 (complete brochure, 2026 update), section 2.3.1 (t/°C = T/K − 273.15) | 2026-11-10 |
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 mVpotential= -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).
Who worked this case: not recorded.
What it refuses, and its input ranges
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 Next: If a concentration of zero was entered for one that is known, give the known value; otherwise no change of input makes this computable on these data.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 Next: Check the temperature, the permeabilities, the concentrations and their units, or ask for the potential in another outputUnit; where the inputs are as intended and neither unit serves, no change of input makes this computable on these data.
Changes
2026-11-14-physio-ghk-potential@2.0.0-1
2026-11-14 · physio-ghk-potential@2.0.0 · Corrections to our methods
- What was wrong: RT/F and the potential were formed in V and divided by the output unit's factor before the kit tested the value served, so where either was below the smallest normal double the value served in mV could be normal yet carry fewer than 53 significant bits; this needed a temperature no experiment reaches.
- Affected: Versions 1.0.0 and 1.0.1: values served from a subnormal step, at temperatures below about 1e-287 K (the potential, with a concentration ratio within one unit in the last place of 1); no measurable input and no fixture case.
- What changed: 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.
- How it was found: The CSO's raising memo -5, G1, reading the code on 14 November 2026; the printed next step, the CSO's memo -3.
- Cases added: stored reference values: 2 cases, RT/F and the potential each subnormal in V. stored reference values re-records every earlier case at 2.0.0.
Tools that use it
Cite this version
Zero-current membrane potential from ion permeabilities and concentrations (Goldman–Hodgkin–Katz). Drybench; physio-ghk-potential@2.0.0; https://www.drybench.com/methods/m/physio-ghk-potential/2.0.0 (accessed [date]).