Skip to main content
EverydayToolsSIMPLE • FREE • FAST
HomeCategories
Search tools...
  1. Home
  2. Science & Engineering
  3. Moles to Grams Calculator
Advertisement
Loading...
Advertisement
Loading...

Convert moles to grams or grams to moles with formula parsing, multi-unit support, and step-by-step solutions

The Moles to Grams Calculator is an essential tool for chemistry students, educators, lab technicians, and anyone working with chemical quantities. It converts between moles and grams using the fundamental relationship: mass equals moles multiplied by molar mass (m = n × M). Whether you are balancing a chemical equation, preparing a solution in the lab, or studying for an exam, this calculator provides instant and accurate conversions with full step-by-step explanations. Understanding the mole concept is central to all quantitative chemistry. A mole is a counting unit representing exactly 6.02214076 × 10²³ particles — atoms, molecules, ions, or formula units. This number, known as Avogadro's constant, allows chemists to count atoms on a scale that is practical for laboratory work. When you multiply the number of moles by the molar mass of a substance (expressed in grams per mole), you get the mass of that substance in grams. Conversely, dividing the mass by the molar mass gives you the number of moles. This calculator goes beyond simple unit conversion. You can enter a chemical formula such as H2O or KMnO4 and the tool will automatically parse it to determine the molar mass, showing you a breakdown of each element's contribution. For common chemicals, a pre-populated compound database lets you select water, glucose, sulfuric acid, sodium chloride, and many others without looking up their molar masses. Multi-unit support for moles (mol, mmol, µmol, nmol, pmol, fmol) and mass (g, mg, kg, µg) ensures accuracy across every scale of measurement, from industrial production to nanomolar biochemistry. The bidirectional conversion mode lets you switch between moles-to-grams and grams-to-moles with a single click. The calculator also displays the number of molecules or atoms present in your sample by multiplying the moles by Avogadro's number — a valuable cross-check for stoichiometry problems. The adjustable precision slider lets you set the number of significant figures from 2 to 6, matching the requirements of any homework problem or laboratory report. Results update automatically as you type, and a one-click copy button lets you transfer the answer instantly.

Understanding Moles and Molar Mass

What Is a Mole?

A mole is the SI base unit for the amount of substance. Defined by the 2019 revision of the SI, one mole contains exactly 6.02214076 × 10²³ elementary entities — this is Avogadro's number. Just as a dozen means 12, a mole means 6.022 × 10²³. The mole bridges the atomic scale and the laboratory scale: atoms and molecules are far too small to count individually, but by working in moles, chemists can relate measurable masses to the number of particles involved in a reaction. The molar mass of a substance, expressed in grams per mole (g/mol), is numerically equal to the atomic or molecular mass expressed in atomic mass units (u or Da). For water (H₂O), the molar mass is approximately 18.015 g/mol, meaning 18.015 grams of water contains exactly 6.022 × 10²³ water molecules.

How Are Moles and Grams Related?

The core equation is: mass (m) = moles (n) × molar mass (M), or m = n × M. To convert moles to grams, multiply the number of moles by the molar mass in g/mol. To convert grams to moles, rearrange the equation: n = m / M. The molar mass of a compound is calculated by summing the atomic masses of all atoms in one formula unit. For example, NaCl has molar mass = Na (22.990) + Cl (35.450) = 58.440 g/mol. For H₂SO₄: 2(1.008) + 32.060 + 4(15.999) = 98.079 g/mol. Avogadro's number extends this further: the number of molecules N = n × 6.02214076 × 10²³. This allows you to determine how many individual particles are present in any measured quantity of a substance.

Why Mole Calculations Matter

Stoichiometry — the calculation of reactant and product quantities in chemical reactions — relies entirely on mole ratios. A balanced chemical equation tells you the molar ratio of reactants to products, but real laboratory work involves measuring masses, not counting molecules. Converting between moles and grams is therefore the critical link between chemical equations and physical measurements. In pharmaceutical manufacturing, precise mole calculations ensure correct drug concentrations. In food science, they govern the formulation of preservatives, additives, and nutrients. In environmental chemistry, they quantify pollutant loads. Even in everyday cooking, mole concepts underlie the chemistry of baking — for example, calculating how much baking soda reacts with vinegar to produce a specific volume of carbon dioxide.

Limitations and Considerations

This calculator uses standard atomic masses as defined by IUPAC, which are averages across naturally occurring isotope abundances. For work involving specific isotopes (isotope labeling, radioactive tracers, mass spectrometry), the atomic mass of the specific isotope must be used instead. Molar mass values for complex organic molecules may differ slightly from published values depending on the source used for atomic masses. The chemical formula parser handles standard notation including parentheses and multipliers, but does not support hydrates (e.g., CuSO₄·5H₂O) — enter the molar mass directly for such compounds. Precision is limited to 6 significant figures, which is sufficient for virtually all laboratory and academic applications, but ultra-high precision metrology may require more decimal places.

Mole-Mass Conversion Formulas

Moles to Grams

m = n × M

Mass in grams equals the number of moles multiplied by the molar mass in g/mol. This is the fundamental equation for converting a known number of moles to a measurable mass.

Grams to Moles

n = m / M

Number of moles equals mass in grams divided by the molar mass in g/mol. Use this when you have weighed a sample and need to know how many moles it contains.

Molar Mass from Formula

M = Σ(atoms × atomic mass)

The molar mass of a compound is calculated by summing the products of each element's atom count and its standard atomic mass. For example, H₂O = 2(1.008) + 1(15.999) = 18.015 g/mol.

Number of Molecules

N = n × 6.022 × 10²³

The number of individual molecules equals moles multiplied by Avogadro's constant. This bridges the gap between countable lab quantities and the atomic scale.

Molar Mass Reference Tables

Molar Masses of Common Compounds

Standard molar masses for frequently used chemical compounds, based on IUPAC atomic weights.

CompoundFormulaMolar Mass (g/mol)Common Use
WaterH₂O18.015Universal solvent, dilutions
Sodium ChlorideNaCl58.440Saline solutions, food science
GlucoseC₆H₁₂O₆180.156Biochemistry, cell culture media
Carbon DioxideCO₂44.009Gas law calculations
Sulfuric AcidH₂SO₄98.079Titrations, industrial chemistry
EthanolC₂H₅OH46.069Organic chemistry, solvents
Calcium CarbonateCaCO₃100.087Antacids, geological chemistry
Sodium HydroxideNaOH39.997pH adjustment, saponification

Avogadro's Number Applications

How Avogadro's constant connects moles, molecules, and atoms at different scales.

QuantityMolesMolecules/AtomsMass Example (Water)
1 femtomole10⁻¹⁵ mol6.022 × 10⁸0.000000000018 g
1 picomole10⁻¹² mol6.022 × 10¹¹0.000000018 g
1 nanomole10⁻⁹ mol6.022 × 10¹⁴0.000018 g
1 micromole10⁻⁶ mol6.022 × 10¹⁷0.018 mg
1 millimole10⁻³ mol6.022 × 10²⁰18.015 mg
1 mole1 mol6.022 × 10²³18.015 g

Worked Examples

Convert 2.5 Moles of NaCl to Grams

You need to weigh out 2.5 moles of sodium chloride (NaCl) for preparing a saline solution. The molar mass of NaCl is 58.44 g/mol.

1

Identify the formula: m = n × M

2

Substitute values: m = 2.5 mol × 58.44 g/mol

3

Calculate: m = 146.10 g

4

Verify: 146.10 g ÷ 58.44 g/mol = 2.5 mol ✓

2.5 moles of NaCl has a mass of 146.10 grams. This sample contains 2.5 × 6.022 × 10²³ = 1.506 × 10²⁴ formula units of NaCl.

Calculate Moles in 50 g of Glucose

You have weighed 50 grams of glucose (C₆H₁₂O₆) and need to know how many moles this represents for a stoichiometry calculation.

1

Calculate molar mass: M = 6(12.011) + 12(1.008) + 6(15.999) = 72.066 + 12.096 + 95.994 = 180.156 g/mol

2

Apply the formula: n = m / M = 50 g / 180.156 g/mol

3

Calculate: n = 0.2776 mol

4

Find molecules: N = 0.2776 × 6.022 × 10²³ = 1.672 × 10²³ molecules

50 grams of glucose contains 0.278 moles, which is approximately 1.67 × 10²³ glucose molecules.

How to Use This Calculator

1

Choose Conversion Direction

Click 'Moles → Grams' to find the mass from a known number of moles, or 'Grams → Moles' to find the moles from a known mass. The input fields update automatically to match your selection.

2

Enter Your Substance

Select a pre-populated compound from the dropdown (e.g., Water, Glucose, NaCl), or type a chemical formula such as H2O or KMnO4. The molar mass field fills automatically. Alternatively, enter the molar mass directly in the field.

3

Input the Known Quantity

Enter the number of moles (with optional unit: mol, mmol, µmol, nmol, pmol, fmol) or the mass (with optional unit: g, mg, kg, µg). Use the precision slider to set the number of significant figures in the result.

4

Read Your Results

The answer appears instantly in the results panel. Review the step-by-step solution showing the formula and substituted values, the number of molecules via Avogadro's number, and the elemental composition bar chart (when a formula is provided).

Frequently Asked Questions

How do I convert moles to grams?

To convert moles to grams, multiply the number of moles by the molar mass of the substance: mass (g) = moles × molar mass (g/mol). For example, to find the mass of 2 moles of water (H₂O, molar mass = 18.015 g/mol): mass = 2 × 18.015 = 36.030 g. The molar mass can be found on the periodic table by summing the atomic masses of all atoms in the compound's formula. This calculator does this automatically when you enter a chemical formula or select from the compound dropdown.

How do I convert grams to moles?

To convert grams to moles, divide the mass by the molar mass: moles = mass (g) ÷ molar mass (g/mol). For example, 58.44 g of sodium chloride (NaCl, molar mass = 58.443 g/mol) contains 58.44 ÷ 58.443 ≈ 1.000 mol. Switch the calculator to 'Grams → Moles' mode, enter the mass with its unit, and the moles result appears instantly. This is the reverse operation of the moles-to-grams calculation and uses the same molar mass value.

What is molar mass and how is it calculated?

Molar mass is the mass of one mole of a substance, expressed in grams per mole (g/mol). It is calculated by summing the atomic masses of all atoms in one formula unit of the compound. Atomic masses are listed on the periodic table in atomic mass units (u), which are numerically equal to g/mol. For glucose (C₆H₁₂O₆): 6(12.011) + 12(1.008) + 6(15.999) = 72.066 + 12.096 + 95.994 = 180.156 g/mol. This calculator's built-in formula parser does this calculation automatically for any standard chemical formula.

What is Avogadro's number and why does it appear here?

Avogadro's number (Nₐ = 6.02214076 × 10²³ mol⁻¹) is the number of elementary particles in exactly one mole of a substance. It was named after the Italian scientist Amedeo Avogadro. This number connects the macroscopic world (grams you can measure) with the microscopic world (individual atoms and molecules). This calculator multiplies your moles result by Avogadro's number to show how many actual molecules are present in your sample — a useful quantity for understanding reaction rates, concentration, and spectroscopy experiments.

Can I use this calculator for non-standard units like mmol or µg?

Yes. The calculator supports six mole units: mol, mmol (millimoles, 10⁻³ mol), µmol (micromoles, 10⁻⁶ mol), nmol (nanomoles, 10⁻⁹ mol), pmol (picomoles, 10⁻¹² mol), and fmol (femtomoles, 10⁻¹⁵ mol). For mass, it supports g, mg, kg, and µg. Select the appropriate unit from the dropdown next to the input field. All conversions are internally computed in base units (mol and grams) to ensure accuracy regardless of the scale chosen.

Why does my chemical formula give an error?

The formula parser recognizes standard element symbols (one or two letters, first capitalized) followed by optional subscript numbers, with support for parentheses and multipliers. Common issues include: using all-lowercase letters (write 'H2O' not 'h2o'), using element symbols not in the standard periodic table, entering formulas for hydrates with a dot (e.g., CuSO4·5H2O — enter these compounds' molar mass manually instead), or including special characters. If the parser fails, enter the molar mass directly in the molar mass field — the conversion will work the same way.

Related Tools

Grams to Moles Calculator

Convert mass in grams to moles — the reverse operation with the same formula and molar mass lookup.

Atomic Mass Calculator

Look up atomic masses for individual elements and calculate molecular weights for any compound.

Dilution Calculator

Calculate dilution volumes using C₁V₁ = C₂V₂ after converting moles to prepare molar solutions.

mg to Grams Converter

Convert between milligrams and grams — useful for small-scale mole calculations in biochemistry.

Grams to mg Converter

Convert grams to milligrams for precise measurements when working with sub-gram quantities.

EverydayToolsSIMPLE • FREE • FAST

Free online tools for non-IT professionals. Calculators, converters, generators, and more.

Popular Categories

  • Health Calculators
  • Finance Calculators
  • Conversion Tools
  • Math Calculators

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 EverydayTools.io. All rights reserved.