Molecular Weight

Use this calculator

Molar mass is the mass of one mole of specified chemical entities, usually expressed in g/mol. BB Calculator’s Molecular Weight tool calculates molar mass from the element counts in an entered chemical formula using a bundled list of average atomic weights.

The governing equation

M=\sum_i n_i M_i
M = estimated molar mass (g/mol); nᵢ = integer atom count for element i; Aᵢ = bundled atomic-weight value used for that element (numerically g/mol contribution).

The governing equation

The chemical-formula field

Chemical formula [text] Enter standard case-sensitive element symbols, integer subscripts and optional parenthesized groups; example hint H2SO4.

How the parser counts atoms

Type H2O, CO2 or a supported grouped formula such as Ca(OH)2, then Calculate. The parser reads element symbols, counts and parentheses, multiplies nested group counts, and adds each count × bundled weight.

Mass and elemental-count results

Primary result is Molar mass (g/mol). Individual element counts appear as secondary details. Unsupported elements or malformed parentheses trigger errors; the app contains a compact 31-element weight map rather than the whole periodic table.

Water broken into its atoms

H₂O has two H and one O: 2 × 1.008 + 15.999 = 18.015 g/mol. A labelled molecular sketch and contribution diagram show why the oxygen share dominates.

What a formula counts. Water contains two hydrogen atoms and one oxygen atom.

H₂O has two H and one O: 2 × 1.008 + 15.999 = 18.015 g/mol. A labelled molecular sketch and contribution diagram show why the oxygen share dominates.

Why brackets change counts

Ca(OH)₂ means Ca × 1, O × 2 and H × 2, yielding approximately 74.092 g/mol from the embedded map. Bracket placement is part of the formula, not merely typography.

Molar-mass contribution by element. The embedded atomic weights determine each contribution.

Ca(OH)₂ means Ca × 1, O × 2 and H × 2, yielding approximately 74.092 g/mol from the embedded map. Bracket placement is part of the formula, not merely typography.

Atomic-weight conventions

Average atomic weights describe the isotopic composition of normal materials and may be intervals for some elements; individual isotopically labelled compounds need different precision and formula interpretation. The app uses a fixed conventional table.

Parentheses multiply groups. Calcium hydroxide uses Ca(OH)₂, where the bracketed group repeats twice.

Average atomic weights describe the isotopic composition of normal materials and may be intervals for some elements; individual isotopically labelled compounds need different precision and formula interpretation. The app uses a fixed conventional table.

Quick answers

Can I enter Ca(OH)2?

Yes. Balanced parentheses and a multiplier after the group are supported.

Does it list the element counts?

Yes. Each parsed supported element has a count in the result details.

Why might an element symbol fail?

Only the specific element list bundled with the app is recognized.

References

• NIST — Molar-mass definitions — https://www.nist.gov/pml/special-publication-330/sp-330-section-2