keepcalculator

06 Numbers and Powers

Convert Moles to Grams Formula & Calculator

Card No. 06·0885 · Updated · Standard formula, shown below

Mass 36.0300 g
Moles
2 mol
You entered
Molar mass
18.015 g/mol
You entered
You enter
Moles, Molar mass
You get
Mass
Rounding
4 dp

This calculator converts an amount of a substance from moles to grams using its molar mass. You enter the number of moles and the chemical formula (or molar mass directly), and it returns the mass in grams. The formula is simple: grams = moles × molar mass.

Formula

The conversion uses the fundamental relationship between amount of substance and mass:

Mass (g) = Moles (mol) × Molar Mass (g/mol)

Where:

  • Moles (mol) – the amount of substance, often given in a problem or measured in a lab.
  • Molar mass (g/mol) – the mass of one mole of the substance, numerically equal to its atomic or molecular weight in daltons (amu). For a compound, add the atomic masses of all atoms in the formula.
  • Mass (g) – the result, the weight of the sample in grams.

For example, water (H₂O) has a molar mass of about 18.015 g/mol: 2 × 1.008 (hydrogen) + 15.999 (oxygen). So one mole of water weighs 18.015 grams.

Worked Example

Using the default values in the calculator above: 2 moles of water (molar mass 18.015 g/mol).

  1. Write the formula: mass = moles × molar mass
  2. Plug in the numbers: mass = 2 × 18.015
  3. Calculate: mass = 36.03 g

The calculator shows 36.03 g (rounded to 4 decimal places), matching the manual calculation.

Why Molar Mass Works

The mole is defined so that one mole of any substance contains exactly 6.022 × 10²³ particles (Avogadro’s number). The mass of that many particles, in grams, is numerically equal to the average mass of a single particle in atomic mass units. This is why carbon-12 has a molar mass of 12 g/mol – one mole of carbon-12 atoms weighs exactly 12 grams. For compounds, you simply add the atomic masses from the periodic table according to the chemical formula.

How to Find Molar Mass

You need the molar mass before you can convert moles to grams. Here’s the step-by-step process:

  • Write the chemical formula (e.g., NaCl, CO₂, C₆H₁₂O₆).
  • Look up the atomic mass of each element from the periodic table (usually given in g/mol).
  • Multiply each atomic mass by the number of atoms of that element in the formula.
  • Add all the contributions together.

Example: Carbon dioxide (CO₂) – carbon: 12.011, oxygen: 15.999 × 2 = 31.998. Total = 44.009 g/mol. So 3 moles of CO₂ weigh 3 × 44.009 = 132.027 g.

Common Mistakes and How to Avoid Them

The most frequent error is mixing up the direction of conversion. Moles to grams means multiply by molar mass. Grams to moles means divide by molar mass. Another common mistake is using the wrong molar mass – for example, using the atomic mass of oxygen (16 g/mol) instead of molecular oxygen (O₂, 32 g/mol) when dealing with oxygen gas. Always check the chemical formula and whether the substance is diatomic.

Unit cancellation is your friend. Write the units out: moles × (g/mol) = grams. If you accidentally divide, you’ll get 1/mol, which is a red flag.

When to Use This Conversion

This calculation appears in nearly every chemistry course, from high school to university. You use it when:

  • Preparing a solution of known molarity (you need to weigh out a specific number of moles).
  • Calculating theoretical yields in a reaction (convert moles of reactant to grams of product).
  • Converting between mass and amount in stoichiometry problems.
  • Determining empirical formulas from mass data.

In the lab, you rarely measure moles directly – you weigh a sample. This conversion bridges the two worlds of mass and particle count.

Limitations and Precision

The formula is exact, but the result is only as good as the molar mass you use. Atomic masses from the periodic table are averages of naturally occurring isotopes, so they are not exact for a specific sample. For most educational purposes, using values rounded to 2–3 decimal places is fine. In high-precision work (e.g., analytical chemistry), you would use more exact values and account for isotopic composition.

Also, this conversion assumes you are dealing with pure substances. If you have a mixture, the molar mass is not well-defined unless you know the composition. The calculator above works for a single compound or element with a known molar mass.

Frequently Asked Questions

How do I convert grams to moles?

Divide the mass in grams by the molar mass. For example, 36.03 g of water divided by 18.015 g/mol gives 2 moles. This is the inverse operation of the calculator above.

What is molar mass in simple terms?

Molar mass is the mass of one mole of a substance, expressed in grams per mole. It tells you how many grams one mole of that substance weighs. For elements, it’s the atomic weight from the periodic table; for compounds, it’s the sum of all atomic weights in the formula.

Do I use atomic mass or molecular mass for molar mass?

For elements that exist as single atoms (like iron, Fe), use the atomic mass. For elements that are diatomic in nature (like O₂, N₂, Cl₂), use the molecular mass (twice the atomic mass). For compounds, always use the molecular mass (sum of all atoms). The calculator above lets you enter any molar mass, so you just need to know which one applies.

Why is Avogadro’s number involved?

Avogadro’s number (6.022 × 10²³) defines the size of a mole. It was chosen so that the mass in grams of one mole equals the atomic mass in daltons. This makes the conversion between moles and grams numerically simple – you don’t need to count individual particles.

Can I convert moles to grams for a gas?

Yes, the same formula applies. For gases, you often use molar volume (22.4 L/mol at STP) to convert between volume and moles first, but once you have moles, the conversion to grams is identical. For example, 0.5 moles of helium (molar mass 4.003 g/mol) weighs 2.0015 g.

What if I don’t know the molar mass?

You can look it up in a periodic table or use an online database. For a compound, add the atomic masses of all atoms. If you have the chemical formula, you can compute it yourself. This calculator requires you to input the molar mass, but many chemistry problems provide it directly.

Related

Formula used
in n | Moles | mol | 2 | 0 | 100000
in m | Molar mass | g/mol | 18.015 | 0 | 1000
out g | Mass | g | n * m | 4

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →