molecalculator

Moles & Molar Mass

Grams to Mol Calculator: Convert Mass to Moles

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

Amount of substance 0.9992 mol
Mass
18 g
Set in the form below
Molar mass
18.015 g/mol
Set in the form below
You enter
Mass (g), Molar mass (g/mol)
You get
Amount of substance (mol)
Rounding
4 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.

A grams-to-moles calculator converts a substance’s mass in grams into the amount of substance in moles. Enter the mass and the substance’s molar mass in grams per mole; the calculator returns moles, using the formula moles = mass ÷ molar mass.

Formula

The formula is n = m / M. Here, n is amount of substance in moles (mol), m is mass in grams (g), and M is molar mass in grams per mole (g/mol). Dividing grams by grams per mole leaves moles: g ÷ (g/mol) = mol.

The calculator does not identify a substance from its mass. You must supply the correct molar mass for the chemical formula and form you are working with. If a reference gives molar mass in kilograms per mole, convert it to grams per mole before entering it; 1 kg/mol = 1000 g/mol.

Worked Example

For the defaults, the sample is 18.0 g of water, whose molar mass is 18.015 g/mol, based on the standard atomic weights H = 1.008 and O = 15.999:

  1. Write the relationship: n = m / M.
  2. Substitute the defaults: n = 18.0 g / 18.015 g/mol.
  3. Calculate: n = 0.99917 mol (rounded to four decimal places).

The calculator’s result is 0.9992 mol. The slight difference from exactly 1 mol reflects the entered mass and molar mass, not a different conversion rule.

Assumptions

  • The entered mass and molar mass refer to the same substance and chemical form.
  • The sample is treated as pure; impurities or moisture are not corrected for.
  • The result is an amount of substance, not a solution concentration or a particle count.

How to Find and Use Molar Mass

Molar mass is the mass of one mole of a specified substance. To calculate it, add the atomic masses of every atom in the chemical formula, multiplying each element’s value by its subscript. Use the same atomic-weight convention throughout; ordinary chemistry calculations commonly use abridged standard atomic weights.

  • Water, H2O: 2 × 1.008 + 15.999 = 18.015 g/mol.
  • Carbon dioxide, CO2: 12.011 + 2 × 15.999 = 44.009 g/mol.
  • Sodium chloride, NaCl: 22.990 + 35.45 = 58.44 g/mol.

For hydrates, include the water molecules shown in the formula. For example, a hydrate’s molar mass is not the same as that of its anhydrous salt. Likewise, distinguish a molecular formula from an empirical formula when the task requires the mass of a specific molecule. If a chemical is a mixture, a solution, or a material with variable composition, a single molar mass may not describe the whole sample.

When the Conversion Is Useful

Mass-to-mole conversion is a standard step in stoichiometry. Chemical equations describe reacting substances in mole ratios, so grams usually need to be converted to moles before using the balanced equation. Once the limiting reactant and required mole ratio are determined, the calculated amount can be converted back to mass by multiplying moles by molar mass.

The conversion is also useful when preparing a calculation for concentration. For molarity, divide moles of solute by the final solution volume in liters. The grams-to-moles calculation supplies the mole amount, but it does not account for volume: mass alone cannot determine molarity. Similarly, a known mole amount can be converted to particles using Avogadro’s constant, 6.02214076 × 1023 entities per mole, if the requested entity (such as molecules or formula units) is clear.

Common Errors and Limits

  • Using the wrong molar mass: Check element symbols, subscripts, parentheses, and hydrate notation. A small formula error can substantially change the answer.
  • Mixing units: If mass is entered in milligrams, convert it to grams first: 1000 mg = 1 g. Keep molar mass in g/mol for this calculator.
  • Confusing mass and amount: Grams measure mass; moles measure amount of substance. The conversion depends on the substance’s molar mass, so there is no universal grams-to-moles factor.
  • Rounding too early: Keep extra digits during intermediate calculations and round the final result to match the precision of the measurements. A calculator’s displayed digits do not make the input measurements more precise.
  • Ignoring purity or composition: The result assumes the full entered mass is the specified substance. If purity is known, account for it separately using a justified mass correction; do not silently treat an impure sample as pure.

This arithmetic does not predict whether a reaction will occur, how quickly it proceeds, or how much product a real process will yield. Those questions depend on the reaction, conditions, and possible losses. For bench work, follow your lab method, the safety data sheet (SDS) and your supervisor.

Frequently Asked Questions

How do I convert grams to moles?
Divide the mass in grams by the substance’s molar mass in g/mol. For example, 10.0 g of a substance with a molar mass of 50.0 g/mol is 10.0 ÷ 50.0 = 0.200 mol.

How many moles are in one gram?
It depends on the substance. One gram contains 1 ÷ M moles, where M is its molar mass in g/mol. One gram of water is about 0.0555 mol, while one gram of carbon dioxide is about 0.0227 mol.

Can I convert grams to moles without molar mass?
No. You need the substance’s identity or a molar mass supplied by a reliable reference. The same mass can represent different mole amounts for different substances.

Are grams and moles interchangeable?
No. Grams describe mass and moles describe amount of substance. Molar mass connects them, but the numerical values are not generally equal.

Should I use the molecular or empirical formula?
Use the formula that represents the chemical entity named in the problem. Molecular molar mass is based on the molecular formula; an empirical formula gives the simplest whole-number atom ratio and may have a different formula mass.

Related

Formula used
in m | Mass | g | 18.0 | 0
in mm | Molar mass | g/mol | 18.015 | 0
out n | Amount of substance | mol | m / mm | 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 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 →