Grams to Moles Calculator

By: Calculator Grid

Grams to Moles Calculator

Convert between sample mass, molar mass, and amount of substance using the relationship n = m ÷ M.

Solve for moles 100 g 18.015 g/mol 5.55093 mol
Workbook ready.

Inputs

Choose which quantity the calculator should solve.
Enter a positive decimal using a period as the decimal separator.
Sample mass must be zero or greater.
The selected target field is calculated automatically.

Live result

Number of moles
5.55093 mol
Mass in grams
100 g
Molar mass in g/mol
18.015 g/mol
Amount in moles
5.55093 mol
Estimated entities
3.34281 × 10²⁴
n = 100 g ÷ 18.015 g/mol = 5.55093 mol
100 grams at 18.015 grams per mole equals 5.55093 moles.

Conversion details

Quantity Canonical value Selected-unit value
Mass 100 g 100 g
Molar mass 18.015 g/mol 18.015 g/mol
Amount of substance 5.55093 mol 5.55093 mol
Estimated entities 3.34281 × 10²⁴ Using 6.02214076 × 10²³ per mol
Canonical values use grams, grams per mole, and moles. Unit selectors change display and input units without changing the underlying physical quantity.

How to use the grams to moles calculator

What this calculator does. This tool connects three chemical quantities: sample Mass, substance Molar mass, and Number of moles. It solves the identity n = m/M in either direction, so it can convert grams to moles, moles to mass, or a known mass-and-mole pair to molar mass. It does not identify an unknown substance or decide which chemical formula is correct; the molar mass must come from a valid formula, reference table, or measurement.

When to use it. Use it to prepare stoichiometric quantities for a reaction, check a laboratory calculation, convert a product mass into an amount of substance, or infer molar mass from measured mass and moles. The mole is the SI unit for amount of substance, as explained in the BIPM definition of amount of substance.

How to calculate. The calculator opens with a ready-to-use water example: 100 g, 18.015 g/mol, and 5.55093 mol. A validated Excel workbook is immediately available.

  1. Choose a Calculation mode. The target quantity becomes read-only, while the other two quantities remain editable.
  2. Enter the two known values with a period as the decimal separator. Select the desired units beside each value.
  3. Read the large live result, the canonical values, the estimated entity count, and the conversion table.
  4. Select Download Excel to export the current validated values and formulas. Reset clears the demonstration data; after reset, export stays disabled until a complete valid state is entered again.

Input guide. Calculation mode is required and selects the unknown: moles, mass, or molar mass. Molar mass is required whenever it is not the target. Enter a positive decimal in g/mol or kg/mol; for water, 18.015 g/mol is a useful example. A zero or negative molar mass is invalid because division by zero or a nonphysical denominator cannot define the conversion. Mass is required whenever it is not the target. Enter a nonnegative decimal in mg, g, or kg; 100 g is the startup example. A mass of zero is valid and produces zero moles, but negative mass is rejected. Number of moles is required whenever it is not the target. Enter a nonnegative decimal in mmol, mol, or kmol; 5.55093 mol corresponds to the startup values. Do not paste commas as decimal separators or scientific notation; ambiguous formats are rejected rather than silently reinterpreted. Changing a unit converts the visible value so the physical quantity remains constant.

Output guide. Primary result is the selected target in its active unit. Mass in grams, Molar mass in g/mol, and Amount in moles show canonical values used by the model. Estimated entities multiplies moles by the exact Avogadro constant, 6.02214076 × 10²³ mol⁻¹; it is an estimate of particles only because the calculator does not know whether the entities are atoms, molecules, ions, or formula units. The Formula summary displays the active algebra. The conversion table repeats canonical and selected-unit values from the same model. Zero mass or zero moles produces a valid zero result; very high values remain valid only while every derived number stays finite.

Worked example. For the startup water sample, divide 100 g by 18.015 g/mol. The grams cancel, leaving moles: 100 ÷ 18.015 = 5.5509297807 mol, displayed as 5.55093 mol. Multiplying that amount by the Avogadro constant gives approximately 3.34281 × 10²⁴ entities. The same relationship can be rearranged to m = nM or M = m/n. NIST provides background on the Avogadro constant, and IUPAC's periodic table supports molar-mass work from elemental atomic weights.

Formula, units, and common mistakes

The base relationship is n = m/M, where n is amount of substance in moles, m is mass in grams, and M is molar mass in grams per mole. Rearranging gives m = nM and M = m/n. The calculator converts all selected units to these canonical units before applying the formula, then converts the target back to the selected display unit.

Molar mass is normally obtained by summing the relative atomic masses in a chemical formula. For example, H₂O combines two hydrogen atoms and one oxygen atom. The IUPAC periodic table is an authoritative starting point for atomic-weight data. The IUPAC Gold Book definition of molar mass clarifies that molar mass is mass divided by amount of substance.

Common mistakes include using molecular mass in daltons without recognizing its numerical correspondence to g/mol, mixing kilograms with g/mol, omitting subscripts when summing atomic weights, and rounding too early. Keep extra digits through the calculation and round only the displayed result. For hydrated salts, mixtures, or reactions with limiting reagents, first determine the correct chemical formula and stoichiometric relationship; this calculator performs the unit conversion, not the broader reaction analysis.