molecalculator

Moles & Molar Mass

Grams to Moles: How to Convert

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

Molarity 0.2000 mol/L
Concentration in millimolar
200.00 mM
= Molarity × 1000
Mass of solute
2.922 g
Set in the form below
Molar mass
58.44 g/mol
Set in the form below
You enter
Mass of solute (g), Molar mass (g/mol), Final solution volume (mL)
You get
Molarity (mol/L), Concentration in millimolar (mM)
Rounding
4 dp · 2 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.

To convert grams of an element to moles, divide the mass in grams by the element’s molar mass (atomic weight in g/mol). For example, 12.0 g of carbon (molar mass 12.011 g/mol) equals 0.999 moles. This page’s calculator performs that conversion for any element or compound when you enter its mass and molar mass.

Formula

The conversion uses the fundamental definition of the mole:

moles = mass (g) ÷ molar mass (g/mol)

Where:

  • mass is the mass of the element or compound in grams (g).
  • molar mass is the mass of one mole of the substance in grams per mole (g/mol). For an element, this is its standard atomic weight from the periodic table (e.g., C = 12.011 g/mol, O = 15.999 g/mol). For a compound, it is the sum of the atomic weights of all atoms in its formula.
  • moles is the amount of substance, expressed in moles (mol).

This is the same relationship used in molarity calculations, where molarity (mol/L) = moles ÷ volume (L). The calculator above combines both steps: it first converts grams to moles, then divides by the solution volume in liters to give molarity.

Worked Example

Let’s use the default values from the calculator: 2.922 g of sodium chloride (NaCl) dissolved in 250 mL of water. The molar mass of NaCl is 58.44 g/mol (Na = 22.99, Cl = 35.45).

Step 1: Convert grams to moles.

moles NaCl = 2.922 g ÷ 58.44 g/mol = 0.05000 mol (exactly 0.05 mol)

Step 2: Convert volume to liters.

volume = 250 mL ÷ 1000 = 0.250 L

Step 3: Calculate molarity.

molarity = 0.05000 mol ÷ 0.250 L = 0.2000 mol/L

The calculator shows 0.2000 mol/L (and 200.0 mM). This matches the manual calculation.

Assumptions

  • The substance is pure; the mass given is the mass of the solute only.
  • The molar mass used is the standard atomic weight (IUPAC) for elements, or the formula mass for compounds.
  • For molarity, the final solution volume is used, not the solvent volume alone (see common mistakes).
  • Temperature and pressure do not affect the mass-to-mole conversion (they only matter for gases).

Why This Conversion Matters

Chemists work with moles because atoms and molecules react in fixed ratios (e.g., 2 H₂ + O₂ → 2 H₂O), not in fixed mass ratios. Since you can only weigh substances in grams, you need a bridge between the macroscopic world (grams) and the microscopic world (moles). That bridge is the molar mass. Without it, you couldn’t know how much of each reactant to use in a reaction, how to prepare a solution of known concentration, or how to calculate theoretical yields.

For example, if you need 0.5 moles of sodium chloride for a reaction, you would weigh out 0.5 × 58.44 = 29.22 g. The conversion is also essential in stoichiometry, where you convert grams of one substance to moles, then use the balanced equation to find moles of another substance, then convert back to grams.

How to Find Molar Mass

For a pure element, the molar mass is simply the atomic weight listed on the periodic table. For example:

  • Iron (Fe): 55.845 g/mol
  • Gold (Au): 196.967 g/mol
  • Helium (He): 4.0026 g/mol

For a compound, add the atomic weights of each atom in the formula. For water (H₂O):

molar mass = (2 × 1.008) + 15.999 = 18.015 g/mol

For sodium chloride (NaCl):

molar mass = 22.990 + 35.45 = 58.44 g/mol

For glucose (C₆H₁₂O₆):

molar mass = (6 × 12.011) + (12 × 1.008) + (6 × 15.999) = 180.156 g/mol

Always use the most precise atomic weights available; rounding to two decimals is usually fine for lab work, but for exact calculations use the IUPAC values.

Common Mistakes and How to Avoid Them

  • Using the wrong molar mass: For a compound, forgetting to multiply by subscripts (e.g., using 16.00 for O₂ instead of 32.00) is a frequent error. Double-check the formula.
  • Mixing up grams and milligrams: If your mass is in milligrams, divide by 1000 to get grams first. The calculator expects grams.
  • Confusing volume units: Molarity uses liters, not milliliters. Always convert mL to L by dividing by 1000.
  • Using solvent volume instead of final volume: When preparing a solution, the final volume after adding solute may be slightly different from the solvent volume. Use the final volume for molarity.
  • Rounding too early: Round only at the end. Carrying extra digits through intermediate steps avoids rounding errors.

When to Use This Calculator

This calculator is designed for a common lab task: preparing a solution of known molarity from a solid solute. You enter the mass of solute, its molar mass, and the final volume, and it gives you the concentration. It’s also useful for checking your own manual calculations.

If you need to convert grams to moles without a volume (e.g., for a reaction stoichiometry problem), simply use the formula moles = mass ÷ molar mass. The calculator’s first output (molarity) implicitly includes that step; you can ignore the volume part if you only need moles.

For gases, remember that molar volume at STP (0 °C, 1 atm) is 22.414 L/mol, but this calculator assumes you are working with a solid or liquid solution, not a gas.

Limitations and Notes

  • The molar mass for a compound assumes the pure substance with the given formula. Hydrates (e.g., CuSO₄·5H₂O) have additional water mass; you must include that in the molar mass.
  • For very precise work, use atomic weights from the IUPAC table; the values here are standard abridged weights.
  • This calculator does not account for temperature-dependent density changes of the solution. For exact molarity, prepare the solution in a volumetric flask at the specified temperature.
  • If you are working with a radioactive isotope, its molar mass differs from the natural abundance value; use the isotope’s mass number.

Frequently Asked Questions

How do I convert grams to moles without a calculator?
Divide the mass in grams by the molar mass (from the periodic table). For example, 10 g of water (18.015 g/mol) is 10 ÷ 18.015 = 0.555 moles. You can do this by hand or with any basic calculator.

What is the difference between molar mass and atomic mass?
Atomic mass is the mass of a single atom in atomic mass units (u), numerically equal to the molar mass in g/mol. Molar mass is the mass of one mole (6.022 × 10²³ particles) of that substance. For an element, they are the same number but different units.

Why do we use moles instead of grams in chemistry?
Because chemical reactions occur in fixed particle ratios. Using moles lets you compare amounts of different substances directly, regardless of their mass. For example, 1 mole of hydrogen (2 g) reacts with 1 mole of oxygen (32 g) to form water, but you need the mole ratio to know that.

Can I convert grams to moles for any substance?
Yes, as long as you know its molar mass. For elements, use the atomic weight. For compounds, sum the atomic weights of all atoms. For mixtures, you would need an average molar mass, which is not straightforward.

What is Avogadro’s number and how does it relate to moles?
Avogadro’s number is 6.02214076 × 10²³, the number of particles (atoms, molecules, etc.) in one mole. So 1 mole of any substance contains that many particles. This is why molar mass in grams equals the mass of 6.022 × 10²³ particles.

Does temperature affect the grams-to-moles conversion?
No. Mass and molar mass are independent of temperature and pressure. However, if you are converting grams of a gas to volume, then temperature and pressure matter (via the ideal gas law). For solids and liquids, temperature has negligible effect on mass.

Related

Formula used
in m | Mass of solute | g | 2.922 | 0
in mm | Molar mass | g/mol | 58.44 | 0.001
in v | Final solution volume | mL | 250 | 0.001
out c | Molarity | mol/L | m / mm / (v / 1000) | 4
out cmm | Concentration in millimolar | mM | c * 1000 | 2

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 →