molecalculator

Moles & Molar Mass

How to Find Formula Unit

Calculator No. 01-14615 · Updated · Formula and assumptions shown below

Molarity 0.2000 mol/L
Concentration in millimolar
200.00 mM
= Molarity × 1000
Mass of solute
2.922 g
Set in the form below
Molar mass
58.44 g/mol
Set in the form below
You enter
Mass of solute (g), Molar mass (g/mol), Final solution volume (mL)
You get
Molarity (mol/L), Concentration in millimolar (mM)
Rounding
4 dp · 2 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

This calculator finds the formula unit (the smallest whole-number ratio of ions in an ionic compound) from the mass of a sample and the molar mass of the compound. You enter the mass of the ionic substance, its molar mass, and the volume of solution if you are working with a dissolved sample, and you get back the number of formula units (and the molarity of the solution). This is the same as finding the number of molecules for a covalent compound, but for ionic compounds we say formula units because there are no discrete molecules.

Formula

The number of formula units in a given mass of an ionic compound is found by converting the mass to moles using the molar mass, then multiplying by Avogadro’s number. If the compound is dissolved in a solution, the molarity (concentration) is simply the number of moles divided by the volume in liters.

Number of moles (n) = mass (m) / molar mass (MM)

Number of formula units (N) = n × NA, where NA = 6.022 × 1023 mol−1

Molarity (c) = n / V (in liters)

Variables:

  • m – mass of the ionic compound (in grams, g)
  • MM – molar mass of the compound (in grams per mole, g/mol)
  • v – final volume of solution (in milliliters, mL; convert to L by dividing by 1000)
  • c – molarity (in moles per liter, mol/L)
  • cmm – concentration in millimolar (mM), which is c × 1000

Worked Example

Suppose you have 2.922 g of sodium chloride (NaCl), whose molar mass is 58.44 g/mol, and you dissolve it in water to make 250 mL of solution. Let’s find the number of moles, the number of formula units, and the molarity.

Step 1: Convert mass to moles

n = 2.922 g / 58.44 g/mol = 0.05000 mol (exactly, to 5 significant figures)

Step 2: Find number of formula units

N = 0.05000 mol × 6.022 × 1023 mol−1 = 3.011 × 1022 formula units

Step 3: Find molarity

Volume in liters = 250 mL / 1000 = 0.250 L

c = 0.05000 mol / 0.250 L = 0.2000 mol/L

In millimolar: 0.2000 mol/L × 1000 = 200.0 mM

The calculator gives the same: molarity = 0.2 mol/L (shown as 0.2) and concentration in millimolar = 200 mM.

Assumptions

  • The compound is pure and fully dissociated (for ionic compounds in solution).
  • The molar mass used is the correct formula mass of the compound (e.g., NaCl = 58.44 g/mol).
  • The final volume is the total solution volume, not the volume of solvent added.
  • Avogadro’s number is taken as 6.022 × 1023 mol−1 (the exact SI value is 6.02214076 × 1023, but 6.022 × 1023 is sufficient for most calculations).

When to Use This

You use this calculation whenever you need to know how many individual formula units (ion pairs) are present in a weighed sample of an ionic compound. This is common in stoichiometry, preparing solutions of known concentration, and converting between mass and number of particles. For covalent compounds, the same calculation gives the number of molecules, but for ionic compounds we say formula units because the structure is a lattice, not discrete molecules.

How to Read the Result

The molarity (first output) tells you how concentrated the solution is in moles per liter. The millimolar output is just a scaled version (1 mM = 0.001 mol/L). The number of formula units is not shown directly in the calculator block, but you can compute it by multiplying the moles by Avogadro’s number. For example, if you get 0.05 mol, the formula units are 0.05 × 6.022 × 1023 = 3.011 × 1022.

Common Mistakes

  • Using the wrong molar mass: For hydrated salts, you must include the water of hydration. For example, CuSO4·5H2O has a molar mass of 249.69 g/mol, not 159.61 g/mol (anhydrous).
  • Forgetting to convert mL to L: Molarity is moles per liter, so if you plug in milliliters without dividing by 1000, you get a value that is 1000 times too large.
  • Confusing formula units with molecules: For ionic compounds, there are no molecules; the formula unit is the simplest ratio of ions. For example, one formula unit of NaCl contains one Na+ and one Cl−.
  • Rounding too early: Keep at least 4 significant figures until the final step to avoid rounding errors.

Tips

  • Always write the formula of the compound and compute its molar mass from the periodic table before starting.
  • Check your units: mass in grams, molar mass in g/mol, volume in liters.
  • If you need the number of formula units, multiply moles by Avogadro’s number. Use scientific notation for large numbers.
  • For a quick check, remember that 1 mole of any substance contains about 6.022 × 1023 particles.

Troubleshooting

If the calculator gives an error or a negative value: Check that your mass is not negative (use 0 or a positive number) and that the molar mass is not zero or negative. Also ensure the volume is greater than zero.

If your result seems too large or too small: Re-examine the molar mass. A common error is using the atomic mass instead of the formula mass. For example, for NaOH, the molar mass is 40.00 g/mol (Na 22.99 + O 16.00 + H 1.008), not 22.99.

If you are working with a hydrate: Add the mass of water molecules to the anhydrous formula mass. For example, for BaCl2·2H2O, molar mass = 137.33 + 2×35.45 + 2×(2×1.008 + 16.00) = 244.26 g/mol.

If you are not sure about the volume: The volume must be the final volume of the solution after mixing, not the volume of solvent added. If you add solid to a graduated cylinder and then fill to the mark, that is the final volume.

Frequently Asked Questions

Q: What is a formula unit?
A: A formula unit is the smallest whole-number ratio of ions in an ionic compound. For example, the formula unit of NaCl is one Na+ and one Cl−. It is used instead of “molecule” because ionic compounds do not exist as discrete molecules.

Q: How do I find the number of formula units from mass?
A: Convert the mass to moles using the molar mass, then multiply by Avogadro’s number (6.022 × 1023). For example, 2.922 g of NaCl (molar mass 58.44 g/mol) gives 0.0500 mol, which is 3.011 × 1022 formula units.

Q: Is the formula unit the same as the empirical formula?
A: Yes, for ionic compounds the formula unit is the same as the empirical formula. For covalent compounds, the molecular formula may be a multiple of the empirical formula, but for ionic compounds the formula unit is the simplest ratio.

Q: Can I use this calculator for covalent compounds?
A: Yes, the same calculation gives the number of molecules for covalent compounds. Just use the molecular mass instead of the formula mass.

Q: Why do we use formula units instead of molecules for salts?
A: Because salts are made of a lattice of alternating positive and negative ions, not individual molecules. The formula unit represents the simplest ratio of ions in that lattice.

Q: What if my compound is a hydrate?
A: Include the water molecules in the molar mass. For example, CuSO4·5H2O has a molar mass of 249.69 g/mol. Use that value in the molar mass field.

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

The whole Moles & Molar Mass section →