keepcalculator

06 Numbers and Powers

Moles Conversion Calculator: Grams to Moles & More

Card No. 06·1182 · Updated · Standard formula, shown below

Moles 1.0000 mol
Mass
18.0150 g
Result
Particles
602,214,075,999,999,987,023,872
Result
Mass
18.015 g
You entered
You enter
Mass, Moles, Molar mass
You get
Moles, Mass, Particles
Rounding
4 dp · 0 dp

This calculator converts between moles, mass in grams, and the number of particles (atoms, molecules, or formula units) using molar mass and Avogadro’s number. You enter any two of the three quantities—mass, moles, or molar mass—and the calculator returns the missing value, plus the particle count for any mole amount.

Formula

The core relationship is the mole concept: one mole of any substance contains exactly 6.02214076 × 10²³ particles (Avogadro’s number). The mass of one mole is the molar mass, expressed in grams per mole (g/mol). The three formulas you need are:

  • Moles from mass: n = m / M, where n is moles, m is mass in grams, and M is molar mass in g/mol.
  • Mass from moles: m = n × M.
  • Number of particles: N = n × 6.02214076 × 10²³.

Here, m is in grams (g), M in grams per mole (g/mol), n in moles (mol), and N is a pure count (no unit). The calculator uses these directly; you provide the values you know and it solves for the rest.

Worked Example

Using the default values: mass = 18.015 g, molar mass = 18.015 g/mol (the molar mass of water, H₂O).

  1. Calculate moles: n = 18.015 g ÷ 18.015 g/mol = 1.0000 mol.
  2. Calculate mass from moles (check): m = 1.0000 mol × 18.015 g/mol = 18.0150 g.
  3. Calculate particles: N = 1.0000 mol × 6.02214076 × 10²³ = 6.0221 × 10²³ particles.

The calculator displays 1.0000 mol for the first output, 18.0150 g for the second, and 6.0221 × 10²³ for the third. The particle count is rounded to four significant figures to match the inputs, but the full value is 6.02214076 × 10²³.

What Is a Mole and Why Do We Use It?

A mole is a counting unit, like a dozen (12) or a gross (144), but vastly larger. It was chosen so that the mass of one mole of atoms or molecules in grams equals the average mass of a single particle in atomic mass units (u). For example, one carbon-12 atom has a mass of 12 u, so one mole of carbon-12 has a mass of 12 grams. This bridges the microscopic world of atoms and the macroscopic world of lab measurements.

Chemists use moles because chemical reactions occur in fixed ratios of particles, not fixed ratios of masses. If you want to react 2 moles of hydrogen with 1 mole of oxygen, you need to measure out the correct masses, which requires converting between grams and moles. Without the mole concept, you would have to count individual atoms—impossible in practice.

How to Use the Calculator

Enter any two of the three fields: mass (g), moles (mol), or molar mass (g/mol). The calculator will compute the third. You can also enter just moles to get the particle count, or just mass and molar mass to get moles and particles. The outputs update automatically.

  • Mass to moles: Enter mass and molar mass; the calculator gives moles and particles.
  • Moles to mass: Enter moles and molar mass; the calculator gives mass and particles.
  • Moles to particles: Enter moles only; the calculator gives mass (if molar mass is left at default) and particles.

For example, if you have 5.00 g of sodium chloride (NaCl, molar mass 58.44 g/mol), enter mass = 5.00, molar mass = 58.44, and the calculator returns moles = 0.0856 mol and particles = 5.15 × 10²² formula units.

Common Mistakes and How to Avoid Them

The most frequent errors in mole conversions are unit mix-ups and incorrect molar mass values.

  • Using grams instead of kilograms: Molar mass is in grams per mole, so mass must be in grams. If you have 2.5 kg, convert to 2500 g first.
  • Confusing molar mass with atomic mass: Atomic mass (in u) is numerically equal to molar mass (in g/mol), but they are different units. Use g/mol in calculations.
  • Forgetting to sum atomic masses: For compounds, add the atomic masses of all atoms. For example, water (H₂O) has molar mass = 2×1.008 + 15.999 = 18.015 g/mol.
  • Rounding too early: Keep extra digits during intermediate steps, then round at the end. The calculator does this automatically.

Another common pitfall is using the wrong Avogadro constant. The value is exactly 6.02214076 × 10²³, but many textbooks use 6.022 × 10²³. The difference is negligible for most purposes, but for high-precision work use the full value.

Why Molar Mass Varies: Isotopes and Average Mass

Molar mass is not a fixed constant for an element because most elements exist as a mixture of isotopes. The molar mass listed on the periodic table is a weighted average of all naturally occurring isotopes. For example, chlorine has two stable isotopes: chlorine-35 (about 76%) and chlorine-37 (about 24%). The average molar mass is about 35.45 g/mol, not a whole number.

For compounds, the molar mass is the sum of the average molar masses of the constituent atoms. This means that the molar mass you use in calculations is an average, not the mass of any specific molecule. For most lab work, this average is accurate enough. However, if you are working with a specific isotope (e.g., in nuclear chemistry), you must use the exact isotopic mass, not the average.

Real-World Applications

Mole conversions are not just textbook exercises; they are used daily in chemistry and related fields.

  • Stoichiometry: Calculating how much reactant to use or product to expect in a chemical reaction.
  • Solution preparation: Making a solution of a specific molarity requires converting moles to grams.
  • Pharmaceuticals: Dosages are often based on moles of active ingredient, not just mass.
  • Environmental science: Converting pollutant concentrations from ppm to moles per liter.
  • Food chemistry: Determining the amount of a compound in a sample, like caffeine in coffee.

For instance, to prepare 500 mL of a 0.100 M solution of sodium hydroxide (NaOH, molar mass 40.00 g/mol), you need 0.100 mol/L × 0.500 L = 0.0500 mol, which is 0.0500 mol × 40.00 g/mol = 2.00 g of NaOH. This calculator does the second step instantly.

Limitations and Precision

This calculator is accurate to the precision of the inputs you provide. Molar masses from the periodic table are typically given to 4-5 significant figures, but you can enter more if you have a high-precision value. The particle count output is rounded to 4 significant figures by default, but you can change the decimals to get more.

One limitation is that the calculator assumes the substance is pure and that the molar mass is the average for the natural isotopic composition. If you are working with a specific isotope or a mixture with unusual isotopic ratios, the molar mass will differ. Also, for gases, the ideal gas law (PV = nRT) can be used to find moles from pressure, volume, and temperature, but that is a separate calculation not covered here.

Frequently Asked Questions

How do I convert grams to moles without a calculator? Divide the mass in grams by the molar mass (in g/mol). For example, 36 g of water (molar mass 18 g/mol) is 36 ÷ 18 = 2 moles.

What is Avogadro’s number? It is 6.02214076 × 10²³, the number of particles (atoms, molecules, ions, or formula units) in one mole of any substance. It is a defined constant, not measured.

Why is the molar mass of an element not always a whole number? Because most elements have multiple isotopes, and the molar mass is the weighted average of all isotopes’ masses. For example, chlorine has an average molar mass of about 35.45 g/mol due to its two isotopes.

Can I use this calculator for ions or formula units? Yes. The mole concept applies to any entity—atoms, molecules, ions, or formula units. Just use the appropriate molar mass (e.g., for sulfate ion SO₄²⁻, use the sum of S and 4 O).

What is the difference between molar mass and molecular weight? They are numerically identical but have different units. Molecular weight is dimensionless (often in atomic mass units, u), while molar mass is in grams per mole (g/mol). In practice, you can use the same number.

How do I find molar mass from the periodic table? For an element, it’s the atomic weight listed. For a compound, add the atomic weights of all atoms in the formula. For example, CO₂: 12.01 + 2×16.00 = 44.01 g/mol.

Related

Formula used
in mass | Mass | g | 18.015 | 0 | 1000000
in mol | Moles | mol | 1 | 0 | 1000000
in mm | Molar mass | g/mol | 18.015 | 0.001 | 1000000
out moles | Moles | mol | mass / mm | 4
out grams | Mass | g | mol * mm | 4
out particles | Particles | - | 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, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →