Molecular Weight Calculator
: Calculate the molar mass of any chemical formula with nested brackets, hydrates and charges, see the percent composition by element, and convert grams to moles or moles to grams- Molar mass
- 18.015 g/mol
- The same number is the molecular weight: 18.015 u (Da) for one molecule.
- Hill formula
- H2O
- No carbon, so every element A to Z.
- Atoms per formula unit
- 3
- Mass of one molecule
- 2.991 × 10⁻²³ g
- The molar mass ÷ the Avogadro constant; for a salt such as NaCl, one formula unit.
| Element | Atoms | Atomic weight | Mass (g/mol) | Mass percent |
|---|---|---|---|---|
| H, hydrogen | 2 | 1.0080 | 2.016 | 11.19% |
| O, oxygen | 1 | 15.999 | 15.999 | 88.81% |
Molecular Weight Calculator
This molecular weight calculator works out the molar mass of a chemical formula in g/mol, the same number as the molecular weight in u, with the percent composition by element and the Hill formula. Add an amount to convert grams to moles or moles to grams, with the number of molecules and atoms. It reads nested brackets, hydrates, charges and about 50 common names, and runs in your browser.
How to calculate the molar mass
- Type the
Formulawith capitals as in the periodic table:H2O,NaCl,Ca(OH)2,CuSO4·5H2O. A common name such aswater,glucoseorbaking sodaworks too. - Read the molar mass in g/mol, the Hill formula, the atoms per formula unit, and the table below it: each element's atoms, atomic weight, mass and mass percent.
- To convert, type an
Amountand pick its unit:g,mgorkggive moles,molormmolgive grams. A unit typed in the field wins:250 mg,0.5 mol. - Pick
Decimals(2 to 5) for the molar mass and the table's masses.
Example
10 g of table salt, the result rows as the tool shows them.
Formula: NaCl
Amount: 10 gMolar mass: 58.440 g/mol
Hill formula: ClNa
Atoms per formula unit: 2
Mass of one molecule: 9.704 × 10⁻²³ g
Moles: 0.1711 mol
Molecules (formula units): 1.030 × 10²³
Atoms: 2.061 × 10²³Details
- How to find molar mass by hand: multiply each element's atomic weight by how many atoms of it the formula has, then add them up. Water, H2O, is 2 × 1.0080 + 15.999 = 18.015 g/mol. Carbon dioxide, CO2, is 12.011 + 2 × 15.999 = 44.009 g/mol. Brackets multiply what is inside them: in Ca(OH)2 the 2 counts both O and H twice, so it is 40.078 + 2 × (15.999 + 1.0080) = 74.092 g/mol.
- Molecular weight, molar mass and formula mass are the same number in different units. The molecular weight (molecular mass) is the mass of one molecule in u, also written Da; the molar mass is the mass of one mole in g/mol. Formula mass is the word chemists use for ionic compounds such as NaCl, which form a lattice rather than separate molecules, so the tool says "formula unit" there.
- To convert grams to moles, divide the mass by the molar mass: n = m ÷ M. For 10 g of NaCl that is 10 ÷ 58.44 = 0.1711 mol. Moles to grams is the other way round, m = n × M: 0.25 mol of Ca(OH)2 is 0.25 × 74.092 = 18.52 g. Times the Avogadro constant, 6.022 × 10²³ per mole, moles become molecules: 18.015 g of water is 1 mol, 6.022 × 10²³ molecules and 1.807 × 10²⁴ atoms.
- Common molar masses, from the same table: water H2O 18.015 g/mol; carbon dioxide CO2 44.009 g/mol; sodium hydroxide NaOH 39.997 g/mol; sodium chloride NaCl 58.440 g/mol; ammonia NH3 17.031 g/mol; oxygen gas O2 31.998 g/mol; calcium carbonate CaCO3 100.086 g/mol; potassium chloride KCl 74.548 g/mol; calcium chloride CaCl2 110.978 g/mol; sulfuric acid H2SO4 98.072 g/mol; hydrochloric acid HCl 36.458 g/mol; ethanol C2H5OH 46.069 g/mol; acetic acid CH3COOH 60.052 g/mol; glucose C6H12O6 180.156 g/mol.
- Percent composition is each element's share of the molar mass. In water, hydrogen is 11.19% and oxygen 88.81% by mass. The table lists the elements in Hill order: carbon first, then hydrogen, then the rest A to Z; with no carbon, every element A to Z. That is why NaCl appears as ClNa and CH3COOH as C2H4O2.
- Hydrates and adducts are parts joined by a dot, each with its own number in front:
CuSO4·5H2O,CuSO4.5H2OandCuSO4*5H2Oall give 249.68 g/mol, the CuSO4 plus five waters. A number in front of the whole formula multiplies it (2H2Ois 36.03 g/mol). Charges such asSO4^2-,NH4+andOH-are read and ignored. Lower case is read when it has only one meaning:naclbecomes NaCl, butco2could be CO2 or Co2 (cobalt), so the tool asks which. - Why sites give different last digits: each uses some atomic-weight table and rounds in its own way. This tool uses the CIAAW abridged standard atomic weights, 2024 table from IUPAC's CIAAW, five significant figures, so hydrogen is 1.0080, sulfur 32.06 and chlorine 35.45. An older table, more decimals, or a site that rounds each atom first can move the last digit or two, which is why one site prints 18.02 for water and another 18.0150.
Limits
- 34 elements, such as technetium, have no standard atomic weight because none of their isotopes is stable. The tool uses the mass number of the longest-lived isotope (Tc [98]) and says so in a note, so trust such a molar mass only to the nearest whole number.
- This is the average molar mass from natural isotope mixtures. It does not give the monoisotopic or exact mass that mass spectrometry uses, and it reads no isotope labels except D (deuterium) and T (tritium).
- Charges are ignored, so an ion's molar mass leaves out the tiny mass of the electrons gained or lost. A number before a charge sign is a count:
Fe3+reads as three iron atoms, so write the iron(III) ion asFe^3+. - No group abbreviations such as Me, Et or Ph, no structures, SMILES or reaction balancing. Names are read only from a fixed list of about 50 everyday compounds and the element names; anything else needs its formula.
FAQ
What is the molar mass of water?
18.015 g/mol: two hydrogens at 1.0080 and one oxygen at 15.999. Hydrogen is 11.19% of its mass and oxygen 88.81%.
Is molecular weight the same as molar mass?
Yes, the same number: the molecular weight is the mass of one molecule in u (Da) and the molar mass is the mass of one mole in g/mol. Glucose, C6H12O6, is 180.156 u per molecule and 180.156 g/mol.
How do you convert grams to moles?
Divide the grams by the molar mass. 10 g of NaCl ÷ 58.44 g/mol = 0.1711 mol. Type the formula, then the grams in Amount, and the tool shows the moles, molecules and atoms.
How do I find the molar mass of a hydrate?
Add the water's mass to the salt's. Type it with a dot, such as CuSO4·5H2O or CuSO4.5H2O: copper sulfate pentahydrate is 249.68 g/mol, of which the five waters are 90.08.
Why does CO2 work but co2 gives an error?
Symbols are case-sensitive: CO is carbon and oxygen, Co is cobalt. In lower case co2 could be either, so the tool lists both instead of guessing. A lower-case formula with only one reading, such as nacl or h2so4, is read with a note.
Runs entirely in your browser. Nothing is uploaded.