Molecular Weight Calculator Online

Compute the molar mass of any chemical formula, with a full per-element breakdown, right in your browser.

The Molecular Weight Calculator runs entirely in your browser. Formulas you type are parsed and calculated locally and are never uploaded to ArrayKit.

Open the Molarity Calculator

About Molecular Weight Calculator

The Molecular Weight Calculator computes the molar mass of a chemical formula such as H2O, C6H12O6, or Ca(OH)2 in a single step. Type a formula and it parses element symbols, subscript counts, and nested parentheses or bracket groups, then sums standard atomic weights for every element to give you the total molar mass in grams per mole along with a per-element breakdown showing each atom's count and contribution. It's built for chemistry students checking homework, lab technicians preparing solutions, and anyone who needs a quick, reliable formula weight without digging through a periodic table. Everything runs locally in your browser — the formulas you type are never uploaded.

Features

How to use the Molecular Weight Calculator

  1. Type a chemical formula, such as H2O or C6H12O6, into the formula field
  2. Use parentheses or brackets for grouped atoms, like Ca(OH)2 or K4[Fe(CN)6]
  3. Read the total molar mass and the per-element breakdown below the input
  4. Copy the molar mass or the full breakdown with the copy button

Example

Input

C6H12O6

Output

180.16 g/mol

Glucose (C6H12O6): 6 carbon + 12 hydrogen + 6 oxygen atoms sum to a molar mass of 180.16 g/mol.

Common errors & troubleshooting

Frequently asked questions

What does the Molecular Weight Calculator actually compute?
It parses your chemical formula into individual elements and their counts, looks up each element's standard atomic weight, multiplies by the count, and adds everything together to give the molar mass in grams per mole.
Can the Molecular Weight Calculator handle nested parentheses like K4[Fe(CN)6]?
Yes. Parentheses, square brackets, and braces can all be nested, and each group's contents are multiplied by the number that follows its closing bracket before being added to the total.
Does the Molecular Weight Calculator support every element?
It includes a built-in table of standard atomic weights covering all 118 known elements, so any valid symbol from hydrogen through oganesson will resolve to a mass.
Why does molar mass matter for a chemistry formula?
Molar mass converts between grams and moles, which is the basis for preparing solutions of a known concentration, balancing reaction stoichiometry, and calculating yields in a lab.
Is the molar mass from this calculator exact enough for lab work?
It uses standard IUPAC atomic weights, which are accurate for coursework and most general lab use. For high-precision or regulated work, cross-check against a certified reference before relying on the figure.
Are the formulas I type into the Molecular Weight Calculator uploaded anywhere?
No. Parsing and calculation happen entirely on your device in your browser, so the formulas you enter are never sent to a server.

Related tools

All ArrayKit tools