molecalculator

Moles & Molar Mass

Molar Mass to Moles Calculator: Formula and Examples

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

Amount of substance 0.1711 mol
Amount of substance
171.12 mmol
= Amount of substance × 1000
Sample mass
10 g
Set in the form below
Molar mass
58.44 g/mol
Set in the form below
You enter
Sample mass (g), Molar mass (g/mol)
You get
Amount of substance (mol), Amount of substance (mmol)
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.

Use this molar mass to moles calculator to convert a sample’s mass in grams into the amount of substance in moles. Enter the mass and the compound’s molar mass in grams per mole; the calculator returns moles, with the equivalent amount in millimoles for convenience.

Formula

The amount in moles equals the sample mass divided by its molar mass:

n = m / M

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

The units cancel as g ÷ (g/mol) = mol. To express the same amount in millimoles, multiply moles by 1,000 because 1 mol = 1,000 mmol. The calculator’s first result is moles, the main quantity requested; the millimole result is a secondary conversion.

Worked Example

For the default values, the sample mass is 10 g and the molar mass is 58.44 g/mol. Substitute them into the formula:

n = 10 g ÷ 58.44 g/mol = 0.1711157 mol ≈ 0.1711 mol

Convert to millimoles:

0.1711157 mol × 1,000 mmol/mol = 171.1157 mmol ≈ 171.12 mmol

The displayed answers are therefore 0.1711 mol and 171.12 mmol. The calculations use the unrounded quotient before displaying the results.

Assumptions

  • The mass is the mass of the substance whose molar mass you enter, measured in grams.
  • The entered molar mass is appropriate for the compound’s identity and form, such as anhydrous material or a specified hydrate.
  • This is a direct mass-to-amount conversion. It does not account for purity, incomplete reaction, or material lost during handling.

What Molar Mass Means

Molar mass is the mass of one mole of a substance. A mole is a fixed amount containing exactly 6.02214076 × 1023 specified entities, such as molecules, atoms, or formula units. Molar mass connects that particle-scale counting unit to a measurable mass.

For a molecular compound, calculate its molar mass by adding the atomic weights of all atoms in one molecule, including each subscript. For water, H2O, the calculation using standard atomic weights is 2(1.008) + 15.999 = 18.015 g/mol. For an ionic compound, use the formula-unit composition: sodium chloride, NaCl, is approximately 22.990 + 35.45 = 58.44 g/mol. Atomic weights can vary slightly with isotopic composition, and published values may be rounded, so use the value required by your class or analytical method.

How to Use the Calculator

  1. Weigh the sample and enter its mass in grams. If your balance reading is in milligrams, divide by 1,000 to convert it to grams; for example, 250 mg = 0.250 g.
  2. Enter the molar mass in g/mol. Obtain it from the formula and appropriate atomic weights, or use the value specified by a reliable reference or lab method.
  3. Read the result in mol. Use the mmol result when that unit makes quantities easier to read; 0.005 mol is 5 mmol.

If your mass is in another unit, convert it before entering it. For kilograms, multiply by 1,000 to obtain grams. Do not enter a mass in milligrams while labeling it as grams: that creates a thousandfold error. The calculator treats the entered values as numbers with the units shown.

Choosing the Right Molar Mass

The formula on a container or worksheet matters. A hydrate includes water in its stated crystal formula, so its molar mass is greater than that of the anhydrous compound. For example, a salt specified as a pentahydrate must be calculated with the five water molecules included. Using the anhydrous value would overestimate the number of moles represented by a given mass.

Purity is another separate issue. The calculator assumes the entered mass is entirely the named substance. If a sample is not pure and a valid purity fraction is known, first calculate the mass of the target substance by multiplying total mass by that fraction, then use that corrected mass in n = m/M. Do not apply a purity correction unless the sample’s composition is known and the method calls for it.

Common Errors and Limits

  • Confusing molar mass with mass: g/mol is not interchangeable with g. Divide mass by molar mass; multiplying them does not produce moles.
  • Using the wrong chemical form: hydrates, salts, and compounds with different formulas have different molar masses.
  • Rounding too early: keep extra digits during the calculation and round the final answer to reflect the precision of the measured mass and molar-mass value.
  • Equating moles with molecules: moles measure amount of substance. To estimate entities, multiply moles by Avogadro’s constant, 6.02214076 × 1023 entities/mol, and specify which entities are being counted.

This conversion does not determine solution concentration, reaction yield, or the amount that will react. Those require additional information, such as solution volume or a balanced chemical equation. A calculated mole amount also cannot be more precise than the underlying mass measurement and chemical identity justify. 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 grams per mole: moles = grams ÷ (g/mol).

How do I find molar mass from a chemical formula?
Multiply each element’s atomic weight by its subscript, then add the contributions. If a parenthesis is followed by a subscript, multiply every atom inside by that subscript too.

Can I use milligrams in the formula?
Yes, after converting milligrams to grams. Divide the milligram value by 1,000 first, because the calculator’s mass input is in grams.

What is the difference between molar mass and molecular mass?
Molecular mass describes the mass of one molecule, commonly in atomic mass units. Molar mass describes one mole of those molecules in g/mol; their numerical values are usually the same when expressed in those respective units.

How many molecules are in one mole?
One mole contains exactly 6.02214076 × 1023 specified entities. For a molecular substance, those entities are molecules; for an ionic solid, the counted entities are formula units.

Does the calculator account for purity or reaction yield?
No. It converts the mass you enter using the molar mass provided. Purity, yield, and reaction stoichiometry need additional information and separate calculations.

Related

Formula used
in m | Sample mass | g | 10 | 0
in mm | Molar mass | g/mol | 58.44 | 0.001
out n | Amount of substance | mol | m / mm | 4
out nmm | Amount of substance | mmol | n * 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 →