Molar Mass Calculator

Calculate molar mass with nested formulas, hydrates, element contributions, and CIAAW 2024 atomic weights.

Enter a chemical formula to calculate its molar mass from theCIAAW 2024 Abridged Standard Atomic Weights table. Results use the conventional composition of normal materials, not an exact isotope mass.

Molar mass calculator

Use element symbols, positive integer subscripts, nested parentheses or brackets, and · between hydrate parts.

Molar mass

18.015 g/mol

Element breakdown

3 total atoms across 2 elements.

Atomic weights, counts, molar mass contributions, and mass percentages
ElementCountAtomic weightContribution (g/mol)Mass %
H Hydrogen21.00802.016011.2%
O Oxygen115.99915.99988.8%

Atomic weights: CIAAW 2024 Abridged Standard Atomic Weights. Displayed values follow the table's precision; the total is rounded to three decimal places.

Grams and moles conversion

Moles = grams ÷ molar mass. Grams = moles × molar mass.

= 0.9992 moles

= 18.0150 grams

Calculator features

  • Nested parentheses and square brackets, plus centered-dot hydrate formulas.
  • Atom counts, CIAAW atomic weights, per-element contributions, and mass percentages.
  • Grams-to-moles and moles-to-grams conversion, plus one-click formula presets.
  • Copyable results and immediate formula validation in your browser.

How to calculate molar mass

Molar mass is the mass of one mole of a substance, measured in grams per mole (g/mol). For a chemical formula, multiply each element's atomic weight by its atom count, then add the contributions.

For water (H2O), the calculation is 2 × 1.0080 for hydrogen plus 1 × 15.999 for oxygen, giving about 18.015 g/mol. The calculator shows the parsed atom counts and each element's contribution so you can check the sum.

Supported formula syntax

Type case-sensitive element symbols and positive integer subscripts. Parentheses and square brackets can nest; use a centered dot for hydrates, such as CuSO4·5H2O. Hydrate coefficients are supported after the dot. Isotope labels, charges, element names, and a coefficient before the first formula are not supported. Formulas are limited to 120 characters, 8 nested groups, 9,999 per subscript or hydrate coefficient, and 100,000 total atoms.

The CIAAW 2024 abridged table has numeric standard weights for 84 elements. For elements whose table entry is a dash, this calculator asks for a source with an isotope-specific mass rather than guessing one. Natural isotope abundance can vary, so a standard molar mass is not an exact isotope mass.

Molar mass calculator FAQs

What is the difference between molar mass and molecular mass?

Molar mass is expressed in g/mol for a mole of particles. Molecular mass is the mass of one molecule, usually expressed in daltons. The numerical values are closely related, but the units and quantities differ.

Which atomic weights does this calculator use?

It uses the numeric central values in the CIAAW 2024 Abridged Standard Atomic Weights table. The table notes natural-material variation for some elements; this calculator does not calculate isotope-specific masses.

Can I calculate hydrates?

Yes. Separate hydrate parts with a centered dot and put the part coefficient after the dot, for example CuSO4·5H2O. Parentheses and square brackets can group nested parts.

Why is there no result for some elements?

Some elements have no standard atomic weight in the CIAAW abridged table. Their isotope-specific mass depends on which isotope is meant, so the calculator explains the limit instead of substituting a guessed value.

Infinio Tools
© 2026 Infinio Labs