Calculate moles from a mass in kilograms using a chemical formula or molar mass, or solve for mass or molar mass, with purity and particle count.

Whole-number formulas; · or * for hydrates. Periods only for .5H2O-style hydrates, never decimals. Charges/isotope labels are unsupported.

Purity and display
Blank means 100%. Mass percentage of the exact formula, including hydrate water.

Calculator Functions

FunctionWhat it doesWhat it requires
Moles from sample massConverts a mass in kilograms to the amount of a substance in molesRequires the sample mass and the molar mass, given as a chemical formula, a substance from the list or a typed value
Sample mass from molesConverts an amount in moles to the mass of sample in kilogramsRequires the amount of substance and the molar mass, given as a chemical formula, a substance from the list or a typed value
Molar mass from pure mass and molesFinds the molar mass of a pure substance from a weighed mass and a known amountRequires the mass of pure substance and the moles of that same substance

Mass can be entered in kg, g, mg, tonnes, lb or oz, the amount in mol, mmol or kmol, and a typed molar mass in g/mol or kg/mol. The first two functions take an optional mass purity, which counts as 100% when blank, and every function has a setting for decimal places. Each result also shows the molar mass used, the mass of pure substance, the amount in mmol and kmol, and the number of molecules, atoms or formula units. A chemical formula adds a table of each element’s share of the molar mass.

kg to Moles Formulas

n = m × 1,000 ÷ M [1]
nAmount of substance (mol)
mMass of the pure substance (kg)
MMolar mass of the substance (g/mol)
1,000Grams in one kilogram

Molar mass is defined as the mass of a substance divided by its amount, M = m ÷ n [1], so the amount is the mass divided by the molar mass. Molar masses are tabulated in grams per mole, which is why the kilograms are first multiplied by 1,000. There is no fixed number of moles in a kilogram: the answer depends on which substance it is.

Moles from sample mass

n = m × 1,000 × p ÷ M

p is the mass purity as a fraction, so 90% is 0.9. One kilogram of water, H2O, at 18.015 g/mol is 1,000 ÷ 18.015 = 55.509 mol. One kilogram of salt that is 90% NaCl by mass, at 58.44 g/mol, holds 1,000 × 0.9 ÷ 58.44 = 15.400 mol of NaCl.

For a chemical formula, the molar mass is the sum of the standard atomic weights of its atoms [2]: water is 2 × 1.008 + 15.999 = 18.015 g/mol. Formulas can use brackets and hydrate water, such as Ca(OH)2 or CuSO4·5H2O. Charges, isotope labels and decimal atom counts are not accepted.

SubstanceMolar mass (g/mol)Moles in 1 kg
Hydrogen gas, H22.016496.03
Helium, He4.0026249.84
Carbon, C12.01183.257
Methane, CH416.04362.332
Water, H2O18.01555.509
Nitrogen gas, N228.01435.696
Oxygen gas, O231.99831.252
Carbon dioxide, CO244.00922.723
Iron, Fe55.84517.907
Sodium chloride, NaCl58.4417.112
Platinum, Pt195.085.1261
Gold, Au196.975.0769

For any other mass, multiply the last column by the number of kilograms: 20 kg of water is 20 × 55.509 = 1,110.2 mol.

Sample mass from moles

m = n × M ÷ (1,000 × p)

This turns moles into kilograms. Two moles of NaCl weigh 2 × 58.44 ÷ 1,000 = 0.1169 kg. If the salt on hand is only 80% NaCl, 0.1169 ÷ 0.8 = 0.1461 kg of it is needed to supply the same two moles. The result also lists the mass in g, mg, lb and oz.

Molar mass from pure mass and moles

M = m × 1,000 ÷ n

One kilogram of a pure substance that amounts to 55.509 mol has a molar mass of 1,000 ÷ 55.509 = 18.015 g/mol. The result is also shown in kg/mol. An amount of zero moles is rejected, and no purity is applied, so the mass entered has to be the pure substance alone.

How to Convert kg to Moles

Multiply the kilograms by 1,000 to get grams, then divide by the molar mass of the substance in g/mol. For 2.5 kg of carbon dioxide, 2,500 g ÷ 44.009 g/mol = 56.807 mol. To go from moles back to kilograms, multiply the moles by the molar mass and divide by 1,000.

kg/mol and g/mol

Both are units of molar mass. The SI unit is kg/mol [1], and 1 kg/mol equals 1,000 g/mol, so a value in g/mol is divided by 1,000 to give kg/mol: water is 18.015 g/mol or 0.018015 kg/mol. With the molar mass in kg/mol, moles are simply kilograms divided by molar mass, with no factor of 1,000. mol/kg is the inverse, the number of moles in each kilogram, and is the figure in the last column of the table above. A kilomole (kmol) is 1,000 mol, so 1 kg of a substance contains 1 ÷ M kmol when M is in g/mol.

Limits of This Estimate

  • Formula molar masses use standard atomic weights rounded to about five significant figures, for elements with their normal mix of isotopes [2]. Isotope-enriched material needs a typed molar mass.
  • Purity is a percentage by mass of the exact formula entered, including any hydrate water. It is not a mole fraction or a percentage by volume.
  • The calculator accepts any formula it can read, whether or not that compound exists, and it does not work out the makeup of mixtures or solutions.
  • The count of particles is n × 6.02214076 × 10²³ [3]. It counts whole molecules or formula units, not the separate atoms or ions inside them.

Sources

  1. NIST, Guide for the Use of the International System of Units (SP 811), Section 8.6.4: molar mass as mass divided by amount of substance, with the unit kg/mol
  2. IUPAC Commission on Isotopic Abundances and Atomic Weights, Abridged Standard Atomic Weights 2024: atomic weights used for formula molar masses
  3. NIST, CODATA Value: Avogadro constant: 6.02214076 × 10²³ per mole, an exact value