This calculator works out the gram formula mass (also called molar mass) of a compound when you enter its chemical formula or the mass of one mole of its particles. You input the atomic masses of the elements and their counts in the formula, and you get the mass in grams per mole (g/mol), which is the same number as the formula mass in atomic mass units (u).
Formula
The gram formula mass (GFM) of a compound is the sum of the atomic masses of all atoms in its chemical formula, expressed in grams per mole. For a compound with elements E1, E2, …, each with atomic mass Ai and subscript count ni:
GFM = n1·A1 + n2·A2 + …
For example, water (H2O) has GFM = (2 × 1.008) + 15.999 = 18.015 g/mol. The unit g/mol means one mole of water molecules weighs 18.015 grams. The same number is the formula mass in atomic mass units (u) because the mole is defined so that 1 g/mol equals 1 u per particle.
Worked Example
Using the calculator defaults: you have 2.922 g of sodium chloride (NaCl, molar mass 58.44 g/mol) and want to dissolve it to a final volume of 250 mL. What is the molarity?
- Convert volume to liters: 250 mL ÷ 1000 = 0.250 L.
- Calculate moles of NaCl: 2.922 g ÷ 58.44 g/mol = 0.05000 mol.
- Calculate molarity: 0.05000 mol ÷ 0.250 L = 0.2000 mol/L.
The calculator shows 0.2 mol/L (rounded to 4 decimals). The millimolar output is 0.2 × 1000 = 200 mM.
Assumptions
- The solute is pure and completely dissolves without chemical reaction.
- The final volume is measured after dissolution, not the volume of solvent added.
- Temperature is near 25 °C; molarity changes slightly with temperature because volume changes.
- Atomic masses are IUPAC abridged standard values (e.g., Cl = 35.45, not 35.453).
What Gram Formula Mass Is Used For
Gram formula mass is the bridge between the microscopic world of atoms and the macroscopic world of laboratory balances. You use it to convert between mass and moles in nearly every stoichiometry calculation:
- Preparing solutions of known molarity (as in the example above).
- Calculating the mass of a product expected from a reaction (theoretical yield).
- Finding the empirical formula from elemental analysis data.
- Determining the concentration of an unknown acid or base by titration.
Without the GFM, you cannot relate the weight of a sample to the number of particles it contains. For ionic compounds like NaCl, the term “formula mass” is technically preferred over “molecular mass” because the solid is a lattice of ions, not discrete molecules, but the arithmetic is identical.
How to Calculate It Manually
If you are not using a calculator, follow these steps:
- Write the chemical formula and count the atoms of each element. For hydrates, include the water molecules (e.g., CuSO4·5H2O has 5 water units).
- Look up the standard atomic weight of each element (IUPAC values; for chlorine use 35.45, for copper 63.546).
- Multiply each atomic weight by the number of atoms of that element.
- Sum all the products. The result is the gram formula mass in g/mol.
Example: Calcium carbonate, CaCO3:
- Ca: 40.078 × 1 = 40.078
- C: 12.011 × 1 = 12.011
- O: 15.999 × 3 = 47.997
- Total = 100.086 g/mol
Always check the subscript numbers carefully—a misplaced subscript changes the answer by a large factor.
Common Mistakes and How to Avoid Them
The most frequent error is using the wrong atomic mass. For example, using 35.5 for chlorine instead of 35.45 changes the GFM of NaCl by 0.05 g/mol, which is small, but using 32 for sulfur instead of 32.06 changes H2SO4 by 0.06 g/mol. More serious is forgetting to multiply by subscripts—especially in parentheses, such as (NO3)2 in calcium nitrate, where you must multiply both N and O by 2.
Another common issue is confusing molar mass with equivalent weight. For acids and bases, the equivalent weight is the molar mass divided by the number of H+ or OH− ions per formula unit. For H2SO4, the equivalent weight is 98.079/2 = 49.04 g/eq. This matters in normality calculations, not in basic molarity.
Rounding too early can also cause errors. Keep at least 4 significant figures through intermediate steps, then round at the end. For instance, if you calculate the GFM of glucose (C6H12O6) as 180.156 g/mol, do not round to 180 g/mol until you have finished all conversions.
Gram Formula Mass vs. Molecular Mass vs. Molar Mass
These terms are often used interchangeably, but they have subtle differences:
- Molecular mass is the mass of a single molecule in atomic mass units (u). For water, it is 18.015 u.
- Formula mass applies to ionic compounds; it is the mass of one formula unit (e.g., NaCl = 58.44 u).
- Molar mass is the mass of one mole of any entity (atoms, molecules, formula units) in grams per mole. Numerically equal to the molecular or formula mass.
- Gram formula mass is an older term specifically meaning the molar mass of a compound whose formula is known, expressed in grams.
In practice, for a neutral compound, all these numbers are identical. The difference matters only when you are talking about ions or isotopes. For example, the molar mass of a specific isotope of carbon-12 is exactly 12 g/mol, but the average atomic mass of carbon is 12.011 g/mol because of natural isotopic abundance.
Limitations of the Gram Formula Mass
The gram formula mass calculated from atomic weights is an average. It assumes the natural isotopic composition of each element. If you use a sample enriched in a particular isotope (e.g., for tracer studies), the actual molar mass will differ. Also, for polymers or proteins, the “formula” is not a single small molecule; you use the monomer repeat unit or the average molecular weight from size-exclusion chromatography.
For hydrated salts, the water of crystallization is included in the formula mass. If you weigh a hydrate and assume it is anhydrous, your molarity will be too low because part of the mass is water. Always check the label for the formula of the reagent.
Frequently Asked Questions
What is the difference between gram formula mass and gram molecular mass?
Gram molecular mass refers specifically to covalent compounds that exist as molecules (e.g., CO2, H2O). Gram formula mass is a broader term that also covers ionic compounds like NaCl, which have no discrete molecules. The calculation method is identical: sum the atomic masses of all atoms in the formula.
Why is the molar mass of chlorine 35.45 and not 35.5?
Chlorine has two stable isotopes: chlorine-35 (about 76%) and chlorine-37 (about 24%). The weighted average is 35.45 g/mol. Using 35.5 is a common approximation, but for precise work, especially in titrations and gravimetric analysis, use 35.45.
How do I find the gram formula mass of a hydrate?
Include the water molecules in the formula. For CuSO4·5H2O, add the mass of CuSO4 (159.609 g/mol) plus 5 × 18.015 g/mol (90.075) to get 249.684 g/mol. When you weigh the hydrate, use this value to calculate moles of the hydrated compound.
Does the gram formula mass change with temperature or pressure?
No. The mass of a mole of particles is a fixed property of the substance. However, the volume of a gas or solution changes with temperature and pressure, which affects molarity (mol/L) but not molality (mol/kg solvent). For gases, use the ideal gas law to convert between mass and volume.
Can I use the gram formula mass for elements?
Yes. For a pure element, the gram formula mass is the atomic weight in g/mol. For diatomic gases like O2 or Cl2, use the molecular mass (e.g., 31.998 g/mol for O2) when dealing with molecules, not atoms.
Why does the calculator ask for molar mass instead of the formula?
Because the site focuses on calculations, not on a database of compounds. You can look up the molar mass from a periodic table or use the manual method above. The calculator then helps you use that value in concentration calculations, which is where most errors occur.
Safety and Lab Practice
When preparing solutions in the lab, always add acid to water (not the reverse) for exothermic dilutions, and wear appropriate personal protective equipment. Follow your lab method, the safety data sheet (SDS) and your supervisor. The gram formula mass calculation is purely arithmetic; it does not replace proper handling of chemicals.
Related
Formula used
in m | Mass of solute | g | 2.922 | 0 in mm | Molar mass | g/mol | 58.44 | 0.001 in v | Final solution volume | mL | 250 | 0.001 out c | Molarity | mol/L | m / mm / (v / 1000) | 4 out cmm | Concentration in millimolar | mM | c * 1000 | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- ug to ppb Calculator: Convert Micrograms per Liter1.00 ppb
- Grams to Moles Chemistry: How to Convert0.2000 mol/L
- Convert ug/l to ppb Calculator
- CPP Calculator Ontario: How CPP Is Calculated162.12 $/month
- Organic Chemistry Reaction Calculator: How It Works
- Grams to Moles to Molecules: How to Convert0.2000 mol/L