This calculator works out the number of moles of a substance when you enter its mass and molar mass. You get the amount in moles, which is the standard unit for counting atoms and molecules in chemistry. The calculation uses the core formula moles = mass ÷ molar mass.
Formula
The mole calculation is built on one simple relationship:
n = m / M
- n = amount of substance, in moles (mol)
- m = mass of the substance, in grams (g)
- M = molar mass of the substance, in grams per mole (g/mol)
The molar mass is the mass of one mole of a substance. For an element, it is numerically equal to its atomic weight from the periodic table. For a compound, add the atomic weights of all atoms in its chemical formula.
An Example
Using the default values from the calculator above, find the number of moles in 18 grams of water (H₂O).
- Identify the mass: m = 18 g
- Find the molar mass of water: H (1.008) × 2 + O (15.999) = 18.015 g/mol
- Apply the formula: n = 18 g ÷ 18.015 g/mol
- Calculate: n = 0.9992 mol
So 18 g of water contains approximately 0.9992 moles, which is essentially 1 mole. This matches the calculator’s output of 0.9992 mol.
Why Moles Matter in Chemistry
Atoms and molecules are far too small to count individually. A mole is a fixed number—6.022 × 10²³ particles, known as Avogadro’s number. This lets chemists convert between the mass they can weigh on a balance and the number of particles that actually react. Without moles, balancing equations and scaling reactions from the lab to an industrial plant would be impossible.
Every balanced chemical equation is written in moles. For example, 2H₂ + O₂ → 2H₂O means 2 moles of hydrogen react with 1 mole of oxygen to produce 2 moles of water. To measure those amounts in the lab, you use the mole formula to convert moles to grams.
How to Find Molar Mass
You need the molar mass before you can calculate moles. For a pure element, look up its atomic weight on the periodic table—the number under the element symbol. For a compound, add the atomic weights of every atom in the formula.
Example: sulfuric acid, H₂SO₄
- Hydrogen: 1.008 × 2 = 2.016
- Sulfur: 32.06 × 1 = 32.06
- Oxygen: 15.999 × 4 = 63.996
- Total = 98.072 g/mol
For hydrated salts, include the water molecules in the formula. For example, copper(II) sulfate pentahydrate (CuSO₄·5H₂O) includes five water molecules in its molar mass.
Common Mistakes and How to Avoid Them
The most frequent error is using the wrong molar mass because of a miscalculated formula or a misread atomic weight. Double-check the chemical formula and the periodic table values.
Unit mix-ups are another common issue. Mass must be in grams and molar mass in grams per mole. If your mass is in kilograms, convert to grams first (multiply by 1000). If your molar mass is in kilograms per mole, convert to grams per mole (multiply by 1000).
Rounding too early can also cause problems. Keep at least three significant figures during intermediate steps, and round only at the end. For example, using 18 g/mol for water instead of 18.015 g/mol changes the result by about 0.08%, which may be acceptable for rough work but not for precise titrations.
When to Use This Calculation
You will use the mole formula in almost every area of chemistry:
- Stoichiometry: converting between masses of reactants and products in a balanced equation
- Solution preparation: finding how many grams of solute to weigh for a given molarity and volume
- Empirical formulas: determining the simplest whole-number ratio of elements in a compound
- Gas laws: relating moles to pressure, volume, and temperature
- Titration calculations: finding unknown concentrations from the moles of a standard solution
In each case, the same formula applies: divide the mass by the molar mass to get moles, or rearrange it to find mass when you know moles.
Limits of the Formula
The formula n = m / M is exact for pure substances. It assumes the sample is completely pure and that the molar mass is known precisely. In practice, reagents may contain impurities or water, so the calculated moles may be slightly higher than the actual amount of the desired substance.
For mixtures, you cannot use a single molar mass. You need the average molar mass, which depends on the composition. For example, air is a mixture, so its “molar mass” is about 28.97 g/mol, but that is an average, not a fixed value.
The formula also does not account for isotopic variation. Naturally occurring elements have multiple isotopes, and the atomic weight on the periodic table is a weighted average. If you need the moles of a specific isotope, use its exact isotopic mass instead.
Frequently Asked Questions
What is a mole in simple terms?
A mole is a counting unit, like a dozen. One mole contains 6.022 × 10²³ particles (atoms, molecules, ions, or electrons). It is used because atoms are too small to count individually, but a mole of any substance has a mass in grams equal to its atomic or molecular weight.
How do I calculate moles from grams?
Divide the mass in grams by the molar mass in grams per mole. For example, 44 grams of carbon dioxide (molar mass 44 g/mol) is 44 ÷ 44 = 1 mole.
How do I find molar mass?
For an element, use its atomic weight from the periodic table. For a compound, add the atomic weights of all atoms in the formula. For example, NaCl: 22.99 + 35.45 = 58.44 g/mol.
What is the difference between molar mass and molecular weight?
They are numerically the same but have different units. Molecular weight is the mass of one molecule relative to 1/12 of carbon-12, and is unitless. Molar mass is the mass of one mole of a substance, expressed in grams per mole (g/mol).
Can I calculate moles from volume instead of mass?
Yes, for gases at standard temperature and pressure (STP), one mole of an ideal gas occupies 22.4 liters. So moles = volume (L) ÷ 22.4 L/mol. For solutions, moles = molarity (mol/L) × volume (L).
Why is Avogadro’s number 6.022 × 10²³?
It is defined as the number of atoms in exactly 12 grams of carbon-12. This number was chosen so that the mass of one mole of any substance in grams equals its atomic or molecular weight in atomic mass units.
Related
Formula used
in m | Mass | g | 18 | 0 | 1000000 in M | Molar mass | g/mol | 18.015 | 0 | 1000 out n | Moles | mol | m / M | 4
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.
More cards in this drawer
- Emphasized Reaction Meaning & How to Use It30 points
- Best Power Tool Starter Kit for First Projects6.00 min/km
- AC Ton to kW Calculator & Formula5.28 kW
- AC Tonnage to kW Calculator & Formula5.28 kW
- K Factor Heating Calculation Guide6.185
- How to Calculate Heating Value30.80 MJ/kg