EN

Molar Mass Calculator & Mole ↔ Gram Converter

Molar mass follows from the chemical formula. H2SO4, Ca(OH)2, CuSO4·5H2O: every subscript, every pair of brackets, every hydrate dot goes into the sum. The result, in grams per mole, turns a weighing into an amount of substance, and an amount of substance into a count of entities.

Atomic weights are added, the mass is split among the elements, and the percentage composition by mass is reported. A mass, a number of moles or a number of molecules is then enough to obtain the other two quantities.

The pan only ever sees grams. A chemical equation only ever sees moles. Molar mass is the conversion factor between the two.

Formula and quantity

Compound

Capitalisation matters: Co is cobalt, CO is carbon monoxide. Brackets and hydrates are supported (· or *). Examples: H2O (water) · NaCl (table salt) · C6H12O6 (glucose) · H2SO4 (sulfuric acid) · Ca(OH)2 (slaked lime) · CuSO4·5H2O (copper(II) sulfate pentahydrate).

Conversion (optional)

The other two are derived from the molar mass.

Ignored when “None” is selected.

Result

  • Molar mass M 98.072 g/mol
  • Atoms per formula unit 7
  • Distinct elements 3

Composition by mass

Element Atoms Atomic weight Mass contributed Mass %
O — oxygen 4 15.999 g/mol 63.996 g/mol 65.25 %
S — sulfur 1 32.060 g/mol 32.060 g/mol 32.69 %
H — hydrogen 2 1.008 g/mol 2.016 g/mol 2.06 %

M = Σ (nᵢ × Mᵢ) · n = m / M · N = n × NA

An asterisk after a chemistry term points to its entry in the glossary at the end of the article.

What a mole actually counts

A mole* is not a heap. It is an amount of substance fixed by a number of entities: exactly 6.022 140 76 × 1023 since 2019. That number, the Avogadro constant NA*, is no longer a measured quantity. It is an SI definition, in the same class as the speed of light for the metre.

The number is huge because a single atom is far too light for a laboratory balance. One mole of carbon-12 atoms is exactly 12 g — enough to sit on a watch glass. The mole is the working scale between particles and the pan. Without it, the spatulas would have to deliver 10−23 g.

Molecules, atoms, ions, electrons, formula units: all of them can be counted in moles. The word does not say what. It says how many. A mole of NaCl is not a mole of salt molecules — the crystal does not contain any — it is a mole of formula units.

How a chemical formula is read

One capital, sometimes a lower-case letter. Co is cobalt. CO is carbon monoxide. Case is the name of the element, not a typesetting habit. A lower-case cl is not chlorine, and the parser rejects it. On a script the context might rescue the slip. In a typed formula it yields a compound that does not exist, or a clean refusal.

The subscript counts atoms in the motif. H2SO4: two hydrogens, one sulfur, four oxygens. No subscript means one. Brackets multiply the group they enclose. Ca(OH)2 is not one calcium, one oxygen, one hydrogen and a stray two: it is one Ca, two O, two H. Square brackets and braces do the same job. An unclosed pair, or a zero subscript, stops the count.

The centre dot of a hydrated salt*, CuSO4·5H2O, is not decoration. It adds five waters to the motif, hence ten extra H and five extra O. An asterisk or a plain full stop does the same at the keyboard. The molecular formula* read this way is the motif that will be weighed, not a hint.

A subscript inside a formula and a coefficient in front of a species in an equation are different animals. The subscript belongs to the compound. The coefficient belongs to the reaction: changing it changes how many moles are committed, not what those moles are. Setting the coefficients is the job of the chemical equation balancer.

Adding up standard atomic weights

Molar mass M is the mass of one mole of the written entity. Unit: gram per mole. It is the sum of the atomic weights, each multiplied by its subscript.

M= ∑ i ni Mi

H2SO4, with the values on this page: 2 × 1.008 + 32.06 + 4 × 15.999 = 2.016 + 32.06 + 63.996 = 98.072 g/mol. Ca(OH)2: 40.078 + 2 × 15.999 + 2 × 1.008 = 74.092 g/mol. Nothing else sits in the sum. No hidden fudge factor from a practical-class handout.

The numbers are IUPAC* standard atomic weights, natural averages. They are the right tool for a synthesis, an assay, a lab write-up. They are the wrong tool for an isotopically enriched sample — that case comes later.

Mass, amount of substance and number of entities

Grams go on the pan. Moles go in the reasoning. Molecules turn up in conversation. One conversion factor, M, and NA.

n= mM · N= n× NA

As it happens, 10.00 g of water (M = 18.015 g/mol) give n = 10.00 / 18.015 = 0.555 mol, then N = 0.555 × 6.022 × 1023 = 3.34 × 1023 molecules. The other way, 0.25 mol of NaCl (M = 58.44 g/mol) asks for 14.61 g on the pan. Reverse an arrow and multiplication replaces division. The usual failure is not the algebra. It is an ignored unit — milligrams treated as grams, and n off by a thousand.

The whole of stoichiometry* sits in those three arrows. Once n is known, making up a solution is a multiplication by volume: that is the concentration and dilution calculator, next door. Finding which reactant runs out first also needs a trustworthy n: the limiting-reactant and percent-yield calculator starts there.

Mass percent and elemental analysis

The mass percent of each element is what a CHN analyser prints. It does not require a weighing of the bottle: it is the share of element i in M, times one hundred.

%i = niMi M × 100

Glucose C6H12O6 and formaldehyde CH2O share the same C:H:O ratio — 40.0 / 6.7 / 53.3. Elemental analysis cannot tell them apart. It yields the empirical formula, not the multiple. M for glucose is six times M for formaldehyde; the percentages have no idea.

Ammonium nitrate NH4NO3 is 35.0% nitrogen. That is the figure on a fertiliser label, not a slogan printed on the sack. If the bag says 35% N and the formula gives 35.0, the chemistry and the product agree. A mismatch is moisture, a different salt, or the label.

Molecular formula and empirical formula

The empirical formula* is the smallest whole-number ratio of atoms. CH2O for glucose and for formaldehyde alike. The molecular formula is the actual motif: C6H12O6 on one side, CH2O on the other.

Analysis alone never gives the multiple. M is needed — from freezing-point depression, from mass spectrometry, or simply because the compound is already known. This page starts from the formula that was typed. It does not “guess” a factor of six.

For an ionic salt the written motif is the formula unit, NaCl, not Na2Cl2. Halving a molecular formula loses the compound. Halving Na2Cl2 is just writing the salt properly. The two gestures look similar on paper. They are not the same move.

Water of crystallisation in hydrated salts

Water of crystallisation sits in the lattice. It has mass. CuSO4·5H2O: 249.68 g/mol against 159.61 for the anhydrous salt. Five waters, 90.08 g/mol, more than a third of the blue crystals. That is not “a bit of damp”. It is five moles of water per mole of sulfate, written in the formula, owed to the lattice, not to the air in the room.

Weigh the pentahydrate with the anhydrous M, and the amount of substance is 56% out. The concentration that follows is out by the same factor. A “technical” grade, more or less drained, does not have the M on the jar. Dry it in an oven, or titrate it, or live with the uncertainty. Treating the centre dot as ornament is a way to sign a wrong n.

Even so, accidental moisture has no subscript. It changes from one day to the next. Water of crystallisation has a subscript — 5, 2, 10, sometimes ½. A hygroscopic solid, NaOH pellets, picks up water on the way to the pan, and that is no longer lattice water: it is water stolen from the air, diluting M without a warning.

Standard atomic weights from IUPAC

The masses on this page are IUPAC standard atomic weights, abundance-weighted natural averages. Chlorine at 35.45 g/mol is the mass of no chlorine atom. It is the mean of a 35Cl / 37Cl mix. Hydrogen at 1.008 is not 1, and that is not a table affectation: naturally occurring deuterium is already in the average.

Some elements are published as an interval rather than a single figure, because the isotopic mix depends on the source — petroleum versus limestone, for carbon. The values used here are the usual conventional ones, the ones in a teaching-lab wall chart. They are more than adequate for a 0.1 mg weighing on 10 g. They do not record the geology of the sample.

Heavy water, carbon-13, enriched uranium: those are no longer the natural average. The isotope mass is required, not the table value. Running M for D2O with H = 1.008 yields 18.015 g/mol instead of about 20.03 — two grams adrift on a mole, which is another molecule.

Weighings that go wrong when M is wrong

The formula is right, the balance is right, and the result still lies. Three bench regulars.

  • 0.1 mol/L NaOH, 250 mL: 0.025 mol, so 1.00 g of NaOH if M = 40.00. The pellets have already taken up water and CO2. It is no longer 40. Titrate, or crack an ampoule.
  • CuSO4·5H2O versus the anhydrous salt, already met: 249.7 against 159.6. The wrong form, n off by 56%.
  • A litre of air has no single M. Air is a mixture. This page does compounds, not atmospheres. A mean molar mass of air, ~29 g/mol, is built from mole fractions, not from a chemical formula.

A quieter fourth: copying an M rounded to the gram off a bottle, 98 instead of 98.072, onto a milligram sample. For a 250 mL flask of sodium hydroxide, 40 or 39.997 changes nothing. For a 0.1% standard, it does.

Atomic mass units versus grams per mole

One mole of water, 18.015 g. One water molecule, 18.015 u, about 2.99 × 10−23 g. Mixing the two is how 18 g per molecule ends up in a lab report. The factor between the two scales is NA.

The unified atomic mass unit u*, equal to the dalton Da, is one twelfth of the mass of a carbon-12 atom. By construction, molar mass in g/mol and molecular mass in u carry the same number. 1 g/mol is 1 u per entity, because NA entities make a mole. That is not a coincidence. It is the definition holding both ends.

On the bench, M is therefore not “the mass of one molecule in grams”. It is the mass of one mole, in grams. The molecule itself is weighed in u, and it never sits on the pan.

Formula unit, not molecule

H2SO4, C6H12O6: molecules. M is the mass of one mole of those molecules. NaCl, Ca(OH)2, CuSO4: ionic lattices. There is no “molecule of table salt”. The written motif is a formula unit*: the smallest set of ions that rebuilds the crystal, Na+Cl−. M is then the mass of one mole of formula units.

The arithmetic is identical. The language is not. “A molecule of NaCl” still slips through in a first-year class, and grates as soon as the lattice is the subject. The page adds atoms. It has no opinion on covalent versus ionic. The typed formula decides: NaCl, not Na2Cl2, and Ca(OH)2 rather than CaO2H2 — the last two would compute, the first is the salt, the second is a lazy spelling of the same count.

A formula unit is a writing convention, not a particle that can be fished out. A NaCl is not lifted from the crystal the way a glucose molecule is lifted from a syrup.

Molar mass, molecular weight, MW

Molar mass: SI quantity, g/mol, symbol M. Relative molecular mass: a dimensionless number, or a mass in u, referred to 1/12 of carbon-12. Molecular weight: the twentieth-century name, still on bottle labels and in biochemistry, often shortened to MW.

All three carry the same figure if the entity is the same. Gluing them onto one unit is the trap. A “molecular weight of 18 g/mol” mixes two vocabularies. 18 u, or 18 g/mol, not both hanging off “weight”.

For a polymer the reported figure is often an average molar mass (number-average, mass-average), not M of a repeat unit. This page does not do distributions. It does one motif, the one that was written.

Glossary

Mole
SI unit of amount of substance. One mole contains exactly 6.022 140 76 × 1023 elementary entities — atoms, molecules, ions, electrons or formula units, according to what is being counted.
NA
Avogadro constant. Since 2019 it is defined as exactly 6.022 140 76 × 1023 mol−1. It converts an amount of substance n into a number of entities N = n × NA.
Hydrated salt
A crystalline salt that incorporates a fixed number of water molecules in its lattice — water of crystallisation. CuSO4·5H2O is the bench example. That water has mass and belongs in M; it is not moisture from the air.
Molecular formula
The actual motif, with the number of atoms of each element in the molecule or formula unit (C6H12O6, Ca(OH)2). That is what the page adds up. For an ionic salt the same writing is the formula unit, not a molecule.
IUPAC
International Union of Pure and Applied Chemistry. It publishes the standard atomic weights used here — natural averages, not the mass of a single isotope.
Stoichiometry
The accounting of proportions in a reaction, read from the coefficients of the balanced equation. It is done in moles, never in grams. M is the factor that gets from the pan into that account.
Empirical formula
The smallest whole-number ratio of atoms, the one an elemental analysis reports. CH2O is the empirical formula of both glucose and formaldehyde; it does not say which.
u (dalton)
Unified atomic mass unit, equal to the dalton (Da): 1/12 of the mass of a carbon-12 atom. The mass of a molecule in u carries the same number as M in g/mol.
Formula unit
The smallest set of ions that rebuilds an ionic crystal (NaCl, Ca(OH)2). It is not a molecule. M of a salt is the mass of one mole of these units.

Related calculators