Molar Mass Calculator
Type a formula as you write it in class, hydrates and brackets included. You get its molar mass in g/mol, a table of each element's atoms, atomic mass, subtotal and mass percent, and grams, moles and particles converted for that compound, with the working.
- No account needed
- Free, no limits
- Nothing is uploaded
How it works
- 01
Type the formula
H2O, Ca(OH)2, CuSO4·5H2O, K4[Fe(CN)6]. If a symbol is wrong, such as CL, the calculator offers the fix (Cl).
- 02
Read the molar mass
The molar mass in g/mol appears as you type, with a table of atoms, atomic masses, subtotals and mass percent.
- 03
Convert an amount
Type grams, moles or a number of particles to get the other two for that compound, with each step written out.
From the formula to the mole
Molar mass, element by element
The molar mass of a compound is the mass of one mole of it, in grams per mole. To find it, multiply each element's atomic mass by the number of its atoms in the formula and add the results. For glucose, C₆H₁₂O₆: carbon 6 × 12.011 = 72.066, hydrogen 12 × 1.0080 = 12.096, oxygen 6 × 15.999 = 95.994, so the molar mass is 180.156 g/mol. The table shows the same for any formula, with each element's mass percent: its subtotal divided by the molar mass, times 100 (oxygen is 53.28 % of glucose).
Formulas are read as they are written in class. A number after a symbol or a bracket counts the atoms: Ca(OH)₂ has two oxygens and two hydrogens. A hydrate is joined with a dot, CuSO₄·5H₂O (or CuSO4*5H2O), and the water is counted five times: 249.68 g/mol. A charge such as SO4^2- is accepted and does not change the mass at this precision. Symbols need their capital letter: Co is cobalt, CO is carbon monoxide, and when a symbol is wrong the calculator says so and offers the likely fix.
With the molar mass M you can move between mass, moles and particles: moles = grams ÷ M, grams = moles × M, and particles = moles × the Avogadro constant, which has been exactly 6.02214076 × 10²³ per mole since the SI was redefined in 2019. For 10 g of water: 10 ÷ 18.015 = 0.5551 mol, and 0.5551 mol × 6.022 × 10²³ = 3.343 × 10²³ molecules. These results are rounded to four significant figures; the molar mass itself is shown to as many decimals as the least precise atomic weight allows.
The atomic masses are the IUPAC standard atomic weights (CIAAW, abridged to five significant figures, 2024), the same table the chemical equation balancer uses. Your textbook may round them differently (Cl as 35.5, O as 16), so the last digit can differ from its answers: use the values your teacher asks for. Elements with no stable isotope, such as technetium, have no standard atomic weight, and the calculator says so. Everything runs in your browser and nothing is uploaded.
FAQ
Questions, answered
More free tools
Maths & science
Chemical Equation Balancer
Balanced exactly, with the atoms counted.

AI study tools
AI Math Solver
Type or photograph a problem, get the steps and the answer.

AI study tools
AI Homework Helper
A homework question in, every step explained.

AI study tools
AI Flashcard Maker
Notes or PDF in, a deck of flashcards out.

Chemistry notes that quiz you back
PocketNote turns your chemistry lectures and notes into flashcards and practice questions.