Equilibrium (Nernst) potential of one ion
physio_nernst_potential
Works out the equilibrium (Nernst) potential of one ion, inside relative to outside.
- 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 equilibrium (Nernst) potential of one ion, inside relative to outside, and the thermal voltage RT/F. Use when you have the ion's concentrations on each side, its valence and the temperature. Not for several permeant ions: use `physio_ghk_potential`; not for a solution's osmolarity: use `form_osmolarity`. You state z and the temperature, never assumed; concentrations stand in for activities; a zero concentration is refused.
Field: In vivo and physiology.
What it does
You give
outsideConcentration(required): The ion's concentration outside the cell. Must be at least 0 M.insideConcentration(required): The ion's concentration inside the cell. Must be at least 0 M.valence(required): z, the ion's charge number: a non-zero integer from −10 to 10 (1 for K⁺, −1 for Cl⁻, 2 for Ca²⁺). Never assumed. Must be at least -10 and at most 10.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.
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 concentration on one side is zero: the logarithm is undefined, and no potential exists.
- the ratio c_out/c_in of the two concentrations in M is not finite or below the smallest normal double (Drybench ruling, 11 November 2026, item 1); also RT/F, RT/(zF) 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.
- z = 0: an uncharged species has no electrical equilibrium potential.
Every input, with its units5 inputs
outsideConcentration(required): The ion's concentration outside the cell. Must be at least 0 M.insideConcentration(required): The ion's concentration inside the cell. Must be at least 0 M.valence(required): z, the ion's charge number: a non-zero integer from −10 to 10 (1 for K⁺, −1 for Cl⁻, 2 for Ca²⁺). Never assumed. Must be at least -10 and at most 10.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.
Every refusal, with its code3 refusals
| Code | When |
|---|---|
NO_PERMEANT_ION_ON_ONE_SIDE | the concentration on one side is zero: the logarithm is undefined, and no potential exists. |
RESULT_OUTSIDE_DOUBLE_RANGE | the ratio c_out/c_in of the two concentrations in M is not finite or below the smallest normal double (Drybench ruling, 11 November 2026, item 1); also RT/F, RT/(zF) 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. |
VALENCE_ZERO | z = 0: an uncharged species has no electrical equilibrium potential. |
The calculation
The method's equations, constants and worked example.
Equation 1
| Symbol | Meaning |
|---|---|
E | equilibrium 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 (not divided by z), V |
R | molar gas constant, J/(mol·K) |
T | thermodynamic temperature (argument temperature, in K or converted from degC by the Celsius offset), K |
z | valence (charge number) of the ion, signed (argument valence) |
F | Faraday constant, C/mol |
c_out | the ion's concentration outside the cell (argument outsideConcentration), standing in for its activity; both concentrations are taken in one unit, so only their ratio enters, M |
c_in | the ion's concentration inside the cell (argument insideConcentration), standing in for its activity, M |
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-nernst-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
- outsideConcentration = 5 mM
- insideConcentration = 140 mM
- valence = 1
- 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.
- ratio = 0.035714286, from outsideConcentration, insideConcentration; by equation 1.
- lnRatio = -3.3322045, from ratio; by equation 1.
- E = -89.058694 mV, from thermalVoltage, valence, lnRatio; by equation 1; gives potential.
The working, as the case writes it:
RT/F at 310.15 K = 26.7266591 mV (worked by hand by Drybench on 10 November 2026
not an independent check)
× ln(5/140) = × (−3.3322) = −89.0587 mV
Answer
thermalVoltage = 26.726659 mV
potential = -89.058694 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: Equilibrium (Nernst) potential of one ion. At: equation 2 (stated for a charged dye; the general Z form) and the sentence after it; 10, section 3.4 (Eq. 2); 5.3 (Eq. 10).
Read in full, 11 November 2026NIST, Fundamental Physical Constants — Complete Listing, 2018 CODATA adjustment
Used for: Equilibrium (Nernst) potential of one ion. 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: Equilibrium (Nernst) potential of one ion. 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
Activity coefficients; Nernst (1888), unread; a primary textbook print; the sign convention, inferred from the equations' form (the source does not state it in the parts read).
Changes to its methods1 change
- 14 November 2026, physio-nernst-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)), the valence is bounded at |z| ≤ 10 (the CSO's memo -6), 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.