molecalculator

Moles & Molar Mass

Calculating Moles in Chemistry: Formula and Examples

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

Amount of substance 0.5551 mol
Number of particles
3.343 × 1023 particles
Result, rounded to a whole number
Sample mass
10 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
Amount of substance (mol), Number of particles (particles)
Rounding
4 dp · 0 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.

Calculate moles from a sample’s mass by dividing the mass in grams by its molar mass in grams per mole. This calculator takes those two values and returns the amount of substance in moles, with an optional particle count using Avogadro’s constant.

Formula

For a sample whose mass and molar mass are known, the amount in moles is n = m / M. Here, n is amount of substance in moles (mol), m is sample mass in grams (g), and M is molar mass in grams per mole (g/mol). The units divide to give grams ÷ (grams per mole) = moles.

To convert moles to the number of specified entities, use N = n × NA, where N is the number of entities and Avogadro’s constant, NA, is exactly 6.02214076 × 1023 mol−1. The entity must be clear: it could be an atom, molecule, ion, or formula unit, depending on the substance and question.

Worked Example

For the calculator’s default values, the sample mass is 10 g and the molar mass is 18.015 g/mol, the approximate molar mass of water from standard atomic weights. Apply the mass formula:

n = m / M = 10 g / 18.015 g/mol ≈ 0.55509 mol

Then convert that amount to molecules using Avogadro’s constant:

N = n × NA ≈ 0.55509 mol × 6.02214076 × 1023 mol−1 ≈ 3.3434 × 1023 molecules

The calculator displays the mole result to four decimal places: 0.5551 mol. The particle-count output is rounded to a whole entity; the underlying result is an estimate based on the entered mass and molar mass.

Assumptions

  • The mass is in grams and the molar mass is in grams per mole; the molar mass must be positive.
  • The sample is treated as the stated pure substance, with no correction for impurities, moisture, or measurement uncertainty.
  • The particle-count result refers to whichever entities are appropriate for the chemical formula; for water, these are molecules.
  • The displayed digits are rounded, not a claim that the input measurements have that degree of precision.

What a Mole Means

A mole is the SI unit for amount of substance. One mole contains exactly 6.02214076 × 1023 specified entities. This fixed number is called the Avogadro constant. It provides a bridge between the microscopic scale of atoms and molecules and measurable laboratory quantities such as mass.

“Mole” does not mean a particular mass. One mole of a light substance has a different mass from one mole of a heavier substance. For example, a mole of water has a mass of about 18.015 g, while a mole of sodium chloride has a mass of about 58.44 g. The compound’s molar mass determines the conversion.

How to Find Molar Mass

Molar mass is found by adding the atomic masses for every atom shown in a chemical formula. Use a periodic table and count subscripts carefully. For water, H2O, the calculation is:

M(H2O) = 2(1.008) + 15.999 = 18.015 g/mol

For sodium chloride, NaCl, the corresponding sum is 22.990 + 35.45 = 58.44 g/mol. These examples use abridged standard atomic weights; values can vary slightly with isotopic composition and the atomic-weight convention used. For a compound with parentheses, multiply every atom inside the parentheses by the number outside them before summing. For example, in Ca(OH)2, there are two oxygen atoms and two hydrogen atoms.

Enter the molar mass of the actual chemical formula, not the mass of just one element unless the sample is that element. Hydrates and salts with waters of crystallization need their full formula included. A wrong formula changes the molar mass and therefore every mole result derived from it.

Choosing a Calculation Method

The mass-over-molar-mass method is useful when a balance measurement and a known chemical identity are available. Other common chemistry problems provide different information, so choose a relationship that matches the data:

  • Mass and molar mass: n = m / M. This calculator uses this method.
  • Number of particles: n = N / NA. Divide the stated entity count by Avogadro’s constant.
  • Solution concentration and volume: n = cV, where concentration c is in mol/L and volume V is in L. Convert milliliters to liters by dividing by 1000.
  • Gas volume: a gas-law relationship can determine moles if pressure, volume, and temperature are known. The result depends on the gas model and stated conditions; do not substitute a universal molar volume unless the problem specifies appropriate conditions.
  • Reaction quantities: a balanced chemical equation gives mole ratios between substances. First calculate the known substance’s moles, then use the coefficients to relate amounts.

These approaches are related, but they are not interchangeable without the relevant inputs. For instance, volume alone does not determine moles of a solution unless its concentration is known.

Common Errors and Limits

  • Mixing units: If mass is entered in milligrams, convert it to grams first by dividing by 1000. If the molar mass is in kg/mol, convert it to g/mol or make the mass units consistent.
  • Using the wrong volume unit: In n = cV, a concentration in mol/L requires volume in liters, not milliliters.
  • Confusing moles with molecules: Moles measure amount; particle counts are a separate quantity. Multiply by Avogadro’s constant only when the question asks for entities.
  • Rounding too early: Keep unrounded values through intermediate steps, then round the final result to a precision supported by the measurements.
  • Ignoring composition: A mixed, impure, or hydrated sample may not have the assumed molar mass or contain the full measured mass as the target substance.

The calculation itself does not account for balance uncertainty, purity, isotopic composition, or losses during handling. It is only as reliable as the entered mass and molar mass. For bench work, follow your lab method, the safety data sheet (SDS), and your supervisor.

Frequently Asked Questions

How do I calculate moles from grams?
Divide the mass in grams by the substance’s molar mass in g/mol: n = m / M. Check that both values refer to the same substance and use compatible units.

How many moles are in one gram?
It depends on the substance. For one gram, the mole amount is 1 g divided by that substance’s molar mass in g/mol. One gram of water, for example, is about 0.05551 mol.

How do I convert moles to molecules?
Multiply moles by 6.02214076 × 1023 molecules per mole. Use molecules only for molecular substances; ionic compounds are usually counted as formula units, and elements may be counted as atoms.

Is molar mass the same as molecular mass?
They are numerically related but describe different quantities and units. Molecular mass describes the mass of one molecule, commonly in daltons; molar mass is the mass of one mole of entities, in g/mol.

Can I calculate moles from volume alone?
Not in general. You also need information such as solution concentration, gas pressure and temperature, or the substance’s density and identity, depending on what kind of volume is given.

Related

Formula used
in m | Sample mass | g | 10 | 0
in mm | Molar mass | g/mol | 18.015 | 0.001
out n | Amount of substance | mol | m / mm | 4
out p | Number of particles | particles | n * 6.02214076e23 | 0

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 →