Sequencing library concentration between mass and molar units
ngs_library_molarity
Converts a double-stranded library between ng/µL and nM from its mean fragment length.
- Runs
- On the server
- Level
- Checked against a reference: Biopython 1.88's molecular_weight on double-stranded (ACGT)n (the outside comparison, after its 5′-phosphate ends), with exact rationals in a script of our own and KA #1240's formula
What it is
Converts a double-stranded library between ng/µL and nM from its mean fragment length and a stated mass basis. Use when quantifying a library for pooling or loading. Not for a sequence's exact weight: use `seq_nucleic_acid_mass`; for insert amounts use `calc_cloning_amounts`; to dilute use `calc_c1v1`; for a reagent's stock use `calc_molarity`. Basis and result unit are required, never assumed; refuses masses outside 600-700 g/mol per bp and fragments over 50,000 bp.
Field: Sequencing and genomics.
What it does
You give
resultUnit(required): The unit of the answer, in the other family from the concentration given.basis(required): Where the molar mass comes from: computed-per-bp (617.899 g/mol per bp, free acid, from atomic weights); stated-per-bp (your g/mol per bp in massPerBasePair; Illumina's articles use 660); stated-molecular-weight (your g/mol in molecularWeight). Required.massConcentration: The library's mass concentration, e.g. from a fluorometer. Give this or molarConcentration, not both. Must be above 0 ng/µL. Optional.molarConcentration: The library's molar concentration, to convert to a mass concentration. Give this or massConcentration, not both. Must be above 0 nM. Optional.meanFragmentLength: Mean fragment length of the library from a sizing trace, whole bp; required for computed-per-bp and stated-per-bp. Must be above 0 bp. Optional.massPerBasePair: Mass of one base pair, g/mol, for stated-per-bp (600 to 700). Must be above 0 g/mol. Optional.
and 1 more, listed below
No request is recorded for this tool.
Limits
- Research arithmetic for planning sequencing libraries and runs and for genomic coordinate bookkeeping; it does arithmetic on the inputs it receives, and does not measure the library, the instrument or the data.
- Double-stranded linear DNA only; assumes all the measured mass is library of the stated mean length with 5′-OH ends (a 5′-phosphate moves the molar mass by about 0.09 % at 300 bp); adapter dimers, primers and a skewed size distribution make the result wrong; the result depends on the stated mass basis, and 617.9 (free acid) and 660 g/mol per bp (about the sodium salt) give results 6.8 % apart; a stated molecular weight is bounds-checked only when a length is given; the mean length must be a whole number of bp, and rounding a sizing trace's mean to whole bp moves the result by up to 0.5/L, 0.1 % at 500 bp and 0.5 % at 100 bp; fragments over 50,000 bp are refused; this is not a qPCR quantification.
- 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 stated mass per base pair lies outside the range this suite judges a double-stranded base pair to take in common salt forms; a value near half of it is one nucleotide, not a pair.
- the mean fragment length is above the suite's length cap.
- a stated molecular weight given with a length lies outside the bounds the length allows for a double-stranded molecule with its end groups.
- the result unit is in the same family as the concentration given.
Every input, with its units7 inputs
resultUnit(required): The unit of the answer, in the other family from the concentration given.basis(required): Where the molar mass comes from: computed-per-bp (617.899 g/mol per bp, free acid, from atomic weights); stated-per-bp (your g/mol per bp in massPerBasePair; Illumina's articles use 660); stated-molecular-weight (your g/mol in molecularWeight). Required.massConcentration: The library's mass concentration, e.g. from a fluorometer. Give this or molarConcentration, not both. Must be above 0 ng/µL. Optional.molarConcentration: The library's molar concentration, to convert to a mass concentration. Give this or massConcentration, not both. Must be above 0 nM. Optional.meanFragmentLength: Mean fragment length of the library from a sizing trace, whole bp; required for computed-per-bp and stated-per-bp. Must be above 0 bp. Optional.massPerBasePair: Mass of one base pair, g/mol, for stated-per-bp (600 to 700). Must be above 0 g/mol. Optional.molecularWeight: Molar mass of one library molecule, for stated-molecular-weight (e.g. from seq_nucleic_acid_mass). Must be above 0 g/mol. Optional.
Every refusal, with its code4 refusals
| Code | When |
|---|---|
MASS_PER_BP_OUT_OF_RANGE | the stated mass per base pair lies outside the range this suite judges a double-stranded base pair to take in common salt forms; a value near half of it is one nucleotide, not a pair. |
LENGTH_ABOVE_RANGE | the mean fragment length is above the suite's length cap. |
MW_OUT_OF_BOUNDS | a stated molecular weight given with a length lies outside the bounds the length allows for a double-stranded molecule with its end groups. |
RESULT_UNIT_SAME_FAMILY | the result unit is in the same family as the concentration given. |
The calculation
The method's equations, constants and worked example.
Equation 1
c_mass[ng/µL] = c_molar[nM] × M / 10^6: KA #1240's formula with M in place of its 660 g/mol × average library size
inputs are read as the exact value of their shortest decimal, and MASS_PER_BP_OUT_OF_RANGE, MW_OUT_OF_BOUNDS, LENGTH_ABOVE_RANGE and the whole-bp test are decided on that value
the concentration, molarMass, usedPerBp and differencePercent are in double precision
each input's errors: a concentration missing or both given is MISSING_ARGUMENT or CONFLICTING_ARGUMENT
massPerBasePair or molecularWeight with a basis that does not use it is CONFLICTING_ARGUMENT
a length, massPerBasePair or molecularWeight the basis needs and lacks is MISSING_ARGUMENT
a result unit in the family given is RESULT_UNIT_SAME_FAMILY
meanFragmentLength must be a whole number of bp after the kb conversion, tested on the exact value of its stated decimal (1.001 kb is 1001 bp
1.0005 kb, 1000.5 bp, is NOT_AN_INTEGER), and at most 50,000 bp (LENGTH_ABOVE_RANGE)
a mass per bp outside 600 to 700 g/mol is MASS_PER_BP_OUT_OF_RANGE
a stated weight outside the length's bounds is MW_OUT_OF_BOUNDS (S14)
order of checks: first the kit's form checks of every argument (number, unit, choice)
then the method's two input ranges, in the record's order: a massPerBasePair outside 600 to 700 (MASS_PER_BP_OUT_OF_RANGE), then a meanFragmentLength above 50,000 bp (LENGTH_ABOVE_RANGE, 50000.5 bp among them), each refused before every check below
then the tool's checks: the argument checks above in that order, then RESULT_UNIT_SAME_FAMILY, then NOT_AN_INTEGER, then MW_OUT_OF_BOUNDS
| Symbol | Meaning |
|---|---|
c_molar | molar concentration, nM |
c_mass | mass concentration, ng/µL |
M | molar mass of one library molecule, g/mol |
Source 1.
Equation 2
| Symbol | Meaning |
|---|---|
m_bp | mass per base pair stated by the caller, g/mol |
L | mean fragment length, bp |
Source 1.
Equation 3
r_X = m(dXMP) − m(H2O), with dAMP C10H14N5O6P, dCMP C9H14N3O7P, dGMP C10H14N5O7P, dTMP C10H15N2O8P and each formula's mass from the atomic weights: the record's construction from the PubChem formulas and the CIAAW 2024 weights
| Symbol | Meaning |
|---|---|
r_X | residue mass of deoxynucleotide X in the chain, g/mol |
Source 2.
Equation 4
m_bp = (r_A + r_C + r_G + r_T) / 2, the mean mass of one base pair (both strands), free acid, C19.5H24.5N7.5O12P2: the record's construction from the CIAAW 2024 weights and the PubChem formulas (S11)
| Symbol | Meaning |
|---|---|
m_bp | mean mass of one base pair, g/mol |
r_X | residue mass of deoxynucleotide X, g/mol |
Source 3.
Equation 5
e = 2 × (m(H2O) − m(HPO3)), the two ends of a linear double strand with 5′-OH ends: the record's construction from the CIAAW 2024 weights (S11)
strands with 5′-phosphates, as Biopython 1.88 takes them, weigh 2 × m(HPO3) more
| Symbol | Meaning |
|---|---|
e | end-group term of a double-stranded linear molecule, g/mol |
Source 3.
Equation 6
M = m_bp × L + e, the record's construction (S11)
basis comparison, when a length is known: usedPerBp = M / L for a stated weight, the stated per-bp mass for stated-per-bp, m_bp for computed-per-bp
differencePercent = (usedPerBp / m_bp − 1) × 100, signed
| Symbol | Meaning |
|---|---|
M | molar mass of one library molecule, g/mol |
L | mean fragment length, bp |
Source 3.
Equation 7
600 × L + e ≤ M ≤ 700 × L + 2 m(H2O): the 600 to 700 g/mol per bp bounds are this suite's own judgement, from common salt forms
the end-group masses are from the atomic weights
| Symbol | Meaning |
|---|---|
M | stated molecular weight, g/mol |
L | mean fragment length, bp |
Source not recorded.
| Constant | Value | From |
|---|---|---|
mean mass of a base pair, free acid, from CIAAW 2024 weights and PubChem dNMP formulas (derived in the worked case) m_bp(computed) | 617.899 g/mol | Source 3 |
standard atomic weight of hydrogen, abridged A_r(H) | 1.008 g/mol | Source 3 |
standard atomic weight of carbon, abridged A_r(C) | 12.011 g/mol | Source 3 |
standard atomic weight of nitrogen, abridged A_r(N) | 14.007 g/mol | Source 3 |
standard atomic weight of oxygen, abridged A_r(O) | 15.999 g/mol | Source 3 |
standard atomic weight of phosphorus, abridged A_r(P) | 30.974 g/mol | Source 3 |
Conventions
- basis = computed-per-bp: molar mass of the double-stranded library from its mean length at 617.899 g/mol per base pair (the free acid, from CIAAW abridged atomic weights) plus the 5'-OH end groups, in g/mol
- basis = stated-per-bp: molar mass of the library as the caller's mass per base pair (g/mol per bp, 600 to 700) times its mean length, in g/mol
- basis = stated-molecular-weight: molar mass of one library molecule as the caller states it, in g/mol
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 ngs-library-molarity@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
- massConcentration = 10 ng/µL
- resultUnit = nM
- basis = computed-per-bp
- meanFragmentLength = 500 bp
Steps
- rA = 313.21 g/mol, by equation 3.
- rC = 289.184 g/mol, by equation 3.
- rG = 329.209 g/mol, by equation 3.
- rT = 304.195 g/mol, by equation 3.
- mbp = 617.899 g/mol, from rA, rC, rG, rT; by equation 4; gives result.basisComparison.computedPerBp.
- e = -123.928 g/mol, by equation 5.
- M = 308825.57 g/mol, from mbp, meanFragmentLength, e; by equation 6; gives result.molarMass.
- c = 32.380738 nM, from massConcentration, M; by equation 1; gives result.concentration.
The working, as the case writes it:
mean bp = (dAMP + dCMP + dGMP + dTMP - 4 H2O)/2 = 617.899
ends = 2 (H2O - HPO3) = -123.928
M = 308,825.572
10 x 10^6 / M = 32.3807382... nM
Answer
result.basisComparison.computedPerBp = 617.899 g/mol
result.molarMass = 308825.57 g/mol
result.concentration = 32.380738 nM
Where these values came from: our own exact-arithmetic script and a hand-worked case; exact arithmetic from CIAAW 2024 abridged atomic weights and the dNMP formulas; worked by hand by Drybench on 10 November 2026 (ruling 2); this is not an independent check.
At build the tool returned this answer within the tolerance the file states: relative 1e-15 on concentrations and masses (near zero: absolute 1e-24 below 1e-9, in each output's own unit: nM, or the case's result unit, and g/mol); differencePercent absolute 1e-12 %; statuses, codes, units, counts and strings exact.
Sources
Illumina Knowledge Article #1240, "Converting ng/µl to nM when calculating dsDNA library concentration" (Illumina Knowledge, Library Prep, General Library Prep, Reference Material)
Used for: Molar concentration of a double-stranded sequencing library from its mass concentration and mean fragment length. At: equation the formula image: (concentration in ng/µl) / (660 g/mol × average library size in bp) × 10^6 = concentration in nM.
Read in full, 14 November 2026PubChem compound records CID 12599 (dAMP, C10H14N5O6P), 13945 (dCMP, C9H14N3O7P), 135398597 (dGMP, C10H14N5O7P), 9700 (dTMP, C10H15N2O8P)
Used for: Molar concentration of a double-stranded sequencing library from its mass concentration and mean fragment length. At: table MolecularFormula of each CID.
Read in full, 11 November 2026CIAAW, Abridged Standard Atomic Weights 2024
Used for: Molar concentration of a double-stranded sequencing library from its mass concentration and mean fragment length. At: table abridged standard atomic weights, row 1 (H 1.0080), 6 (C 12.011), 7 (N 14.007), 8 (O 15.999), 15 (P 30.974).
Read in full, 11 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
The caller's concentration and sizing; libraries that are not double-stranded linear DNA; the 5′-phosphate end form (not offered); the CIAAW 2021 table itself (the 2024 table was read).
What this project's records still lack1 thing
- The source's location for each equation for ngs-library-molarity@2.0.0.
Changes to its methods1 change
- 14 November 2026, ngs-library-molarity@2.0.0: In 2.0.0 the field is withheld (no-stated-weight) unless a stated weight was compared with a length's bounds. The record states the decimal reading, each input's error code and the order of checks, labels its own constructions, enters the CIAAW uncertainties, re-anchors KA #1240 at its knowledge.illumina.com address, and records Biopython 1.88's molecular_weight as an outside check.