# Molarity, molality, % w/w and other forms of one solute from a stated density

`calc_concentration_forms` · Runs: On the server · Level: Checked against a reference: exact rational arithmetic, against a second implementation in Python by a separate agent of the same model family; molar masses against molmass

Converts one solute's % w/w, molarity, molality, mass concentration and mole fraction from any one of them.

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)

```cite
Molarity, molality, % w/w and other forms of one solute from a stated density (calc_concentration_forms), Drybench MCP server 1.0.0; calc-concentration-forms@1.0.2 (Checked against a reference); https://www.drybench.com/mcp/tools/calc-concentration-forms
```

## What it is

Returns one solute's % w/w, molarity, molality, mass concentration and mole fraction from any one of them. The mole fraction comes only with the solvent named. Use when a reagent such as 37 % HCl is labelled in one form and you need another, given its density, temperature and formula. For a stated z and reaction it also gives the amount concentration of the equivalent entity (formerly normality), never in eq/L. Not for the volume of stock to take: use \`calc\_c1v1\` with the amountConcentration returned. Densities are never looked up or defaulted, and water is never assumed as the solvent.

Field: [Solutions and bench arithmetic](https://www.drybench.com/mcp/catalogue/solutions).

## What it does

**You give**

- `solute` (required): The solute: a formula or a molar mass.
- `density` (required): Density of the solution (not of the solvent), at densityTemperature. Must be above 0 g/mL.
- `densityTemperature` (required): Temperature at which the density holds; echoed, not used in the arithmetic. Must be above 0 K.
- `solvent`: The solvent: a formula or a molar mass. Optional.
- `massFraction`: Mass fraction of the solute (% w/w), the formula as written. Must be at least 0 and at most 1. Optional.
- `amountConcentration`: Amount concentration of the solute (molarity). Must be at least 0 M. Optional.

and 6 more, listed below

No request is recorded for this tool.

**Limits**

- Bench arithmetic on solutions you describe.
- Research and education software: it does not look up densities, check that a label is right, or assess hazards.
- Arithmetic on one solute in one solvent, from the concentration, density and formula or molar mass you give.
- The density must be the solution's, at the temperature you state.
- Nothing is looked up, defaulted or corrected for temperature, and the by-volume forms hold only at that temperature.
- The mass fraction is of the formula as written: commercial ammonia is labelled as NH3, not NH4OH.
- Water is never assumed as the solvent, and the mole fraction counts formula units, not ions.
- The equivalent-entity concentration is given only for the z and reaction you state, never in eq/L or as normality.
- No uncertainty is 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 stated form leaves no solvent: a mass or mole fraction of one, or a concentration whose solute mass equals or exceeds the solution's.
- not exactly one concentration form is stated.
- only one of z and the reaction is given, or the equivalent-entity concentration is the stated form without both.
- the mole fraction is the stated form and no solvent is named.

### Every input, with its units

12 inputs

- `solute` (required): The solute: a formula or a molar mass.
- `density` (required): Density of the solution (not of the solvent), at densityTemperature. Must be above 0 g/mL.
- `densityTemperature` (required): Temperature at which the density holds; echoed, not used in the arithmetic. Must be above 0 K.
- `solvent`: The solvent: a formula or a molar mass. Optional.
- `massFraction`: Mass fraction of the solute (% w/w), the formula as written. Must be at least 0 and at most 1. Optional.
- `amountConcentration`: Amount concentration of the solute (molarity). Must be at least 0 M. Optional.
- `massConcentration`: Mass concentration of the solute (mass per volume of solution). Must be at least 0 g/L. Optional.
- `molality`: Molality: amount of solute per mass of solvent. Must be at least 0 mol/kg. Optional.
- `moleFraction`: Mole fraction of the solute; needs the solvent. Must be at least 0 and at most 1. Optional.
- `amountConcentrationOfEquivalentEntity`: Amount concentration of the equivalent entity (1/z)B (formerly normality); needs equivalentEntityZ and equivalentEntityReaction. Must be at least 0 M. Optional.
- `equivalentEntityZ`: z: equivalents per mole of the solute for the stated reaction, a positive integer. Must be at least 1. Optional.
- `equivalentEntityReaction`: The reaction z refers to (e.g. both protons neutralised by a strong base). Leading and trailing white space is removed before the pattern is checked. Optional.

### Every refusal, with its code

6 refusals

| Code | When |
| --- | --- |
| `NO_SOLVENT_REMAINS` | the stated form leaves no solvent: a mass or mole fraction of one, or a concentration whose solute mass equals or exceeds the solution's. |
| `FORM_COUNT` | not exactly one concentration form is stated. |
| `EQUIVALENT_ENTITY_INPUTS` | only one of z and the reaction is given, or the equivalent-entity concentration is the stated form without both. |
| `SOLVENT_REQUIRED` | the mole fraction is the stated form and no solvent is named. |
| `MOLAR_MASS_SOURCE` | the solute or the solvent gives both, or neither, of a formula and a molar mass. |
| `PERCENT_W_V` | a mass fraction is given in % w/v, which is a mass per volume and ambiguous here; for making up a percent solution, calc\_percent\_solution. |

## The calculation

The method's equations, constants and worked example.

### [One solute's concentration in every form from one form, a stated density and the formula or molar mass](https://www.drybench.com/methods/m/calc-concentration-forms/1.0.2)

`calc-concentration-forms@1.0.2`

```text
w from the stated form
then c = 1000·w·ρ/M, γ = 1000·w·ρ, b = 1000·w/((1 − w)·M), x = (w/M)/(w/M + (1 − w)/M_A), c((1/z)B) = z·c (the shared routine solution-concentration)
z below one is outside the input's range (the kit's code), so solution-concentration's Z_NOT_A_POSITIVE_INTEGER is not reached through this tool
'% w/v' is a refused unit answered PERCENT_W_V
AMMONIA_AS_NH3 is raised only for a solute formula that reads as NH4OH (Hill H5NO), never for a molar mass alone
with a molar mass alone the entity is written with B for the solute
```

| Symbol | Meaning |
| --- | --- |
| `w` | mass fraction of the solute B |
| `ρ` | density of the solution at its stated temperature, g/mL |
| `M` | molar mass of B as its formula is written, or as stated, g/mol |
| `c` | amount concentration of B, M |
| `γ` | mass concentration of B, g/L |
| `b` | molality of B, per mass of solvent, mol/kg |
| `x` | mole fraction of B |
| `M_A` | molar mass of the solvent, g/mol |
| `z` | equivalents per mole for the stated reaction |

Source 1.

| Constant | Value | From |
| --- | --- | --- |
| standard atomic weights (CIAAW abridged), through formula-mass 1.1.0 `A_r` | a table of values, part of the method | Source 2 |

**Conventions**

- DENSITY\_PLAUSIBLE\_BAND = 0.6 g/mL, 3 g/mL: Fixed by the method; not an argument. A solution density outside this band, compared as exact decimals with the band's ends inside it, is noted, never refused or corrected (Drybench's ruling).

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 calc-concentration-forms\@1.0.2, 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**

- solute.formula = HCl
- solvent.formula = H2O
- massFraction = 0.37
- density = 1.19 g/mL
- densityTemperature = 20 degC

**Steps**

1. c = 12.07691 M, from massFraction, density, solute.formula; by the equation above; gives amountConcentration.
2. gamma = 440.3 g/L, from massFraction, density; by the equation above; gives massConcentration.
3. b = 16.108991 mol/kg, from massFraction, solute.formula; by the equation above; gives molality.
4. x = 0.22492845, from massFraction, solute.formula, solvent.formula; by the equation above; gives moleFraction.

The working, as the case writes it:

```text
M(HCl) = 1.0080 + 35.45 = 36.458 g/mol. c = 1000 × 0.37 × 1.19 / 36.458 = 12.07691 M
γ = 1000 × 0.37 × 1.19 = 440.3 g/L
b = 1000 × 0.37 / (0.63 × 36.458) = 16.10899 mol/kg
x = (0.37/36.458) / (0.37/36.458 + 0.63/18.015) = 0.2249285 (Drybench's: 12.077, 440.30, 16.109, 0.22493).
```

**Answer**

- amountConcentration = 12.07691 M
- massConcentration = 440.3 g/L
- molality = 16.108991 mol/kg
- moleFraction = 0.22492845

Where these values came from: our own exact-arithmetic script and a hand-worked case; worked by hand, and in exact rationals.

At build the tool returned this answer within the tolerance the file states: relative 1e-15 on every number (absolute 1e-21 below 1e-6, in its own unit); statuses, codes, units, labels and withheld rules exact.

Who worked this case: not recorded.

## Sources

1. Cohen ER et al. Quantities, Units and Symbols in Physical Chemistry (the IUPAC Green Book), IUPAC and RSC Used for: One solute's concentration in every form from one form, a stated density and the formula or molar mass. At: section §2.10, printed pp. 47–48 (w\_B, M\_B, x\_B, γ\_B, c\_B note 16, b\_B note 14) and §2.10.1(v), printed pp. 53–54 (the relation on p. 54) (the equivalent entity), with ρ = m/V (§2.2, printed p. 14). **Read in full, 11 November 2026**
2. IUPAC Commission on Isotopic Abundances and Atomic Weights (CIAAW), Abridged Standard Atomic Weights Used for: One solute's concentration in every form from one form, a stated density and the formula or molar mass. At: table Abridged Standard Atomic Weights. **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:** More than one solute; ionic mole fractions and activities; a temperature correction of the density (none is made); that the density is the solution's and the formula the substance labelled. A formula starting with a digit (13HCl) is refused FORMULA\_INVALID since 1.0.2, 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, calc-concentration-forms\@1.0.2](https://www.drybench.com/methods/corrections#2026-11-25-calc-concentration-forms102-1): In 1.0.2, 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.
