BedrockCalculator
Figures cited to primary sourcesWritten by Aapt Dubey, MBA (Marketing & Banking), ISB 4 primary sourcesLast updated

Grams to Moles Calculator (and Moles to Grams)

The Grams to Moles Calculator converts grams to moles, moles to grams, or a count of molecules to moles, with molar masses from IUPAC standard atomic weights and the exact Avogadro constant.

Quick Answer: 10 g of water is 0.555093 mol, because water's molar mass is 18.015 g/mol and moles equal grams divided by molar mass. That is 3.34285 × 10²³ water molecules.

Assumptions

Computed

Preset scenarios

Result
0.555093 mol
Amount of substance
0.555093 mol
Mass
10 g
Molecules or formula units
3.34285 × 10²³
Atoms in total
1.00285 × 10²⁴
Molar mass used
18.015 g/mol (Water, H₂O)

Molar masses and moles in 100 g of common substances

Download CSV
Each row is this calculator run in grams to moles mode on 100 g of the listed substance, with the molar mass summed from the IUPAC abridged standard atomic weights (2024). Values are rounded to six significant figures.
Substance and molar massMoles in 100 g
18.015 g/mol (Water, H₂O)5.55093 mol
58.44 g/mol (Sodium chloride, NaCl)1.71116 mol
39.997 g/mol (Sodium hydroxide, NaOH)2.50019 mol
36.458 g/mol (Hydrogen chloride, HCl)2.74288 mol
98.072 g/mol (Sulfuric acid, H₂SO₄)1.01966 mol
63.012 g/mol (Nitric acid, HNO₃)1.587 mol
60.052 g/mol (Acetic acid, CH₃COOH)1.66522 mol
17.031 g/mol (Ammonia, NH₃)5.87165 mol
44.009 g/mol (Carbon dioxide, CO₂)2.27226 mol
31.998 g/mol (Oxygen gas, O₂)3.1252 mol
2.016 g/mol (Hydrogen gas, H₂)49.6032 mol
28.014 g/mol (Nitrogen gas, N₂)3.56964 mol
16.043 g/mol (Methane, CH₄)6.23325 mol
44.097 g/mol (Propane, C₃H₈)2.26773 mol
46.069 g/mol (Ethanol, C₂H₅OH)2.17066 mol
180.156 g/mol (Glucose, C₆H₁₂O₆)0.555074 mol
342.297 g/mol (Sucrose, C₁₂H₂₂O₁₁)0.292144 mol
100.086 g/mol (Calcium carbonate, CaCO₃)0.999141 mol
56.077 g/mol (Calcium oxide, CaO)1.78326 mol
84.006 g/mol (Sodium bicarbonate, NaHCO₃)1.19039 mol
74.548 g/mol (Potassium chloride, KCl)1.34142 mol
158.032 g/mol (Potassium permanganate, KMnO₄)0.632783 mol
249.677 g/mol (Copper(II) sulfate pentahydrate, CuSO₄·5H₂O)0.400517 mol
159.687 g/mol (Iron(III) oxide, Fe₂O₃)0.626225 mol
169.874 g/mol (Silver nitrate, AgNO₃)0.588672 mol
12.011 g/mol (Carbon, C)8.3257 mol
55.845 g/mol (Iron, Fe)1.79067 mol
63.546 g/mol (Copper, Cu)1.57366 mol
26.982 g/mol (Aluminium, Al)3.70617 mol
24.305 g/mol (Magnesium, Mg)4.11438 mol
196.97 g/mol (Gold, Au)0.507692 mol

This table and its CSV are free to reuse with a link to this page, CC BY 4.0.

Grams to Moles Calculator (and Moles to Grams): Result 0.555093 mol (Convert: Grams to moles; Substance: Water (H₂O); Mass: 10; Mass unit: grams).

Save or share this result

A one-page summary of this calculator's default example, drawn from the same calculation as the result above.

The infographic is free to reuse with a link to this page, CC BY 4.0.

Illustration of a heap of sugar crystals on a steel weighing dish beside a glass bead and a sugar cube
Quick Answer: 10 g of water is 0.555093 mol, because water's molar mass is 18.015 g/mol and moles equal grams divided by molar mass. That is 3.34285 × 10²³ water molecules.

What does this calculator do?

This grams to moles calculator converts a mass of a substance into the amount in moles, converts moles back into grams, and turns a count of molecules or atoms into moles. Alongside each answer it gives the number of molecules (or formula units) and the total number of atoms, so you can see what a mole means in particles.

The link between grams and moles is the molar mass, the mass of one mole of the substance in grams. For the thirty or so common substances in the list (water, salt, carbon dioxide, glucose, sulfuric acid, iron, gold and more), the calculator works out the molar mass itself. It multiplies each element's standard atomic weight by the number of atoms in the formula and adds them up. The atomic weights are the IUPAC abridged standard atomic weights, 2024 edition, published by the Commission on Isotopic Abundances and Atomic Weights: hydrogen 1.0080, carbon 12.011, nitrogen 14.007, oxygen 15.999, sodium 22.990, chlorine 35.45, and so on. For any other substance, choose Custom and enter its molar mass.

The link between moles and particles is the Avogadro constant, N_A = 6.02214076 × 10²³ per mole. Since the 2019 revision of the SI it is an exact number: the mole is defined as exactly that many entities. NIST lists it in the CODATA tables with no uncertainty.

Using the Grams to Moles Calculator

  1. Choose the conversion: grams to moles, moles to grams, or number of particles to moles.
  2. Pick the substance from the list, or choose Custom and type its molar mass in g/mol.
  3. Enter the mass (in grams, milligrams, kilograms, pounds or ounces), the number of moles, or the number of particles. Large counts can be typed as 1e24.
  4. Read the result at the top. The cards give the amount in moles, the mass in grams, the number of molecules or formula units, the number of atoms and the molar mass used.

How is this calculated?

  1. Find the molar mass. For a listed substance, each element's standard atomic weight is multiplied by its count in the formula and the products are added. Water is 2 × 1.0080 + 15.999 = 18.015 g/mol.

M = ∑_i nᵢ Aᵣ(i)

  1. Convert the mass to grams. A mass in milligrams, kilograms, pounds or ounces is converted to grams with exact factors (1 lb is 453.59237 g).
  1. Grams to moles, and back. Divide the mass by the molar mass, or multiply moles by the molar mass:

n = m/M; m = nM

  1. Particles. Moles times the Avogadro constant give the number of molecules or formula units; particles divided by it give moles. For a listed substance, the number of atoms is the number of formula units times the atoms in one formula unit (3 for H₂O, 45 for sucrose).

N = nN_A; N_A = 6.02214076 × 10²³ mol⁻¹

  1. Round for display. Results are rounded half up to six significant figures, and very large numbers are written in scientific notation.

Worked Example

The default inputs convert 10 g of water:

  1. Molar mass: 2 × 1.0080 + 15.999 = 18.015 g/mol.
  2. Moles: 10 ÷ 18.015 = 0.555093 mol.
  3. Molecules: 0.555093 × 6.02214076 × 10²³ = 3.34285 × 10²³.
  4. Atoms: three per molecule, 1.00285 × 10²⁴.

The reverse direction: 2 mol of sodium chloride (58.44 g/mol) weighs 2 × 58.44 = 116.88 g.

Carbon shows what a mole is. 12.011 g of carbon is exactly 1 mol, which is 6.02214 × 10²³ atoms.

From a count of particles, 10²⁴ molecules of carbon dioxide is 10²⁴ ÷ N_A = 1.66054 mol, which at 44.009 g/mol weighs 73.0787 g.

How Many Moles Are in a Gram?

It depends entirely on the substance. One gram is 1 ÷ M moles, so a light molecule gives many moles per gram and a heavy one few. The reference table on this page runs the calculator on 100 g of every listed substance: 100 g of water is 5.55093 mol, while 100 g of sodium chloride is only 1.71116 mol.

How to Calculate Grams to Moles by Hand

Write down the formula, look up each element's atomic weight, multiply by how many atoms of it there are, and add. That is the molar mass in g/mol. Then divide your mass in grams by it. The calculator does exactly that for listed substances and shows the molar mass it used, so you can check your own sum.

What does this calculator not account for?

  • Purity and water of crystallisation. The mass is taken as the pure substance. A hydrate has its own formula and molar mass; copper(II) sulfate pentahydrate is listed separately for that reason.
  • Isotopically altered material. Standard atomic weights describe normal terrestrial material. Enriched or depleted samples, and some commercial lithium and boron, differ.
  • Variable elements. For some elements, including hydrogen, carbon and chlorine, IUPAC gives an interval because natural samples vary. The abridged table gives one value for ordinary use, and that is what the calculator uses.
  • Elements with no standard atomic weight. Radioactive elements such as technetium and radon have no standard atomic weight and are not in the table. Use Custom with the mass of the isotope you have.
  • Formula entry. The calculator does not parse a typed formula. For a compound not in the list, add up the molar mass yourself and use Custom.

What mistakes do people make with this?

  • Using atomic number for atomic weight. Carbon's atomic number is 6; its atomic weight is 12.011.
  • Forgetting subscripts. H₂O has two hydrogens. Leaving one out drops a whole hydrogen's worth from the molar mass, and every answer after it is wrong.
  • Treating diatomic gases as atoms. Oxygen gas is O₂, so its molar mass is twice oxygen's atomic weight of 15.999.
  • Mixing up molecules and atoms. One mole of water has N_A molecules but three times as many atoms.
  • Over-rounding the molar mass. Rounding 58.44 to 58 changes results by 0.75%.

Frequently Asked Questions

How do I convert grams to moles?

Divide the mass in grams by the molar mass in g/mol. 10 g of water divided by 18.015 g/mol is 0.555093 mol.

How do I convert moles to grams?

Multiply moles by the molar mass. 2 mol of NaCl times 58.44 g/mol is 116.88 g.

How many molecules are in a mole?

Exactly 6.02214076 × 10²³, the Avogadro constant. It has been exact since 2019, when the SI redefined the mole by fixing it.

Where do the atomic weights come from?

From the IUPAC Commission on Isotopic Abundances and Atomic Weights, which publishes the standard atomic weights and an abridged table to five significant figures. The calculator uses the 2024 abridged table, which includes that year's revisions to gadolinium, lutetium and zirconium.

How do I find the number of atoms in a sample?

Find the number of molecules (moles times N_A), then multiply by the atoms in one molecule. The calculator does it on the atoms card for any listed substance.

Why do different textbooks give slightly different molar masses?

Older books use older or more rounded atomic weights, such as 1.008 or 1.01 for hydrogen. The differences are tiny but can change the last digit of an answer.

Sources

Did this calculator answer your question?

How this calculator is tested

This calculator is checked by 7 automated test cases: specific inputs whose correct result is known in advance, and rules the output must always obey. They run on every change to the site. See the testing and corrections policy.

Show the test cases
  • Default: 10 g of water is 0.555093 mol
  • 2 mol of NaCl is 116.88 g
  • 12.011 g of carbon is exactly one mole, N_A atoms
  • 10^24 molecules of CO2 is 1.66054 mol and 73.0787 g
  • round trip and units: 1 lb of glucose is 2.51778 mol
  • custom molar mass, and a zero one refused
  • builds the molar mass table for every listed substance

Add This Website as Preferred Source on Google

See Bedrock Calculator first in your Search results & AI Overviews