molecalculator

Moles & Molar Mass

Molar Mass From Grams: Formula and Calculator

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

Molar mass 40.00 g/mol
Sample mass
10 g
Set in the form below
Amount of substance
0.25 mol
Set in the form below
You enter
Sample mass (g), Amount of substance (mol)
You get
Molar mass (g/mol)
Rounding
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.

This calculator finds molar mass when you know a sample’s mass in grams and the amount of substance in moles. Enter both values to get molar mass in grams per mole (g/mol), the mass of one mole of that substance. You need a known mole amount; grams alone are not enough.

Formula

Molar mass = mass ÷ amount of substance, or M = m / n.

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

The units follow directly: g ÷ mol = g/mol. The calculator assumes the mass and mole amount refer to the same sample and that the mole amount is already known or has been determined correctly. If your amount is given in millimoles, convert it to moles by dividing by 1,000 before using the formula.

Worked Example

The example uses the calculator’s default values: a 10 g sample and 0.25 mol.

  1. Write the formula: M = m / n.
  2. Substitute the values with units: M = 10 g / 0.25 mol.
  3. Divide: M = 40 g/mol.

The calculator displays 40.00 g/mol. This is the mass represented by one mole of the sample.

Assumptions

  • The entered grams and moles describe the same substance or sample.
  • The amount in moles is valid and uses mol, not mmol or another unit.
  • The sample is treated as a single substance for this calculation. For a mixture, the result is an overall mass-to-mole ratio, not necessarily the molar mass of any one component.

Step-by-Step

  1. Identify the sample mass. Use the mass of the material whose molar mass you want to find. Record it in grams. If your measurement is in milligrams, divide by 1,000 to convert to grams; for example, 250 mg = 0.250 g. If it is in kilograms, multiply by 1,000 to convert to grams.
  2. Find the amount in moles. You must have this value from another calculation or a stated problem. Do not treat grams as moles. If the amount is listed in millimoles, convert it: 1 mmol = 0.001 mol. For example, 15 mmol = 0.015 mol.
  3. Check that the two values refer to the same sample. The mass and amount must describe the same portion and the same material. Pairing the mass of a whole sample with the moles in only part of it gives a misleading result.
  4. Divide grams by moles. Use M = m / n. Keep units visible as you calculate so the result is g/mol. With 4.2 g and 0.10 mol, M = 4.2 g / 0.10 mol = 42 g/mol.
  5. Enter the values in the calculator. Put the sample mass in the mass field and the amount in moles in the mole field. The result is molar mass in g/mol. The calculator accepts nonnegative inputs, but an amount of exactly zero cannot be used as a divisor; provide a positive mole amount.
  6. Check and interpret the result. Confirm the size is plausible for the substance and compare it with a known reference if available. Keep enough significant figures for your measurements, and round only the final result to a precision justified by the input data.

Common Mistakes

  • Using grams alone. A mass measurement by itself cannot determine molar mass. The number of moles is also required.
  • Reversing the division. Divide mass by moles, not moles by mass. The unit check is a useful safeguard: the answer must be g/mol.
  • Mixing up mmol and mol. Millimoles are 1,000 times smaller than moles. Entering 10 mmol as 10 mol makes the calculated molar mass 1,000 times too small; enter 0.010 mol instead.
  • Mixing units for mass. Do not enter a value in milligrams while labeling it as grams. Convert the units first.
  • Pairing measurements from different portions. The mass and mole amount must correspond to the same sample quantity.
  • Rounding too early. Keep the available digits during conversion and division. Early rounding can noticeably change the final result, especially when values are small.
  • Calling every ratio a pure compound’s molar mass. If a sample contains multiple substances, the ratio of total mass to total moles may not match a single compound’s molar mass.

Tips

  • Write units beside every value before calculating. They should cancel to leave g/mol.
  • Convert all measurements to grams and moles first, rather than trying to handle mixed units within the division.
  • Use a balance and mole amount appropriate to the precision required by your calculation or course problem. More calculator digits do not make imprecise measurements more accurate.
  • For a pure compound with a known chemical formula, you can also calculate its theoretical molar mass by adding the atomic masses of its atoms. Compare that value with the mass-to-moles result as a check.
  • If you know the mass and molar mass instead, calculate moles with n = m / M. If you know moles and molar mass, calculate mass with m = n × M. These are rearrangements of the same relationship.

Troubleshooting

  • The result seems 1,000 times too large or small: check whether an amount was entered in mmol instead of mol, or whether a mass was entered in mg instead of g.
  • The calculator will not accept the input: use nonnegative values and enter the amount in moles. The mole value must be greater than zero because division by zero is undefined.
  • The result is unexpectedly low: check that the mass is not in milligrams and that you did not enter a mole amount 1,000 times larger than intended.
  • The result is unexpectedly high: check for a small mole amount caused by a missed conversion, or confirm that the sample mass and mole amount describe the same portion.
  • You do not know the moles: the calculator cannot infer them from grams alone. Find the amount from the problem statement or determine it using appropriate composition or reaction information. Do not guess.
  • The sample is a mixture: identify the components and their amounts if you need the molar mass of a particular substance. A single mass divided by total moles may only give an average for the mixture.

Frequently Asked Questions

Can I find molar mass from grams alone?
No. You need both the sample mass and the amount in moles. Different substances and quantities can have the same mass.

What is the formula for molar mass from grams?
Divide mass in grams by amount in moles: M = m / n. The result is in g/mol.

What if my amount is in millimoles?
Convert millimoles to moles by dividing by 1,000, then use the converted value. For example, 8 mmol is 0.008 mol.

Is molar mass the same as molecular mass?
They are related but use different units. Molecular mass describes one molecule in atomic mass units (u); molar mass describes one mole in g/mol. Their numerical values are often similar.

Can the result be used for a mixture?
You can divide total mass by total moles, but that may give only an overall ratio. It does not necessarily identify the molar mass of any individual component.

How many decimal places should I report?
Use the precision supported by your measurements or assignment. Keep extra digits during calculation and round the final answer appropriately.

Related

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