To convert grams to molecules, multiply the mass in grams by Avogadro’s constant and divide by the substance’s molar mass: molecules = grams × 6.02214076 × 1023 ÷ molar mass in g/mol. Enter the sample mass and the compound’s molar mass below to calculate the number of molecules; the calculator also reports the amount in moles.
Formula
The conversion takes place in two steps: divide mass by molar mass to find moles, then multiply moles by Avogadro’s constant to find the number of molecules.
n = m / M
N = n × NA = (m / M) × 6.02214076 × 1023
- m is the sample mass in grams (g).
- M is the molar mass in grams per mole (g/mol).
- n is the amount of substance in moles (mol).
- N is the calculated number of molecules.
- NA is Avogadro’s constant, exactly 6.02214076 × 1023 mol−1.
The units cancel as required: (g ÷ (g/mol)) × (molecules/mol) gives molecules. A mole is a counting unit, just as a dozen is a count, but it represents 6.02214076 × 1023 specified entities. The entity must be identified: for a molecular substance it may be molecules; for an ionic solid, the corresponding count is usually formula units, not molecules.
Worked Example
For the calculator’s default inputs, take 18 g of water and a molar mass of 18.015 g/mol.
- Find the amount in moles: n = m / M = 18 g / 18.015 g/mol = 0.99917 mol.
- Convert moles to molecules: N = 0.99917 mol × 6.02214076 × 1023 molecules/mol ≈ 6.0171 × 1023 molecules.
The calculator displays 6.017 × 1023 molecules when rounded to its selected zero decimal places in ordinary number notation; in scientific notation, the meaningful rounded result is about 6.017 × 1023. The underlying calculation uses the unrounded mole value.
Assumptions
- The entered mass is the mass of the substance being counted, rather than the mass of a mixture or container.
- The entered molar mass applies to the compound’s stated formula and composition.
- The result is a mathematical particle count; it does not imply that individual molecules can be counted directly in a sample.
- For ionic substances, interpret the result as formula units or other appropriate entities rather than molecules.
How to Find the Molar Mass
Molar mass is the mass of one mole of a specified chemical entity. For a compound, calculate it by adding the atomic masses of every atom in its chemical formula, taking subscripts into account. Standard atomic weights are commonly used for this calculation; for example, water, H2O, has a molar mass of approximately 2(1.008) + 15.999 = 18.015 g/mol.
For a compound with a more complicated formula, multiply each element’s atomic mass by the number of those atoms and add the contributions. For example, carbon dioxide, CO2, has a molar mass of approximately 12.011 + 2(15.999) = 44.009 g/mol. Use the value appropriate to the actual formula, including waters of crystallization, counterions, or a specified isotopic composition when those details matter.
When working from a table or reference, check its units and chemical form. A value in kilograms per mole must be converted to grams per mole before using this calculator. For an unknown mixture, a single molar mass may not be meaningful; knowing only the total mass is not enough to determine the number of molecules of each component.
When to Use the Conversion
This calculation is useful whenever a known sample mass must be expressed as a particle count, such as in introductory chemistry exercises, stoichiometry planning, or estimates of how many molecules are present in a pure sample. It is also a way to move between the laboratory-scale quantity in grams and the molecular-scale quantity in entities.
The result depends on both inputs. Doubling the mass doubles the calculated count if the molar mass stays the same. Doubling the molar mass halves the count for a fixed mass. A sample’s number of molecules is not determined by its mass alone: the identity and formula of the material are essential.
For reaction calculations, the count is often not the most useful intermediate. Chemical equations specify ratios of moles, so calculate moles first, apply the balanced equation’s coefficients, and convert to particles only if the question asks for them. The coefficients describe ratios of entities and moles, not ratios of grams.
Common Mistakes and Limits
- Using the wrong molar mass: Verify the formula, including subscripts and any specified salt, hydrate, or isotope. Similar names can refer to compounds with different formulas.
- Mixing units: The calculator expects grams and g/mol. Convert milligrams to grams by dividing by 1,000, or kilograms to grams by multiplying by 1,000, before entering a mass.
- Calling every entity a molecule: Sodium chloride, for example, is an ionic solid described by formula units rather than discrete NaCl molecules in its crystal. The arithmetic still gives a count of the specified entities when the molar mass and entity are correctly defined.
- Rounding too early: Keep several digits in the mole calculation and round the final result to match the precision of the measured mass and molar mass. A displayed particle count does not imply that the sample was measured with unlimited precision.
- Applying a pure-substance calculation to a mixture: If a sample contains impurities or multiple compounds, its total mass cannot be converted to a specific molecule count without composition information.
Avogadro’s constant is exact, but real measurements of mass and many tabulated molar masses have finite precision. Consequently, extra digits in a calculator output are arithmetic detail, not necessarily experimentally meaningful accuracy. The formula also assumes the sample mass corresponds to the substance and composition represented by the entered molar mass.
Frequently Asked Questions
How do I convert grams to molecules?
Divide the mass in grams by the molar mass in g/mol to get moles, then multiply by 6.02214076 × 1023 molecules per mole.
Can I convert grams to molecules without molar mass?
No. You need the substance’s identity or another reliable way to determine its molar mass. Equal masses of different substances generally contain different numbers of molecules.
How many molecules are in one gram of water?
Using water’s molar mass of about 18.015 g/mol, one gram contains (1 / 18.015) × 6.02214076 × 1023, or approximately 3.34 × 1022 water molecules.
Is the formula different for atoms?
The calculation is the same, but identify the entity correctly. For an elemental sample, molar mass may give a count of atoms or, for substances such as oxygen gas, molecules; the chemical form determines which entity the mole represents.
What if the mass is in milligrams?
Convert milligrams to grams first: 1,000 mg = 1 g. Then use the same formula with the mass in grams and the molar mass in g/mol.
For laboratory planning, follow your lab method, the safety data sheet (SDS), and your supervisor.
Related
Formula used
in m | Mass | g | 18 | 0 in mm | Molar mass | g/mol | 18.015 | 0.001 out mol | Amount | mol | m / mm | 4 out molecules | Molecules | molecules | mol * 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
- Pressure Density Depth Formula for Fluids98,066 Pa
- Pressure Density Temperature Equation Calculator100,961.74 Pa
- Pressure Density Cup: What It Measures and How It Works1.0000 g/mL
- Pressure, Density, and Temperature: How They Relate101,307 Pa
- Pressure-Based vs Density-Based Solvers in CFD
- Pressure-Based vs Density-Based Solvers in CFD