molecalculator

Moles & Molar Mass

Moles to Grams: Equation and How to Convert

Calculator No. 01-10534 · Updated · Formula and assumptions shown below

Mass 29.220 g
Amount in moles
0.5 mol
Set in the form below
Molar mass
58.44 g/mol
Set in the form below
You enter
Amount in moles (mol), Molar mass (g/mol)
You get
Mass (g)
Rounding
3 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

The equation to convert moles to grams is mass (g) = number of moles (mol) × molar mass (g/mol). You multiply the amount in moles by the substance’s molar mass, which you find by adding the atomic weights of all atoms in its chemical formula. This page’s calculator performs that conversion for any compound, letting you enter the moles and molar mass to get the mass in grams.

Formula

The conversion is a single multiplication step:

m = n × M

  • m = mass of the substance, in grams (g)
  • n = amount of substance, in moles (mol)
  • M = molar mass of the substance, in grams per mole (g/mol)

The molar mass is the mass of one mole of a substance. For a compound, it equals the sum of the standard atomic weights of every atom in the formula, each multiplied by its subscript. For example, sodium chloride (NaCl) has a molar mass of 22.990 g/mol (Na) + 35.45 g/mol (Cl) = 58.44 g/mol.

Worked Example

Using the calculator’s default values, convert 0.500 mol of sodium chloride (NaCl, molar mass 58.44 g/mol) to grams.

  1. Write the equation: m = n × M
  2. Substitute the values: m = 0.500 mol × 58.44 g/mol
  3. Multiply: m = 29.22 g

The result is 29.22 g of NaCl. This matches the calculator output rounded to three decimal places.

Assumptions

  • The substance is pure, with no impurities or water of hydration affecting the molar mass.
  • The molar mass is based on the IUPAC abridged standard atomic weights (e.g., Na = 22.990, Cl = 35.45).
  • The conversion is independent of temperature, pressure, or state of matter—it applies to solids, liquids, gases, and solutions.

Why This Conversion Matters

In chemistry, moles are the standard counting unit because they link the microscopic world (atoms and molecules) to the macroscopic world (grams you can weigh on a balance). One mole contains exactly 6.02214076 × 1023 entities (Avogadro’s number). However, you cannot weigh a mole directly on a balance—you weigh grams. The molar mass bridges the two: if you know how many moles a reaction requires, this equation tells you how many grams to measure out.

This conversion is used constantly in preparing solutions, calculating theoretical yields in stoichiometry, determining empirical formulas, and converting between mass and particle counts. For example, if a protocol calls for 0.250 mol of potassium permanganate (KMnO₄, molar mass 158.03 g/mol), you would weigh out 0.250 × 158.03 = 39.51 g.

How to Find Molar Mass

If you do not have the molar mass memorized, calculate it from the chemical formula:

  1. Write the chemical formula, including subscripts.
  2. Look up the standard atomic weight of each element (periodic table).
  3. Multiply each element’s atomic weight by its subscript in the formula.
  4. Add all the products together.

Example: glucose, C₆H₁₂O₆.

  • Carbon: 6 × 12.011 = 72.066 g/mol
  • Hydrogen: 12 × 1.008 = 12.096 g/mol
  • Oxygen: 6 × 15.999 = 95.994 g/mol
  • Total: 72.066 + 12.096 + 95.994 = 180.156 g/mol

For hydrated salts, include the water molecules in the formula. For example, copper(II) sulfate pentahydrate (CuSO₄·5H₂O) has a molar mass of 159.61 g/mol (anhydrous) plus 5 × 18.015 g/mol (water) = 249.69 g/mol.

Common Mistakes and How to Avoid Them

  • Unit mix-ups: The most frequent error is using milligrams or kilograms without converting. Always convert mass to grams before dividing by molar mass (or multiply moles by molar mass in g/mol to get grams).
  • Wrong molar mass: Using the atomic mass instead of the molecular mass for a compound, or forgetting subscripts (e.g., using 16 g/mol for O instead of 32 g/mol for O₂).
  • Rounding too early: Rounding atomic weights to whole numbers before multiplying can shift results by several percent. Keep at least three significant figures until the final step.
  • Confusing moles with molecules: One mole is 6.022 × 1023 molecules. If you have a count of molecules, divide by Avogadro’s number first to get moles, then convert to grams.
  • Reverse direction: To convert grams to moles, you divide by molar mass (n = m / M). Mixing up multiplication and division is a classic error—check that your answer makes sense: a few grams of a substance with molar mass ~50 g/mol should be a fraction of a mole, not hundreds of moles.

Moles to Grams vs. Grams to Moles

The two conversions are exact inverses:

  • Moles → grams: multiply by molar mass (m = n × M)
  • Grams → moles: divide by molar mass (n = m / M)

Both use the same molar mass value. The choice depends on what you know and what you need. If you are weighing a reagent for a reaction, you start with the required moles and convert to grams. If you have a sample on a balance and need to know how many moles it contains (for stoichiometry), you convert from grams to moles.

For solutions, the same logic extends to molarity. Molarity (mol/L) tells you moles per liter of solution. To find the grams of solute needed to make a solution, multiply molarity × volume (in liters) to get moles, then multiply by molar mass to get grams.

Real-World Example: Preparing a Solution

Suppose you need 250 mL of a 0.100 mol/L solution of sodium hydroxide (NaOH, molar mass 40.00 g/mol).

  1. Convert volume to liters: 250 mL ÷ 1000 = 0.250 L
  2. Find moles needed: 0.100 mol/L × 0.250 L = 0.0250 mol
  3. Convert moles to grams: 0.0250 mol × 40.00 g/mol = 1.00 g

You would weigh out 1.00 g of NaOH and dissolve it in enough water to make 250 mL of solution. Note that the final volume, not the solvent volume, is what matters—dissolve the solid in less water, then top up to the mark.

Limits of the Formula

The equation m = n × M is exact for any pure substance with a well-defined formula. However, real-world complications include:

  • Isotopic variation: Atomic weights are averages of naturally occurring isotopes. A specific sample may differ slightly, but the difference is negligible for most lab work.
  • Purity: Reagent-grade chemicals are not 100% pure. If a bottle says 98% purity, the actual mass of the desired compound is 98% of what you weigh. Adjust by dividing the needed mass by the purity fraction.
  • Hydrates: Some salts crystallize with water. If you use the anhydrous molar mass but weigh the hydrate, you will add too little of the active compound. Always match the molar mass to the exact form you have.
  • Polymers and mixtures: For substances without a single molecular formula (e.g., proteins, polymers), use the average molar mass or the repeat unit, and recognize the result is an approximation.

For bench work, always follow your lab method, the safety data sheet (SDS), and your supervisor. When preparing solutions, the final volume should be measured after the solute is dissolved, not before.

Frequently Asked Questions

How do I convert moles to grams without a calculator?
Multiply the number of moles by the molar mass. For example, 2 mol of water (H₂O, 18.015 g/mol) is 2 × 18.015 = 36.03 g. You need the molar mass from the periodic table or a known value.

What is the difference between molar mass and molecular weight?
They are numerically identical. Molecular weight is the sum of atomic weights of atoms in a molecule (in atomic mass units, amu), while molar mass is that same number expressed in grams per mole. One molecule of water weighs 18.015 amu; one mole of water weighs 18.015 g.

Can I convert moles to grams for any element or compound?
Yes, as long as you know the molar mass. For elements, use the atomic weight (e.g., 1 mol of iron, Fe, is 55.845 g). For compounds, add the atomic weights of all atoms in the formula. For gases, the same equation applies—moles to grams works regardless of state.

How many grams are in one mole of any substance?
It depends on the substance. One mole of carbon-12 is exactly 12 g, but one mole of water is 18.015 g, and one mole of sodium chloride is 58.44 g. The mass of one mole equals the molar mass in grams.

Why do I get a different answer when I use a periodic table with rounded atomic weights?
Rounded atomic weights (e.g., H = 1, C = 12, O = 16) give approximate molar masses. For precise work, use standard atomic weights with at least three decimal places. The difference is usually small (under 1%) but can matter for quantitative analysis.

Does temperature or pressure affect the moles-to-grams conversion?
No. The relationship between moles and mass is fixed by the molar mass, which does not change with temperature or pressure for a pure substance. Those conditions affect volume and density, not the mass of a given number of moles.

Related

Formula used
in m | Amount in moles | mol | 0.500 | 0
in mm | Molar mass | g/mol | 58.44 | 0.001
out g | Mass | g | m * mm | 3

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 with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →