# Found against calculated element percentages of a formula

`analyt_elemental_analysis_check` · Runs: On the server · Level: Checked against a reference: CIAAW's published abridged standard atomic weights 2024; an exact-rational script (Python fractions) and a hand-worked case; the full check of 14 November 2026 (a second implementation, edge cases); molmass 2026.11.1 on the same weights

Compares found element percentages with those calculated for a formula, against your window.

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) / [Analytical chemistry](https://www.drybench.com/mcp/catalogue/analytical-chemistry)

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

```cite
Found against calculated element percentages of a formula (analyt_elemental_analysis_check), Drybench MCP server 1.0.0; elemental-analysis@1.0.3 (Checked against a reference); https://www.drybench.com/mcp/tools/analyt-elemental-analysis-check
```

## What it is

Returns each element's calculated mass percentage for a formula and found minus calculated, against your window. Use when combustion (CHN) or other elemental analysis is compared with a proposed formula; state any solvate or hydrate with its equivalents. Not for a formula's molar mass alone: use \`calc\_formula\_mass\`. The window is required: no window is assumed; journals and agencies set their own. Refuses labelled formulas and elements with no standard atomic weight.

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

## What it does

**You give**

- `formula` (required): The proposed formula of the compound, without solvent, e.g. C8H10N4O2 or Ca(NO3)2. Leading and trailing white space is removed before the pattern is checked.
- `found` (required): The elements analysed.
- `window` (required): The acceptance window, in absolute percentage points (the journal's or your own; e.g. 0.4 for ±0.4 %). Must be above 0 %.
- `solvates`: Solvates or hydrates included in the analysed material, each stated, never guessed. Optional.

No request is recorded for this tool.

**Limits**

- Research and quality-control arithmetic on the values you supply, using the formulae of USP ⟨621⟩ (harmonised text, official 1 December 2022) and ICH Q2(R2) (adopted 1 November 2023) as each method writes them out.
- Each reply states whether a number lies inside or outside the range the chapter states; it does not decide whether a method, column or system meets a requirement, and it is not a release or regulatory decision.
- Calculated from the stated formula and solvates on CIAAW's abridged standard atomic weights; the acceptance window is yours, never assumed.
- Agreement within a window does not establish a structure or a purity.
- Atomic weights are CIAAW's abridged values, conventional values for elements whose standard atomic weight is an interval; the effect on a calculated percentage is far below a typical analytical window, and is not propagated.
- 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 formula or a found element names an element CIAAW lists with no standard atomic weight (Tc, Pm, Po and the others): the method cannot weigh it.
- the formula is isotopically labelled (D or T): not supported at this version.

### Every input, with its units

4 inputs

- `formula` (required): The proposed formula of the compound, without solvent, e.g. C8H10N4O2 or Ca(NO3)2. Leading and trailing white space is removed before the pattern is checked.
- `found` (required): The elements analysed.
- `window` (required): The acceptance window, in absolute percentage points (the journal's or your own; e.g. 0.4 for ±0.4 %). Must be above 0 %.
- `solvates`: Solvates or hydrates included in the analysed material, each stated, never guessed. Optional.

### Every refusal, with its code

2 refusals

| Code | When |
| --- | --- |
| `NO_STANDARD_ATOMIC_WEIGHT` | the formula or a found element names an element CIAAW lists with no standard atomic weight (Tc, Pm, Po and the others): the method cannot weigh it. |
| `LABELLED_NOT_SUPPORTED` | the formula is isotopically labelled (D or T): not supported at this version. |

## The calculation

The method's equations, constants and worked example.

### [Found against calculated element percentages of a formula](https://www.drybench.com/methods/m/elemental-analysis/1.0.3)

`elemental-analysis@1.0.3`

**Equation 1**

```text
w(E) = 100 × n(E) × A(E) / M, M = Σ n(E) × A(E), n(E) the count in the formula plus Σ equivalents × count in each stated solvate
```

| Symbol | Meaning |
| --- | --- |
| `w(E)` | mass fraction of element E, % |
| `n(E)` | amount of E per formula unit |
| `A(E)` | standard atomic weight, g/mol |
| `M` | molar mass, g/mol |

Source 1.

**Equation 2**

```text
Δ(E) = found(E) − w(E)
inside the caller's window when |Δ(E)| ≤ window, decided exactly on the decimal inputs
```

| Symbol | Meaning |
| --- | --- |
| `Δ(E)` | found minus calculated mass fraction of element E, % |
| `found(E)` | the caller's found mass fraction, % |
| `w(E)` | the calculated mass fraction, % |
| `window` | the caller's stated window (never defaulted), % |

| Constant | Value | From |
| --- | --- | --- |
| standard atomic weights, CIAAW abridged table, edition on ciaaw.org as read 10 November 2026 (the 2021 values with the 2024 revisions; the suite's own atomic-weights table, all 84 values compared with that page, no difference) `A(E)` | a table of values, part of the method | Source 2 |

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 elemental-analysis\@1.0.3, 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**

- formula = C8H10N4O2
- found\[0\].element = C
- found\[0\].massFraction = 49.32 %
- found\[1\].element = H
- found\[1\].massFraction = 5.21 %
- found\[2\].element = N
- found\[2\].massFraction = 28.71 %
- window = 0.4 %

**Steps**

1. M = 194.194 g/mol, from formula; by equation 1; gives molarMass.
2. wC = 49.480416 %, from formula, M; by equation 1; gives elements\[0\].calculated.
3. dC = -0.16041649 %, from found\[0\].massFraction, wC; by equation 2; gives elements\[0\].difference.

The working, as the case writes it:

```text
M = 8 x 12.011 + 10 x 1.0080 + 4 x 14.007 + 2 x 15.999 = 96.088 + 10.080 + 56.028 + 31.998 = 194.194
C = 96.088/194.194 = 49.4805 %
H = 10.080/194.194 = 5.1907 %
N = 56.028/194.194 = 28.8516 %
differences -0.1605, +0.0193, -0.1416, all within 0.4.
```

**Answer**

- molarMass = 194.194 g/mol
- elements\[0\].calculated = 49.480416 %
- elements\[0\].difference = -0.16041649 %

Where these values came from: our own exact-arithmetic script and a hand-worked case; Mass fraction w(E) = n(E) x A(E) / M (IUPAC Green Book, 3rd ed., section 2.10) on CIAAW's abridged standard atomic weights (read 10 November 2026).

At build the tool returned this answer within the tolerance the file states: relative 1e-12 (absolute 1e-18 below 1e-6); absolute 1e-12 % on calculated and found fractions and differences, which may be 0; statuses, codes, elements and windows exact.

Who worked this case: not recorded.

## Sources

1. IUPAC, Quantities, Units and Symbols in Physical Chemistry (the IUPAC Green Book), 4th edition, abridged version, eds. Brett CMA, Frey JG, Hinde R, Kuroda Y, Marquardt R, Pavese F, Quack M, Stohner J, Thor AJ, RSC Publishing 2023 Used for: Found against calculated element percentages of a formula. At: p. 44, section §4.10 General chemistry: mass fraction w\_B = m\_B/Σ m\_j, relative atomic mass A\_r = m\_a/m\_u, molar mass M\_B = m\_B/n\_B; the record's derivation: one formula unit's mass is the sum of its atoms' masses, each A\_r(E)·m\_u, so w(E) = n(E)·A(E)/Σ n·A, and m\_u cancels. **Read in full, 24 November 2026**
2. IUPAC CIAAW, Abridged Standard Atomic Weights Used for: Found against calculated element percentages of a formula. At: table the abridged table. **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.

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

**Not checked:** Isotopically labelled formulas (refused); the conventional values used for interval elements (H, C, N, O, S, Cl and others) are not flagged in the reply at 1.0.0; whether the stated solvate is the one present; any journal's window. A formula starting with a digit (13C8H10N4O2, or 13H2O as a solvate) is refused INVALID\_STRING since 1.0.3, 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.

No independent scientist has yet reviewed this.

### Changes to its methods

1 change

- [25 November 2026, elemental-analysis\@1.0.3](https://www.drybench.com/methods/corrections#2026-11-25-elemental-analysis103-1): In 1.0.3, through formula-mass 1.3.0, a formula starting with a digit is now refused (INVALID\_STRING); every other output is unchanged, and every pinned output hash is the same.
