molecalculator

Moles & Molar Mass

Mole Calculator Chemistry Formula and Worked Example

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

Amount of substance 1.0000 mol
Number of particles
6.022 × 1023 particles
Result, rounded to a whole number
Sample mass
18.015 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.

A mole calculator uses a relationship between a substance’s mass, molar mass, and amount in moles: n = m / M. Enter the mass in grams and molar mass in grams per mole to calculate moles; this calculator also converts the result to the number of particles using Avogadro’s constant.

Formula

The amount of substance in moles is mass divided by molar mass:

n = m / M

  • n is amount of substance, in mol.
  • m is sample mass, in g.
  • M is molar mass, in g/mol.

The units confirm the result: g ÷ (g/mol) = mol. To express the amount as a count of individual entities—such as molecules, atoms, or formula units—use N = n × NA, where N is the particle count and Avogadro’s constant NA is exactly 6.02214076 × 1023 mol−1. The calculator’s second output applies this conversion. “Particles” means the entity represented by the chemical formula; it does not always mean molecules.

Worked Example

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

  1. Calculate moles: n = m / M = 18.015 g / 18.015 g/mol = 1.0000 mol.
  2. Calculate particles: N = n × NA = 1.0000 mol × 6.02214076 × 1023 mol−1 = 6.022 × 1023 particles.

The calculator displays the first result as 1.0000 mol and the second in scientific notation as 6.022 × 1023 particles. For water, the counted entities are molecules. For an ionic solid, the corresponding count would usually be formula units.

Assumptions

  • The entered mass is the mass of the substance being counted, not the mass of a container or an entire mixture.
  • The entered molar mass matches the chemical formula and entity of interest.
  • Avogadro’s constant is exact; the practical precision of the answer is limited by the measurements and molar mass supplied.

What a Mole Means

A mole is the SI unit for amount of substance. One mole contains exactly 6.02214076 × 1023 specified entities. The entities must be identified: a mole of water means that many water molecules, while a mole of sodium chloride is conventionally described as that many NaCl formula units. A mole is not a mass; different substances have different masses per mole.

Molar mass connects the count-based idea of amount to a balance measurement. Its numerical value in g/mol corresponds to the substance’s relative formula or molecular mass, with the relevant atomic weights summed for each atom in the formula. For example, carbon dioxide has a molar mass of approximately 44.009 g/mol using C = 12.011 and O = 15.999: 12.011 + 2(15.999).

When to Use a Mole Calculator

Use the mass-to-moles formula when you know how much pure substance is present by mass and need its chemical amount. The result is a starting point for stoichiometry, reagent comparisons, and solution calculations. For instance, a balanced reaction’s coefficients compare amounts in moles, not directly the grams of different substances. Convert each mass to moles before applying the coefficient ratio, then convert back to mass if needed.

The same mole value can also be combined with other measurements. Molarity is moles of solute divided by final solution volume in litres. A gas-law calculation may use moles alongside pressure, volume, and temperature. Those calculations need their own inputs and assumptions; this calculator does not infer solution volume, reaction yield, or gas conditions from mass alone.

Choosing Inputs and Avoiding Errors

  • Use compatible units. Enter mass in grams and molar mass in g/mol. Convert milligrams to grams by dividing by 1,000; do not enter a milligram value as though it were grams.
  • Use the correct formula. Include subscripts, parentheses, and waters of crystallization when they are part of the compound being weighed. A hydrate and its anhydrous form have different molar masses.
  • Distinguish a pure compound from a mixture. If a sample contains impurities, its total measured mass is not automatically the mass of the target substance. A purity fraction or composition measurement is needed to find the target’s mass.
  • Keep precision realistic. Extra displayed digits do not make an uncertain weighing or an approximate molar mass more precise. Round the final reported value to match the least precise relevant input.
  • Check the counted entity. For ionic compounds, use formula units rather than calling them molecules unless the substance genuinely consists of discrete molecules.

A frequent misconception is that a mole is a fixed number of grams. It is a fixed number of entities; the mass of one mole depends on the substance. Another common error is treating molar mass as mass divided by moles while entering incompatible units. Although the equivalent relation is M = m/n, this calculator specifically takes mass and molar mass to find moles.

Limits and Related Calculations

The formula assumes the entered mass belongs to the chemical substance whose molar mass is used. It does not account for purity, incomplete reaction, sample loss, or uncertainty unless those are handled separately. A result of 1 mol calculated from a nominal mass does not prove that a reaction produced or consumed exactly 1 mol; reaction progress and yield require additional evidence or measurements.

For solution preparation, do not confuse the volume of solvent with the final volume of solution. Molarity uses final solution volume in litres. For a reaction, balance the chemical equation first: mole ratios come from its coefficients, while this calculator only performs the mass-to-amount conversion and particle-count conversion.

Frequently Asked Questions

What is the formula for calculating moles?
Divide mass by molar mass: n = m/M. With mass in grams and molar mass in g/mol, the answer is in moles.

How do I calculate moles from grams?
Find the substance’s molar mass, then divide the sample’s mass in grams by that value. For example, 9.0075 g of water divided by 18.015 g/mol is 0.5000 mol.

How do I find molar mass from a chemical formula?
Add the atomic masses for every atom in the formula, multiplying each element’s atomic mass by its subscript. Use parentheses and hydrate components as written in the complete formula.

How many particles are in one mole?
Exactly 6.02214076 × 1023 specified entities. Depending on the substance, those entities can be atoms, molecules, ions, or formula units.

Can I calculate moles from millilitres?
Not from volume alone. You also need relevant information such as solution concentration or the substance’s density and composition. For a solution with known molarity, amount in moles equals molarity in mol/L multiplied by volume in L.

Related

Formula used
in m | Sample mass | g | 18.015 | 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 →