A molar mass calculator cannot identify an unknown substance from its name alone: you must enter a known formula or experimental measurements. This calculator estimates molar mass from the measured mass of a sample and its amount in moles, returning grams per mole (g/mol); if the amount is unknown, use suitable experimental data to determine it first.
Formula
The molar mass is the sample mass divided by the amount of substance:
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 expression assumes the mass and amount refer to the same material and that units are converted to grams and moles before calculation. Both inputs must be greater than zero for a meaningful result.
Worked Example
Using the calculator’s default values, the sample has a mass of 10 g and an amount of 0.1 mol.
M = m / n = 10 g / 0.1 mol = 100 g/mol
The estimated molar mass is 100 g/mol. This result is only as reliable as the sample-mass measurement, the method used to find the amount in moles, and the assumption that the sample is a single substance.
Assumptions
- The mass and mole amount describe the same sample and the same chemical component.
- The sample is sufficiently pure for the intended calculation. Impurities can make an apparent molar mass differ from the substance’s true value.
- The measured amount in moles is valid for the experimental method used. No particular measurement method or chemical identity is assumed.
- This is study and lab-planning arithmetic, not a method for identifying or verifying an unknown on its own.
What Molar Mass Can—and Cannot—Tell You
Molar mass is the mass of one mole of a substance, conventionally expressed in g/mol. A mole represents exactly 6.02214076 × 1023 specified entities, such as molecules, atoms, or formula units. The relevant entity depends on the substance: for example, sodium chloride is described in formula units, while water is described in molecules.
For a compound with a known chemical formula, molar mass can be calculated by adding the atomic masses of all atoms shown in the formula. Water, H2O, has a molar mass of about 18.015 g/mol using H = 1.008 and O = 15.999. That calculation depends on knowing the formula; it does not reveal a formula for an unidentified sample.
For an unknown, experimental measurements may produce an apparent molar mass. Multiple compounds can share the same molar mass, and mixtures may produce misleading values. A numerical match is evidence to compare with other observations, not proof of identity. Identification generally requires suitable analytical evidence and reference data.
How to Find the Mole Amount
The calculator needs the amount of substance, n, as well as mass. How n is found depends on what is known and what the sample is. A common route for a pure, known compound is to derive an amount from a chemical reaction or a separate measurement. If composition or identity is unknown, a method suited to the sample and the question is needed; this calculator cannot supply that missing measurement.
For a pure substance with a known formula, the relationship can also be rearranged: n = m / M. But using a formula-derived molar mass to calculate moles and then using those same moles to “discover” the molar mass is circular reasoning. To estimate an unknown molar mass, the mole amount must come from independent experimental data or another justified source.
For solutions, be clear about which material the amount refers to. A solution’s total mass is not necessarily the mass of its dissolved solute. Likewise, a volume alone does not determine the amount of substance unless concentration or other relevant information is known.
Using the Calculator and Checking Units
- Measure or obtain the mass of the sample in grams. Convert milligrams to grams by dividing by 1,000; convert kilograms to grams by multiplying by 1,000.
- Enter the amount of the substance in moles, based on an appropriate method independent of the mass measurement used here.
- Divide mass by amount. The result’s unit is g/mol because g divided by mol gives g/mol.
- Compare the result with the method’s uncertainty and any reliable reference values. Keep appropriate significant figures rather than reporting unsupported precision.
If the amount is given in millimoles (mmol), convert it to moles first: divide by 1,000. For example, 25 mmol is 0.025 mol. If both mass and amount are entered in incompatible units without conversion, the calculator’s numerical answer will be wrong even though the arithmetic is correct.
Common Errors and Limits
- Confusing mass with molar mass: 10 g is a sample mass; 10 g/mol is a molar mass. The amount in moles connects the two.
- Treating an average as an identity: a measured value near a reference molar mass does not uniquely identify a substance.
- Ignoring mixtures or impurities: contaminants affect measured mass and can affect the independently determined mole amount, so the quotient may not describe any one component.
- Rounding too early: retain useful digits in intermediate conversions and round the final result to match measurement precision.
- Using a zero or unsupported mole amount: division by zero is undefined, and an unreliable mole estimate makes the calculated molar mass unreliable.
For a bench measurement, follow your lab method, the safety data sheet (SDS) and your supervisor. This page covers calculation only; it does not prescribe a sample-preparation or identification procedure.
Frequently Asked Questions
Can I calculate molar mass if I do not know the substance?
Only if you have a valid way to obtain its mole amount as well as its mass. The calculator returns mass divided by moles; it does not infer either the formula or identity from mass alone.
How do I calculate molar mass from mass and moles?
Divide the mass in grams by the amount in moles: M = m / n. For example, 5 g divided by 0.05 mol gives 100 g/mol.
Can molar mass identify an unknown compound?
No. Different substances can have the same or similar molar masses, and mixtures complicate the result. Use the value as one piece of evidence alongside appropriate analytical information.
What if I know the chemical formula?
Add the atomic masses for every atom in the formula, multiplying each element’s atomic mass by its subscript. For example, H2O contains two H atoms and one O atom, giving about 18.015 g/mol.
Why is my calculated molar mass unexpectedly high or low?
Check that mass is in grams, amount is in moles, and both refer to the same substance. Also check for a mistaken mmol-to-mol conversion, impurities, or uncertainty in the experimental mole amount.
Related
Formula used
in m | Sample mass | g | 10 | 0 in n | Amount of substance | mol | 0.1 | 0 out mm | Molar mass | g/mol | m / n | 3
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
- Molecules to Grams Calculator: Convert with Molar Mass18.0150 g
- How Many Protons Are in Potassium (K)?19 protons
- Moles of Electrons: Formula and Calculator
- Molecules to Liters Calculator: Convert Using Molarity0.1000 L
- How to Calculate mL to Moles: Formula and Calculator0.1250 mol
- Free Energy Change Calculation: ΔG Formula and Example-24.907 kJ/mol