# Fragment ion m/z of a modified peptide

`ms_peptide_fragments` · Runs: On the server · Level: Checked against a reference: pyteomics 5.0.2 (an older NIST table, within a computed tolerance; a check of composition and arithmetic); a second implementation in Python by a separate agent of the same model family (peptide-fragments-3.json at 1.0.0, peptide-fragments-5.json at 1.0.1)

Works out the m/z and neutral formula of the fragment ions of a peptide at stated charges.

Research and education software; not medical advice, and not for diagnosis or treatment decisions. It computes from the inputs it receives. It does not check the person's data, design or sample.

[Catalogue](https://www.drybench.com/mcp/catalogue) / [Mass spectrometry](https://www.drybench.com/mcp/catalogue/mass-spectrometry)

[Ask your assistant](https://www.drybench.com/mcp/connect)

```cite
Fragment ion m/z of a modified peptide (ms_peptide_fragments), Drybench MCP server 1.0.0; peptide-fragments@1.0.2 (Checked against a reference); https://www.drybench.com/mcp/tools/ms-peptide-fragments
```

## What it is

Returns the m/z and neutral formula of a peptide's a, b, c, c-1, x, y, z, z+1 and z+2 ions at stated charges. Use when a fragment ladder is to be predicted for CID, HCD or ETD, with termini, modifications and precursor charge stated. Not for the precursor: use \`ms\_peptide\_mass\`. Refuses charges above the precursor's (n-1 for c and z types) and withholds c and z at proline; ion types are required.

Field: [Analytical chemistry](https://www.drybench.com/mcp/catalogue/mass-spectrometry).

## What it does

**You give**

- `sequence` (required): The peptide in one-letter codes, N to C (U selenocysteine, O pyrrolysine, J leucine or isoleucine). Leading and trailing white space is removed before the pattern is checked.
- `modifications` (required): Modifications; an empty list for none.
- `nTerm` (required): The N-terminal group as a formula: "H" for a free amine, "C2H3O" for acetyl. Leading and trailing white space is removed before the pattern is checked.
- `cTerm` (required): The C-terminal group as a formula: "OH" for a free acid, "NH2" for an amide. Leading and trailing white space is removed before the pattern is checked.
- `precursorCharge` (required): The precursor's charge number, 1 to 100. Must be at least 1 and at most 100.
- `fragmentCharges` (required): Fragment charges to list, at least one.

and 1 more, listed below

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.
- Monoisotopic a, b, c, c-1, x, y, z, z+1 and z+2 ions at positions 1 to n−1, each a neutral fragment plus protons; ETD types are named by composition and electron state, and '+1' and '+2' are hydrogen atoms, not protons; charge up to the stated precursor charge (n−1 for ETD types); c and z products at proline's N–Cα bond are withheld; no neutral losses, internal or immonium ions; which ions a spectrum shows depends on the instrument and is not predicted.
- 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**

- B (D or N) or Z (E or Q): the two readings differ in mass.
- X or any other letter with no residue formula.
- a modification at a position outside the sequence.
- a modification with neither add nor remove.

### Every input, with its units

7 inputs

- `sequence` (required): The peptide in one-letter codes, N to C (U selenocysteine, O pyrrolysine, J leucine or isoleucine). Leading and trailing white space is removed before the pattern is checked.
- `modifications` (required): Modifications; an empty list for none.
- `nTerm` (required): The N-terminal group as a formula: "H" for a free amine, "C2H3O" for acetyl. Leading and trailing white space is removed before the pattern is checked.
- `cTerm` (required): The C-terminal group as a formula: "OH" for a free acid, "NH2" for an amide. Leading and trailing white space is removed before the pattern is checked.
- `precursorCharge` (required): The precursor's charge number, 1 to 100. Must be at least 1 and at most 100.
- `fragmentCharges` (required): Fragment charges to list, at least one.
- `ionTypes` (required): The ion types to list, at least one.

### Every refusal, with its code

10 refusals

| Code | When |
| --- | --- |
| `AMBIGUOUS_RESIDUE` | B (D or N) or Z (E or Q): the two readings differ in mass. |
| `RESIDUE_NOT_IN_TABLE` | X or any other letter with no residue formula. |
| `MODIFICATION_OUTSIDE_SEQUENCE` | a modification at a position outside the sequence. |
| `EMPTY_MODIFICATION` | a modification with neither add nor remove. |
| `NEGATIVE_ATOM_COUNT` | a modification takes its own residue below zero atoms of an element. |
| `CHARGED_FORMULA` | a terminus or a modification has a charge written in it. |
| `FORMULA_UNREADABLE` | a terminus or a modification is not a formula. |
| `ELEMENT_NOT_IN_TABLE` | a terminus or a modification names an element with no representative composition. |
| `MONOISOTOPE_NOT_FIXED` | a terminus or a modification names an element whose most abundant isotope is not fixed (lead). |
| `FRAGMENT_CHARGE_ABOVE_PRECURSOR_RULE` | a fragment charge above the precursor charge (a, b, x, y) or above it less one (c, c-1, z, z+1, z+2). |

## The calculation

The method's equations, constants and worked example.

### [Fragment ion m/z of a modified peptide](https://www.drybench.com/methods/m/peptide-fragments/1.0.2)

`peptide-fragments@1.0.2`

**Equation 1**

```text
a = [N] + [M] - CHO (even-electron)
```

| Symbol | Meaning |
| --- | --- |
| `[N]` | N-terminal group, as element counts |
| `[C]` | C-terminal group, as element counts |
| `[M]` | the fragment's residues and their modifications, as element counts |
| `Mr` | the neutral fragment's monoisotopic mass, Da |

Source 1.

**Equation 2**

```text
b = [N] + [M] - H (even-electron)
```

| Symbol | Meaning |
| --- | --- |
| `[N]` | N-terminal group, as element counts |
| `[C]` | C-terminal group, as element counts |
| `[M]` | the fragment's residues and their modifications, as element counts |
| `Mr` | the neutral fragment's monoisotopic mass, Da |

Source 1.

**Equation 3**

```text
c = [N] + [M] + NH2 (even-electron
c')
```

| Symbol | Meaning |
| --- | --- |
| `[N]` | N-terminal group, as element counts |
| `[C]` | C-terminal group, as element counts |
| `[M]` | the fragment's residues and their modifications, as element counts |
| `Mr` | the neutral fragment's monoisotopic mass, Da |

Source 1.

**Equation 4**

```text
c-1 = [N] + [M] + NH (radical
c.). Drybench's construction: c − H, z + H and z + 2H. The cited page gives formulae for a, b, c, x, y and z
it names z+1 and z+2 as ETD/ECD products without formulae and does not name c-1.
```

| Symbol | Meaning |
| --- | --- |
| `[N]` | N-terminal group, as element counts |
| `[C]` | C-terminal group, as element counts |
| `[M]` | the fragment's residues and their modifications, as element counts |
| `Mr` | the neutral fragment's monoisotopic mass, Da |

Source 1.

**Equation 5**

```text
x = [C] + [M] + CO - H (even-electron)
```

| Symbol | Meaning |
| --- | --- |
| `[N]` | N-terminal group, as element counts |
| `[C]` | C-terminal group, as element counts |
| `[M]` | the fragment's residues and their modifications, as element counts |
| `Mr` | the neutral fragment's monoisotopic mass, Da |

Source 1.

**Equation 6**

```text
y = [C] + [M] + H (even-electron)
```

| Symbol | Meaning |
| --- | --- |
| `[N]` | N-terminal group, as element counts |
| `[C]` | C-terminal group, as element counts |
| `[M]` | the fragment's residues and their modifications, as element counts |
| `Mr` | the neutral fragment's monoisotopic mass, Da |

Source 1.

**Equation 7**

```text
z = [C] + [M] - NH2 (even-electron
y - NH3)
```

| Symbol | Meaning |
| --- | --- |
| `[N]` | N-terminal group, as element counts |
| `[C]` | C-terminal group, as element counts |
| `[M]` | the fragment's residues and their modifications, as element counts |
| `Mr` | the neutral fragment's monoisotopic mass, Da |

Source 1.

**Equation 8**

```text
z+1 = [C] + [M] - NH (radical
z., 'z-dot'). Drybench's construction: c − H, z + H and z + 2H. The cited page gives formulae for a, b, c, x, y and z
it names z+1 and z+2 as ETD/ECD products without formulae and does not name c-1.
```

| Symbol | Meaning |
| --- | --- |
| `[N]` | N-terminal group, as element counts |
| `[C]` | C-terminal group, as element counts |
| `[M]` | the fragment's residues and their modifications, as element counts |
| `Mr` | the neutral fragment's monoisotopic mass, Da |

Source 1.

**Equation 9**

```text
z+2 = [C] + [M] - NH + H (even-electron
z'). Drybench's construction: c − H, z + H and z + 2H. The cited page gives formulae for a, b, c, x, y and z
it names z+1 and z+2 as ETD/ECD products without formulae and does not name c-1.
```

| Symbol | Meaning |
| --- | --- |
| `[N]` | N-terminal group, as element counts |
| `[C]` | C-terminal group, as element counts |
| `[M]` | the fragment's residues and their modifications, as element counts |
| `Mr` | the neutral fragment's monoisotopic mass, Da |

Source 1.

**Equation 10**

```text
m/z = (Mr + z x (m(1H) - m(e))) / z at positions 1 to n-1
'+1' and '+2' are hydrogen atoms, not protons. A proton is taken as m(1H) − m(e), the hydrogen atom less one electron: Drybench's construction
the cited page says only that protons are added. It is 1.46e-8 u below the CODATA 2022 proton mass, and at a rounding boundary the difference can move the sixth decimal by one (ion-mz-1#c3h8os-protonated: 93.036862 here, 93.036863 with the proton mass). Fragments are listed by the order of ionTypes as given, then by fragment number, then by charge, ascending
a one-residue sequence has no bond to break and returns an empty ion list, not a refusal. Drybench's rule: a product carries no more charges than its precursor
in electron capture or transfer one precursor charge is neutralised, so c- and z-type products carry at most one fewer (FRAGMENT_CHARGE_ABOVE_PRECURSOR_RULE). Drybench's rule from proline's ring: an N–Cα cleavage at proline leaves the two pieces joined, so no separate c or z product forms (PROLINE_N_CALPHA)
```

| Symbol | Meaning |
| --- | --- |
| `Mr` | neutral fragment mass, Da |
| `z` | fragment charge |
| `m(1H)` | AME2020 mass of 1H, Da |
| `m(e)` | electron mass, Da |
| `m/z` | m/z, the dimensionless quotient of IUPAC 2013 entry 356 (the name 'mass-to-charge ratio' is deprecated there), Th |

Source 1.

**Equation 11**

```text
bound(m/z) = (bound(Mr) + z x (u(1H) + u(m(e)))) / z, bound(Mr) summed linearly over the neutral fragment's atoms
rounded up to two significant figures (toward larger magnitude at the second significant figure). Mr is the monoisotopic mass of the fragment's formula, by the rule of ion-mz's M
the printed formula is the neutral fragment, without the added protons
```

| Symbol | Meaning |
| --- | --- |
| `Mr` | monoisotopic mass of the neutral fragment formula, Da |
| `u(1H)` | AME2020 uncertainty of 1H, Da |
| `u(m(e))` | standard uncertainty of the electron mass, Da |
| `z` | fragment charge |

Source 2.

| Constant | Value | From |
| --- | --- | --- |
| AME2020 atomic masses and uncertainties, stored as integers in units of 1e-12 u: the file's micro-u value times one million; divide the stored integer by 10^12 for u `m(nuclide)` | a table of values, part of the method | Source 2 |
| electron mass `m(e)` | 0.0005485799090441 Da | Source 3 |
| 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) `monoisotope` | a table of values, part of the method | Source 4 |

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 peptide-fragments\@1.0.2, 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**

- sequence = PGGK
- nTerm = H
- cTerm = OH
- precursorCharge = 2
- fragmentCharges\[0\] = 1
- ionTypes\[0\] = c
- ionTypes\[1\] = z

**Steps**

1. c1-mass = 114.07931 Da, from sequence, nTerm; by equation 3.
2. h-less-electron = 1.0072765 Da, from fragmentCharges\[0\]; by equation 10.
3. c1-mz = 115.08659 Th, from c1-mass, h-less-electron; by equation 10; gives ions\[0\].mz.
4. z1-mass = 129.07898 Da, from sequence, cTerm; by equation 7.
5. z1-mz = 130.0863 Th, from z1-mass, h-less-electron; by equation 10; gives ions\[3\].mz.

The working, as the case writes it:

```text
c1 = H + Pro C5H7NO + NH2 = C5H10N2O, + (m(1H) - m(e)) = 115.086589 Th
z1 = OH + Lys C6H12N2O - NH2 = C6H11NO2, + (m(1H) - m(e)) = 130.086255 Th. Proline is residue 1, so no c ion ends just before it and no z ion begins with it: none is withheld. z1's m/z is 130.086255 to six decimals
its printed step shows seven figures because the eighth sits on an exact half in double precision. Carry the AME2020 values in full
the printed partials are rounded and can differ in the last reported decimal.
```

**Answer**

- ions\[0\].mz = 115.08659 Th
- ions\[3\].mz = 130.0863 Th

Where these values came from: our own exact-arithmetic script and a hand-worked case; exact decimal on AME2020 masses and CODATA 2022 m\_e, by this script.

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

Who worked this case: not recorded.

## Sources

1. Matrix Science, Mascot help: Peptide fragmentation (formulae for fragment ion m/z, after Roepstorff and Fohlman 1984, doi:10.1002/bms.1200111109, and Johnson et al. 1987, doi:10.1021/ac00148a019) Used for: Fragment ion m/z of a modified peptide. At: section Formulae to Calculate Fragment Ion m/z values. **Read in full, 11 November 2026**
2. 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: Fragment ion m/z of a modified peptide. At: table mass\_1.mas20.txt, column ATOMIC MASS (micro-u) and its uncertainty, every nuclide. **Read in full, 10 November 2026**
3. Mohr PJ, Newell DB, Taylor BN, Tiesinga E. CODATA recommended values of the fundamental physical constants: 2022 (NIST web table), electron mass in u Used for: Fragment ion m/z of a modified peptide. At: table electron mass in u, value and standard uncertainty. **Read in full, 11 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: Fragment ion m/z of a modified peptide. At: table Isotopic Composition column, every element. **Read in full, 10 November 2026**

Read by AI-assisted sessions. No person has checked these readings.

## How it is checked

**Level:** Checked against a reference.

**Checked against:** Our own exact-arithmetic script and a hand-worked case; a reference program this project wrote itself, second implementation (Python 3.13), 2026-11-14, exact rationals (Python fractions) on the exact value of each input double, each output rounded once to the nearest double; not an outside program.

**Cases:** No case set is linked to this version.

**Not checked:** One session wrote the first script and the engine; a second implementation in Python by a separate agent of the same model family agrees on 107 cases at 1.0.1, and another on 54 at 1.0.0; which ions a spectrum shows is not predicted; neutral losses, internal and immonium ions are not given; the primary papers (Roepstorff and Fohlman 1984, Johnson et al. 1987) were not read, only their tabulation by Matrix Science.

No independent scientist has yet reviewed this.

### What was not checked, in full

from the method records

- One session wrote the first script and the engine; a second implementation in Python by a separate agent of the same model family agrees on 107 cases at 1.0.1, and another on 54 at 1.0.0; which ions a spectrum shows is not predicted; neutral losses, internal and immonium ions are not given; the primary papers (Roepstorff and Fohlman 1984, Johnson et al.
- 1987) were not read, only their tabulation by Matrix Science.
- A formula starting with a digit (13HPO3 as a modification) is refused FORMULA\_UNREADABLE since 1.0.2, through formula-mass 1.3.0, with no case in this method's fixtures; the refusal is covered by stored reference values and unit tests only.

### Changes to its methods

1 change

- [25 November 2026, peptide-fragments\@1.0.2](https://www.drybench.com/methods/corrections#2026-11-25-peptide-fragments102-1): In 1.0.2, through formula-mass 1.3.0, a formula starting with a digit is now refused (FORMULA\_UNREADABLE); every other output is unchanged, and every pinned output hash is the same.
