Audited 29 Jul 2026·Last updated 28 Oct 2026·7 citations·Tier 1·0 uses

Mole Calculator — Grams, Moles and Molar Mass

Convert grams to moles or moles to grams, or work out molar mass from a weighed mass and a known amount, with the result also given in millimoles.

Mole Calculator

What do you want to find?
Grams. Used when solving for moles or for molar mass. Zero is allowed when solving for moles (an empty weighing boat is zero moles) but not when solving for molar mass.
g
Grams per mole. Read it off the bottle, the certificate of analysis or the datasheet — or get it from a chemical formula with the molar mass calculator. Default 58.44 g/mol is sodium chloride.
g/mol
Moles. Used when solving for mass or for molar mass. Must be greater than zero when solving for molar mass, because M = m / n has a pole at n = 0.
mol
Amount of substance
0.1
The amount of substance in moles (mol): the weighed mass divided by the molar mass, or the amount you entered when solving for mass or molar mass.
Same amount in millimoles
100 mmol
Mass
5.844 g
Molar mass
58.44 g/mol

Background.

Balances read grams; chemical equations count particles. Hydrochloric acid and sodium hydroxide neutralise each other one for one, yet mixing 1 g of each does not give a neutral solution. One gram of HCl (36.458 g/mol) is 0.0274 mol, one gram of NaOH (39.997 g/mol) is 0.0250 mol, and close to 9% of the acid is left unreacted. To compare two weighings chemically you have to convert both to moles, and the conversion factor for each substance is its molar mass.

Three questions come up on that bridge. Grams to moles: you have weighed a sample and want to know how much substance it is. Moles to grams: a method calls for 0.1 mol and you need a figure to put on the balance. And the direction textbooks tend to skip: you know the mass and, from a separate measurement such as a titration, the amount, so the molar mass follows — which is how an unknown compound is narrowed down or a supplier's purity claim tested. Whichever you ask, the other quantities come back with it, including the amount in millimoles, the scale most bench work runs at.

The relation n = m / M is exact. What can be off is the molar mass you type in. Standard atomic weights are averages over the isotope mixtures found in ordinary terrestrial material, and for chlorine, lithium, hydrogen, carbon, oxygen and several other elements that mixture varies enough between sources that IUPAC publishes a range instead of a single number. For a reagent taken off the shelf, the conventional values are good to about four significant figures. For material enriched in one isotope — heavy water, a carbon-13 labelled internal standard — they are simply the wrong number, and the molar mass has to be built from the isotopes actually present.

No temperature, pressure or physical state enters the calculation, because mass and amount are both properties of the sample itself. That sets it apart from molarity, which divides by a volume that grows when the solution warms, and from gas calculations, which need a stated pressure and temperature.

What is mole calculator?

Amount of substance, symbol n, is one of the seven base quantities of the International System of Units, and its unit is the mole. Since the SI revision that took effect on 20 May 2019, one mole is defined as exactly 6.02214076 × 10²³ specified elementary entities: atoms, molecules, ions, formula units or electrons, whichever you name. The older definition tied the mole to the number of atoms in 12 g of carbon-12; the current one fixes the count and does not mention carbon at all.

Molar mass, M, is the mass of a sample divided by the amount of substance in it, M = m / n. Its coherent SI unit is kg/mol, but chemistry works in g/mol because the number then matches the relative molecular mass printed in tables: sodium chloride's relative formula mass of 58.44 becomes 58.44 g/mol. Strictly, that match stopped being an identity in 2019. Carbon-12 now has a measured molar mass of 12.0000000126 g/mol (CODATA 2022), heavier than 12 by about one part in a billion — far below anything a balance can detect.

The entity always has to be stated. A mole of oxygen could mean O atoms or O₂ molecules, and the two differ in mass by a factor of two. For an ionic solid such as sodium chloride there are no discrete molecules, so the entity is the formula unit NaCl.

How to use this calculator.

  1. Choose the question under 'What do you want to find?': Moles if you have already weighed the sample, Mass if you need to know how much to weigh, Molar mass if you know both the mass and the amount from separate measurements.
  2. Enter the molar mass in g/mol for the exact form of the substance on your balance. Bottle labels and certificates of analysis print it beside the formula. Check whether that formula carries water of crystallisation (·5H₂O, ·10H₂O): if you are weighing the hydrate, the hydrate's molar mass is the one you need. With only a formula to go on, the molar mass calculator will add up the atomic weights for you.
  3. Enter the mass in grams or the amount in moles, as the chosen question requires. The field a mode does not read is ignored, so it can keep whatever value it has.
  4. Read the amount in mol and in mmol. A quick sense check: a heavier substance should give fewer moles than a lighter one from the same mass. If yours went the other way, the mass and molar mass have probably been entered in each other's boxes.
  5. Report only the precision you measured. A three-place balance and a molar mass good to four significant figures support three or four figures in the answer, however many the display shows.

The formula.

n = m / M m = n × M M = m / n

The IUPAC Green Book (section 2.10) defines molar mass as M = m / n. Each mode solves that one relation for a different letter:

n = m / M gives the amount from a weighed mass. m = n × M gives the mass to weigh for a wanted amount. M = m / n gives the molar mass from a mass and an independently measured amount.

The units cancel cleanly: grams divided by grams per mole leaves moles. Because a value in g/mol is numerically the same in mg/mmol and kg/kmol, any consistent scaling gives the same digits. Twenty-five grams of glucose at 180.156 g/mol is 0.1388 mol; 25 mg of it is 0.1388 mmol. If you type a milligram mass into the gram field, read the mole result as millimoles.

Sensitivity is simple because the relation is a plain ratio: an error of a given percentage in M produces the same percentage error in n. Using ordinary water's molar mass for heavy water puts every amount 11% out. By contrast, the stated uncertainty in chlorine's conventional atomic weight, ±0.01 in 35.45, moves the molar mass of sodium chloride by less than 0.02%.

Some entries have no physical answer and are refused instead of producing infinity: a molar mass of zero when solving for moles or mass, zero moles when solving for molar mass (M = m / n has no value at n = 0), and zero mass with a non-zero amount, which would describe weightless matter. Negative masses and amounts are refused rather than quietly made positive. One zero is accepted — a mass of 0 g when solving for moles returns 0 mol, the correct answer for an empty weighing boat.

Tiny amounts keep their significant figures instead of collapsing to zeros. One milligram of a 66,000 g/mol protein, roughly the size of serum albumin, comes out as 1.515 × 10⁻⁸ mol, or about 15.15 nanomoles.

A worked example.

Example

You have weighed 5.844 g of sodium chloride and want to know how much substance that is. Start with the molar mass. The IUPAC conventional atomic weights give sodium 22.990 and chlorine 35.45, so one formula unit of NaCl corresponds to 22.990 + 35.45 = 58.44 g/mol. The USP monograph for sodium chloride prints the same 58.44 on its header line. Now divide: n = 5.844 g ÷ 58.44 g/mol = 0.1 mol, which the millimole line shows as 100 mmol. The mass and molar mass are repeated back as 5.844 g and 58.44 g/mol so you can see which figures produced the answer. The other two modes close the loop. Asking for Mass with 0.1 mol and 58.44 g/mol returns 5.844 g, the amount to weigh out; asking for Molar mass with 5.844 g and 0.1 mol returns 58.44 g/mol. What 0.1 mol amounts to: 0.1 × 6.02214076 × 10²³ is about 6.022 × 10²² formula units of NaCl. Dissolved in water, each formula unit separates into one Na⁺ and one Cl⁻ ion, so the solution holds 0.2 mol of dissolved ions — twice the amount of salt you weighed.

mass5.844
molar Mass58.44
moles0.1
solve Formoles

Frequently asked questions.

Why do I get fewer moles from the same mass of a heavier compound?
Because molar mass sits in the denominator. A heavier molecule means more grams per mole, so a fixed mass contains fewer of them. Weigh 5.844 g of sodium chloride (58.44 g/mol) and you have 0.1 mol. Weigh the same 5.844 g of glucose, C₆H₁₂O₆, whose molar mass is 6 × 12.011 + 12 × 1.0080 + 6 × 15.999 = 180.156 g/mol, and you have only 0.0324 mol — about a third as many molecules for an identical balance reading.
Which molar mass do I use for a hydrate such as sodium carbonate decahydrate?
The molar mass of whatever is physically on the balance, water of crystallisation included. Anhydrous sodium carbonate, Na₂CO₃, is 105.988 g/mol; the decahydrate, Na₂CO₃·10H₂O, adds ten waters at 18.015 each for 286.138 g/mol. For 0.1 mol of carbonate you weigh 10.5988 g of the anhydrous salt but 28.6138 g of the decahydrate. Weigh 10.60 g of decahydrate while using the anhydrous figure and you get only 0.0370 mol, about 37% of what you intended.
How do I allow for a reagent that is only 99.5% pure?
Multiply the weighed mass by the assay fraction before converting, since only that share of the powder is the substance you want. 5.844 g of sodium chloride at 99.5% contains 5.844 × 0.995 g of NaCl, which is 0.0995 mol rather than 0.1 mol. Going the other way, to get a full 0.1 mol you would weigh 5.844 ÷ 0.995, about 5.8734 g. Check whether the certificate reports purity by mass, which is the usual basis for solids.
Do I need to correct for temperature or pressure when converting grams to moles?
No. Mass and amount of substance both belong to the sample, so n = m / M holds at any temperature or pressure and in any physical state. Temperature only creeps in when you get the mass from a volume and a density. A kilogram of water is 1000 ÷ 18.015 = 55.5093 mol, but a litre of water at 25 °C weighs about 997.05 g and so holds 55.3455 mol; the familiar 55.5 figure belongs to water near 4 °C.
Why is the molar mass of carbon-12 no longer exactly 12 g/mol?
Before May 2019 the mole was defined as the number of atoms in 12 g of carbon-12, which made that molar mass exactly 12 by construction and left Avogadro's number to be measured. The revised SI did the opposite: it fixed Avogadro's constant at exactly 6.02214076 × 10²³ per mole, so the molar mass constant became the measured quantity. CODATA 2022 puts carbon-12 at 12.0000000126 g/mol, with an uncertainty of a few parts in ten billion — irrelevant at the bench.
How precise is a molar mass worked out from periodic-table values?
Usually to about four significant figures, sometimes worse. IUPAC's Commission on Isotopic Abundances and Atomic Weights gives intervals for elements whose isotope mix varies in nature: chlorine is [35.446, 35.457], hydrogen [1.00784, 1.00811], lithium [6.938, 6.997]. Lithium's range spans almost 0.9%. For everyday use the commission also publishes conventional single values with an uncertainty, such as chlorine 35.45 ± 0.01 and hydrogen 1.0080 ± 0.0002, and those are what textbooks and labels use.
What molar mass should I use for heavy water or an isotope-labelled standard?
One calculated from the isotopes actually present, not from standard atomic weights. Deuterium has a relative atomic mass of 2.01410177812 (NIST), so D₂O comes to 2 × 2.01410177812 + 15.999 = 20.027 g/mol against 18.015 for ordinary water — an 11% gap that would carry straight into every mole figure. A uniformly carbon-13 labelled compound is heavier than its unlabelled twin by close to one unit per labelled carbon, and enriched uranium or lithium-6-depleted lithium need the same treatment.
How much solid do I weigh to make a solution of a given molarity?
First multiply concentration by final volume in litres to get moles, then convert moles to grams in Mass mode. For 250 mL of 0.400 mol/L sodium chloride, n = 0.400 × 0.250 = 0.1 mol, and 0.1 mol at 58.44 g/mol is 5.844 g. Dissolve it in part of the water in a 250 mL volumetric flask and then fill to the mark, rather than adding 250 mL of water, because the dissolved salt takes up volume of its own.
How do I get from moles to the number of molecules or ions?
Multiply by Avogadro's constant, 6.02214076 × 10²³ per mole, and then by how many of the entity you care about each formula unit contains. A mole of water is 6.022 × 10²³ molecules but about 1.807 × 10²⁴ atoms, since each molecule has three. A mole of sodium chloride gives two moles of ions once dissolved. That counting step depends on the formula, which is why it lives on the moles-to-atoms calculator.
What is the difference between millimoles and milliequivalents?
Milliequivalents count charge rather than particles: mEq equals mmol multiplied by the size of the ion's charge. For a singly charged ion such as Na⁺, K⁺ or Cl⁻ the two numbers are the same. For Ca²⁺ or Mg²⁺, one millimole is two milliequivalents. Clinical laboratories report some electrolytes in mEq/L and others in mmol/L, so check which unit a target value is given in before converting.

References& sources.

  1. [1]BIPM, The International System of Units (SI), 9th edition (2019) — definition of the mole, in force since 20 May 2019 following CGPM Resolution 1 (2018): 'The mole, symbol mol, is the SI unit of amount of substance. One mole contains exactly 6.022 140 76 x 10^23 elementary entities.' Open access, HTML; retrieved and verified 2026-07-29.
  2. [2]IUPAC, Quantities, Units and Symbols in Physical Chemistry ('Green Book'), 3rd edition, 2nd printing 2012, section 2.10 'General chemistry', p. 47 — defines molar mass M_B = m / n_B (SI unit kg mol^-1), amount of substance n_B = N_B / L, and relative atomic mass A_r = m_a / m_u; p. 53 requires that the elementary entity always be specified. Open-access searchable PDF; text-verified 2026-07-29.
  3. [3]IUPAC CIAAW, Abridged Standard Atomic Weights, 2024 revision (the 2021 technical report as revised for Gd, Lu and Zr in 2024) — the conventional single values used in this page's worked examples: Na 22.990(1), Cl 35.45(1), H 1.0080(2), O 15.999(1), C 12.011(2). Open access; retrieved and verified 2026-07-29.
  4. [4]IUPAC CIAAW, Standard Atomic Weights, 2024 revision — the interval-valued table for elements whose terrestrial isotopic composition varies: H [1.00784, 1.00811], Li [6.938, 6.997], C [12.0096, 12.0116], O [15.99903, 15.99977], Cl [35.446, 35.457]. Sodium is a point value, 22.98976928(2). Open access; retrieved and verified 2026-07-29.
  5. [5]NIST, CODATA 2022 recommended values of the fundamental physical constants — molar mass constant M_u = 1.000 000 001 05(31) x 10^-3 kg mol^-1 (relative standard uncertainty 3.1 x 10^-10), from which M(carbon-12) = 12 x M_u = 12.000 000 0126(36) g/mol; and the Avogadro constant N_A = 6.022 140 76 x 10^23 mol^-1, listed as exact. Open access; retrieved and verified 2026-07-29.
  6. [6]NIST Standard Reference Database 144 — 'Atomic Weights and Isotopic Compositions with Relative Atomic Masses'. Source of the nuclide masses quoted on this page: H-1 1.00782503223(9), H-2 (deuterium) 2.01410177812(12), from which heavy water's molar mass of 20.027 g/mol is derived. Open access; retrieved and verified 2026-07-29.
  7. [7]United States Pharmacopeia-National Formulary, General Notices and Requirements, section 8.40 'Atomic Weights': 'Atomic weights used in computing molecular weights and the factors in the assays and elsewhere are those established by the IUPAC Commission on Atomic Weights and Isotopic Abundances.' Consulted as the independent second authority for this page; the USP Sodium Chloride monograph header 'NaCl 58.44' agrees with the CIAAW-derived 22.990 + 35.45 = 58.440 g/mol used in the worked example. Open access PDF; text-verified 2026-07-29.

How this page was produced

Published by
Quanta Calculator
Primary sources
7 cited below
Method
n = m / M m = n × M M = m / n
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon