How to Calculate Formula Units from Grams
- Mass
- 18 g
- You entered
- Molar mass
- 18.015 g/mol
- You entered
This calculator converts a mass in grams of a compound into the number of formula units (the smallest whole-number unit of that compound, such as molecules for covalent compounds or ion pairs for ionic compounds). You enter the mass and the molar mass of the substance, and the calculator returns the number of formula units using Avogadro’s number (6.022 × 10²³).
Formula
The number of formula units (N) is calculated by dividing the mass (m) by the molar mass (M) to get the number of moles (n), then multiplying by Avogadro’s number (NA):
N = (m / M) × NA
- m – mass of the substance in grams (g)
- M – molar mass of the substance in grams per mole (g/mol)
- NA – Avogadro’s number, approximately 6.022 × 10²³ units per mole
- N – number of formula units (dimensionless count)
Worked Example
Using the default values: mass = 18.0 g, molar mass = 18.015 g/mol (water).
- Calculate moles: n = 18.0 g / 18.015 g/mol = 0.9992 mol
- Multiply by Avogadro’s number: N = 0.9992 mol × 6.022 × 10²³ units/mol
- Result: N ≈ 6.016 × 10²³ formula units
The calculator shows 6.02 × 10²³ (rounded to two decimal places).
When to Use This Calculation
This conversion is fundamental in chemistry for stoichiometry, preparing solutions, and understanding the scale of atomic and molecular quantities. It is used in labs, homework, and industrial applications where you need to know how many individual units (atoms, molecules, ion pairs) are present in a weighed sample.
How to Read the Result
The result is a pure number (no units) representing the count of formula units. For example, 6.02 × 10²³ formula units means that many molecules or ion pairs. This number is typically very large because atoms and molecules are extremely small.
Common Mistakes
- Using the wrong molar mass: Make sure you use the molar mass of the specific compound, not the atomic mass of a single element unless the substance is an element.
- Forgetting Avogadro’s number: The most common error is stopping after calculating moles, forgetting to multiply by 6.022 × 10²³.
- Unit mix-ups: Ensure mass is in grams and molar mass is in g/mol. If you have mass in kilograms, convert to grams first.
- Incorrect significant figures: The number of formula units should reflect the precision of your inputs. The calculator rounds to two decimal places, but in manual work, use the least precise input.
Tips
- Always double-check the molar mass from a reliable periodic table. For compounds, add the atomic masses of all atoms in the formula.
- Use scientific notation for the final answer, as the numbers are huge.
- If you are dealing with an ionic compound like NaCl, the formula unit is the ion pair (Na�Cl�), not individual ions.
- For gases at standard temperature and pressure, you can also use molar volume (22.4 L/mol) to find moles, but this calculator uses mass.
Troubleshooting
If the result seems too large or too small, check your inputs:
- Result is zero or very small: Did you enter the mass in grams? If you entered milligrams, the result will be tiny. Convert to grams.
- Result is negative: Mass and molar mass must be positive. Check for accidental negative signs.
- Molar mass looks wrong: Verify the chemical formula. For example, water is H₂O (18.015 g/mol), not OH (17.01 g/mol).
- Calculator shows an error: Make sure the molar mass is not zero. If it is, enter the correct value.
Frequently Asked Questions
What exactly is a formula unit?
A formula unit is the smallest whole-number ratio of ions or atoms in a compound. For covalent compounds, it is the molecule; for ionic compounds, it is the ion pair (e.g., one Na� and one Cl� for NaCl).
Can I use this for elements like iron or oxygen?
Yes. For elements, the formula unit is a single atom (e.g., Fe) or a molecule if it exists as a diatomic (e.g., O₂). Use the appropriate molar mass: 55.85 g/mol for Fe, 32.00 g/mol for O₂.
Why is Avogadro’s number 6.022 × 10²³?
It is defined as the number of atoms in exactly 12 grams of carbon-12. It is a constant that links the macroscopic world (grams) to the microscopic world (atoms/molecules).
What if I only have the number of moles, not grams?
Then you can skip the first step: just multiply moles by Avogadro’s number. This calculator expects grams, but you can enter 1 for molar mass and enter the moles as the mass (since n = m/M with M=1).
How do I find molar mass?
Look up the atomic mass of each element on the periodic table, multiply by the number of atoms in the formula, and sum them. For example, CO₂: 12.01 + 2×16.00 = 44.01 g/mol.
Does the result change with temperature or pressure?
No. The number of formula units in a given mass depends only on the mass and molar mass, not on temperature or pressure. Those factors affect volume, not count.
Related
Formula used
in mass | Mass | g | 18.0 | 0 in molar | Molar mass | g/mol | 18.015 | 0 out units | Formula units | units | (mass / molar) * 6.022e23 | 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, rounded as each result states. See how the calculators work or report an error.