Skip to content

Kendrick mass defect of a peak list on a stated base

ms_kendrick_mass_defect

Works out the Kendrick mass and mass defect of each peak on a stated base such as CH2 or CF2.

Runs
On the server
Level
Its source was not read. Its calculation agreed with a separately written implementation on recorded cases, edges and refusals included, and with the outside program the note names, or the note says none exists. Both implementations were written from the same documents, so a misreading they share would not be caught. Cross-checked here; source not read
Ask your assistant

What it is

Returns each peak's Kendrick mass, nominal Kendrick mass and defect NKM − KM on a stated base such as CH2 or CF2. Use when homologous series are to be found in a list of m/z values or masses; negate the defect for the KM − NKM convention. Not for one ion's m/z: use `ms_ion_mz`; for an error against a theoretical value, use `ms_mass_error`; fractional (CH2/n) bases are a different method, not offered. Refuses a charged base, a leading number (13CH2), a base whose nominal and rounded exact masses differ (H64), lead, and both lists or neither; base and rounding mode are required.

Field: Analytical chemistry.

What it does

You give

  • base (required): The repeat unit as a formula, e.g. CH2, CF2, C2H4O, H; no charge. Leading and trailing white space is removed before the pattern is checked.
  • nominalRounding (required): How the nominal Kendrick mass is taken from KM: nearest (ties up), floor or ceiling.
  • mzValues: m/z values; give this or masses, not both. Optional.
  • masses: Neutral masses (for z > 1, deconvoluted or z·(m/z)); give this or mzValues, not both. Optional.

No request is recorded for this tool.

Limits

  • Research arithmetic: each number follows from the formula, sequence or values you give, by the method and any constants named on the tool, and describes those inputs rather than the sample or instrument they came from.
  • It is not an identification, a validated quantification or a check of an instrument, and it is not for diagnosis or treatment decisions.
  • Kendrick mass KM = m × nominal/exact mass of the stated base, the nominal mass taken from each element's most abundant isotope; KMD = NKM − KM (sign fixed: negate for the KM − NKM convention), NKM by the stated rounding; precision is that of the input values, and the reported bound covers only the base's AME2020 mass; a z > 1 series is passed as neutral masses or z·(m/z), the caller's chemistry; above about 1–2 kDa on a CH2 base, defects can alias between classes, and peaks near a rounding threshold can change series between modes; fractional bases are not offered.
  • 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 base has a charge written in it.
  • the base is not a formula: a symbol that is no element, a zero count or a parse error.
  • the base names an element with no representative composition.
  • the base names an element whose most abundant isotope is not fixed (lead).
Every input, with its units4 inputs
  • base (required): The repeat unit as a formula, e.g. CH2, CF2, C2H4O, H; no charge. Leading and trailing white space is removed before the pattern is checked.
  • nominalRounding (required): How the nominal Kendrick mass is taken from KM: nearest (ties up), floor or ceiling.
  • mzValues: m/z values; give this or masses, not both. Optional.
  • masses: Neutral masses (for z > 1, deconvoluted or z·(m/z)); give this or mzValues, not both. Optional.
Every refusal, with its code7 refusals
CodeWhen
CHARGED_FORMULAthe base has a charge written in it.
FORMULA_UNREADABLEthe base is not a formula: a symbol that is no element, a zero count or a parse error.
ELEMENT_NOT_IN_TABLEthe base names an element with no representative composition.
MONOISOTOPE_NOT_FIXEDthe base names an element whose most abundant isotope is not fixed (lead).
LEADING_NUMBER_IN_BASEa part of the base after '·', '.' or '*' begins with a number (CH2·2H2O): a base is one repeat unit, never a multiple or a hydrate, and a leading number is never read as an isotope label; checked after the formula reads, so a base starting with a number is FORMULA_UNREADABLE first.
BASE_NOMINAL_MASS_DIFFERSthe base's nominal mass (count times the mass number of each element's most abundant isotope) and its monoisotopic mass rounded to the nearest integer differ, or could at a tie: they lie one half or more apart, decided exactly (H64: nominal mass 64, rounded exact mass 65); the two readings of N_base part there, and no document read says which a Kendrick base takes.
NEEDS_ONE_LISTnot exactly one list: m/z values or masses.

The calculation

The method's equations, constants and worked example.

Kendrick mass defect of a peak list on a stated basekendrick-mass-defect@2.0.0

Equation 1

KM=mxNbase/Ebase
SymbolMeaning
ma stated mass (an m/z is taken the same way, in Th), Da
m/za stated m/z, Th
N_basenominal mass of the base, Da
E_basemonoisotopic mass of the base, Da
KMKendrick mass, in the value's unit, Da

Source 1.

Equation 2

N_base = sum over the base's elements of count x mass number of the most abundant isotope

SymbolMeaning
N_basenominal mass of the base: count times mass number of each element's most abundant isotope, summed, Da
countatoms of the element in the base

Source 3.

Equation 3

KMD = NKM - KM, NKM the integer chosen from KM by nominalRounding

SymbolMeaning
NKMnominal Kendrick mass, in the value's unit, Da
KMKendrick mass, Da
KMDKendrick mass defect, in the value's unit, Da

Source 4.

Equation 4

mass defect = nominal mass - monoisotopic mass

SymbolMeaning
mass defectnominal mass less monoisotopic mass, Da
nominal massthe nominal mass, Da
monoisotopic massthe monoisotopic mass, Da

Source 3.

Equation 5

bound = m x N_base x u(E_base) / E_base^2, u(E_base) = sum over the base's atoms of count x u(nuclide), summed linearly

KMD is NKM less the exact KM, then rounded

SymbolMeaning
u(E_base)the base's mass uncertainty from AME2020, Da
ma stated mass or m/z, Da
N_basenominal mass of the base, Da
E_basemonoisotopic mass of the base, Da

Source 5.

ConstantValueFrom
AME2020 atomic masses and uncertainties, tabulated in units of 1e-12 u (the file prints micro-u; divide by one million) m(nuclide)a table of values, part of the methodSource 5
each element's most abundant isotope: the argmax of its IUPAC 2009 representative composition, kept only where it keeps its lead across the CIAAW 2024 ranges (lead fails) monoisotopea table of values, part of the methodSource 6

Conventions

  • nominalRounding = nearest: the nominal Kendrick mass is the integer closest to KM, a fractional part of exactly 0.5 going up; KMD lies in [-0.5, 0.5], in the value's unit
  • nominalRounding = floor: the nominal Kendrick mass is the largest integer not greater than KM; KMD lies in (-1, 0], in the value's unit. A caller's convention, offered on this project's ruling of 10 November 2026: no document read prints it and no outside program computes it
  • nominalRounding = ceiling: the nominal Kendrick mass is the smallest integer not less than KM; KMD lies in [0, 1), in the value's unit. A caller's convention, offered on this project's ruling of 10 November 2026: no document read prints it and no outside program computes it

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 kendrick-mass-defect@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

  • base = CH2
  • nominalRounding = nearest
  • masses[0] = 200 Da

Steps

  1. E = 14.01565 Da, from base; by equation 1; gives baseMonoisotopicMass.
  2. N = 14 Da, from base; by equation 2.
  3. KM = 199.77668 Da, from masses[0], N, E; by equation 1; gives rows[0].kendrickMass.
  4. NKM = 200 Da, from KM, nominalRounding; by equation 3.
  5. KMD = 0.223323 Da, from NKM, KM; by equation 3; gives rows[0].kendrickMassDefect.

The working, as the case writes it:

E(CH2) = 12 + 2 x 1.007825031898 = 14.015650063796 Da

N = 14

KM = 200 x 14 / 14.015650063796 = 199.776676...

NKM (nearest) = 200

KMD = 200 - 199.776676... = 0.223323...

Answer

baseMonoisotopicMass = 14.01565 Da

rows[0].kendrickMass = 199.77668 Da

rows[0].kendrickMassDefect = 0.223323 Da

Where these values came from: our own exact-arithmetic script and a hand-worked case; exact rationals (Python fractions) on AME2020 masses, by this script.

At build the tool returned this answer within the tolerance the file states: Kendrick masses and defects equal at the reported decimals (absolute 1e-9 Th or Da on the rounded values); nominal masses, bounds, decimals, strings, statuses and codes exact.

Sources

  1. mzmine documentation, 4D feature plot (Kendrick mass plot), stored reference values (mzmine/mzmine_documentation, master)

    Used for: Kendrick mass defect of a peak list on a stated base. At: section the Kendrick mass scale: KM(R) = m/z · round(R)/R and KMD(R) = round(KM(R)) − KM(R).

    Read in full, 24 November 2026
  2. Murray KK, Boyd RK, Eberlin MN, Langley GJ, Li L, Naito Y. Definitions of terms relating to mass spectrometry (IUPAC Recommendations 2013). Pure Appl Chem 2013;85:1515-1609

    Used for: Kendrick mass defect of a peak list on a stated base. At: p. 1563; 1572, section entry 302, mass defect; entry 368, nominal mass.

    Read in full, 10 November 2026
  3. Wang M, Huang WJ, Kondev FG, Audi G, Naimi S. The AME 2020 atomic mass evaluation (II). Tables, graphs and references. Chin Phys C 2021;45:030003

    Used for: Kendrick mass defect of a peak list on a stated base. At: table mass_1.mas20.txt, column ATOMIC MASS (micro-u) and its uncertainty, every nuclide.

    Read in full, 10 November 2026
  4. Coursey JS, Schwab DJ, Tsai JJ, Dragoset RA. Atomic Weights and Isotopic Compositions (NIST), whose compositions are Berglund M, Wieser ME, Isotopic compositions of the elements 2009, Pure Appl Chem 2011;83:397-410, as NIST states

    Used for: Kendrick mass defect of a peak list on a stated base. At: table Isotopic Composition column, every element.

    Read in full, 10 November 2026

Cited, not read

  1. Kendrick E. A mass scale based on CH2 = 14.0000 for high resolution mass spectrometry of organic compounds. Anal Chem 1963;35:2146-2154

    Used for: Kendrick mass defect of a peak list on a stated base. At: section the Kendrick mass scale.

    the publisher (ACS) refused automated reading (HTTP 403, 10 November 2026 and again 24 November 2026); no open copy found; under D-0273 no person will read it

    Not read; source 2 read in its place
  2. Hughey CA, Hendrickson CL, Rodgers RP, Marshall AG, Qian K. Kendrick mass defect spectrum: a compact visual analysis for ultrahigh-resolution broadband mass spectra. Anal Chem 2001;73:4676-4681

    Used for: Kendrick mass defect of a peak list on a stated base. At: section Kendrick mass defect and nominal Kendrick mass.

    the publisher (ACS) refused automated reading (HTTP 403, 10 November 2026 and again 24 November 2026); no open copy found; under D-0273 no person will read it

    Not read; source 2 read in its place

How it is checked

Level

Cross-checked here; source not read.

Checked against

Our own exact-arithmetic script and a hand-worked case.

Cases

No case set is linked to this version.

Not checked

Kendrick 1963 and Hughey et al. 2001 were not read (ACS refuses automated reading): KM and KMD rest on mzmine's documentation, the sign on IUPAC 2013 entry 302; a base whose two nominal-mass readings differ is refused, not computed; floor and ceiling are a caller's convention that no document read prints and no outside program computes; the second implementation is by an agent of the same model family as the engine's writer, so a misreading both share would not be caught; a base starting with a number (13CH2) is refused FORMULA_UNREADABLE by the shared formula reader since 2.0.0 (formula-mass 1.3.0, the fix in this project's register of known issues, 25 November 2026), which still takes a number after '·', '.' or '*' as a multiplier in other tools, where this tool refuses it; fractional bases are a different method and not offered.

Changes to its methods1 change
  • 25 November 2026, kendrick-mass-defect@2.0.0: In 2.0.0, through formula-mass 1.3.0, the shared formula reader refuses a formula starting with a digit, and the base is read before the tool's own checks, so a base starting with a number (13CH2, 2CH2) is refused FORMULA_UNREADABLE; LEADING_NUMBER_IN_BASE now covers a number after a hydrate or adduct separator (CH2·2H2O). Three recorded refusals moved, two in their code and one in its text, so this is a major; every other recorded output is unchanged.