molecalculator

Moles & Molar Mass

Number of Moles Formula: Calculate Moles from Mass

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

Number of moles 0.9992 mol
Number of particles
6.017 × 1023 particles
Result, rounded to 3 decimal places
Sample mass
18 g
Set in the form below
Molar mass
18.015 g/mol
Set in the form below
You enter
Sample mass (g), Molar mass (g/mol)
You get
Number of moles (mol), Number of particles (particles)
Rounding
4 dp · 3 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.

The number of moles is calculated from a sample’s mass and molar mass: n = m / M. Enter the mass of the substance and its molar mass to find the amount in moles; the calculator also reports the corresponding number of particles using Avogadro’s constant.

Formula

The standard formula for finding moles from mass is n = m / M. Here, n is the amount of substance in moles (mol), m is the sample’s mass in grams (g), and M is its molar mass in grams per mole (g/mol). Dividing grams by grams per mole leaves moles.

To convert moles to a count of specified particles, use N = n × NA, where N is the particle count and Avogadro’s constant is exactly NA = 6.02214076 × 1023 mol−1. A particle means the entity specified for the substance: for example, a molecule, atom, or ion. The count is meaningful only when that entity is clear.

Worked Example

For the calculator’s default values, the sample mass is 18 g and the molar mass is 18.015 g/mol. The molar mass is the standard value for water using the abridged atomic weights H = 1.008 and O = 15.999 g/mol: 2(1.008) + 15.999 = 18.015 g/mol.

  1. Apply the mass formula: n = m / M.
  2. Substitute the defaults: n = 18 g / 18.015 g/mol ≈ 0.99917 mol.
  3. Calculate the number of water molecules: N = 0.99916736 mol × 6.02214076 × 1023 mol−1 ≈ 6.0171 × 1023 particles.

The calculator displays the mole result to four decimal places, so its headline result is 0.9992 mol. It displays the particle count to three significant decimal places, giving 6.017 × 1023 particles. Those rounded displays do not imply that the input mass or molar mass was measured with that precision.

Assumptions

  • The sample is treated as the substance represented by the entered molar mass, with no correction for impurities or moisture.
  • The default molar mass is for water, using H = 1.008 and O = 15.999 g/mol.
  • The particle count assumes each counted entity is one water molecule. For ionic compounds, specify whether the desired entities are formula units or particular ions.
  • This is study and lab-planning arithmetic, not a measurement of sample purity. For bench work, follow your lab method, the safety data sheet (SDS) and your supervisor.

How to Find the Molar Mass

Molar mass is the mass of one mole of a substance. For a molecular formula, add the atomic masses of every atom shown in the formula, multiplying each element’s atomic mass by its subscript. Use the appropriate standard atomic weights; values commonly used for introductory calculations include H = 1.008, C = 12.011, N = 14.007, O = 15.999, Na = 22.990, Cl = 35.45, and S = 32.06 g/mol.

For carbon dioxide, CO2, the calculation is 12.011 + 2(15.999) = 44.009 g/mol. A 22.0 g CO2 sample therefore contains 22.0 / 44.009 ≈ 0.4999 mol. For a substance with a stated formula mass or a specified isotopic composition, use the matching molar mass rather than assuming a generic value.

For ionic substances, calculate the mass of one formula unit from the formula’s atom counts. The mole then counts formula units, not necessarily individual ions. For example, one mole of sodium chloride formula units contains one mole of sodium ions and one mole of chloride ions if it dissociates completely in solution. That dissociation does not change the original mass-to-moles calculation.

When to Use Other Mole Formulas

Mass is not the only way to determine amount in moles. Choose an equation that matches the information you know:

  • From solution concentration: n = cV, where concentration c is in mol/L and volume V is in L. Convert millilitres to litres by dividing by 1000.
  • From a particle count: n = N / NA, with N as the number of specified entities.
  • From an ideal gas: n = PV / RT, where pressure P, volume V, and temperature T must use units consistent with the chosen gas constant R. Temperature must be in kelvins.

These methods can produce different practical accuracy because the measured quantities and assumptions differ. The gas equation assumes ideal behavior; concentrated solutions may not behave ideally. Use the mass equation when a reliable sample mass and molar mass are available.

Reading Results and Avoiding Mistakes

The result is an amount of substance, not a mass, volume, or number of grams. Check the units before dividing. If the mass is in milligrams, convert it to grams by dividing by 1000 when the molar mass is in g/mol. Alternatively, use compatible units throughout, such as milligrams and milligrams per mole.

  • Do not invert the ratio: mass divided by molar mass gives moles. Molar mass multiplied by moles gives mass.
  • Distinguish molarity from moles: molarity is moles per litre; it is not itself an amount of substance.
  • Use the correct chemical formula: a hydrate, salt, or different molecular form can have a different molar mass.
  • Keep sensible precision: a calculator may show several decimal places, but the result cannot be more reliable than the measurements and molar-mass data justify.

A common misconception is that one mole always has the same mass. It does not: one mole contains the same number of specified entities, but its mass depends on the identity of those entities. One mole of water and one mole of carbon dioxide contain equal numbers of molecules but have different masses.

Limits of the Calculation

The formula n = m / M converts a stated mass into an amount; it does not establish what is actually in a sample. If a sample contains impurities, its total mass is not necessarily the mass of the target substance. If the target’s mass fraction is known, multiply the total mass by that fraction before dividing by molar mass. Likewise, uncertainty in weighing, chemical identity, hydration, or isotope composition affects the result.

Do not confuse a theoretical mole calculation with a reaction yield. In a chemical reaction, the amount that can form depends on the balanced equation and the limiting reactant; actual recovery may be lower. This calculator does not assess reaction stoichiometry, purity, or experimental loss.

Frequently Asked Questions

What is the formula for number of moles?
When mass and molar mass are known, use n = m / M. Divide the mass by the molar mass using compatible units; with grams and g/mol, the result is in moles.

How do I calculate moles from grams?
Divide the sample’s mass in grams by its molar mass in g/mol. For example, 10 g of a substance with a molar mass of 20 g/mol is 10 / 20 = 0.5 mol.

How many particles are in one mole?
One mole contains exactly 6.02214076 × 1023 specified entities. Depending on the substance and context, these may be atoms, molecules, ions, or formula units.

Can I calculate moles without mass?
Yes, if other relevant information is available. Use n = cV for solution concentration and volume, n = N / NA for a particle count, or the ideal-gas equation when pressure, volume, and temperature are known and its assumptions are appropriate.

Is molar mass the same as molecular mass?
They are numerically related but refer to different quantities and units. Molecular mass is commonly expressed in unified atomic mass units per molecule; molar mass is the mass of a mole, usually in g/mol.

Related

Formula used
in m | Sample mass | g | 18 | 0
in mm | Molar mass | g/mol | 18.015 | 0.001
out n | Number of moles | mol | m / mm | 4
out p | Number of particles | particles | n * 6.02214076e23 | 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 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 →