← Chemistry tools

Molar Mass / Molecular Weight Calculator

Enter a chemical formula to calculate molar mass in g/mol, element counts, partial masses, and mass percent composition. Add grams or moles when you also need a quick amount conversion.

The calculation runs in your browser. Formulas and quantities are not sent to a server.

Other languages English
Embed this calculator

Input

Use element symbols exactly as written: Co is cobalt, while CO is carbon monoxide. Parentheses, brackets, and hydrate dots such as CuSO4.5H2O are accepted.

Leave blank if you only need molecular weight. Use a non-negative number for grams or moles.

Result

Total atoms in the parsed formula:

Element breakdown and mass percent composition
Element Count Atomic weight Partial mass Mass percent

Formula sum


      

Quantity conversion

Atomic weights are fixed IUPAC 2021 standard values, simplified for display. Results are rounded and intended for education and planning checks.

How the calculation works

The parser expands parentheses, brackets, and hydrate dots before summing each element contribution. The core formula is M = Σ n_i × A_i, where n_i is the atom count and A_i is the atomic weight.

Use this page when the formula is already known. If you need to derive a formula from percent composition or combustion data, use the empirical and molecular formula calculator. If you already know molar mass and need molarity, dilution, or pH, use the concentration and pH calculator.

Input notes

FAQ

How do I enter a hydrate such as copper sulfate pentahydrate?

Use a dot before the water coefficient, such as CuSO4.5H2O or CuSO4·5H2O. The calculator expands the hydrate water before summing atomic weights.

Is molar mass the same as molecular weight?

They are often used together in classroom and lab calculations. This page reports molar mass in g/mol from standard atomic weights; molecular weight is the relative mass of the formula unit.

Which atomic weights does this calculator use?

It uses a fixed table of IUPAC 2021 standard atomic weights, simplified to display values. Results are rounded for display.

Why can another molar mass site give a slightly different number?

Small differences usually come from rounded atomic weights, isotope assumptions, or a different atomic-weight table. Compare the element breakdown before comparing only the final total.

Does capitalization matter in a chemical formula?

Yes. Co means cobalt, while CO means carbon monoxide. The calculator does not auto-capitalize formulas because that could change the compound.

Can this calculate isotopes such as D2O or ^13C?

No. This calculator uses standard atomic weights only. Isotope notation such as D, T, or ^13C returns an inline error instead of guessing a mass.