Why chemists count in moles

Reactions combine atoms and molecules in fixed ratios, but a balance reads mass. The mole connects the two. One mole is exactly 6.02214076 × 10^23 elementary entities, the value fixed for the Avogadro constant in the 2019 SI. The molar mass of a substance, in grams per mole, is the mass of that many entities. Dividing a sample mass by the molar mass gives the number of moles, and from there you can use a balanced equation, a concentration or a gas law. This page performs that first step. Enter the mass in grams and the molar mass in g/mol, and it returns the amount in moles.

Mass divided by molar mass

The calculation is moles = mass / molarMass. Mass is in grams, molar mass is in g/mol, and the result is in moles, shown with up to six significant digits. The molar mass comes from adding the atomic masses of all atoms in the formula, using values from the periodic table. Water, H2O, has two hydrogen atoms and one oxygen atom, about 2 × 1.008 + 15.999, which gives roughly 18.015 g/mol. The page does not look up elements or formulas. You calculate or look up the molar mass first and supply it, which keeps the calculator transparent and lets you handle any compound, including ones that no table lists.

Why 18 g at 18 g/mol gives 1 mole

The page opens with 18 g of a substance with a molar mass of 18 g/mol, which gives exactly 1 mole. The numbers are chosen so that the result is a clean 1, a good test that the units are right. In practice, 18 g of water is a hair under one mole because the molar mass of water is 18.015 g/mol, and 18 / 18.015 is 0.999. The difference is small, but over a large amount it matters in careful work. The default shows the pure relationship: when mass in grams equals molar mass in g/mol, you have one mole.

Everyday and laboratory examples

A 10 g portion of table salt, with a molar mass of 58.44 g/mol, is 0.171116 mol. A 25 g portion of glucose, C6H12O6, with a molar mass of 180.16 g/mol, is 0.138766 mol. A 100 g sample of water, at 18.015 g/mol, is 5.55093 mol. A 5 g sample of a substance with a molar mass of 40 g/mol, such as sodium hydroxide, is 0.125 mol. Each answer then feeds the next step. The 0.171116 mol of salt, dissolved in 0.5 L, would make a solution of about 0.342 mol/L, and the 5.55093 mol of water shows how many molecules sit in a modest glass.

Hydrates need the right molar mass

Many crystals carry water in their structure, and the molar mass has to include it. Copper(II) sulfate pentahydrate, CuSO4·5H2O, has a molar mass of about 249.68 g/mol, while anhydrous CuSO4 is about 159.61 g/mol. A 2.5 g sample is 0.0100128 mol of the pentahydrate, but it would be 0.0156632 mol if it were anhydrous. The difference is more than 50 percent. If the bottle says pentahydrate, use the hydrate molar mass. If a sample has been heated and has lost water, use the anhydrous value. Mixing the two is one of the most common sources of error in preparing solutions of specific concentration.

Purity, isotopes and sample condition

The page converts the mass you enter, and does not correct for purity. A reagent labeled 98 percent pure contains only 98 percent of the stated mass as the compound. For accurate work, multiply the mass by the purity fraction first. Isotopically labeled compounds, such as water made with deuterium, have different molar masses from the natural abundance values in a periodic table, and you must use the value for your isotope. Moisture is another source of error, since hygroscopic solids pick up water from the air and weigh more than their dry mass. For precise work, dry the sample or measure its water content.

Going from moles to other quantities

Once you have moles, other quantities follow. The number of particles is moles times 6.02214076 × 10^23. The volume of a gas at standard conditions comes from the molar volume, and the concentration of a solution is moles divided by liters. In a reaction, the balanced equation sets the ratio. For 2H2 + O2 giving 2H2O, one mole of oxygen reacts with two moles of hydrogen. Convert both masses to moles with this page, divide by the coefficients and compare, and the smaller number identifies the limiting reagent. Moles are the common currency of stoichiometry, and every calculation passes through them.

Significant figures and rounding

The result is displayed to six significant digits, but the answer cannot be more precise than the inputs. A mass read from a balance to 0.01 g has fewer significant figures than the six shown, and the atomic masses in the molar mass carry their own uncertainty. Round the final result to match the least precise input before reporting it. Keep extra digits in intermediate steps, and round at the end. The standard atomic weights published by IUPAC are the usual source for atomic masses, and some elements are given as intervals because their isotope composition varies in nature. For general work, four significant digits are sufficient.

Preparing a solution from a mass

A common task is to weigh a solid and make a solution of a chosen concentration. For 0.250 L of a 0.100 mol/L sodium chloride solution you need 0.0250 mol. Multiplying by the molar mass of 58.44 g/mol gives 1.461 g, so you weigh that amount, dissolve it and fill to the 250 mL mark. The page runs this in the opposite direction, from the mass you weighed to the moles, and a quick check of both directions catches decimal errors. If the mass on the balance is 1.50 g instead, the amount is 0.0257 mol, and the concentration in 250 mL is 0.103 mol/L. Record the mass actually weighed, not the target.

What a wrong molar mass does silently

The calculator divides two numbers. It does not know which substance you have, so a wrong molar mass gives a wrong answer without warning. It does not correct for purity, moisture, hydration state or isotopic composition, and it does not assess safety, toxicity or storage. The molar mass must be for the actual formula, isotope or hydrate represented by the sample, and the mass and molar mass must use consistent bases. OpenStax Chemistry 2e covers formula mass and the mole concept in its first chapters, and is a reliable reference.