A chemistry mole calculation converts a substance’s mass into amount of substance: enter the sample mass in grams and its molar mass in grams per mole to get the amount in moles. This calculator also estimates the number of particles represented by that amount, using the exact Avogadro constant.
Formula
The mass-to-moles formula 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). Divide the mass by the molar mass; grams cancel, leaving moles.
To estimate the number of specified particles, use N = n × NA, where N is the particle count and Avogadro’s constant NA is exactly 6.02214076 × 1023 mol−1. A “particle” means the entity named by the chemical formula: for example, water molecules, sodium ions, or formula units of an ionic solid. The calculator labels the output generically, so interpret it according to the substance.
Worked Example
The defaults represent 18.015 g of water and a molar mass of 18.015 g/mol.
- Use n = m / M.
- Substitute the default values: n = 18.015 g / 18.015 g/mol = 1.0000 mol.
- Calculate the particle count: N = 1.0000 mol × 6.02214076 × 1023 mol−1 = 6.022 × 1023 particles, rounded to the displayed whole-number precision.
Thus, the headline result is 1.0000 mol, and the sample contains about 6.022 × 1023 water molecules.
Assumptions
- The entered sample is the substance represented by the entered molar mass and is treated as pure for this arithmetic.
- The particle count is a theoretical conversion from amount to entities, not a count of separately observed particles.
- Molar mass is supplied in g/mol, and mass is supplied in g; no unit conversion is performed.
What a Mole Means
A mole is the SI unit for amount of substance. One mole contains exactly 6.02214076 × 1023 specified entities. That number is enormous because atoms and molecules are exceptionally small; measuring a useful quantity of a substance by weighing it is more practical than counting its particles one by one.
The mole connects the microscopic scale of atoms and molecules to laboratory-scale measurements. A balanced chemical equation uses coefficients to express relative amounts in moles. For example, the equation 2H2 + O2 → 2H2O states a 2:1:2 mole ratio. It does not say that two grams of hydrogen react with one gram of oxygen. To find masses, first use the mole ratios, then convert each amount using its molar mass.
Finding and Entering Molar Mass
Molar mass is the mass of one mole of a substance. For a molecular formula, calculate it by adding the atomic masses of all atoms in the formula. Using standard atomic weights, water has a molar mass of about 18.015 g/mol: two hydrogen atoms contribute 2 × 1.008 g/mol, and one oxygen atom contributes 15.999 g/mol.
For another example, carbon dioxide, CO2, has a molar mass of about 44.009 g/mol: 12.011 + 2 × 15.999. Enter the molar mass of the complete chemical formula, not the atomic mass of just one element. For ionic compounds, use the formula-unit composition; a mole of sodium chloride, for instance, refers to formula units of NaCl.
- Check the formula’s subscripts. A subscript applies to the element immediately before it; parentheses multiply the atoms inside them.
- Use consistent units. The calculator expects grams and grams per mole. Convert milligrams to grams by dividing by 1,000, or kilograms to grams by multiplying by 1,000.
- Use a sensible precision. Atomic weights and measured sample masses have finite precision, so extra calculator digits do not imply extra experimental certainty.
When to Use the Calculation
Use mass divided by molar mass when you know how much material is available by mass and need its amount in moles. This is a common first step in stoichiometry, where the mole amount is compared with coefficients in a balanced equation. It also helps convert a weighed quantity into an amount for later concentration calculations, provided the relevant solution volume is known separately.
This calculation alone does not determine molarity. Molarity is moles of solute per liter of final solution, so it requires both the amount and the final solution volume. Nor does the calculation tell you whether a reaction will proceed completely, which reactant is limiting, or how much product is actually recovered. Those questions need reaction information and, for actual yield, experimental data.
For mixtures or impure materials, the total sample mass is not necessarily the mass of the substance of interest. If a sample is 80% by mass of a compound, use the compound’s mass—not the whole sample mass—in the mole formula. For gases, a mass-based calculation still works when the gas mass and molar mass are known; estimating moles from pressure, volume, and temperature instead requires the gas-law assumptions and measurements.
Common Errors and Limits
A frequent mistake is reversing the division. Multiplying mass by molar mass gives the wrong units and result; dividing g by g/mol gives mol. Another is mixing milligrams with grams or entering a molar mass in kg/mol when the calculator expects g/mol. Convert first, then check that the displayed unit is appropriate.
Do not confuse moles with molecules. One mole is an amount, while a molecule is one entity. A sample can contain a fraction of a mole, even though it cannot contain a fractional individual molecule in a literal count; the reported amount describes a macroscopic sample. Likewise, for an ionic substance, “particles” should generally be read as formula units unless the question specifically asks about ions after dissolution.
The formula assumes the mass and molar mass refer to the same material. Hydrates, isotopic composition, purity, and the chosen chemical form can affect the appropriate molar mass or usable sample mass. The result is a calculation, not a substitute for weighing uncertainty, chemical identification, or a validated lab method. For bench work, follow your lab method, the safety data sheet (SDS) and your supervisor.
Frequently Asked Questions
How do you calculate moles from grams?
Divide the mass in grams by the substance’s molar mass in grams per mole: n = m / M. For example, 10.0 g of a material with molar mass 20.0 g/mol is 0.500 mol.
How do I calculate molar mass?
Add the atomic masses of every atom in the chemical formula, multiplying each element’s atomic mass by its subscript. The result is commonly expressed in g/mol.
How many particles are in one mole?
One mole contains exactly 6.02214076 × 1023 specified entities, such as atoms, molecules, ions, or formula units.
Can I calculate moles from milligrams?
Yes. Convert milligrams to grams first: divide the milligram value by 1,000, then divide the resulting mass in grams by molar mass in g/mol.
Are moles and molarity the same?
No. Moles measure amount of substance. Molarity is concentration, expressed as moles per liter of final solution, so it requires a volume as well as an amount.
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
- Molecules to Grams Calculator: Convert with Molar Mass18.0150 g
- How Many Protons Are in Potassium (K)?19 protons
- Moles of Electrons: Formula and Calculator
- Molecules to Liters Calculator: Convert Using Molarity0.1000 L
- How to Calculate mL to Moles: Formula and Calculator0.1250 mol
- Free Energy Change Calculation: ΔG Formula and Example-24.907 kJ/mol