What is a mole?
The phrase mole calculator is searched thousands of times a month by students meeting stoichiometry for the first time, teachers checking problem sets, and lab staff converting a recipe written in moles into grams they can weigh. Every one of those jobs turns on one awkward fact: atoms are far too small to count and far too light to weigh individually, yet reactions happen between exact numbers of them. The mole is the bridge — a counting unit on a heroic scale: where a dozen means 12, a mole means 602,214,076,000,000,000,000,000 particles, give or take nothing, because the number is now defined exactly.
One mole of a substance weighs, in grams, a number you can read straight off the periodic table: add up the atomic weights in the formula and you have the mass of one mole. A mole of water weighs 18.015 g — about a tablespoonful; a mole of table salt weighs 58.44 g; a mole of glucose weighs 180.156 g. The three conversions on this page — grams to moles, moles to grams, and moles to molecules — are the three directions you can travel across that bridge.
Avogadro's number and the Avogadro constant
The constant is named for Amedeo Avogadro, the Italian scientist who proposed in 1811 that equal volumes of gases hold equal numbers of particles — although he never knew the number itself, which was measured only in the early twentieth century and long carried experimental uncertainty. That changed with the 2019 redefinition of the International System of Units. The mole is now defined by fixing the Avogadro constant at exactly 6.02214076 × 10²³ mol⁻¹, in the same spirit as the speed of light defining the metre. When you convert moles to molecules on this page, the multiplication uses that exact figure, not the 6.02 × 10²³ rounding found in many textbooks — the rounding is fine for two-significant-figure homework, but there is no reason for a calculator to throw the digits away.
One wording point matters for exams: the particles counted depend on the substance. For water or glucose they are molecules; for sodium chloride, an ionic solid, they are formula units; for a pure element such as copper they are atoms. The arithmetic never changes — only the label — which is why this page says "particles (molecules / atoms)" on the unit menu.
The mole formulas: mass, moles and particles
Read the symbols once and every mole problem becomes bookkeeping. n is the amount in moles, m the mass in grams, M the molar mass in grams per mole, N the number of particles, and Nₐ the Avogadro constant, 6.02214076 × 10²³ per mole. The first two formulas are one relationship read in two directions: dividing grams by grams-per-mole cancels the grams and leaves moles; multiplying does the reverse. Checking that units cancel to the unit you want — dimensional analysis — is the fastest error check in stoichiometry.
| To find | Formula | Needs |
|---|---|---|
| Moles from mass | n = m ÷ M | mass in g, molar mass in g/mol |
| Mass from moles | m = n × M | moles, molar mass in g/mol |
| Particles from moles | N = n × 6.02214076 × 10²³ | moles |
| Moles from particles | n = N ÷ 6.02214076 × 10²³ | particle count |
| Moles from a solution | n = C × V | molarity in mol/L, volume in litres |
Every result this calculator prints is one row of that table, or two rows chained: grams to molecules, for instance, is grams to moles followed by moles to molecules. Nothing else is hidden inside it — no fitted constants and no approximations beyond ordinary floating-point arithmetic and the rounded atomic weights discussed below — so any result can be reproduced with a pocket calculator from the same inputs.
How to calculate moles step by step
How to calculate moles is the question behind most visits to this page, so here is the full procedure with nothing skipped. Suppose you have weighed out 5 g of sodium chloride and want the amount in moles. First, find the molar mass from the formula: NaCl is sodium at 22.990 plus chlorine at 35.45, giving 58.44 g/mol. Second, divide the mass by the molar mass: n = 5 ÷ 58.44 = 0.0856 mol. That is the whole method — two steps, one of which is a table lookup this calculator does for you when you type the formula. If the mass arrives in kilograms or milligrams, convert it to grams first (kilograms × 1,000, milligrams ÷ 1,000); the unit menu above does that conversion for you and shows the gram figure in the breakdown.
Working in the other direction is just as mechanical. A protocol that calls for 2 mol of carbon dioxide means a mass of 2 × 44.009 = 88.02 g, because the molar mass of CO2 is 12.011 + 2 × 15.999 = 44.009 g/mol. And a question asking for particles adds one more multiplication: 2 mol × 6.02214076 × 10²³ = 1.204 × 10²⁴ molecules. Three quantities, two exchange rates — molar mass between mass and moles, Avogadro's number between moles and particles — and every textbook mole problem is a walk along that chain in one direction or the other.
Grams to moles and moles to grams
The grams to moles conversion is the most-used direction, because balances read in grams and equations balance in moles. Its one requirement is an honest molar mass. For a pure element the molar mass is simply its atomic weight: a mole of iron is 55.845 g, a mole of copper is 63.546 g. For a compound you sum the formula, atom by atom, as the next section shows. Once M is fixed, the conversion is a single division, and the calculator's breakdown shows it explicitly — mass in grams, molar mass, the division, the moles — so a student can copy the method, not just the answer.
Moles to grams matters most at the bench, where "add 0.25 mol of glucose" must become "weigh 45.04 g" before anyone can act on it (0.25 × 180.156 = 45.039 g). Significant figures bite here too: a balance reading to 0.01 g cannot honour six decimals, so weigh the rounded figure and, if the exact amount matters, work backwards from the mass actually weighed. The calculator prints full precision in its breakdown and a rounded headline figure, so both habits are supported.
Moles to molecules and atoms
The moles to molecules conversion is conceptually the simplest on this page — one multiplication by a constant — and the one most often fumbled in practice, because the numbers involved defeat intuition and pocket-calculator displays alike. One mole of water is 6.02214076 × 10²³ molecules. A tenth of a mole is 6.02214076 × 10²². The 0.0856 mol of NaCl from the worked example is 0.0856 × 6.02214076 × 10²³ ≈ 5.153 × 10²² formula units. This calculator displays particle counts in scientific notation with a superscript exponent and accepts them as an input unit too: type a count such as 1.204e24 into the value field with the particles unit selected, and it converts back to 2.000 mol, then onward to grams.
Why convert to particles at all, if no one can count them? Because the particle view exposes scale as grams cannot: a single drop of water, about 0.05 g, holds roughly 1.7 × 10²¹ molecules — more than a billion trillion. The mole exists so that chemists can hold numbers like that in a two-digit figure instead.
Finding molar mass from a chemical formula
Molar mass is where the chemistry lives in these calculations, so this calculator computes it the transparent way: it parses the formula you type and sums the IUPAC 2021 standard atomic weights — the same conventional values tabulated by the IUPAC Commission on Isotopic Abundances and Atomic Weights. Hydrogen is 1.008, carbon 12.011, oxygen 15.999, sodium 22.990, chlorine 35.45, and so on through all 118 elements. Glucose shows the method at its clearest: C6H12O6 is 6 × 12.011 = 72.066 for carbon, plus 12 × 1.008 = 12.096 for hydrogen, plus 6 × 15.999 = 95.994 for oxygen, totalling 180.156 g/mol.
The parser handles the forms school and laboratory chemistry actually uses: element symbols with counts, round, square and curly brackets — including nested brackets, as in K4[Fe(CN)6] — and hydrates joined by a middle dot, such as CuSO4·5H2O. Plainly stated, it does not handle charges written into the formula (such as SO4²⁻), polymer repeat-unit notation, isotope labels, or decimal atom counts. Type one of those and it shows an error explaining the problem rather than silently producing a wrong mass — watch the status line under the formula input. Capitalisation is significant, exactly as in chemistry itself: Co is cobalt, CO is carbon monoxide.
Worked examples you can check
Four examples anchor this page, each chosen so the arithmetic can be verified by hand and reproduced in the calculator in seconds. Example 1 — the one-mole benchmark. 18.015 g of H2O ÷ 18.015 g/mol = 1.000 mol, and 1.000 × 6.02214076 × 10²³ = 6.02214076 × 10²³ molecules. This is the calculator's starting state: open the page and the result panel already shows it. Example 2 — grams to moles. 5 g of NaCl ÷ 58.44 g/mol = 0.0856 mol. Example 3 — moles to grams. 2 mol of CO2 × 44.009 g/mol = 88.018 g, reported as 88.02 g. Example 4 — solution mode. 250 mL of a 0.5 M solution: 0.5 mol/L × 0.250 L = 0.125 mol. All four were recomputed independently before publication, and the figures in this guide are the figures the calculator prints.
| Example | Given | Working | Result |
|---|---|---|---|
| Water benchmark | 18.015 g H2O | 18.015 ÷ 18.015; × 6.02214076 × 10²³ | 1.000 mol; 6.02214076 × 10²³ molecules |
| Salt, grams to moles | 5 g NaCl | 5 ÷ 58.44 | 0.0856 mol |
| CO2, moles to grams | 2 mol CO2 | 2 × 44.009 | 88.02 g |
| Solution sample | 0.5 M, 250 mL | 0.5 × 0.250 | 0.125 mol |
Molar masses of common substances
The table below lists the substances on this calculator's pick-list. Every figure is the sum of the IUPAC 2021 atomic weights in the formula — the same sum the calculator performs when you type or pick the formula — so a value read here always matches the value used above. Figures are in grams per mole.
| Substance | Formula | Molar mass (g/mol) |
|---|---|---|
| Water | H2O | 18.015 |
| Sodium chloride (table salt) | NaCl | 58.44 |
| Glucose | C6H12O6 | 180.156 |
| Carbon dioxide | CO2 | 44.009 |
| Sodium hydroxide | NaOH | 39.997 |
| Hydrochloric acid | HCl | 36.458 |
| Sulfuric acid | H2SO4 | 98.072 |
| Sucrose (table sugar) | C12H22O11 | 342.297 |
| Ethanol | C2H6O | 46.069 |
| Calcium carbonate | CaCO3 | 100.086 |
| Ammonia | NH3 | 17.031 |
| Oxygen gas | O2 | 31.998 |
| Methane | CH4 | 16.043 |
| Copper(II) sulfate pentahydrate | CuSO4·5H2O | 249.677 |
| Potassium chloride | KCl | 74.548 |
One warning the table cannot show: check whether your solid is the hydrate or the anhydrous form. The familiar blue copper(II) sulfate crystals are the pentahydrate at 249.677 g/mol; the anhydrous powder is 159.602 g/mol. Weighing one while calculating with the other throws every mole figure out by more than a third, and no calculator can spot it, because both formulas are valid. The formula on the bottle is the formula to type.
Moles from molarity and solution volume
Not every amount starts on a balance. Solutions are measured by volume and specified by concentration, so the amount they deliver is molarity times litres — the bonus mode at the top of this page. Set the substance first, then the molarity and volume, and the panel gives the moles, the matching mass and the particle count at once. For the reverse journey — preparing a solution of a stated molarity from a solid — the companion Molarity Calculator on this site works forward to concentration, including dilutions with M1V1 = M2V2.
Common mole mistakes
The most common mistake is dividing by the wrong molar mass — forgetting the counts in the formula, so water is computed as 1.008 + 15.999 = 17.007 instead of 18.015. Parsing the formula mechanically, as this calculator does, removes that whole class of error. Second is unit slips on the mass: entering 500 for a 500 mg sample and reporting moles a thousand times too large; the unit menu and the gram figure in the breakdown are the guard. Third is rounding Avogadro's number too early in chained calculations.
Fourth is confusing moles with molarity — an amount with a concentration — covered in the questions on this page. Fifth is the hydrate slip described above. And sixth, quietly common in exams, is reporting a particle count as a mass or the reverse: the units are the tell, and a result labelled in grams should never carry a × 10²³. The breakdown panel labels every line with its unit precisely so that slip is visible at a glance.
What this calculator cannot do
Plainly stated: this calculator does amount arithmetic only. It assumes the formula you type is the substance you actually have, at the purity you actually have it; it cannot know that a reagent is 98% pure or that a solid has absorbed water from the air. Its atomic weights are the IUPAC conventional values — averages over natural isotopic mixtures — so work with isotopically enriched material, and mass spectrometry generally, needs isotope-specific masses this page does not use. Its parser, as stated above, rejects charges, polymer notation, isotope labels and decimal counts rather than guessing at them.
It also follows that this page is not a substitute for lab safety guidance: it gives no handling, storage or disposal advice for any substance, including the acids and bases on its pick-list. Used inside its stated scope, though, every number it prints can be reproduced from the formula table in this guide — the homework check, the bench conversion, the sanity check on someone else's figure.
Sources & References
- BIPM — The SI Defining Constants (the Avogadro constant as an exact defining constant of the mole)
- NIST — Avogadro Constant (the CODATA value, exactly 6.02214076 x 10^23 per mole)
- IUPAC CIAAW — Atomic Weights of the Elements (the standard atomic weights summed by this calculator)
- IUPAC — Periodic Table of Elements (element symbols and the periodic table behind the formula parser)
- OpenStax Chemistry 2e — 3.1 Formula Mass and the Mole Concept (formula mass, the mole and Avogadro's number)
- LibreTexts Chemistry (OpenStax) — 3.1 Formula Mass and the Mole Concept (the same chapter in the LibreTexts library)
- Khan Academy — The Mole and Avogadro's Number (an accessible introduction to mole conversions)
The Avogadro constant used here is the exact SI defining value; the atomic weights are the IUPAC 2021 standard atomic weights as tabulated by the CIAAW; and every worked figure in this guide was recomputed from the formulas themselves — n = m ÷ M, m = n × M, N = n × Nₐ and n = C × V — so you can reproduce each one exactly in the calculator.