Mole Calculator — Grams to Moles
Convert between mass, moles, and number of particles using molar mass and Avogadro's number. Calculate gas volume at STP.
Mole Calculator — Grams to Moles
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser — no data is sent to any server.
Formula: Moles = Mass (g) / Molar Mass (g/mol)
Worked example — 1.999 moles of water
Formula
Moles = Mass (g) / Molar Mass (g/mol)
The number of moles equals the mass of a substance divided by its molar mass. The number of particles equals moles multiplied by Avogadro's number (6.022 x 10^23). For gases at STP, the volume in liters equals moles multiplied by 22.414 L/mol.
Worked Examples
Example 1: Mass of Water to Moles
Problem:How many moles are in 36 grams of water (H2O, molar mass 18.015 g/mol)?
Solution:Moles = mass / molar mass Moles = 36 / 18.015 = 1.999 mol Particles = 1.999 x 6.022 x 10^23 = 1.2038 x 10^24 Volume at STP = 1.999 x 22.414 = 44.80 L
Result:1.999 moles of water
Example 2: Moles of CO2
Problem:Calculate moles in 100 grams of carbon dioxide (CO2, molar mass 44.01 g/mol).
Solution:Moles = 100 / 44.01 = 2.272 mol Particles = 2.272 x 6.022 x 10^23 = 1.369 x 10^24 Volume at STP = 2.272 x 22.414 = 50.93 L
Result:2.272 moles of CO2
Frequently Asked Questions
What is a mole in chemistry?
A mole is a fundamental unit in chemistry that represents exactly 6.02214076 x 10^23 particles (atoms, molecules, ions, or other entities). This number is known as Avogadro's number. One mole of any substance contains the same number of particles, just as one dozen always means twelve items. The mole bridges the gap between the atomic scale and the laboratory scale, allowing chemists to count atoms by weighing substances. For example, one mole of water (H2O) has a mass of about 18.015 grams.
How do you convert grams to moles?
To convert grams to moles, divide the mass in grams by the molar mass of the substance in grams per mole. The formula is: moles = mass / molar mass. For instance, to find the moles in 36 grams of water (molar mass 18.015 g/mol), calculate 36 / 18.015 = 1.999 moles. The molar mass is found by adding the atomic masses of all atoms in the molecular formula, which are listed on the periodic table. This calculation is one of the most fundamental operations in chemistry.
What is molar mass and how do you find it?
Molar mass is the mass of one mole of a substance, expressed in grams per mole (g/mol). It is numerically equal to the atomic or molecular weight found on the periodic table. To calculate the molar mass of a compound, add up the atomic masses of every atom in its chemical formula. For water (H2O), the molar mass is 2(1.008) + 15.999 = 18.015 g/mol. For sodium chloride (NaCl), it is 22.990 + 35.453 = 58.443 g/mol. Molar mass is essential for converting between mass and moles in stoichiometric calculations.
What is the molar volume of a gas at STP?
At standard temperature and pressure (STP, defined as 0 degrees Celsius and 1 atmosphere), one mole of any ideal gas occupies exactly 22.414 liters. This is called the molar volume. It applies regardless of the type of gas because ideal gas behavior depends only on the number of particles, not their identity. At room temperature (25 degrees Celsius and 1 atm), the molar volume is about 24.465 liters. This relationship lets you convert between moles of gas and volume without knowing the molar mass.
How many atoms are in one mole?
One mole contains exactly 6.02214076 x 10^23 particles, a value known as Avogadro's number or Avogadro's constant. This enormous number was chosen so that one mole of carbon-12 atoms has a mass of exactly 12 grams, linking the atomic mass unit to grams. To put this number in perspective, if you had a mole of sand grains, they would cover the entire surface of the Earth to a depth of several kilometers. Despite its size, Avogadro's number is a precisely defined constant in the SI system since 2019.
How do nurses and pharmacists use mole calculations for IV solutions?
Clinical staff convert a prescribed millimolar dose (for example, potassium chloride replacement) into the milligrams that get drawn up in a syringe by multiplying moles by the substance's molar mass. A 40 mEq KCl order for a liter bag requires knowing that 1 mole of K+ equals 39.10 g and that mEq and mmol are equal for a monovalent ion, so 40 mmol x 74.55 g/mol (KCl's molar mass) = 2.982 g of KCl salt is added. This mole-to-mass conversion is checked at multiple points in the medication process specifically because dosing errors compound the same way stoichiometry errors do in the lab.
Why is the mole concept essential for balancing environmental and industrial mass budgets?
Environmental engineers convert pollutant concentrations reported in moles per liter into the mass-based units (mg/L, tons/year) that regulations actually specify, since permits and safety data sheets use mass while lab instruments and reaction kinetics use moles. In industrial chemical plants, mole-based mass balances track every atom entering and leaving a reactor across multiple simultaneous reactions, letting engineers verify that no material is unaccounted for and calculate expected waste stream composition before it is ever produced.
How do you turn moles into a molarity or work out how much solid to weigh?
Molarity is moles of solute per litre of solution, so moles = molarity × volume in litres, and mass = moles × molar mass. To prepare 500 mL of 0.25 M sodium chloride you need 0.500 × 0.25 = 0.125 mol, and 0.125 × 58.443 = 7.31 g of NaCl, dissolved and made up to the 500 mL mark rather than added to 500 mL of water. Reversing the two steps — mass to moles, then moles divided by litres — gives the molarity of a solution you have already made.
Why does one mole of a compound not give one mole of each ion or atom?
A mole always counts a specified entity, so you must state what you are counting. One mole of calcium chloride, CaCl₂, contains one mole of Ca²⁺ but two moles of Cl⁻, and dissolving it releases three moles of ions in total. Likewise one mole of O₂ molecules contains two moles of oxygen atoms, or about 1.204 × 10²⁴ atoms. This distinction drives the van 't Hoff factor in colligative-property work, where CaCl₂ depresses a freezing point roughly three times as much as an equal molality of a non-dissociating solute.
Should the molar volume of a gas be 22.414 L/mol or 22.711 L/mol?
It depends on which standard pressure the source uses. The traditional STP of 0 °C and 1 atm (101.325 kPa) gives 22.414 L/mol, the value Mole Calculator — Grams to Moles applies. IUPAC's current standard pressure is 100 kPa, which at the same 0 °C gives 22.711 L/mol, while ambient conditions of 25 °C and 1 atm give about 24.47 L/mol. All three come from V = RT/P, so the safest habit is to state the temperature and pressure explicitly rather than relying on the label STP.
References
Background & Theory
History
Reviewed for accuracy by Manoj Kumar, Mathematics Educator · Editorial policy
Related Calculators
🧮Grams to Moles Calculator
Calculate grams to moles with inputs, formulas, and instant results.
🧮Avogadro's Number Calculator: Moles to Particles
Calculate avogadros number with inputs, formulas, and instant results.
🧮Green Chemistry Atom Economy Calculator
Calculate green chemistry atom economy with inputs, formulas, and instant results.
🧮Absorbance Calculator (Beer-Lambert Law)
Calculate absorbance with inputs, formulas, and instant results.
🧮Beer Lambert Extended Calculator
Calculate beer lambert extended with inputs, formulas, and instant results.
🧮Beer Lambert Law Calculator
Calculate beer lambert law with inputs, formulas, and instant results.
🧮Calibration Curve Calculator
Calculate calibration curve with inputs, formulas, and instant results.
🧮Calibration Curve Slope Calculator
Calculate calibration curve slope with inputs, formulas, and instant results.