Find the molar mass of any chemical compound from its formula. Supports parentheses, nested groups, and hydrates.
Break the formula into elements and their counts. Handle parentheses, subscripts, and hydrates.
Use IUPAC standard atomic weights from the periodic table. Multiply each mass by its count.
Add up all element contributions. The result is the molecular weight in g/mol.
Type the formula using standard notation: H2O, C6H12O6, Ca(OH)2, CuSO4.5H2O. We parse parentheses, nested groups, and hydrates automatically.
For each element, we look up the standard atomic weight from the periodic table. The calculator also shows the count of each atom in the formula.
See the total molecular weight in g/mol plus a per-element breakdown. Useful for stoichiometry, solution preparation, and chemistry homework.
For related calculations, try our proportion calculator.
Cross-checked against authoritative formulas (IRS, NIST, ACM) and updated for 2025/2026 tax years and rates.
No server roundtrip. All math runs in your browser so results appear the moment you finish typing.
We never collect, store, or transmit your inputs. Every calculation runs locally in your browser.
Each calculator includes the formula, plain-English explanation, and FAQs so you understand the result.
Estimates only. Calculator results are for educational and planning purposes — not professional advice. For binding decisions on taxes, investments, health, or legal matters, consult a qualified professional.
FAQ
Everything you need to know about this calculator. Can't find what you're looking for? Email our team.
A molecular weight calculator is a free chemistry tool that finds the molar mass of any chemical compound from its formula. Our molecular weight calculator uses the IUPAC standard atomic weights from the periodic table and supports parentheses, hydrates, and nested groups. The molecular weight calculator also shows the percent composition of each element.
How it works
Our molecular weight calculator lets you find the molar mass of any chemical compound from its formula, with full breakdown by element, in three steps.
Type the formula using element symbols and subscripts. Examples: H2O, C6H12O6, NaCl, H2SO4, Ca(OH)2, CuSO4.5H2O for hydrates. Element symbols are case-sensitive: Co is cobalt, CO is carbon monoxide. The Quick examples row gives common formulas.
Press Calculate. The result shows the molar mass in g/mol, the total number of atoms, and the count of unique elements. The breakdown card shows each element's count, mass contribution, and percent of the total mass.
Type a mass in grams to also see how many moles that mass represents. Useful for solution prep: enter 5 g to see 5/180.16 = 0.0277 mol of glucose. The share button creates a link with both the formula and the mass pre-filled.