# Making the Specification Add Up

Source page: https://temple-quality-in-pharma.scribe-it.app/2026-lecture/8-nov2/4-wet-chemistry-workhorses/6-making-the-specification-add-up/

*Convert results between as-is, anhydrous and salt bases, sum a salt hydrate's composition with uncertainty, use stoichiometric ratios to diagnose what a balance misses, and assemble the routine controls that keep each wet-chemistry test honest.*

## The one idea

> Results on different bases agree only when every correction is measured. When orthogonal tests disagree, the disagreement is evidence, and a wet-chemistry bias does not stay in its own line on the certificate.

Readings 2–5 each measured one slice of Compound X·HCl·H₂O by a different principle. This reading puts the slices back together. Here the question is absolute composition: what is in the material as weighed? Earlier, [stability-study mass balance](https://temple-quality-in-pharma.scribe-it.app/2026-lecture/8-nov2/3-stability-indicating-methods/6-mass-balance-and-missing-peaks/) asked where the initial drug went. The same discipline applies—define the basis, avoid overlap and assess uncertainty—but the quantities being counted differ.

> **[Figure]** *Image:* Left: a stacked bar of constructed results for one lot of Compound X hydrochloride monohydrate: free base 84.30 percent, HCl 10.20 percent, water 5.10 percent, ethanol, organic impurities and residue on ignition, totalling 100.00 percent with an expanded uncertainty of 0.84 percent. Right: horizontal bars show the deviation from 100 percent for four scenarios. Nominal is zero; a low-chloride measurement is minus 0.53 and inside the uncertainty band; a low-water measurement is minus 1.10 and a low-API measurement is minus 1.20, both outside. Each scenario is labelled with its chloride-to-base and water-to-base molar ratios. — *Caption:* Constructed results and scenarios. Isolated measurement perturbations show how totals and molar ratios respond. They suggest investigations; neither proves a cause or salt identity.

## Account for every milligram

Start with a simpler **constructed neutral bulk material**, separate from the Compound X salt-hydrate case below. You weigh **1.000 g (1,000 mg)**. What is actually in that gram?

| Component | Complementary measurement | As-is % w/w | mg in 1.000 g |
|---|---|---:|---:|
| Main component | High-performance liquid chromatography (HPLC) assay against a qualified standard | 96.5 | 965 |
| Organic impurities | Calibrated or response-corrected HPLC | 0.8 | 8 |
| Water | Karl Fischer | 0.4 | 4 |
| Residual solvents | Headspace gas chromatography (GC) | 0.1 | 1 |
| Inorganic contribution | Ash plus composition assessment | 0.1 | 1 |
| Counterions | Ion chromatography, if applicable | 0.0 | 0 |
| **Accounted for** | | **97.9** | **979** |
| **Unexplained gap** | | **2.1** | **21** |

No counterion is expected in this neutral-material example. The inorganic line assumes a justified, non-overlapping contribution: raw sulfated ash is an operational residue, not automatically the original inorganic mass.

**Does the missing 21 mg mean an unknown impurity is present, or could the measurements and calculations explain it?**

Check the bookkeeping first. All entries must describe the same as-is material in % w/w; HPLC area % is not automatically mass %. Do not add loss on drying to separately measured water and solvents when those losses overlap. Check standard potency, recovery and impurity response factors. A total above 100% can arise from overlap, basis errors or measurement error; it does not mean the sample gained mass.

Then investigate what the methods could miss: UV-weak components, unmeasured ions, incomplete extraction or water release, coelution, and components eluting at the void, late or not at all. The gap identifies a question, not its answer.

### Decide whether the gap exceeds the uncertainty

Recall [“How close is close enough?”](https://temple-quality-in-pharma.scribe-it.app/2026-lecture/8-nov2/3-stability-indicating-methods/6-mass-balance-and-missing-peaks/#how-close-is-close-enough): 97.9% ±1.0 percentage point excludes 100%, whereas ±3.0 includes it. Those hypothetical expanded uncertainties illustrate the decision; they are not acceptance limits or an uncertainty estimate for this material. A wider interval gives weaker evidence of completeness. Even 100% closure can hide compensating errors.

Now return to **Compound X·HCl·H₂O**. Before adding the results for a salt hydrate, we must resolve a further question: are the numbers reported as free base, salt, as-is or dry material?

## Every result has a basis

The same lot can be described in several ways, and a number without its basis is ambiguous:

- **As-is:** a fraction of the sample as weighed, water and solvent included.
- **Anhydrous:** corrected for water.
- **Anhydrous, solvent-free:** corrected for water and residual solvent.
- **As the salt or as the free base:** multiplied or divided by the molar-mass ratio, 337.847 / 301.386 = 1.1210 for the anhydrous hydrochloride.

**Compound X — constructed teaching example.** The liquid chromatography (LC) assay finds 84.30% w/w free base, as-is. Karl Fischer (KF) gives 5.10% water and GC gives 0.12% ethanol.

```text
as anhydrous HCl salt, as-is        = 84.30 × 1.1210            = 94.50%
as anhydrous HCl salt, anhydrous
  and solvent-free                   = 94.50 / (1 − 0.0510 − 0.0012) = 99.70%
```

Now substitute the stale-titer KF result, 5.289%. The anhydrous, solvent-free assay becomes **99.90%**. The water bias has moved the headline assay up by 0.20 percentage points, and the LC lab did nothing wrong.

The HCl conversion assumes the measured chloride belongs to the proposed hydrochloride composition. Chloride from another salt or excipient would invalidate that attribution; the conversion itself does not demonstrate protonation.

## Worked example: does the lot add up?

Express every component as a fraction of the as-is mass, with a standard uncertainty for each:

| Component | % w/w | Standard uncertainty (percentage points) |
|---|---:|---:|
| Compound X free base (LC) | 84.30 | 0.40 |
| HCl (from ion chromatography (IC) chloride 9.92%) | 10.20 | 0.10 |
| Water (KF) | 5.10 | 0.05 |
| Ethanol (GC) | 0.12 | 0.01 |
| Organic impurities (LC, as free base) | 0.25 | 0.03 |
| Residue on ignition | 0.03 | 0.02 |
| **Total** | **100.00** | **0.42** |

For this simplified exercise, assume the residue is a justified, non-overlapping composition contribution and the inputs are independent. Combining the standard uncertainties in quadrature [1] gives 0.42 percentage point; the expanded uncertainty at k = 2 is **±0.84 percentage point**, with approximately 95% coverage assumed justified. The LC assay contributes most of it. The interval around 100.00% is about 99.16–100.84%. This is an uncertainty illustration, not a release window: compatibility with complete accounting does not establish that every component was correctly measured. Shared errors would require covariance terms.

## Ratios see what the total misses

A total close to 100% supports overall accounting within the stated uncertainty, but can conceal missing components and compensating errors. It does not establish protonation or crystal form. Molar ratios provide additional composition checks with their own uncertainty:

```text
chloride : free base = (9.92 / 35.453) / (84.30 / 301.386) = 1.000
water    : free base = (5.10 / 18.015) / (84.30 / 301.386) = 1.012
```

Each ratio carries about 1.1% relative standard uncertainty from its two inputs under the independence assumption. The two ratios share the LC denominator, so their changes are correlated rather than independent confirmations. Both are consistent with the bulk composition expected for one HCl and one water per active pharmaceutical ingredient (API) molecule, without proving their solid-state arrangement; the slightly high water ratio is within uncertainty and would also fit a little surface water.

Now perturb one reported input at a time while holding the others fixed. These are **measurement-sensitivity exercises, not physical models of three altered lots**. Actual water or HCl loss changes the remaining sample mass and renormalizes the other as-is percentages; model that mass change before predicting a real dried lot. Keep the nominal uncertainty fixed here solely to compare sensitivity:

| Scenario | Total − 100 | Outside ± 0.84? | Cl : base | H₂O : base |
|---|---:|---|---:|---:|
| Nominal | 0.00 | No | 1.000 | 1.012 |
| Low chloride input (9.40%) | −0.53 | **No** | **0.948** | 1.012 |
| Low water input (4.00%) | −1.10 | Yes | 1.000 | **0.794** |
| Low API input (83.10%) | −1.20 | Yes | 1.015 | 1.027 |

- **The low chloride input remains compatible with closure within the assumed uncertainty.** Its chloride-to-API ratio is about five standard uncertainties below one, warranting investigation of chloride recovery, calibration, composition and possible chloride loss. It does not uniquely diagnose disproportionation; proton transfer to an excipient can leave total chloride unchanged.
- **The low water input** gives a deficit beyond the assumed uncertainty and a low water-to-API ratio. Investigate water release, recovery, sample composition and possible dehydration; confirm the solid form by [XRPD and TGA](https://temple-quality-in-pharma.scribe-it.app/2026-lecture/9-nov9/1-solid-state-characterization/2-xrpd-crystallography/3-forms-that-change/).
- **The low API input** produces a total deficit and raises both ratios because their common denominator decreases. The ratio shifts alone are not clearly diagnostic against the stated uncertainty; neither is the water ratio in the nominal row exactly one. Investigate incomplete API recovery, reference-standard or calibration bias, or genuinely lower API content with unaccounted material. A degradant included in the API peak would generally bias assay upward, so it is not a default explanation for an under-reading. Different errors can still cancel; use the [specificity evidence](https://temple-quality-in-pharma.scribe-it.app/2026-lecture/8-nov2/3-stability-indicating-methods/) alongside the accounting.

## The reference standard closes the loop

The LC assay measures Compound X against a reference standard [2], and a primary reference standard's purity is commonly assigned by this same arithmetic: 100% minus water, residual solvents, organic impurities and residue. A KF bias during reference-standard characterization therefore enters every LC assay run against that standard, for as long as the standard is in use. Wet-chemistry results are not peripheral to the chromatographic assay. They are part of its calibration.

## Keep each test honest: the routine controls

| Test | Running proof | What it catches | What it cannot catch |
|---|---|---|---|
| Acid–base titration | Titrant standardized against a primary standard; blank | Titer drift, carbonate uptake | A reacting impurity counted as analyte |
| Karl Fischer | Titer or water-standard recovery; drift before each sample | Reagent exhaustion, leaking cell | A side reaction that makes or consumes water |
| Loss on drying | Dry to constant weight; empty-vessel check | Incomplete drying, balance error | What left: water, solvent or HCl |
| Residue on ignition | Crucible ignited to constant weight | Weighing and crucible error | Which elements are present |
| Ion chromatography | System suitability test (SST): chloride–nitrite Rs, replicate %relative standard deviation (RSD), check standard | Column or suppressor decline | An anion co-eluting with chloride but absent from the SST mixture |

Each control proves its test is still working. None can prove that the test is answering the right question; that was settled in development, and the reconciliation above is how you notice when it stops being true.

## Where the analyst sits

Each line of a certificate is usually reviewed against its own limit. The analyst who adds the lines together, and computes the two ratios, sees a different kind of failure: the one that lives *between* tests. That check costs nothing but arithmetic, and it is how a stale titer, a chloride-composition mismatch or a potential assay bias gets investigated before an inspector or a patient notices it.

## For discussion

**Why does a high water result push the anhydrous-basis assay *up*?**

The correction divides the as-is assay by (1 − water − solvent). More water makes the denominator smaller, so the same LC result is scaled up further. In the worked example, the stale-titer KF result of 5.289% instead of 5.10% raises the anhydrous, solvent-free assay from 99.70% to 99.90%, without any error in the LC lab.

**The total is 100.4% and both ratios are 1.00. Is anything wrong? What would you check before concluding no?**

Not necessarily. 100.4% is inside the ±0.84-point expanded uncertainty, and ratios of 1.00 fit an intact salt hydrate. But closure can hide errors that cancel. Before concluding, check the bookkeeping: every entry on the same as-is basis, nothing counted twice (organic impurities inside the assay peak, loss on drying (LOD) added on top of KF and GC), and residue treated as non-overlapping. Then check that the reference-standard potency and KF titer were current. Finally, look across lots: a surplus that recurs is a bias, not noise.

**Why is the chloride ratio more sensitive to the low-chloride input than the total?**

In the isolated-input exercise, chloride falling to 9.40% changes the total by only −0.53 points, inside the ±0.84 uncertainty, which is dominated by the LC assay. The chloride-to-API ratio has about 1.1% relative standard uncertainty, so its drop to 0.948 is roughly five standard uncertainties below one. That prioritizes chloride-related investigation, not a unique diagnosis. A physical HCl-loss model would also need the new sample mass; disproportionation without chloride leaving can preserve the total chloride-to-API ratio.

**A reference standard's assigned purity was revised from 99.6% to 99.3% after recharacterization. What happens to historical assay results, and what would you do about them?**

Every LC assay run against that standard was calculated with a potency that was too high, so historical results are biased high by about 99.6/99.3 − 1 ≈ 0.3% relative, for as long as the standard was in use. Open an assessment under the quality system. Recalculate affected results with the corrected potency. Check whether any released lot or stability point would now fall outside or close to its limits. Find out why the original assignment was wrong (a KF bias during characterisation is one candidate). Document the impact, and notify as required. Stability trends will show a step change at the switch, which must be explained rather than trended over.

**Which single routine control in the table would you most want to see trended over time, and why?**

There is no single right answer, but a strong case can be made for the Karl Fischer titer or water-standard recovery. Titer drifts gradually and silently: the worked example's +3.7% water bias passed its limit. Water feeds the anhydrous-basis assay and the purity assignment of the reference standard itself, so a slow KF bias spreads into the headline number for every lot. Trending catches the drift while results are still correctable. IC chloride–nitrite resolution and check-standard recovery are a close second, because they track gradual column and suppressor decline.

## Bridge back to the week

This completes the wet-chemistry path. Return to [Week 8](https://temple-quality-in-pharma.scribe-it.app/2026-lecture/8-nov2/#applied-case) for the applied case, where the same logic of orthogonal tests that must agree carries into biologics, and a single purity number becomes a panel.

## Data and sources

[Specification balance](data/specification-balance.csv), [stoichiometric ratios](data/stoichiometry.csv), [basis correction](data/basis-correction.csv), [reconciliation scenarios](data/reconciliation-scenarios.csv), [routine controls](data/routine-control.csv), [reproduction script](data/recompute.py), [requirements](data/requirements-plot.txt). Figure: 3840 × 2160 pixels, computed from the balance and scenarios.

[1] JCGM 100:2008, *Evaluation of measurement data — Guide to the expression of uncertainty in measurement* (GUM), section 5.1, combined standard uncertainty for uncorrelated input quantities.

[2] International Council for Harmonisation (ICH), [Q7 *Good Manufacturing Practice Guide for Active Pharmaceutical Ingredients*](https://database.ich.org/sites/default/files/Q7%20Guideline.pdf), section 11.1, general laboratory controls, including primary and secondary reference standards; [Q6A](https://database.ich.org/sites/default/files/Q6A%20Guideline.pdf) for the specification tests reconciled here.

*The compound, results, uncertainties and scenarios are constructed teaching examples, not product data or recommendations.*

