Calculate the number of moles by dividing a sample’s mass by its molar mass: n = m / M. This calculator finds moles from mass in grams and molar mass in grams per mole; enter both values to get the amount in mol and the equivalent number of particles.
Formula
The standard mass-based 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). Dividing grams by grams per mole leaves moles.
To express the amount as a count of particles, use N = n × NA, where N is the number of specified particles and NA is the Avogadro constant, exactly 6.02214076 × 1023 mol−1. The particle may be an atom, molecule, ion, or formula unit; choose it to match the substance and question. The calculator’s particle count is a theoretical count derived from the entered values, not a direct count of individual particles.
Worked Example
For the default inputs, the sample mass is 18.015 g and the molar mass is 18.015 g/mol, corresponding to water using the listed atomic weights H = 1.008 and O = 15.999: 2(1.008) + 15.999 = 18.015 g/mol.
- Divide the mass by the molar mass: n = 18.015 g / (18.015 g/mol) = 1.0000 mol.
- Convert moles to molecules: N = 1.0000 mol × 6.02214076 × 1023 mol−1 = 6.022 × 1023 molecules.
The calculator displays the first result to four decimal places and the particle count as a whole number. The particle result refers to molecules for this water example; for an ionic compound, specify whether the desired count is formula units or individual ions.
Assumptions
- The entered mass is the mass of the substance being counted, rather than the total mass of a mixture or container.
- The molar mass matches the substance’s chemical formula and is expressed in g/mol.
- Avogadro’s constant is exact; the displayed particle count is rounded for readability.
How to Calculate Moles from Mass
First identify the substance and its formula, then find its molar mass. For a pure element, use its atomic molar mass. For a compound, add the molar masses of all atoms in one formula unit, accounting for subscripts. Standard atomic weights are commonly used for this calculation; for example, H = 1.008, C = 12.011, N = 14.007, O = 15.999, Na = 22.990, Cl = 35.45, and S = 32.06 g/mol.
Next, weigh or otherwise obtain the sample mass in grams and divide by molar mass. If your mass is in milligrams, convert it to grams by dividing by 1,000; if it is in kilograms, multiply by 1,000. Keep extra digits through the calculation and round the final answer to a precision justified by the measurements.
- Write the substance’s correct formula and calculate its molar mass.
- Convert the measured mass to grams.
- Calculate moles as mass in grams divided by molar mass in g/mol.
- Use the balanced chemical equation or another relevant relationship if the next step requires a different substance or particle type.
Other Ways to Find Moles
Mass is not the only information that can determine an amount of substance. For a solution, if concentration is known, moles equal concentration in mol/L multiplied by solution volume in litres. Convert millilitres to litres by dividing by 1,000. For example, a 0.200 mol/L solution with a final volume of 0.0500 L contains 0.200 × 0.0500 = 0.0100 mol of solute.
For a gas, the ideal gas relationship is n = PV/(RT), where pressure is in pascals, volume in cubic metres, temperature in kelvins, and R = 8.31446261815324 J/(mol·K). This approach assumes ideal-gas behavior; real gases can depart from it, especially at high pressure or low temperature. In a chemical reaction, a balanced equation gives mole ratios, but it does not by itself tell you the starting moles: those must come from a measured mass, concentration and volume, gas data, or another known quantity.
Reading Results and Avoiding Errors
A mole is a counting unit, just as a dozen represents 12 items, but one mole represents 6.02214076 × 1023 specified entities. One mole of water molecules and one mole of sodium ions contain the same number of entities, although their masses differ because the particles have different molar masses.
- Do not confuse molar mass with mass. A molar mass has units of g/mol; a weighed sample has units of g.
- Check the formula and subscripts. The molar mass of CO2, for example, includes one carbon atom and two oxygen atoms.
- Distinguish formula units from ions. One mole of sodium chloride formula units corresponds to one mole of sodium ions and one mole of chloride ions if fully dissociated, but it is still one mole of NaCl formula units.
- Account for purity and mixtures. If a weighed sample contains impurities, dividing the entire sample mass by the pure compound’s molar mass overestimates the compound’s moles. A purity correction requires a known mass fraction.
- Avoid premature rounding. Rounding the molar mass or intermediate result too aggressively can shift the final answer, particularly for small samples.
The mass-based calculation assumes the mass and molar mass describe the same chemical substance. It does not determine how much of a reactant will actually react, whether a reaction reaches completion, or how much product is obtained; those questions require reaction stoichiometry and often information about limiting reactants, yield, or sample purity.
Frequently Asked Questions
How do you calculate moles from grams?
Divide the mass in grams by the substance’s molar mass in g/mol. The units cancel to give moles.
How many particles are in one mole?
Exactly 6.02214076 × 1023 specified entities, according to the Avogadro constant. The entities could be atoms, molecules, ions, or formula units.
Can moles be calculated without mass?
Yes. Use suitable known data, such as molar concentration and solution volume, or pressure, volume, and temperature for a gas under an appropriate gas-law assumption.
What is the difference between moles and molarity?
Moles measure amount of substance. Molarity is concentration: moles of solute per litre of final solution, expressed in mol/L.
Why does the same mass give different numbers of moles for different substances?
Because their molar masses differ. A fixed mass of a lighter substance represents more moles than the same mass of a heavier substance.
Scope and Lab Use
This calculator is for general chemistry arithmetic and study. Its answer is only as reliable as the entered mass, molar mass, chemical identity, and purity information. It does not replace a validated method for measurements or reaction planning. Where bench work is involved, follow your lab method, the safety data sheet (SDS), and your supervisor.
Related
Formula used
in m | Sample mass | g | 18.015 | 0 in mm | Molar mass | g/mol | 18.015 | 0 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
- How Many Protons Are in Fluorine?9 protons
- Grams to Percentage Calculator: Formula and Examples12.50 %
- Prodigy Free Energy Calculator: What It Can and Can’t Do-24.907 kJ/mol
- Calculate Number of Moles: Formula and Examples1.0000 mol
- Moles to Grams: Formula and Worked Example2.9220 g
- Moles of Electrons Formula and Faraday’s Constant