Molar Mass Calculator
Calculate the molar mass of any chemical formula (H2SO4, Ca(OH)2, CuSO4·5H2O), its percentage composition, and the moles and molecules in a given mass.
Molar Mass
18.015 g/mol
Moles in Sample
0.999167 mol
Molecules in Sample
6.017e+23
| Element | Atoms | Mass (g/mol) | % by mass |
|---|---|---|---|
| H | 2 | 2.016 | 11.19% |
| O | 1 | 15.999 | 88.81% |
Molar Mass from a Chemical Formula
Type a formula to get its molar mass in g/mol, the mass contribution and percentage of each element, and how many moles and molecules are in the sample mass you enter. Brackets such as Ca(OH)2 and hydrates such as CuSO4·5H2O are supported.
Formula
- Molar mass = Σ (number of atoms × atomic mass)
- Moles = mass ÷ molar mass
- Molecules = moles × 6.022 × 10²³
- % of element = (atoms × atomic mass) ÷ molar mass × 100
Molar masses of common compounds
| Compound | Formula | Molar mass (g/mol) |
|---|---|---|
| Water | H2O | 18.015 |
| Sulphuric acid | H2SO4 | 98.07 |
| Sodium chloride | NaCl | 58.44 |
| Carbon dioxide | CO2 | 44.01 |
| Glucose | C6H12O6 | 180.16 |
| Sodium hydroxide | NaOH | 40.00 |
| Calcium carbonate | CaCO3 | 100.09 |
| Ethanol | C2H5OH | 46.07 |
| Potassium permanganate | KMnO4 | 158.03 |
| Copper sulphate pentahydrate | CuSO4·5H2O | 249.68 |
Worked examples
1. Water, 18 g (the defaults). 2 × 1.008 + 15.999 = 18.015 g/mol; 18 g = 0.999 mol = 6.02 × 10²³ molecules.
2. Sulphuric acid. H 2.06%, S 32.69%, O 65.25%; 98.07 g/mol. 100 g = 1.02 mol.
3. Calcium hydroxide, Ca(OH)2. 40.078 + 2 × (15.999 + 1.008) = 74.09 g/mol.
4. Copper sulphate pentahydrate. 159.6 + 5 × 18.015 = 249.68 g/mol; water makes up 36% of its mass.
Element symbols start with a capital letter: Co (cobalt) and CO (carbon monoxide) are different.
Related tools
- Make a solution of known strength: Molarity Calculator; dilute it: Dilution Calculator.
- Gases: Ideal Gas Calculator. Acids and bases: pH Calculator.
Frequently Asked Questions
How do I calculate molar mass?
Add the atomic masses of all atoms in the formula. H₂O = 2 × 1.008 + 15.999 = 18.015 g/mol.
What is the molar mass of H₂SO₄?
2 × 1.008 + 32.06 + 4 × 15.999 = 98.07 g/mol.
What is the molar mass of NaCl?
22.99 + 35.45 = 58.44 g/mol.
How do I enter brackets and hydrates?
Type Ca(OH)2 or Al2(SO4)3 for groups, and CuSO4·5H2O (or CuSO4*5H2O) for hydrates. Element symbols are case-sensitive: Co is cobalt, CO is carbon monoxide.
How do I convert grams to moles?
Moles = mass ÷ molar mass. 18 g of water is 18 ÷ 18.015 = 0.999 mol.
How many molecules are in a sample?
Molecules = moles × 6.022 × 10²³ (Avogadro's number). 1 mol of any substance contains 6.022 × 10²³ particles.
What is percentage composition?
The share of the molar mass contributed by each element. Water is 11.19% hydrogen and 88.81% oxygen by mass.
Is molar mass the same as molecular weight?
Numerically yes: molar mass is in g/mol, molecular (or formula) weight is in atomic mass units (u). Both use the same atomic weights.
Why are atomic weights not whole numbers?
They are averages over the natural mix of isotopes. Chlorine is 35.45 because it is about 76% ³⁵Cl and 24% ³⁷Cl.
How precise are these values?
Atomic weights are rounded IUPAC standard values, accurate to about 0.01 g/mol for most compounds, enough for laboratory work.
Related Calculators
Molarity Calculator
Calculate the molarity (molar concentration) of a solution using M = n/V. Enter moles of solute and volume of solution in liters.
Dilution Calculator
Calculate the final volume or concentration of a diluted solution using the dilution equation C1V1 = C2V2.
Ideal Gas Law Calculator
Calculate pressure, volume, temperature, or moles using the ideal gas law PV = nRT. Enter known values to solve for unknowns.
pH Calculator
Calculate pH, pOH, and hydroxide ion concentration from hydrogen ion concentration using pH = -log[H+].
Mass Balance Calculator
Calculate product and waste flow rates using steady-state mass balance equations. Determine recovery and separation factor for chemical processes.
Heat of Reaction Calculator
Calculate the enthalpy of reaction (deltaH) using calorimetry data. Determine if a reaction is exothermic or endothermic using q = mcΔT.
More in Chemical · Engineering calculators · All calculators A–Z