Molality and Mole Fraction Calculator: Per Kilogram of Solvent

Molality, mole fraction, and the density you need before you can reach molarity

Molality is moles of solute per kilogram of SOLVENT, mole fraction is moles of one component over moles of everything, and neither of them can be turned into molarity without the density of the solution. This page does all three, shows the mole fraction as an area you can see, and prints the molarity you would have got by assuming the density is 1.000 g/mL beside the one your real density gives — because that assumption is the commonest way a correct molality becomes a wrong molarity.

Molality and mole fraction

Per kilogram of solvent, not per litre of solution
In grams. This is the substance that gets dissolved: the salt, the sugar, the urea. If your question gives you moles instead of grams, multiply by the molar mass before you type it here, or set the molar mass below to 1 and type the number of moles in this box — the arithmetic does not care.
In grams per mole. 58.44 for sodium chloride, 180.16 for glucose, 60.06 for urea, 342.30 for sucrose, 18.02 for water as a solute. This calculator cannot read a typed chemical formula — the engine behind it is numeric only and has no way to parse text — so the molar mass is a number you bring to it. For an ionic solute, use the formula mass of the whole unit and not the mass of one ion: NaCl is 58.44, not 22.99. Whether the salt then splits into two particles matters for freezing points and osmosis, not for molality.
In grams, and this is the field people get wrong. It is the mass of the solvent alone — the water you started with — not the mass of the finished solution. IUPAC’s definition of molality is amount of solute divided by mass of solvent, full stop. Put the solution mass in here and your answer comes out low by a factor of (1 + mass fraction of solute), which at the default inputs is 9 per cent. The page prints the mass of solution for you below, so you can see the two numbers apart.
The solvent’s molar mass is needed for the mole fraction and for nothing else: molality does not use it at all, which is worth noticing. The six listed are the ones school questions use — benzene, cyclohexane and acetic acid because their cryoscopic constants appear in colligative-property questions. Choose the last option to type your own.
Locked while a solvent is chosen above, and it fills itself in with that solvent’s molar mass so you can see what is being used. Pick the last option up there and this becomes a live input — which is how nitrobenzene, camphor, chloroform or anything else your question names still works.
In grams per millilitre, and it is the density of the finished solution, not of the solvent and not of the solute. This is the one piece of information that molality and mole fraction do not contain and cannot supply, and it is why the conversion to molarity is a measurement rather than a calculation. If your question does not give it, it does not want you to find the molarity. Leave it at 1.000 and the page will say so, loudly.
Left: every particle in the mixture drawn as one big square, with the solute's share drawn as a smaller square inside it. Because area stands for number of particles, the small square's side is the square root of the mole fraction, so a solute at 2.7 per cent of the particles gets a square one sixth as wide. Right: the same fraction as a column you can read a number off. Both redraw as you type. Underneath, the molality, and the molarity that needed your density to exist at all.
1.5400mol/kgExample

45.0 g of sodium chloride (M = 58.44 g/mol) dissolved in 500 g of water, giving a solution of density 1.058 g/mL

Advertisement

Three definitions and one measurement

b = n(solute) / m(solvent in kg)  ·  x(solute) = n(solute) / [n(solute) + n(solvent)]  ·  c = 1000 ρ b / [1000 + b M(solute)]
b
molality, in mol kg−1. IUPAC allows the symbol m too, which is unfortunate because m is also mass; this page uses b. The denominator is the mass of SOLVENT and nothing else
x
mole fraction, IUPAC’s ‘amount fraction’. Dimensionless, between 0 and 1, and the fractions of all components sum to exactly 1 — which is the cheapest check available on this page: add the two mole-fraction rows together and you should get 1.000000
ρ
the density of the solution, in g mL−1. It appears in the third equation and in neither of the first two. That is the whole point: molality and mole fraction are mass-and-amount quantities, molarity is an amount-per-volume quantity, and nothing but a density can cross between them
M(solute)
the solute’s molar mass, in g mol−1. It appears in the molarity conversion because a kilogram of solvent plus b moles of solute weighs 1000 + bM grams, and it is that total mass, divided by the density, that gives the volume
c
molarity, amount concentration, in mol L−1. Always smaller than the molality for an aqueous solution denser than about 1 g/mL per mole of solute — and the ratio c/b is exactly 1000ρ/(1000 + bM), which depends on nothing but the density and the solute’s molar mass

Worked example

45.0 g of sodium chloride (M = 58.44 g/mol) dissolved in 500 g of water, giving a solution of density 1.058 g/mL
MOLES OF SOLUTE. 45.0 ÷ 58.44 = 0.770021 mol. Nothing subtle here, but note that this is the only place the solute's molar mass is used in the molality.
MOLALITY. The solvent is 500 g, which is 0.500 kg. 0.770021 ÷ 0.500 = 1.5400 mol kg−1. The mass of the solution — 545 g — has not been used and must not be: dividing by 0.545 kg would give 1.4129, which is 8.3 per cent low and is the single commonest mistake on this topic.
MOLES OF SOLVENT, for the mole fractions. 500 ÷ 18.015 = 27.7546 mol of water. Total amount present: 27.7546 + 0.770021 = 28.5246 mol.
MOLE FRACTIONS. x(NaCl) = 0.770021 ÷ 28.5246 = 0.026995, and x(water) = 27.7546 ÷ 28.5246 = 0.973005. They add to 1.000000. Read the first one again: a solution that is 8.26 per cent sodium chloride BY MASS is only 2.70 per cent sodium chloride BY AMOUNT, because one water molecule weighs a third of what one NaCl formula unit weighs. There are 36.04 water molecules per formula unit.
NOW THE MOLARITY, AND ONLY NOW. Mass of solution 45.0 + 500 = 545.0 g. Volume = 545.0 ÷ 1.058 = 515.12 mL. c = 0.770021 ÷ 0.51512 = 1.4948 mol L−1. That is 2.9 per cent below the molality, and every bit of that 2.9 per cent came from the density.
WHAT HAPPENS IF YOU GUESS THE DENSITY. Assume 1.000 g/mL instead and the volume comes out as 545.0 mL, so c = 1.4129 mol L−1 — 8.3 per cent below the molality instead of 2.9 per cent, and wrong by 5.5 per cent. Notice it is the same 1.4129 as the botched molality in step 2, which is not a coincidence: assuming ρ = 1 is arithmetically identical to dividing by the mass of the solution instead of the mass of the solvent.
Advertisement

The same molality, six different solvents: molality does not move, mole fraction moves a lot

SolventM (g/mol)Moles in 500 gx(solute)Mole % soluteSolvent particles per solute particle
Water18.01527.75460.0269952.6995 %36.04
Ethanol46.06910.85330.0662486.6248 %14.09
Acetic acid60.0528.32610.0846548.4654 %10.81
Benzene78.1106.40120.10737610.7376 %8.31
Cyclohexane84.1615.94100.11474011.4740 %7.72
Carbon tetrachloride153.8203.25060.19152019.1520 %4.22
0.770021 mol of solute in 500 g of each solvent. The molality is 1.5400 mol kg−1 in every row, because molality never sees the solvent’s molar mass. The mole fraction ranges over a factor of seven, because mole fraction is a count and a light solvent supplies far more particles per gram. This is the clearest demonstration available that the two quantities are not interchangeable scalings of each other. Arithmetic only: whether the solute dissolves in each is a separate question, and sodium chloride does not dissolve in carbon tetrachloride.

What the density is worth: one solution, five assumed densities

Density assumed (g/mL)Volume of solution (mL)Molarity (mol/L)c / bError against the molality
0.800681.251.13030.733926.6 % below
1.000 (the lazy assumption)545.001.41290.91748.3 % below
1.0295529.381.45460.94455.5 % below
1.058 (a real value for this solution)515.121.49480.97062.9 % below
1.100495.451.55421.00920.9 % above
The solution is this page’s own default — 45.0 g of NaCl in 500 g of water, 1.5400 mol kg−1 — with nothing changed but the density used to find its volume. The molality is the same in every row. The molarity moves by 37 per cent across the range, and the row that assumes 1.000 g/mL is wrong by 5.5 per cent relative to the real one. The last row shows the molarity exceeding the molality, which happens whenever 1000ρ is greater than 1000 + bM — above about 1.090 g/mL for this solute.

Per kilogram of solvent, per mole of everything, and per litre of nothing you have measured

Three ways of saying how much is dissolved, and school questions use all three within a page of each other. Molality is moles of solute per kilogram of solvent. Mole fraction is moles of one component over moles of all components. Molarity is moles of solute per litre of solution. The first two are built entirely out of masses and amounts; the third needs a volume, and a volume is something you measure or compute from a density.

The trap is the word solvent. IUPAC’s definition of molality divides by the mass of the solvent, not by the mass of the solution, and the two differ by the mass of the solute you just added. At the default inputs on this page that is 45 g in 545 g, so getting it wrong costs 8.3 per cent. The error is always in the same direction — too small — and it grows with concentration, which is why it survives undetected through dilute practice questions and then shows up in the one that counts.

Which leaves the conversion. To go from molality to molarity you need the volume of the solution, and the only honest way to get it is the density of the solution — measured, or looked up for that solute at that concentration at that temperature. It is not the density of water, and it is not the density of the solute. If your question does not give you a density, it is not asking you for a molarity. Assuming 1.000 g/mL is a decision to pretend the solute occupies no volume and has no mass, and this page prints the result of that decision beside the real one so you can see what it costs.

What this page does not do: it will not read a chemical formula. The calculator engine here is numeric only and has no way to parse ‘Na2SO4’ into elements, so molar masses are numbers you supply. It also will not tell you the van’t Hoff factor, because whether your solute splits into two particles or three is chemistry about that solute, not arithmetic.

If what you actually want is molarity from a mass and a volume, that page already exists on this site and there is no point duplicating it here: use the molarity calculator, or the percent solution calculator for % w/v, % w/w and % v/v work, or the normality to molarity converter when your question is written in equivalents. For diluting something you already have, use C1V1 = C2V2 or the serial dilution calculator, and for the osmotic version of a particle count, the solution osmolarity calculator. Inside this plugin, the alligation calculator handles the mixing problem — what ratio of a strong and a weak stock gives the strength you want — and the ppm, ppb and trace concentration calculator deals with the same mass-basis-versus-volume-basis ambiguity at the other end of the scale, where it is considerably more dangerous. The temperature independence that makes molality the right unit here is the same property that matters in calorimetry of a mixture, and the volume dependence that makes molarity the wrong one is the same effect as in thermal expansion.

Frequently asked questions

Is molality divided by the mass of the solvent or the mass of the solution?

The solvent. IUPAC’s Gold Book entry for molality reads: the amount of entities of a solute divided by the mass of the solvent, and it cites the Green Book and the clinical-chemistry glossary, both of which say the same. So for 45 g of NaCl in 500 g of water you divide by 0.500 kg, not by 0.545 kg. The second gives 1.4129 instead of 1.5400 — 8.3 per cent low. The way to remember it is to notice that molality is deliberately built so that adding more solute never changes the denominator: a 1-molal solution and a 2-molal solution both contain exactly one kilogram of water, which is what makes them comparable.

Can I get the molarity without the density?

No, and this is not a limitation of the page. Molality and mole fraction describe the composition of the mixture; molarity describes how much of it fits in a litre. Composition contains no information about volume. The only exception is the case so dilute that the solution’s volume is the solvent’s volume to within your precision — below about 0.01 mol/kg in water, where you are making an error of a tenth of a per cent. Above that, the honest answers are: measure the density, look it up for that solute at that concentration, or report the molality and say so.

When is molality numerically equal to molarity?

When 1000ρ = 1000 + bM, where ρ is in g/mL and M is the solute’s molar mass in g/mol. Rearranged: when ρ = 1 + bM/1000. For the default solution (b = 1.5400, M = 58.44) that needs a density of 1.0900 g/mL. Real sodium chloride solution at that molality is about 1.06, so c is below b — but there is no general rule, and for a dense solute at high concentration the molarity can be the larger of the two. The table above has a row showing exactly that.

Which one goes into the freezing-point depression formula?

Molality, every time: ΔTf = i Kf b, with b in mol kg−1 and Kf the cryoscopic constant of the solvent (1.86 K kg mol−1 for water, 5.12 for benzene, 20 for camphor — all conventional tabulated values). Raoult’s law for the solvent is written in mole fraction instead, which is the other mass-based quantity on this page and for the same reason. Molarity appears in osmotic pressure (Π = cRT) only because osmosis is measured on a solution of a definite volume at a definite temperature, and even there the dilute-solution approximation is doing some work.

Related calculators

References

  1. IUPAC, Compendium of Chemical Terminology (the Gold Book), entry “molality”, doi:10.1351/goldbook.M03970 (read 14 November 2026). The definition this page is built on, and it is one line: the amount of entities of a solute divided by the mass of the SOLVENT — not of the solution. The entry cites the IUPAC Green Book, 2nd edition, page 42, and Pure and Applied Chemistry 68 (1996) 957, page 982. All three say solvent, which is why this calculator asks for the mass of solvent and then tells you the mass of solution rather than the other way round.
  2. IUPAC, Compendium of Chemical Terminology (the Gold Book), entry “amount fraction”, doi:10.1351/goldbook.A00296 (read 14 November 2026). IUPAC’s preferred name for what your textbook calls MOLE FRACTION: the amount of a component divided by the total amount of all constituents. The entry records “mole fraction” as the alternative name, so both are acceptable in an answer.
  3. IUPAC, Quantities, Units and Symbols in Physical Chemistry (the Green Book), listed among the IUPAC Color Books at iupac.org/color-books (index page read 14 November 2026). The authority for the symbols used here: b for molality, x for amount fraction, c for amount concentration. The index gives no edition or year and the book itself was not read, so no page is cited from it.
  4. COULD NOT BE READ, and nothing was substituted for any of it. The NCERT chemistry chapters on solutions and ionic equilibrium, the CRC Handbook of Chemistry and Physics solubility tables, and the individual IUPAC-NIST Solubility Data Series volumes were all paywalled, refused, or returned only third-party reproductions on 14 November 2026. The solubility curves and Ksp values here are therefore the conventional tabulation that textbooks agree on to two or three figures, with no primary measurement traced behind any one number. Where your own table disagrees, use your table.