The moles to grams calculator above converts between the amount of a substance in moles, its mass in grams and the number of individual particles that amount contains. It runs in every direction: give it moles and it returns grams, give it grams and it returns moles, or give it a particle count and it works backwards to both. Mass can be displayed in milligrams, grams or kilograms so the answer arrives in the unit your protocol uses.
Arb Digital publishes free calculators for the small conversions that sit inside larger problems. This is the smallest and most frequent one in chemistry. A balance measures mass; a chemical equation counts particles; the mole is the only thing that connects them, and the molar mass is the exchange rate. Everything on this page is that one exchange, done carefully in both directions.
What This Moles to Grams Calculator Does
Choose what you want back and the tool asks only for the values it needs. In its default mode it multiplies an amount by a molar mass to give a mass. Switch to moles and it divides instead. A particle mode multiplies or divides by Avogadro's number, which is useful when a question is phrased in atoms, molecules or formula units rather than in moles.
A further mode solves for molar mass, taking a mass and an amount and returning grams per mole. That is the conversion behind experimental molar mass determinations, where you measure the mass of a known amount and infer what the substance must be.
Whichever mode is active, the grid always shows the full picture: amount in moles, mass in grams, particle count and the same amount expressed in millimoles, which is the working unit for most small-scale synthesis and for a great deal of analytical chemistry.
A boundary worth stating: our molar mass calculator derives grams per mole from a written chemical formula. This page assumes you already have that number and converts amounts with it. Use them together and you never have to look up a molar mass by hand.
How to Use It
- Pick the quantity you want. The inputs change so the calculator never asks you for the answer.
- Enter the molar mass of the substance as grams per mole. For an element this is its standard atomic weight; for a compound it is the sum over the formula.
- Fill in what you know — a mass from a balance, an amount from a reaction equation, or a particle count from a question.
- Choose a display unit for mass if grams is inconvenient. Milligrams suit small samples; kilograms suit bulk quantities.
- Read the millimole figure in the grid if you are working at small scale, where whole moles are an awkward unit.
The Formula and How It Is Calculated
The two relationships are m = n × M and n = m / M, where m is mass in grams, n is amount in moles and M is molar mass in grams per mole. Particle count follows from N = n × NA, where NA is the Avogadro constant, defined exactly as 6.022 140 76 × 10²³ per mole in the NIST CODATA value for the Avogadro constant. Since the 2019 redefinition of the SI base units, that number is not a measurement but a definition, which is why it carries no uncertainty.
The default example on this page is water. Two moles multiplied by 18.015 g/mol gives 36.03 g, and two moles multiplied by Avogadro's number gives 1.2044 × 10²⁴ molecules. Reversing it, 36.03 g divided by 18.015 g/mol returns 2 mol. The molar masses used throughout are built from the standard atomic weights published by the IUPAC Commission on Isotopic Abundances and Atomic Weights, which sets hydrogen at about 1.008 and oxygen at about 15.999.
What a Mole Actually Counts
A mole is a count, not a mass or a volume. It is fixed at the Avogadro number of elementary entities, and the phrase "elementary entities" is doing real work: you have to say what you are counting. A mole of oxygen is ambiguous. A mole of oxygen molecules, O₂, weighs 32.00 g. A mole of oxygen atoms weighs 16.00 g. Both are correct answers to the wrong question.
The same ambiguity shows up with ionic compounds. A mole of sodium chloride means a mole of NaCl formula units, weighing 58.44 g, but it contains one mole of sodium ions and one mole of chloride ions, so two moles of ions in total. When a calculation depends on the number of dissolved particles rather than on mass — osmotic pressure, freezing-point depression, ionic strength — the ion count is the number that matters, not the formula-unit count.
Polyatomic groups add a third layer. One mole of aluminium sulfate contains two moles of aluminium ions and three moles of sulfate ions, and each of those sulfate ions is itself five atoms. Deciding what you are counting before you start is what keeps a stoichiometry problem straight.
Why Avogadro's Number Is Now Exact
Until 2019 the mole was defined by reference to carbon-12: the amount of substance containing as many entities as there are atoms in 12 g of carbon-12. Avogadro's number was then a measured quantity with an uncertainty, refined over decades by silicon sphere experiments and X-ray crystal density measurements.
The redefinition inverted that. The mole is now defined as exactly 6.022 140 76 × 10²³ elementary entities, full stop, and the mass of 12 g of carbon-12 becomes the measured quantity instead. In practical terms nothing changed — the numbers were chosen so that no laboratory calculation shifts — but it does mean the molar mass of carbon-12 is no longer exactly 12 g/mol. It is 12 g/mol to within about one part in a billion, which is well below anything a balance can see.
This matters only at the extremes of metrology, but it explains something students notice: why Avogadro's number is written with a specific string of digits and no plus-or-minus. It is a definition now, in the same family as the speed of light.
Significant Figures and the Molar Mass You Choose
The precision of your answer is limited by the least precise input, and that is almost always the molar mass rather than the balance. Using 18 g/mol for water instead of 18.015 introduces an error of about 0.08 percent, which is invisible in a rough calculation and unacceptable in a quantitative one. Using 1 g/mol for hydrogen instead of 1.008 is worse in relative terms.
The opposite failure is reporting more digits than you earned. A balance reading 2.05 g gives three significant figures, so an amount calculated from it has three, no matter how many the calculator prints. Carry full precision through the intermediate steps and round only at the end — rounding partway through compounds the error. Our significant figures calculator handles the bookkeeping if a report needs to be defensible.
There is also a real physical limit for a handful of light elements. The atomic weights of hydrogen, lithium, boron, carbon, nitrogen, oxygen, silicon, sulfur and chlorine vary slightly depending on where the material came from, and IUPAC publishes intervals rather than single numbers for them. The conventional single values used everywhere in ordinary work are recommended precisely for cases where the origin of the sample is unknown.
Where This Conversion Fits in a Bigger Problem
Almost every quantitative chemistry problem passes through this step twice. You convert a weighed mass into moles at the start, do the stoichiometry in moles because that is what a balanced equation counts, then convert back to grams at the end to know what to expect on the balance. The percent yield calculator is where that final comparison usually happens.
If the substance is in solution rather than in a bottle, the molarity calculator is the equivalent bridge between amount and volume, and the solution dilution calculator takes over from there. For reactions, the chemical equation balancer gives you the coefficients that the mole ratios depend on. And when the substance is unknown, the empirical formula calculator uses exactly these conversions in reverse to turn measured masses into a formula.
Arb Digital publishes hundreds of free calculators across chemistry, maths, finance and marketing — no sign-up, no limits. If something you need is missing, tell us and we will look at building it.
Browse All Free Tools Suggest a ToolCommon Mistakes to Avoid
- Multiplying when you should divide — grams to moles divides by molar mass; moles to grams multiplies. Check that the answer moved in the direction you expected.
- Not saying what you are counting — a mole of oxygen atoms is 16.00 g and a mole of oxygen molecules is 32.00 g.
- Rounding the molar mass too early — 18 instead of 18.015 for water is a 0.08 percent error before you have done anything else.
- Leaving a mass in milligrams — the formula wants grams, and a thousandfold slip here is easy to miss because the result still looks like a number.
- Confusing formula units with ions — one mole of calcium chloride releases three moles of ions in solution, which is what colligative properties respond to.
Related Free Tools From Arb Digital
Get a molar mass from a formula with the molar mass calculator, turn an amount into a solution with the molarity calculator, and compare a real yield against the predicted one with the percent yield calculator. The chemical equation balancer supplies the mole ratios, the weight converter handles mass units outside the metric family, and the free online tools hub lists the rest.
Frequently Asked Questions
Multiply the amount in moles by the molar mass in grams per mole. Two moles of water at 18.015 g/mol is 36.03 g. To go the other way, divide the mass by the molar mass instead.
It is the number of elementary entities in one mole, fixed at exactly 6.022 140 76 times ten to the twenty-third per mole. Since the 2019 redefinition of SI units it is a defined value rather than a measured one, so it carries no uncertainty.
No. A mole is a fixed count of particles, not a fixed mass. A mole of hydrogen molecules weighs about 2 g while a mole of glucose weighs about 180 g, because the particles themselves differ in mass.
Divide the mass by the molar mass to get moles, then multiply by Avogadro's number. This calculator does both steps and shows the particle count in the results grid alongside the amount.
They share a numeric value for an element but not their units or meaning. Atomic mass describes one atom, usually in unified atomic mass units, while molar mass describes one mole of them in grams per mole.
A millimole is one thousandth of a mole. It is the working unit for small-scale synthesis and analytical chemistry, where whole moles would mean quantities far larger than anyone handles at the bench.
So it stays useful when you already have the number, including for mixtures and polymers with an average molar mass. If you have a formula instead, our molar mass calculator parses it and gives you the value to paste in here.
This calculator is provided for education and general reference. It describes how amount and mass conversions are computed and is not laboratory, safety or handling guidance; follow the procedures and risk assessments issued by your own institution.