Enter data
Education- —
Settings
- 4
- 2
- 6
- 8
- 10
- Standard (IUPAC)
- School (rounded)
Result
CalcCoreWhat the molar mass calculator does
The “Molar mass” tab parses the formula, handles brackets and crystal hydrates and computes the molar mass step by step. For each element it shows the number of atoms, the atomic mass, its contribution and its mass fraction. The “Empirical formula” tab goes the other way: from the composition it finds the simplest formula of a substance and, given the molar mass, the molecular one.
How to calculate molar mass
The molar mass of a substance in g/mol is numerically equal to its relative molecular mass and to the sum of the atomic masses of all atoms in the formula: M = Σ nᵢ · Ar(i). For sulfuric acid H₂SO₄: M = 2 · 1.008 + 32.06 + 4 · 15.999 = 98.072 g/mol. With rounded school masses (H = 1, S = 32, O = 16) it is 2 + 32 + 64 = 98 g/mol.
Brackets and crystal hydrates
An index after a bracket multiplies everything inside: Ca(OH)₂ has two O and two H, so M = 40.078 + 2 · (15.999 + 1.008) = 74.092 g/mol. In hydrates the coefficient before the water multiplies all the water: for CuSO₄·5H₂O the anhydrous salt is 159.602 plus 5 · 18.015 = 90.075, 249.677 g/mol in total. The hydrate dot can be typed as · or *.
Mass fraction of an element
The mass fraction of an element in a compound is ω = n · Ar / M, where n is the number of its atoms in the formula. In H₂SO₄: ω(H) = 2.016 / 98.072 ≈ 2.06 %, ω(S) ≈ 32.69 %, ω(O) ≈ 65.25 %; the sum is always 100 %. Such a table is needed for composition problems and for finding the mass of an element in a sample.
Empirical and molecular formula
To find the empirical formula, divide the mass of each element (in 100 g of the substance this is the percentage) by its atomic mass to get the number of atoms, then divide by the smallest of these values. For C 40 %, H 6.71 %, O 53.29 % the ratio C : H : O = 1 : 2 : 1, so the empirical formula is CH₂O with a molar mass of 30.026 g/mol. If the molar mass of the substance is known to be 180 g/mol, the factor is 180 / 30.026 ≈ 6 and the molecular formula is C₆H₁₂O₆ — glucose. If the ratios are not whole numbers, multiply them all by 2, 3, 4… until they become whole.
Which atomic masses the calculator uses
By default the abridged standard IUPAC atomic masses (for example H 1.008, C 12.011, O 15.999, Cl 35.45). For radioactive elements with no stable isotopes the mass number of the longest-lived isotope is used. In the settings you can switch to the school set: every mass is rounded to a whole number except chlorine (35.5). Other calculators and tables may differ in the third or fourth decimal because they use older values.
The molar mass depends on the set of atomic masses: standard IUPAC values and rounded school values differ in the decimals. Choose the set in the settings.
FAQ
What is molar mass?
The mass of one mole of a substance, in g/mol. It is numerically equal to the relative molecular mass: for water 18.015 g/mol.
How do I calculate the molar mass of a substance?
Add the atomic masses of all atoms in the formula, taking the indices into account. For H₂SO₄ it is 2 · 1.008 + 32.06 + 4 · 15.999 = 98.072 g/mol.
What is the difference between molar mass and relative molecular mass?
The relative molecular mass Mr is a dimensionless number, while the molar mass M has the unit g/mol. The numerical values coincide.
How do I write a formula in the calculator?
With ordinary digits and Latin letters: H2SO4, Ca(OH)2, CuSO4·5H2O. Case matters: Co is cobalt, CO is carbon monoxide.
Does the calculator handle brackets and hydrates?
Yes: an index after a bracket multiplies everything inside, and the coefficient before H₂O in a hydrate multiplies all the water.
How do I find the mass fraction of an element?
ω = n · Ar / M. The calculator shows it for every element in the composition table.
Why does the result differ slightly from another calculator?
Different sources use different versions of atomic masses: 1.008, 1.00794 or 1.0079 for hydrogen. The difference shows in the third or fourth decimal.
What is an empirical formula?
The simplest whole-number ratio of atoms in a substance. For glucose C₆H₁₂O₆ the empirical formula is CH₂O.
How do I find the molecular formula?
Divide the known molar mass by the molar mass of the empirical formula and multiply all indices by the resulting whole number.
What are school atomic masses?
Rounded to whole numbers: H = 1, C = 12, N = 14, O = 16, Na = 23, S = 32, Cu = 64; chlorine is the exception, 35.5.
Does the calculator take isotopes into account?
No, the average atomic mass of the element for the natural isotopic composition is used, as in the periodic table. For a single isotope enter the mass by hand in other calculators.
How do I calculate the molar mass of an ion?
The mass of the electrons is usually ignored, so the molar mass of an ion equals the mass of its atoms: M(SO₄²⁻) = 32.06 + 4 · 15.999 = 96.056 g/mol. Write the charge after ^, for example SO4^2-.