molecalculator

Moles & Molar Mass

Molar Mass Equation: Formula and How to Use It

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

Molar mass 18.015 g/mol
Atomic mass
18.015 g/mol
Set in the form below
Number of atoms
1
Set in the form below
You enter
Atomic mass (g/mol), Number of atoms
You get
Molar mass (g/mol)
Rounding
3 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 the molar mass of a compound by adding the atomic masses of all atoms in its chemical formula. Enter each element’s atomic mass and the number of atoms shown by its subscript; the result is in grams per mole (g/mol).

Formula

The molar mass equation is M = Σ(nᵢ × Aᵢ). For a formula containing only one element type, this becomes M = n × A.

  • M is molar mass, in grams per mole (g/mol).
  • nᵢ is the number of atoms of element i in one formula unit or molecule; it has no unit.
  • Aᵢ is the standard atomic weight of element i, expressed here in g/mol.
  • Σ means to add the contribution from every element in the formula.

The calculator applies the single-element form: it multiplies the entered atomic mass, aw (g/mol), by the atom count, n (unitless). To calculate a compound’s full molar mass, work out this product for each element and add the products. Use IUPAC abridged standard atomic weights, such as H 1.008, C 12.011, N 14.007, O 15.999, Na 22.990, and Cl 35.45 g/mol.

Worked Example

The default inputs represent one oxygen atom, using an atomic mass of 18.015 g/mol. This is a single-element calculation; for a compound, repeat the multiplication for every element and sum the results.

  1. Read the default atomic mass: aw = 18.015 g/mol.
  2. Read the default atom count: n = 1.
  3. Substitute both values into the equation: M = aw × n = 18.015 × 1 = 18.015 g/mol.
  4. Round to the three decimal places shown by the calculator: 18.015 g/mol.

The displayed answer is the molar mass of one oxygen atom, not the molar mass of oxygen gas, O₂. For O₂, use two oxygen atoms: 2 × 15.999 = 31.998 g/mol.

Assumptions

  • Atomic masses are standard atomic weights, suitable for ordinary calculations; particular isotopic compositions can have different masses.
  • The atom count is the number of atoms in one molecule or formula unit, including any multipliers implied by parentheses.
  • The result is a formula-based molar mass in g/mol. It does not account for sample purity, water content, or other substances mixed into a sample.

What You’ll Need

  • The compound’s correct chemical formula, including subscripts, parentheses, and any charge or hydrate notation.
  • A periodic table listing standard atomic weights, or the atomic mass values needed for the calculation.
  • A calculator or paper for multiplying and adding the contributions.

Step-by-Step

  1. Write the complete formula. Confirm the formula before calculating. For example, glucose is C₆H₁₂O₆ and calcium hydroxide is Ca(OH)₂. A missing subscript or misplaced parenthesis changes the answer.
  2. Count each type of atom. A missing subscript means one atom. In C₆H₁₂O₆, there are 6 carbon, 12 hydrogen, and 6 oxygen atoms. In Ca(OH)₂, the outside 2 multiplies both atoms inside the parentheses: 1 calcium, 2 oxygen, and 2 hydrogen.
  3. Look up the atomic mass for each element. Use one consistent periodic table and keep enough digits during the calculation. For glucose, use C = 12.011, H = 1.008, and O = 15.999 g/mol.
  4. Multiply each atomic mass by its atom count. For glucose, carbon contributes 6 × 12.011 = 72.066 g/mol; hydrogen contributes 12 × 1.008 = 12.096 g/mol; oxygen contributes 6 × 15.999 = 95.994 g/mol.
  5. Add the contributions. For glucose, M = 72.066 + 12.096 + 95.994 = 180.156 g/mol. The result is the molar mass of glucose using the stated atomic weights.
  6. Check the unit and sensible precision. Molar mass is normally reported in g/mol. Keep extra digits through intermediate steps and round the final result to a precision appropriate to the atomic weights and purpose of the calculation.
  7. For a hydrate or ionic compound, account for every part of the formula. In CuSO₄·5H₂O, include one Cu, one S, four O from sulfate, and five water molecules, adding ten more H and five more O. A charge does not itself add atoms; the subscripts and groups determine the count.

Common Mistakes

  • Using the subscript as the atomic mass. The subscript is an atom count, not a mass. Multiply it by the element’s atomic weight.
  • Ignoring parentheses. In Ca(OH)₂, the 2 applies to both O and H. Count atoms after distributing the multiplier.
  • Forgetting coefficients. A coefficient such as 3H₂O means three water molecules. It is relevant when calculating the mass of that stated quantity, though the molar mass of the substance H₂O itself is calculated from one molecule.
  • Mixing units. Atomic masses must be in compatible units. Values in atomic mass units (u) have the same numerical value as molar masses in g/mol, but do not add a value in kilograms per mole to one in grams per mole without converting.
  • Rounding too early. Rounding every contribution before adding can cause small differences. Retain the listed digits until the final total.
  • Confusing molar mass with sample mass. Molar mass describes one mole of a substance. The mass of a particular sample also depends on how many moles are present.

Tips

  • Make a two-column list of elements and atom counts before multiplying. This makes parentheses and repeated elements easier to check.
  • For compounds with several elements, calculate one contribution per element, then add. A quick estimate can help catch errors: the total should be larger than the contribution of any single element.
  • Use the same atomic-weight convention throughout. Some elements have standard atomic weights reported as intervals because natural isotopic composition varies; a periodic table may provide a conventional representative value for routine work.
  • Check whether the formula represents a molecule, an ionic formula unit, or a hydrate. Molar mass can be calculated for each, but the formula determines which atoms are included.
  • For bench work, follow your lab method, the safety data sheet (SDS) and your supervisor.

Troubleshooting

The answer is far too large or small: check that a subscript has not been mistaken for a decimal or that a coefficient has not been applied twice. Recount atoms in parentheses and hydrate groups.

Your result differs slightly from a reference: compare the atomic weights and rounding used. Values can vary in the last digits because of rounding or isotopic conventions. Recalculate with the same listed values before concluding there is an error.

The calculator only gives a one-element result: this block multiplies one atomic mass by one atom count. For a multi-element compound, calculate each element’s contribution separately and add those values; the compound’s answer is the sum, not any single contribution.

You have a name but no formula: find or verify the chemical formula first. Similar names, salts, hydrates, and different charge states can refer to formulas with different molar masses. Do not guess the formula from the name.

The input is rejected: the atom count cannot be negative. Enter a nonnegative count, and use whole-number counts for atoms in a chemical formula.

Frequently Asked Questions

What is the equation for molar mass?
Multiply each element’s atomic mass by its number of atoms in the formula, then add all contributions: M = Σ(nᵢ × Aᵢ).

What unit is molar mass measured in?
The common unit is grams per mole (g/mol). This states the mass of one mole of the substance.

How do I find molar mass from a chemical formula?
Count each element, multiply each count by its atomic weight, and add the products. Include subscripts outside parentheses and all parts of a hydrate formula.

Is molar mass the same as molecular mass?
They are related but use different units: molecular mass is for one molecule and is commonly expressed in u; molar mass is for one mole and is expressed in g/mol. Their numerical values are approximately equal.

Why does my answer differ from a periodic-table calculator?
Check the atomic-weight values, formula, parentheses, and rounding. A reference may also use a different isotopic convention or a more precise atomic-weight value.

Can I use this equation for ionic compounds?
Yes. Use the compound’s formula unit and count every atom in it. The result is commonly called formula mass in some contexts, but its molar mass is still reported in g/mol.

Related

Formula used
in aw | Atomic mass | g/mol | 18.015 | 0
in n | Number of atoms | - | 1 | 0
out mm | Molar mass | g/mol | aw * 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

The whole Moles & Molar Mass section →