# PMI, E-factors and reaction mass efficiency of one step from its mass inventory

`rxn_mass_metrics` · Runs: On the server · Level: Checked against a reference: exact arithmetic in a Python program, with the ACS PMI tool's and CHEM21's printed examples; a second implementation in Python by a separate agent of the same model family

Works out process mass intensity, E-factors and reaction mass efficiency for one step.

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

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

```cite
PMI, E-factors and reaction mass efficiency of one step from its mass inventory (rxn_mass_metrics), Drybench MCP server 1.0.0; rxn-mass-metrics@1.0.3 (Checked against a reference); https://www.drybench.com/mcp/tools/rxn-mass-metrics
```

## What it is

Returns process mass intensity (in total, by role, by category), E-factors and RME of one step from its lines. Use when the masses that went into a synthesis step or a purification train step and the product's mass are known. Not for the equation's atom economy: use \`rxn\_atom\_economy\`; not for a percent yield: use \`rxn\_yield\`; not for a whole route: use \`rxn\_route\_pmi\`. Each line needs a role and a mass (or volume and density); product purity is required; RME and the simple E-factor are withheld when undefined.

Field: [Medicinal and synthetic chemistry](https://www.drybench.com/mcp/catalogue/chemistry).

## What it does

**You give**

- `lines` (required): Everything put into the step, one line per material.
- `product` (required): The product: its mass and purity, both required.

No request is recorded for this tool.

**Limits**

- Bench and process arithmetic on a reaction you write down.
- Research and education software: it does not predict products or routes, check that the chemistry will work, or assess hazards.
- Metrics of the inventory you list, with the roles you assign.
- A line left out or mis-tagged changes every metric, and two results compare only if both inventories list the same things.
- 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**

- a charge or a line gives not exactly one of its quantities (amount, mass or volume), or a reagent other than the reference carries a scale.
- a liquid, a mass-fraction solution or a line given by volume has no density.
- the product's assay mass is more than every line put in.
- product.purity outside above 0 and at most 1.

### Every input, with its units

2 inputs

- `lines` (required): Everything put into the step, one line per material.
- `product` (required): The product: its mass and purity, both required.

### Every refusal, with its code

4 refusals

| Code | When |
| --- | --- |
| `QUANTITY_SOURCE` | a charge or a line gives not exactly one of its quantities (amount, mass or volume), or a reagent other than the reference carries a scale. |
| `DENSITY_MISSING` | a liquid, a mass-fraction solution or a line given by volume has no density. |
| `PRODUCT_EXCEEDS_INPUTS` | the product's assay mass is more than every line put in. |
| `OUT_OF_RANGE` | product.purity outside above 0 and at most 1. |

## The calculation

The method's equations, constants and worked example.

### [E-factor, process mass intensity and reaction mass efficiency of one step from its mass inventory](https://www.drybench.com/methods/m/rxn-mass-metrics/1.0.3)

`rxn-mass-metrics@1.0.3`

**Equation 1**

```text
byCategory: Σ m / m_P over the lines carrying each caller's category label
lines with no label are summed as uncategorised
the label is free text, is not an ACS PMI category, and changes no metric
```

| Symbol | Meaning |
| --- | --- |
| `category` | a free label the caller puts on a line |

**Equation 2**

```text
RME = 100 % × m_P / Σ_reactant lines m
```

| Symbol | Meaning |
| --- | --- |
| `RME` | reaction mass efficiency, % |

Source 1.

**Equation 3**

```text
cEF = (Σ_all lines m − m_P) / m_P
```

| Symbol | Meaning |
| --- | --- |
| `cEF` | complete E-factor |

Source 2.

**Equation 4**

```text
sEF = (Σ_reactant, reagent and catalyst lines m − m_P) / m_P
```

| Symbol | Meaning |
| --- | --- |
| `sEF` | simple E-factor |

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 rxn-mass-metrics\@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**

- lines\[0\].name = acid
- lines\[0\].role = reactant
- lines\[0\].mass = 1.22 g
- lines\[1\].name = alcohol
- lines\[1\].role = reactant
- lines\[1\].mass = 0.74 g
- lines\[2\].name = acid catalyst
- lines\[2\].role = reagent
- lines\[2\].mass = 0.1 g
- lines\[3\].name = toluene
- lines\[3\].role = solvent
- lines\[3\].mass = 20 g
- lines\[4\].name = wash water
- lines\[4\].role = water
- lines\[4\].mass = 50 g
- lines\[5\].name = brine and drying agent
- lines\[5\].role = other
- lines\[5\].mass = 8 g
- product.mass = 1.1 g
- product.purity = 98 %

**Steps**

1. total = 80.06 g, from lines\[0\].mass, lines\[1\].mass, lines\[2\].mass, lines\[3\].mass, lines\[4\].mass, lines\[5\].mass; by a rule this method's record does not list as an equation; gives totalInputMass.
2. mP = 1.078 g, from product.mass, product.purity; by a rule this method's record does not list as an equation; gives productMassAssay.
3. PMI = 74.267161, from total, mP; by a rule this method's record does not list as an equation; gives processMassIntensity.
4. cEF = 73.267161, from total, mP; by equation 3; gives completeEFactor.

The working, as the case writes it:

```text
Lines: reactants 1.22 + 0.74 = 1.96 g
reagent 0.10 g
solvent 20.0 g
water 50.0 g
other 8.0 g
total 80.06 g. Product 1.10 g at 98 % = 1.078 g. PMI = 80.06/1.078 = 74.2672
water PMI = 50.0/1.078 = 46.3822
cEF = 78.982/1.078 = 73.2672
sEF = (1.96 + 0.10 − 1.078)/1.078 = 0.910946
RME = 1.078/1.96 × 100 = 55.000 %. All 80.06 g uncategorised.
```

**Answer**

- totalInputMass = 80.06 g
- productMassAssay = 1.078 g
- processMassIntensity = 74.267161
- completeEFactor = 73.267161

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, the water PMI and both E-factors absolute 1e-12 (each can be 0); withheld rules, roles, categories, statuses and codes exact.

Who worked this case: not recorded.

## Sources

1. ACS GCI Pharmaceutical Roundtable learning site, CHEM21 'Efficiency metrics' exercise (direct amidation with a borate ester): questions, data sheet and answer sheet Used for: E-factor, process mass intensity and reaction mass efficiency of one step from its mass inventory. At: section answer sheet, question 2: RME = mass of isolated product / total mass of reactants × 100 %. **Read in full, 10 November 2026**
2. Becker M, Lütz S, Rosenthal K. Environmental Assessment of Enzyme Production and Purification. Molecules 2021;26(3):573 Used for: E-factor, process mass intensity and reaction mass efficiency of one step from its mass inventory. At: section Appendix A, Eq. (A2), after Sheldon (the paper's ref. 7), as stated in Becker 2021: E = (Σ m(materials) − m(product))/m(product); the complete E factor includes water consumed as well as chemicals, and §2 counts solvents with it. All lines, and m\_P as the product's assay mass (weighed mass × purity), are the record's reading; section Appendix A, Eq. (A2), after Sheldon (the paper's ref. 7), as stated in Becker 2021: the simple E factor includes only chemicals consumed, not solvents or water (§2, the text after Table 2). Reactant, reagent and catalyst lines as the chemicals consumed, 'other' lines left out with solvent and water, is the record's mapping. **Read in full, 17 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; the source's own worked example, Python standard library decimal and fractions, Python 3.13.18.

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

**Not checked:** Sheldon's and Roschangar's own papers on the simple and complete E-factor (the method reads them as Becker et al. 2021 state them); comparability with published biologics PMI values (the ACS biopharmaceutical PMI definition is unread); recycling and recovery are not modelled.

No independent scientist has yet reviewed this.

### Changes to its methods

1 change

- [24 November 2026, rxn-mass-metrics\@1.0.3](https://www.drybench.com/methods/corrections#2026-11-24-rxn-mass-metrics103-1): In 1.0.3 the shared qty in stored reference values gives NaN for a non-zero rational that rounds to 0, which the kit refuses whole as RESULT\_OUTSIDE\_DOUBLE\_RANGE. Every pinned output hash is unchanged.
