molecalculator

Moles & Molar Mass

How to Calculate Molar Mass from Grams

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

Molar mass 58.44 g/mol
Sample mass
58.44 g
Set in the form below
Amount of substance
1 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.

Use this calculator to find the molar mass of a sample when you know its mass in grams and its amount in moles. Enter both values to get the molar mass in grams per mole (g/mol), then follow the steps below to check the result and understand what it means.

Formula

Molar mass equals mass divided by amount of substance:

M = m / n

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

The units divide in the same way: g / mol = g/mol. This calculation does not identify a substance by itself. It gives the molar mass implied by the mass and mole amount you provide. The calculator accepts nonnegative inputs, but the amount must be greater than zero for division to be defined.

Worked Example

The calculator’s default sample mass is 58.44 g and its default amount is 1 mol. Substitute those values into the formula:

M = m / n

M = 58.44 g / 1 mol = 58.44 g/mol

To two decimal places, the result is 58.44 g/mol, matching the calculator. As a familiar comparison, sodium chloride (NaCl) has a formula molar mass of about 58.44 g/mol when calculated using the listed standard atomic weights: Na = 22.990 and Cl = 35.45, for a sum of 58.440 g/mol. That comparison is illustrative; the calculator simply divides the two quantities entered.

Assumptions

  • The mass is in grams and the amount is in moles; convert other units before entering values.
  • The sample amount is known and greater than zero.
  • The sample is treated as the substance represented by the entered mole amount. Purity, mixtures, hydrates, and chemical reactions are not corrected automatically.
  • The result is rounded to two decimal places for display. Keep more digits during intermediate calculations if you need a more precise result.

What You’ll Need

  • The sample’s mass, measured or supplied in grams.
  • The amount of the same sample in moles. If it is not given, you need enough information to calculate it, such as the number of particles or a known concentration and volume.
  • A calculator, or the calculator above.

A balance can measure mass, but it cannot directly tell you the amount in moles. That amount must come from another measurement, a known composition, or a separate calculation. If you are working from a chemical formula instead, you can calculate its formula molar mass by adding the atomic weights of its atoms; that is a different route from dividing sample grams by known moles.

Step-by-Step

  1. Identify what you are solving for. Molar mass connects a sample’s mass to its amount of substance. You need both the mass and the mole amount for this method. Do not enter a particle count or a concentration where moles are required.
  2. Write down the sample mass in grams. Check the unit shown on the measurement or problem. Convert milligrams to grams by dividing by 1,000; convert kilograms to grams by multiplying by 1,000. For example, 250 mg is 0.250 g. Keep the converted value and unit together.
  3. Find the amount in moles. Use the value given in the problem or derive it from suitable information. For example, if you know the number of entities, divide by Avogadro’s constant, 6.02214076 × 1023 entities/mol. If you know molarity and solution volume, use n = C × V, with concentration in mol/L and volume in L. Make sure the amount refers to the same sample whose mass you entered.
  4. Convert the amount to moles if necessary. For millimoles, divide by 1,000: 12 mmol = 0.012 mol. For micromoles, divide by 1,000,000: 12 µmol = 0.000012 mol. Do not put a number in millimoles into a field labeled mol without converting it.
  5. Divide mass by amount. Use M = m / n. For instance, if a sample has mass 2.50 g and amount 0.0500 mol, then M = 2.50 / 0.0500 = 50.0 g/mol. Divide the numerical values only after checking both units.
  6. Check the output and report units. The result should be in g/mol. Round according to the precision of your original measurements, not simply to the number of calculator digits. If comparing your answer with a reference value, make sure the chemical form and composition match.

Common Mistakes

  • Reversing the division: dividing moles by grams gives mol/g, not molar mass. Use grams divided by moles.
  • Mixing units: entering milligrams as grams makes the answer 1,000 times too small. Convert every input to the unit named on its field.
  • Using the wrong mole amount: the amount must correspond to the weighed sample, not a whole container, a stock solution, or a different reaction component.
  • Confusing molar mass with mass: grams describe the amount of material in a sample; g/mol describes mass per mole of that material.
  • Rounding too early: keep the original precision through the division and round only the final answer. Too many displayed digits do not make imprecise input measurements more accurate.
  • Assuming an impure or mixed sample is a pure compound: the quotient can be an apparent average for a mixture and may not equal any single compound’s molar mass.

Tips

  • Write the units beside each number before calculating. The cancellation g / mol makes it easy to see why the result is g/mol.
  • Use scientific notation for very small or large amounts, and check that the exponent is correct when converting to moles.
  • For a compound with a known formula, independently add the atomic weights to check whether the calculated value is plausible. Use standard atomic weights appropriate to the formula and note whether the material includes waters of hydration or a salt form.
  • Distinguish molar mass from molecular mass: molar mass is commonly expressed in g/mol, while molecular mass is a mass for one molecule, often expressed in unified atomic mass units.
  • If you are planning bench work, follow your lab method, the safety data sheet (SDS) and your supervisor.

Troubleshooting

The calculator rejects an input: confirm that it is a number at least zero, use a decimal point if needed, and check that you have not typed a unit or comma into the numeric field. The amount of substance cannot be zero; division by zero has no defined result.

The result is much too large or small: revisit unit conversions, especially mg-to-g and mmol-to-mol. Check the powers of ten in any scientific notation and make sure mass and amount describe the same sample.

The answer differs from a reference molar mass: check the substance’s formula, isotopic composition if relevant, purity, and whether it is a hydrate or a particular ionic form. Also check that you used the sample’s total amount in moles rather than the amount of only one component.

You know only the mass: mass alone is not enough to calculate molar mass by this method. Obtain the amount in moles from additional information, or calculate a formula molar mass from a known chemical formula and atomic weights.

Your answer has too few meaningful digits: use more precise measurements or retain extra digits in intermediate steps. The final precision cannot be justified beyond the precision of the least precise input.

Frequently Asked Questions

Can I calculate molar mass from grams alone?
No. You also need the amount in moles, or a known chemical formula from which to calculate formula molar mass.

What is the equation for molar mass from grams?
Divide mass in grams by amount in moles: M = m / n. The answer’s unit is g/mol.

Can the mass be in milligrams?
Yes, after converting it to grams. Divide milligrams by 1,000 before using the formula.

What if my amount is given in millimoles?
Convert millimoles to moles by dividing by 1,000. For example, 25 mmol is 0.025 mol.

Can a mixture have a molar mass?
A mixture does not generally have one formula molar mass. Dividing its total mass by a total mole amount may give an average, but the result depends on how the mixture’s components and moles are defined.

Why is my calculated value different from the periodic-table calculation?
Check for unit errors, measurement uncertainty, impurities, or a different chemical form. A periodic-table calculation uses the substance’s formula; this calculation uses the mass and mole amount you enter.

Related

Formula used
in m | Sample mass | g | 58.44 | 0
in n | Amount of substance | mol | 1 | 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 →