Science calculator

Molecular Weight Calculator

Calculate approximate molar mass and relative formula mass from a chemical formula using a fixed local atomic-weight table.

Enter a chemical formula

Use standard element capitalization and positive integer subscripts. Parentheses may be nested.

Enter values and select Calculate.

Formula parser and atomic weights

The local parser distinguishes element capitalization, positive integer subscripts, and parenthetical groups to a bounded nesting depth. Contributions use one fixed table covering all 118 named elements.

Notation and safety boundary

Hydrates, charges, isotope labels, reaction equations, fractional counts, and chemical names are rejected. Results are conventional formula/molar-mass arithmetic—not exact isotopic mass, synthesis, handling, toxicity, or dosing advice.

Worked example

The editable example values above demonstrate the formula and expose each conversion or parsing assumption used in the result.

Related calculators