# Mass concentration to molar through the molecule

`calc_mass_to_molar` · Runs: Built, not hosted · Level: Checked against a reference: an independent oracle

Converts a mass concentration to molar using the mass of the compound or protein chain.

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

[Ask your assistant](https://www.drybench.com/mcp/connect) · [Open in Drybench Assay](https://www.drybench.com/assay/app)

```cite
Mass concentration to molar through the molecule (calc_mass_to_molar), Drybench MCP server 1.0.0; molar-from-mass@1.0.0 (Checked against a reference); formula-mass@1.3.0 (Checked against a reference); protein-average-mass@1.0.0 (Checked against a reference); https://www.drybench.com/mcp/tools/calc-mass-to-molar
```

## What it is

Required: outputUnit (M, mM, µM, nM, pM, fM); subject (compound, protein). Converts a mass concentration to molarity using the compound's stated chemical form and the CIAAW atomic weights, or a protein's stated per-chain mass or sequence and residue table. Reports the concentration in mol/L and the requested unit. A compound needs its formula, and a multi-part formula needs its basis. The molar value is withheld when a residue cannot be read.

Field: [Solutions](https://www.drybench.com/mcp/catalogue/solutions). It is the same calculation as [Drybench Assay](https://www.drybench.com/assay/app), called by an AI assistant through the server.

## What it does

**You give**

- `concentration` (required): Positive mass concentration in the stated unit.
- `outputUnit` (required): The molar unit to report alongside mol/L. Required.
- `subject` (required): What the concentration is of.
- `formula`: Compound: the molecular formula, salts and hydrates written with a middle dot as on the label (e.g. C22H24ClFN4O3·HCl). Required for a compound.
- `expressedAs`: Required for a multi-part formula: whether the compound concentration refers to the whole input or the parent.
- `molarMass`: A compound molar mass without a formula is refused.

and 5 more, listed below

No request is recorded for this tool.

**Limits**

- The material has the isotopic composition of normal terrestrial material, which the standard atomic weights describe; an enriched or unusual sample has a different mass.
- The sequence is the mature chain as written.
- 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.

Every reply also carries its app's limits line: "A C50 estimated here describes this assay under these conditions and is not a binding constant."

**It will not answer when**

- The formula cannot be read: an unknown or misspelt element; an element with no standard atomic weight (Tc, Pm, Po onward); a count, multiplier or charge starting with 0; a zero count, multiplier or written "+0"/"-0"; a count or weight beyond exact integer range; one element with a count and a bare sign ("Fe3+"), refused as ambiguous with "Fe+3" suggested; a formula starting with a digit ("13CH4", "2H2O"), refused at position 0 since 1.3.0 (1.2.0 read the number as a multiplier of the first part).
- No formula is given.
- Neither a protein sequence (seq\_protein\_properties) nor any of proteinSequence, a280, a260 (calc\_absorbance) is given.
- No amino-acid residues remain in the sequence to compute protein properties from.

### Every input, with its units

11 inputs

- `concentration` (required): Positive mass concentration in the stated unit.
- `outputUnit` (required): The molar unit to report alongside mol/L. Required.
- `subject` (required): What the concentration is of.
- `formula`: Compound: the molecular formula, salts and hydrates written with a middle dot as on the label (e.g. C22H24ClFN4O3·HCl). Required for a compound.
- `expressedAs`: Required for a multi-part formula: whether the compound concentration refers to the whole input or the parent.
- `molarMass`: A compound molar mass without a formula is refused.
- `sequence`: Protein: the amino-acid sequence (one-letter codes).
- `residueTable`: Protein from a sequence: 'protparam' (ExPASy ProtParam average residue masses) or 'ciaaw-2021' (residue formulas under CIAAW 2021). Required with a sequence.
- `range`: Protein: the mature chain as a 1-based inclusive residue range { start, end }; without it the whole sequence (the precursor) is used.
- `typedMass`: Protein: the stated molar mass per polypeptide chain.
- `typedBasis`: With typedMass: where the mass comes from (e.g. 'intact MS', 'CoA'). Required with typedMass.

### Every refusal, with its code

4 refusals

| Code | When |
| --- | --- |
| `INVALID_FORMULA` | The formula cannot be read: an unknown or misspelt element; an element with no standard atomic weight (Tc, Pm, Po onward); a count, multiplier or charge starting with 0; a zero count, multiplier or written "+0"/"-0"; a count or weight beyond exact integer range; one element with a count and a bare sign ("Fe3+"), refused as ambiguous with "Fe+3" suggested; a formula starting with a digit ("13CH4", "2H2O"), refused at position 0 since 1.3.0 (1.2.0 read the number as a multiplier of the first part). |
| `MISSING_ARGUMENT` | No formula is given. |
| `MISSING_ARGUMENT` | Neither a protein sequence (seq\_protein\_properties) nor any of proteinSequence, a280, a260 (calc\_absorbance) is given. |
| `NO_RESIDUES` | No amino-acid residues remain in the sequence to compute protein properties from. |

## The calculation

3 methods, each with its equations, constants and worked example.

### [Mass concentration to molar through a stated molar mass](https://www.drybench.com/methods/m/molar-from-mass/1.0.0)

`molar-from-mass@1.0.0`

No equation is recorded for this version.

Kind of method: not recorded.

Worked example: not recorded for molar-from-mass\@1.0.0.

### [Formula weight from the molecular formula](https://www.drybench.com/methods/m/formula-mass/1.3.0)

`formula-mass@1.3.0`

```text
M = Σᵢ nᵢ × A_r(i) g/mol, over every element i in the formula, where nᵢ is the element's count summed over the formula's groups and adducts, each multiplied by its multiplier.
```

| Symbol | Meaning |
| --- | --- |
| `M` | formula weight of the formula as written, salt and hydrate included, g/mol |
| `n_i` | number of atoms of element i in one formula unit, 1 |
| `A_r(i)` | the element's abridged standard atomic weight, used as g/mol, g/mol |

| Constant | Value | From |
| --- | --- | --- |
| Abridged standard atomic weights, 84 elements; an element whose weight is an interval takes the value CIAAW's abridged table prints `A_r` | a table of values, part of the method | Source 1 |

**Conventions**

- Convention chosen by this project: an ASCII '.' with a digit on each side is read as an adduct, never a decimal count, and the reply warns. CuSO4.5H2O is read as CuSO4·5H2O, 249.68 g/mol; read as a decimal, it would be 185.62 g/mol.

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 formula-mass\@1.3.0, 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 = CaCl2·2H2O

**Steps**

1. count: counts = Ca 1, Cl 2, H 4, O 2 (the hydrate's 2 multiplies H2O), from formula = CaCl2·2H2O.
2. ca: sum = 40.078 g/mol, from n = 1, A\_r(Ca) = 40.078.
3. cl: sum = 70.9 g/mol, from n = 2, A\_r(Cl) = 35.45.
4. h: sum = 4.032 g/mol, from n = 4, A\_r(H) = 1.0080.
5. o: sum = 31.998 g/mol, from n = 2, A\_r(O) = 15.999.
6. M: sum = 147.008 g/mol, from terms = ca,cl,h,o; gives result.formulaWeightGPerMol.

The working, as the case writes it:

```text
M = Σ nᵢ·A_r(i), each A_r as CIAAW prints it.
```

**Answer**

- result.formulaWeightGPerMol = 147.008 g/mol

Where these values came from: our own exact-arithmetic script and a hand-worked case; CIAAW, Abridged Standard Atomic Weights 2024 (ciaaw.org), read 11 November 2026.

The build has not run this example through the tool.

Worked by an AI session on 2026-11-25. No person has yet worked this case.

### [Average molecular weight from the sequence](https://www.drybench.com/methods/m/protein-average-mass/1.0.0)

`protein-average-mass@1.0.0`

```text
M = M(H2O) + Σᵢ nᵢ × m(residue i), with ExPASy's average residue masses
letters outside the twenty standard and two rare amino acids (U, O) are left out and named.
```

| Symbol | Meaning |
| --- | --- |
| `m(residue i)` | average mass of residue i (the amino acid less one water), g/mol |
| `n_i` | count of residue i, 1 |

| Constant | Value | From |
| --- | --- | --- |
| ExPASy average residue masses (22 residues) `m` | a table of values, part of the method | Source 2 |
| Average mass of water as ExPASy prints it `M(H2O)` | 18.01524 g/mol | 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 protein-average-mass\@1.0.0, 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**

- proteinSequence = MWYCKC
- a280 = 0.5
- a260 = 1
- nucleicAcid = dsDNA
- pathLengthCm = 1

**Steps**

1. water: + H2O = 18.01524 g/mol.
2. resC: n × residue mass = 206.2776 g/mol, from residue = C, n = 2, mass = 103.1388.
3. resK: n × residue mass = 128.1741 g/mol, from residue = K, n = 1, mass = 128.1741.
4. resM: n × residue mass = 131.1926 g/mol, from residue = M, n = 1, mass = 131.1926.
5. resW: n × residue mass = 186.2132 g/mol, from residue = W, n = 1, mass = 186.2132.
6. resY: n × residue mass = 163.176 g/mol, from residue = Y, n = 1, mass = 163.176.
7. M: sum = 833.04874 g/mol, gives result.protein.molarMassGPerMol.

The working, as the case writes it:

```text
M = M(H2O) + Σ nᵢ × m(residue i).
```

**Answer**

- result.protein.molarMassGPerMol = 833.04874 g/mol

Where these values came from: our own exact-arithmetic script and a hand-worked case; ExPASy FindMod, Protein Identification Tools - Mass values used, section 2 (amino acids, average) and section 3 (H2O, average), read 11 November 2026.

The build has not run this example through the tool.

Worked by an AI session on 2026-11-11. No person has yet worked this case.

## Sources

1. IUPAC Commission on Isotopic Abundances and Atomic Weights (CIAAW). Abridged Standard Atomic Weights 2024. Used for: Formula weight from the molecular formula. At: table Abridged Standard Atomic Weights 2024, section column "Abridged Standard Atomic Weight". **Read in full, 11 November 2026**
2. SIB Swiss Institute of Bioinformatics. ExPASy, Protein Identification Tools: mass values used (FindMod). Used for: Average molecular weight from the sequence. At: section 2. Amino acids (average); 3. Other mass values (H2O, average); section 3. Other mass values, H2O average. **Read in full, 11 November 2026**

**Cited, not read**

3. Prohaska T, Irrgeher J, Benefield J, et al. Standard atomic weights of the elements 2021 (IUPAC Technical Report). Pure Appl Chem 2022;94:573-600. Used for: Formula weight from the molecular formula. The publisher's site (degruyter.com) answered 202 with an empty body to a plain request on 11 November 2026; the session does not work round a bot check. Listed for a person to read. **Not read**

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

## How it is checked

**Level:** Checked against a reference, the lowest of its 3 methods.

**Checked against:** Mass concentration to molar through a stated molar mass: An independent oracle on 20 cases recorded in the oracle image, fixtures 0.11.0 (13 October 2026): formula weights within 1e-4 g/mol, protein masses within 0.02 Da (ProtParam) and 0.01 Da (CIAAW), molar values, active enzyme and kcat within 1e-9 relative; refusals exact. Worked example constructed by this project, not published: Molar totals, M to pM. The mass route is not covered. Qualifier: rests on a derivation shown in the record: the product is the tool's stated definition. Formula weight from the molecular formula: A CIAAW 2021 sum in Python's decimal module, with the formula from RDKit 2026.03.6, exactly on 58 fixtures (6 October 2026). The refusals and the decimal-dot warning added in 1.2.0 are unit-tested, not checked against an independent reader (10 November 2026). Average molecular weight from the sequence: Recorded ExPASy ProtParam outputs within 0.02 Da on 9 UniProt sequences (5 October 2026), the protein app's own fixtures.

**Cases:** Mass concentration to molar through a stated molar mass: No case set is linked to this version. Formula weight from the molecular formula: No case set is linked to this version. Average molecular weight from the sequence: No case set is linked to this version.

**Worked example:** Published worked example, run through the tool: OpenStax Chemistry 2e 3.3, Examples 3 and 4 and Exercise 4, molarity and molar mass within the printed digits.

**Hostile inputs:** Sent 50 malformed, extreme and misspelt calls. None broke it, and every call with an undeclared argument, or with text in place of a number or a true/false value, was declined with a reason. Run 2026-11-12-2 of 12 November 2026, server 0.11.0.

**Same answer:** Called twice and with its arguments in another order, it gave the same result. Run 2026-11-12-2 of 12 November 2026, server 0.11.0.

**Not checked:** Mass concentration to molar through a stated molar mass: Not recorded. Its absence does not mean everything was checked. Formula weight from the molecular formula: No published case set names formula-mass\@1.3.0. The 58 cases of stored reference values (lab-calculators 0.1.0 and 0.2.0) name no method version, and stored reference values (0.11.0) is for formula-mass\@1.1.0; neither is tied to this version yet. Average molecular weight from the sequence: The engine's 22 residue masses and water were compared with ExPASy's published table on 11 November 2026: all agree. ProtParam's own published weights were the earlier fixtures' expected values (retrieved 5 October 2026); they are not tied to this version by a manifest.

No independent scientist has yet reviewed this.

### What was not checked, in full

from the method records

[Formula weight from the molecular formula](https://www.drybench.com/methods/m/formula-mass/1.3.0)

- No published case set names formula-mass\@1.3.0.
- The 58 cases of stored reference values (lab-calculators 0.1.0 and 0.2.0) name no method version, and stored reference values (0.11.0) is for formula-mass\@1.1.0; neither is tied to this version yet.
- The change notes for 1.2.0 and 1.3.0 say every published mass is unchanged (none of those formulas starts with a digit); tying the sets needs a re-run tool-case file under this project's ruling of 11 November 2026, section S6.
- The 1.3.0 refusal of a formula starting with a digit is unit-tested and has two hand cases (13CH4, 2H2O), not a published case set.
- The 58 cases' expected values are CIAAW sums in Python's decimal module over formulas taken from RDKit 2026.03.6: RDKit supplied the formula, not the mass.
- The 1.2.0 refusals and the decimal-dot warning are unit-tested only, not checked against an independent formula reader.
- The IUPAC 2021 report (Prohaska et al.
- 2022) was not read: its publisher's site refused a plain request.
- The table was checked element by element against CIAAW's abridged table page instead, on 11 November 2026: all 84 values agree.
- No case runs this method through the served tool on its production runtime.

[Average molecular weight from the sequence](https://www.drybench.com/methods/m/protein-average-mass/1.0.0)

- The engine's 22 residue masses and water were compared with ExPASy's published table on 11 November 2026: all agree.
- ProtParam's own published weights were the earlier fixtures' expected values (retrieved 5 October 2026); they are not tied to this version by a manifest.
- Gasteiger et al.
- 2005 itself was not read; the masses are read from the page ExPASy publishes.

### What this project's records still lack

6 things

- A case worked by hand from the source's equation for molar-from-mass\@1.0.0.
- A run of the worked example through the tool for formula-mass\@1.3.0 and protein-average-mass\@1.0.0.
- The equation for molar-from-mass\@1.0.0.
- The constants with their sources for molar-from-mass\@1.0.0.
- A case set linked to this version for all three methods.
- A record of what was not checked for molar-from-mass\@1.0.0.

### Cite a number from this tool

the cite line

Every reply carries a cite line naming the tool, the server version, each method with its version and level, and the receipt. Quote it with any number taken from the reply.

```cite
calc_mass_to_molar, server 1.0.0; status invalid-input, nothing ran; no method record; receipt <input hash, 12 characters>/<output hash, 12 characters>; methods https://www.drybench.com/methods/assay; page https://www.drybench.com/methods/tools/calc-mass-to-molar. There is no result to quote; this line identifies the call and its receipt.
```

### Changes to its methods

1 change

- [25 November 2026, formula-mass\@1.3.0](https://www.drybench.com/methods/corrections#2026-11-25-formula-mass130-1): In 1.3.0 a formula starting with a digit is now refused; every other mass is unchanged. The refusal gives position 0 and both readings: an isotope label is not read, and a count of molecules is not a formula. A multiplier after a middle dot, a period or an asterisk (CuSO4·5H2O, CaCl2·2H2O) is read as before, and every formula 1.2.0 refused keeps its refusal and message.
