Skip to content

Methods and checksMethods

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

Methods and checks pages

Percent yield from the product obtained and its theoretical amount, version 1.0.3

rxn-yield@1.0.3: 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; purity as a mass fraction; theoretical amount stated or from the limiting reagent. 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 1.0.3

Level: Checked against a reference; purity as a mass fraction; theoretical amount stated or from the limiting reagent. Reference kind: our own exact-arithmetic script and a hand-worked case. rxn-yield@1.0.3

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.

Percent yield is 100 times the amount of product obtained (isolated mass × purity / M, or an assay amount) over the theoretical amount (stated, or from the limiting reagent). The product needs a formula or a molar mass only where its amount is formed from an isolated mass: with an assay amount and the theoretical amount stated, neither is needed, and one given but unreadable is still refused. A purity is used only where an amount is formed from a mass, so a reagent charged by amount needs none (SF-F10).

  • How results are reported: none: full double precision; a yield above 100 % is reported with the flag ABOVE_THEORETICAL on result.percentYield, never clipped or withheld
  • Uncertainty: Exact arithmetic on the stated inputs; no uncertainty in a mass, purity or assay is propagated.
  • Reference, as its record states it: exact arithmetic in a Python program on hand-typed CIAAW weights; Pint 0.26.2 over exact fractions
  • Computes through: rxn-limiting-reagent@1.0.4, formula-reading@1.0.2
  • Level confirmed by this project's ruling of 25 November 2026

What this page can and cannot show

What was checked

121 cases in 5 files, linked by this exact version.

Run through the tool at build against our own exact-arithmetic script and a hand-worked case: 51 agree within the tolerance the file states, 70 refuse as the case expects, 0 differ, 0 were not run.

  • File 1, 20 cases

    • Where the expected values came from: our own exact-arithmetic script and a hand-worked case
    • Recorded on: 2026-11-10
    • Reference: Python standard library decimal and fractions, Python 3.13.18; licence PSF-2.0
    • Tolerance as the file states it: every number relative 1e-12; basis, flags, statuses and codes exact
  • File 2, 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: every number relative 1e-12; basis, flags, statuses and codes exact
  • File 3, 3 cases

    • Where the expected values came from: our own exact-arithmetic script and a hand-worked case
    • Recorded on: 2026-11-14
    • Reference: Python standard library, 3.13.18; licence PSF-2.0
    • Tolerance as the file states it: every number relative 1e-12; basis, flags, statuses and codes exact
  • File 4, 18 cases

    • Where the expected values came from: our own exact-arithmetic script and a hand-worked case
    • Recorded on: 2026-11-24
    • Reference: Python fractions (this lane's script), Python 3.13.18; licence PSF-2.0
    • Tolerance as the file states it: every number relative 1e-12 (absolute 1e-312 below 1e-300 in each value's own unit), stated before the run; basis, flags, statuses and codes exact
  • File 5, 34 cases

    • Where the expected values came from: our own exact-arithmetic script and a hand-worked case
    • Recorded on: 2026-11-24
    • Reference: second implementation (Python 3.13): stored reference values, Python 3.13.18; licence PSF-2.0
    • Tolerance as the file states it: every number relative 1e-12 (absolute 1e-312 below 1e-300 in each value's own unit), stated before the run; basis, flags, notes, 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

An IUPAC definition of percent yield in the chemistry sense (none found; the definition is read in two CC BY articles); that the purity is a mass fraction by assay; that the product weighed is dry and free of solvent, water or salts. A formula starting with a digit (13C6H12O2) is refused FORMULA_INVALID 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.

Definition or model

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

Equations

Equation 1

n_obt = m · w / M (isolated), or the amount found by assay
Symbol Meaning and unit
n_obt amount of product obtained, mol
m isolated mass, g
w purity, a mass fraction
M molar mass, g/mol

Source: 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, p. 44, section §4.10: molar mass M_B = m_B/n_B, so n = m/M; mass fraction w_B = m_B/Σ m_j, so the product's mass in a weighed m is m·w, 4th edition, abridged version (2023): IUPAC's online PDF release of March 2025 (122 pages; PDF created 26 October 2023), not the RSC e-book of record; read in full on 2026-11-17 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 31e11316dcce. Free to read (free PDF from IUPAC; © IUPAC 2023, reproduction beyond fair dealing needs permission (definitions used, not text)), checked 2026-11-17. No erratum found (searched IUPAC's Green Book page (iupac.org/what-we-do/books/greenbook/) as retrieved 17 November 2026: no erratum listed for the 4th edition, crossref (10.1039/9781839163180): no update or erratum relation, web search for errata to the 4th edition, abridged), 2026-11-17.

Equation 2

Y = 100 % × n_obt / n_theor
Symbol Meaning and unit
Y percent yield, %
n_theor theoretical amount, mol

Source: Orsy G, Shahmohammadi S, Forró E. A Sustainable Green Enzymatic Method for Amide Bond Formation. Molecules 2023;28(15):5706, section 3. Materials and Methods, 3.2 General Procedure for CALB-Catalyzed Amidation: percent yield of the desired amides (actual yield/theoretical yield × 100); Avakian 2025 states the same (the actual yield divided by the theoretical yield and multiplied by 100), version of record, as Europe PMC's full-text XML of PMC10419938; read in full on 2026-11-24 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 4a2f5e75d20d. Free to read (CC BY 4.0 (the article's licence statement)), checked 2026-11-24. No erratum found (searched the Europe PMC record of PMC10419938), 2026-11-24.

Equation 3

m_actual = m · w: the actual yield, the isolated product's mass times its purity as a fraction
Symbol Meaning and unit
m_actual actual yield, the mass of product in the material isolated, g
m isolated mass, g
w purity, a mass fraction

Source: Avakian A. Protecting the Ketone: Preparation of Ethyl Acetoacetate Ethylene Ketal and Its Relevance to Medicinal Chemistry. Cureus 2025;17(8):e90222, section Methods and Discussion: the actual yield, corrected for product purity, calculated by multiplying the total product mass by the fractional purity, version of record, as Europe PMC's full-text XML of PMC12439443; read in full on 2026-11-24 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning c672cdd2049a. Free to read (CC BY 4.0 (the article's licence statement)), checked 2026-11-24. No erratum found (searched the Europe PMC record of PMC12439443), 2026-11-24.

Constants

Constant Value and unit Source Date read
standard atomic weights (CIAAW abridged), through formula-mass 1.1.0 (A_r) a table of values, part of the method IUPAC Commission on Isotopic Abundances and Atomic Weights (CIAAW), Abridged Standard Atomic Weights, table Abridged Standard Atomic Weights 2026-11-10

Worked example

Worked example: one case of rxn-yield@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

  • product.formula = C6H12O2
  • obtained.basis = isolated
  • obtained.mass = 0.85 g
  • obtained.purity = 97 %
  • theoretical.amount = 8 mmol

Steps

  1. M = 116.16 g/mol, from product.formula; by equation 1.
  2. n = 0.0070979683 mol, from obtained.mass, obtained.purity, M; by equation 1; gives amountObtained.
  3. Y = 88.724604 %, from n, theoretical.amount; by equation 2; gives percentYield.

The working, as the case writes it:

Butyl acetate C6H12O2: M = 6×12.011 + 12×1.0080 + 2×15.999 = 116.160 g/mol
n = 0.850 g × 0.97 / 116.160 = 7.0980 mmol
7.0980/8.00 × 100 = 88.72 %.

Answer

  • amountObtained = 0.0070979683 mol
  • percentYield = 88.724604 %

Where these values came from: our own exact-arithmetic script and a hand-worked case; hand-worked in the fixture (derivation and worked steps).

At build the tool returned this answer within the tolerance the file states: every number relative 1e-12; basis, flags, statuses and codes exact.

Who worked this case: not recorded.

What it refuses, and its input ranges

  • QUANTITY_BASIS (invalid input): an isolated product is not given as a mass, or an assay yield is not given as an amount
  • PURITY_MISSING (invalid input): a solid, a substance or a neat liquid has no stated purity (never defaulted)
  • THEORETICAL_SOURCE (invalid input): not exactly one of a stated theoretical amount and a reaction
  • PRODUCT_FORM_DIFFERS (invalid input): the theoretical amount comes from a reaction whose product is not the form weighed (no 1:1 conversion between a salt or solvate and its parent is assumed)
  • MOLAR_MASS_SOURCE (invalid input): a substance gives both, or neither, of a formula and a molar mass
  • FORMULA_IS_SMILES (invalid input): a formula reads as a SMILES (= # @ / \ or a lower-case letter not after an upper-case one); for a structure, molecule_descriptors
  • FORMULA_INVALID (invalid input): the formula cannot be read exactly as written: it is an electron; it writes a charge of zero; the formula-mass parser refuses it (an unknown symbol or one without a standard atomic weight, an ambiguous charge such as Fe3+, an unclosed bracket, a number before the formula such as 13CH4); it holds a count of zero; a count or the charge is above 2^53 − 1; or its molar-mass sum is too large to hold exactly (the shared routine formula-reading)

Input ranges: obtained.mass: above 0 g; outside it, invalid input (OUT_OF_RANGE). obtained.amount: above 0 mol; outside it, invalid input (OUT_OF_RANGE). obtained.purity: above 0 and at most 1; outside it, invalid input (OUT_OF_RANGE). theoretical.amount: above 0 mol; outside it, invalid input (OUT_OF_RANGE).

Flags and notes a reply may carry

A flag says a number must be read differently:

  • ABOVE_THEORETICAL: Above the theoretical amount: more product is recorded than the reaction can give. Usually the product still holds solvent, water, salts or another substance, its purity is overstated, the theoretical amount is wrong, or an assay's calibration is off. Not a yield to report as it stands.

A note a reply may carry:

  • ASCII_DOT_ADDUCT: An ASCII dot between digits was read as an adduct (a hydrate written with a dot is read as the salt with its water); write · for an adduct. Decimal counts are not accepted: check the formula as read.

Changes

2026-11-25-rxn-yield@1.0.3-1

2026-11-25 · rxn-yield@1.0.3 · Corrections to our methods

  • What was wrong: A number written before the product formula or a reagent formula was read as a multiplier. 0.85 g at 97 % of a product written 13C6H12O2 against 8 mmol theoretical was read as C78H156O26: a yield of 6.82 % for 88.72 %.
  • Affected: rxn_yield at rxn-yield 1.0.2 and earlier, only where the product formula or a reaction reagent formula starts with a digit. Every other output is unchanged.
  • What changed: In 1.0.3, through formula-mass 1.3.0, a formula starting with a digit is now refused (FORMULA_INVALID); every other output is unchanged, and every pinned output hash is the same.
  • How it was found: A review of the formula reader's grammar on 24 November 2026 found that no rule or test documented a number at the start of a formula, while the shared reader (formula-mass) applied the adduct multiplier to the first part as well; the scientific review ruled the same day that such a formula is refused. A sweep of the tools' worked examples with 13 written before each formula argument, before and after the fix, found which tools computed on it.
  • Cases added: None in the fixtures: no published case starts a formula with a digit, and every pinned output hash is unchanged. The refusal is covered by the formula reader's hand cases and unit tests; the widened sweep records each tool's reply before and after.

Tools that use it

Cite this version

Percent yield from the product obtained and its theoretical amount. Drybench; rxn-yield@1.0.3; https://www.drybench.com/methods/m/rxn-yield/1.0.3 (accessed [date]).