Skip to content · 跳到主要内容

Molecular Weight Calculator

Calculate formula mass from a chemical formula using a built-in atomic-mass table.

Enter a valid formula using supported element symbols and balanced parentheses.

Molecular weight
--
--
Atom count
--
Formula

Molecular Weight

The formula parser multiplies each element's atomic mass by its subscript and applies group multipliers from parentheses.

Formula

formula mass = Σ (atomic mass × subscript)
Parenthesized groups are multiplied by the following subscript

How the parser reads a formula

Each element symbol is looked up in the periodic table and multiplied by the number that follows it, which defaults to one when omitted. Parentheses create groups, and a number after the closing bracket multiplies everything inside, so Ca(OH)2 counts one calcium, two oxygens and two hydrogens. Hydrates and charges are not interpreted, and element symbols must use correct capitalisation: Co is cobalt while CO is carbon monoxide.

Formula mass versus molar mass

The value returned is the formula mass in unified atomic mass units. Numerically it equals the molar mass in grams per mole, which is the figure needed when weighing out a reagent, because one mole of any substance contains the same number of particles. Isotopic composition is averaged as in standard atomic weights, so a sample enriched in a particular isotope weighs slightly differently.

Frequently Asked Questions

Does it handle parentheses?

Yes. Groups in parentheses are multiplied by the subscript that follows the closing bracket.

How should I write a formula?

Use correct element capitalisation and digits without spaces, for example H2SO4 or Ca(OH)2. Charges and hydrate notation are not parsed.

What is the difference between formula mass and molar mass?

They share the same number. Formula mass is expressed in atomic mass units while molar mass is in grams per mole.

Are isotopes accounted for?

The calculation uses standard atomic weights, which average the natural isotopic abundance.

Last reviewed: October 5, 2026 · How we calculate · Sources: Published formula reference; verify domain-specific assumptions before making a decision