Formula Mass Calculator: How to Find It
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
A formula mass calculator works out the total mass of a compound from its chemical formula by adding the atomic masses of every atom in the molecule or formula unit. You enter the formula (for example, H2O or NaCl), and the calculator returns the formula mass in atomic mass units (u or amu) and, in many versions, the molar mass in grams per mole (g/mol). This page explains the calculation, shows a worked example, and covers the common mistakes people make when doing it by hand.
Formula
The formula mass is the sum of the atomic masses of all atoms in a chemical formula. For a molecular compound, it is often called molecular mass; for an ionic compound, it is called formula mass because there is no discrete molecule. The general expression is:
Formula mass = Σ (number of atoms of element × atomic mass of that element)
For water (H2O):
- Hydrogen: 2 atoms × 1.008 u = 2.016 u
- Oxygen: 1 atom × 15.999 u = 15.999 u
- Total = 18.015 u
Each variable is the count of atoms (a whole number from the subscript) and the atomic mass (a decimal value from the periodic table, usually given in atomic mass units, u). The numerical value of the formula mass in u is identical to the molar mass in g/mol, so the same number serves both purposes.
Worked Example
Using the default formula H2O from the calculator above:
- Identify the elements: hydrogen (H) and oxygen (O).
- Count atoms: 2 H, 1 O.
- Look up atomic masses: H = 1.008 u, O = 15.999 u.
- Multiply and add: (2 × 1.008) + 15.999 = 2.016 + 15.999 = 18.015 u.
The calculator returns 18.015 u, which matches. The molar mass is 18.015 g/mol, meaning one mole of water molecules weighs 18.015 grams.
When to Use Formula Mass
Formula mass is used in stoichiometry to convert between grams and moles, to balance chemical equations, and to determine the percentage composition of elements in a compound. It is also essential for preparing solutions of known concentration (molarity) in a laboratory. In everyday contexts, it helps you understand why one substance weighs more than another for the same number of molecules—for example, carbon dioxide (44.01 u) is heavier than water (18.015 u).
How to Read the Result
The result in u is the mass of a single molecule or formula unit relative to one-twelfth of a carbon-12 atom. The same number in g/mol is the mass of 6.022 × 1023 of those units (Avogadro’s number). If you have a sample mass in grams, divide by the molar mass to get moles. For instance, 36.03 g of water divided by 18.015 g/mol gives 2.00 moles of water.
Common Mistakes and Limits
- Wrong subscripts: Confusing H2O with H2O2 (hydrogen peroxide) changes the mass from 18.015 u to 34.014 u. Always check the formula.
- Ignoring parentheses: In formulas like Ca(OH)2, the subscript outside the parenthesis multiplies everything inside: 1 Ca + 2 O + 2 H, not 1 Ca + 1 O + 1 H.
- Using rounded atomic masses: Using 1 for hydrogen instead of 1.008 gives 18 instead of 18.015. For most school work, rounding to one decimal place is fine, but for precise lab work, use at least three decimals.
- Forgetting hydrates: A hydrate like CuSO4·5H2O includes the water molecules in the mass. The dot means add 5 × 18.015 to the anhydrous mass.
- Formula mass vs. molar mass: They are numerically equal but have different units. The formula mass is in u per particle; the molar mass is in g per mole. People often mix them up in unit conversions.
The formula mass calculation assumes the chemical formula is correct and that you are using a standard periodic table. It does not account for isotopes; the atomic masses are weighted averages of naturally occurring isotopes, so the result is an average, not the mass of any single molecule.
How to Choose a Formula Mass Calculator
When picking an online calculator, look for one that:
- Accepts standard chemical notation (e.g., H2O, NaCl, C6H12O6) without requiring special formatting.
- Handles parentheses and hydrates correctly.
- Shows the step-by-step breakdown so you can verify the arithmetic.
- Uses a consistent set of atomic masses (IUPAC or a named source).
- Allows you to copy the result with units.
Most free calculators use the standard atomic weights from the IUPAC periodic table, which are updated occasionally. For everyday chemistry, the differences are negligible.
Alternatives to a Calculator
If you do not have a calculator, you can compute formula mass by hand using a periodic table. Write the formula, count atoms, multiply each atomic mass by its subscript, and sum. A spreadsheet can also do it: put atomic masses in one column and subscripts in another, then use a formula like =A2*B2 and sum the products. For complex organic molecules, software like molecular editors can generate the formula mass automatically, but the underlying math is the same.
Frequently Asked Questions
What is the difference between formula mass and molecular mass?
Molecular mass applies to covalent compounds that exist as discrete molecules, like water (H2O) or glucose (C6H12O6). Formula mass is a broader term that includes ionic compounds like sodium chloride (NaCl), which do not have molecules but have a formula unit. The calculation method is identical; only the name changes based on the type of compound.
Why is the formula mass of an element not the same as its atomic mass?
For a pure element, the formula mass is the mass of one atom (if the formula is just the element symbol, like Fe) or the mass of a molecule (if the formula is diatomic, like O2). For O2, the formula mass is 2 × 15.999 = 31.998 u, not 15.999 u. Always check the formula you are using.
Can I use the formula mass to find the percent composition?
Yes. Divide the total mass of a specific element in the formula by the formula mass, then multiply by 100. For water, hydrogen percent = (2.016 / 18.015) × 100 = 11.19%, and oxygen percent = (15.999 / 18.015) × 100 = 88.81%.
Does the formula mass include the mass of electrons?
Yes, but electrons are so light (about 1/1836 of a proton) that their contribution is negligible. The atomic masses on the periodic table already include electrons, so you do not need to add anything extra.
What units should I use for the result?
Use atomic mass units (u) for a single particle and grams per mole (g/mol) for a mole of particles. The numbers are the same, but the units matter when you convert to grams or moles in stoichiometry.
Related
Formula used
in f | Formula (e.g. H2O, NaCl, C6H12O6) | - | H2O | 0 out mass | Formula mass | u | 18.015 | 3 out molar | Molar mass | g/mol | 18.015 | 3
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, rounded as each result states. See how the calculators work or report an error.