Skip to content

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

calc_concentration_forms

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

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
Ask your assistant

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.

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 units12 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 code6 refusals
CodeWhen
NO_SOLVENT_REMAINSthe 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_COUNTnot exactly one concentration form is stated.
EQUIVALENT_ENTITY_INPUTSonly one of z and the reaction is given, or the equivalent-entity concentration is the stated form without both.
SOLVENT_REQUIREDthe mole fraction is the stated form and no solvent is named.
MOLAR_MASS_SOURCEthe solute or the solvent gives both, or neither, of a formula and a molar mass.
PERCENT_W_Va 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 masscalc-concentration-forms@1.0.2

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

SymbolMeaning
wmass fraction of the solute B
ρdensity of the solution at its stated temperature, g/mL
Mmolar mass of B as its formula is written, or as stated, g/mol
camount concentration of B, M
γmass concentration of B, g/L
bmolality of B, per mass of solvent, mol/kg
xmole fraction of B
M_Amolar mass of the solvent, g/mol
zequivalents per mole for the stated reaction

Source 1.

ConstantValueFrom
standard atomic weights (CIAAW abridged), through formula-mass 1.1.0 A_ra table of values, part of the methodSource 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:

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.

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

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.

Changes to its methods1 change