Skip to content

Methods and checksMethods

How every result is reached and what it was checked against, app by app.

Methods and checks pages

Equilibrium (Nernst) potential of one ion, version 2.0.0

physio-nernst-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; concentrations stand in for activities; secondary source; 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; concentrations stand in for activities; secondary source; R and F exact (SI 2019, CODATA 2018). Reference kind: our own exact-arithmetic script and a hand-worked case. physio-nernst-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: E = (RT/(zF))·ln(c_out/c_in) (Nikolaev et al. 2023, eqs. 2 and 10), 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 (46 cases, 23 at the edges, re-recorded at 2.0.0); the valence bound and the range tests in V, which the unchanged second program does not apply, rest on the record's stated rules worked by hand in stored reference values (7 cases; its two computed cases, z = ±10, agree with the second program), and the computed potentials at temperatures between 100 and 1000 K with NEURON 9.0.2's nernst() (23 cases, relative 1e-12). Nernst 1888 not read.

E = (RT/(zF))·ln(c_out/c_in), the potential inside relative to outside (echoed as `convention`), for a non-zero integer valence z from −10 to 10 (stated, never assumed; OUT_OF_RANGE beyond, from 2.0.0: ions whose membrane equilibrium is studied carry |z| ≤ 4, and beyond 10 the single-ion equation has no application; this project's ruling) at a stated temperature above 0 K; R = N_A·k and F = N_A·e exactly. The reply also gives the thermal voltage RT/F (not RT/(zF)). A zero concentration on either side is refused: no equilibrium potential exists. Concentrations stand in for activities. 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.

  • How results are reported: none: full double precision
  • Uncertainty: Arithmetic on the caller's 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

53 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: 38 agree within the tolerance the file states, 15 refuse as the case expects, 0 differ, 0 were not run.

  • File 1, 46 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, 7 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

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).

Definition or model

A closed form: the result follows from the inputs by the equations alone.

Equations

Equation 1

V_T = RT/F
E = (V_T/z)·ln(c_out/c_in) = (RT/(zF))·ln(c_out/c_in)
Symbol Meaning and unit
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: 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 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), 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-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

  1. T = 310.15 K, from temperature; by equation 1.
  2. thermalVoltage = 26.726659 mV, from T; by equation 1; gives thermalVoltage.
  3. ratio = 0.035714286, from outsideConcentration, insideConcentration; by equation 1.
  4. lnRatio = -3.3322045, from ratio; by equation 1.
  5. 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).

Who worked this case: not recorded.

What it refuses, and its input ranges

  • NO_PERMEANT_ION_ON_ONE_SIDE: the concentration on one side is zero: the logarithm is undefined, and no potential exists 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: 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 Next: Check the temperature, 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.
  • VALENCE_ZERO (invalid input): z = 0: an uncharged species has no electrical equilibrium potential

Input ranges: outsideConcentration: above 0 M; outside it, refused (NO_PERMEANT_ION_ON_ONE_SIDE). insideConcentration: above 0 M; outside it, refused (NO_PERMEANT_ION_ON_ONE_SIDE).

Changes

2026-11-14-physio-nernst-potential@2.0.0-1

2026-11-14 · physio-nernst-potential@2.0.0 · Corrections to our methods

  • What was wrong: RT/F, RT/(zF) and the potential were formed in V and divided by the output unit's factor before the kit tested the value served, so where one of them was below the smallest normal double the value served in mV could be normal yet carry fewer than 53 significant bits; this needed a valence far beyond any ion or 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), or with |z| far above 10; 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)), 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.
  • How it was found: The CSO's raising memo -5, N1, reading the code on 14 November 2026; the printed next step, the CSO's memo -3.
  • Cases added: stored reference values: 7 cases, the valence at ±10 and ±11, and RT/(zF), 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

Equilibrium (Nernst) potential of one ion. Drybench; physio-nernst-potential@2.0.0; https://www.drybench.com/methods/m/physio-nernst-potential/2.0.0 (accessed [date]).