Grams to Moles Calculator
Five grams of table salt is 0.0856 moles, since salt has a molar mass of 58.44 grams per mole. That is 85.56 millimoles, or 5.15 x 10^22 formula units. Divide grams by molar mass to go one way, and multiply the two to come back.
Filled in when you pick a substance. For anything else, type the molar mass and the same division still works.
| Moles | |
| Millimoles | |
| Grams | |
| Molar mass used | |
| Formula units or molecules | |
| Substance | |
The particle count uses the Avogadro constant of 6.02214076 x 10^23 per mole. Everything runs in your browser, and nothing you type is uploaded or stored.
Pick a kitchen chemical or a molar mass, enter grams, and get moles, millimoles and the particle count. The same page runs backwards from moles to grams.
Key takeaways
- Moles = grams / molar mass, so 5 grams of salt is 5 / 58.44 = 0.0856 mol
- One mole is 6.02214076 x 10^23 particles, the Avogadro constant fixed by the 2019 SI redefinition
- A mole of sugar weighs 342.30 grams while a mole of salt weighs 58.44, so equal weights hold different particle counts
- 30 grams of salt in 1 kilogram of water is 0.513 mol, which is 0.513 mol per kilogram of water
- 500 milligrams of baking soda is 5.95 mmol, or 3.58 x 10^21 formula units
On this page
- A gram counts mass, a mole counts particles
- The formula: grams divided by molar mass
- Molar masses for twelve kitchen chemicals
- Worked example: 30 grams of salt in a brine
- Millimoles and particle counts for small doses
- Same weight, different particle count
- Where moles help in a kitchen and where they mislead
A gram counts mass, a mole counts particles
A kitchen scale answers one question: how much stuff is there, by weight. A mole answers a different one: how many particles are in it. That is why 5 grams of salt and 5 grams of sugar weigh the same but behave nothing alike, and why chemists stop using grams the moment a reaction has to balance.
One mole is exactly 6.02214076 x 10^23 particles. That number, the Avogadro constant, stopped being a measured quirk in 2019 and became a fixed definition of the mole, as NIST describes in its mole redefinition page. It is a count, the way a dozen is a count, only large enough that the particles in a spoonful come out in whole numbers.
Grams and moles meet through molar mass, which is the weight of one mole of a substance. Water is 18.02 grams per mole, salt is 58.44, sugar is 342.30. Those three numbers are the whole bridge between the scale and the particle count, and every conversion on this page is built from them.
The formula: grams divided by molar mass
One division takes you from mass to moles:
- Moles = grams / molar mass
- Grams = moles x molar mass
The units do the explaining. Molar mass is grams per mole, so grams divided by grams per mole leaves moles, and moles multiplied by grams per mole leaves grams. Two worked runs with kitchen numbers:
- 5 / 58.44 = 0.0856 mol of table salt in a 5 gram pinch
- 0.25 x 192.12 = 48.03 grams of citric acid in a quarter mole
A water bottle makes the scale concrete. Five hundred milliliters of water weighs about 500 grams, and 500 / 18.02 = 27.75 moles, which is 1.67 x 10^25 molecules in a bottle you can hold in one hand.
Two words get mixed up here. Molar mass is a mass per mole, reported in grams per mole. Molecular mass is the mass of one molecule, reported in daltons or atomic mass units. The number is the same, the unit is not, and salt has no molecules at all: it is a lattice of ions, so the correct term is formula unit. The mole count is still right, which is what matters for a recipe or a brine.
Molar masses for twelve kitchen chemicals
These values are built from the standard atomic weights published by the Commission on Isotopic Abundances and Atomic Weights, using hydrogen 1.008, carbon 12.011, nitrogen 14.007, oxygen 15.999, sodium 22.990, chlorine 35.45, potassium 39.098, calcium 40.078, sulfur 32.06 and magnesium 24.305. Salt, for example, is 22.990 + 35.45 = 58.44 grams per mole.
| Substance | Formula | Molar mass (g/mol) |
|---|---|---|
| Water | H2O | 18.02 |
| Table salt | NaCl | 58.44 |
| Baking soda | NaHCO3 | 84.01 |
| Sugar (sucrose) | C12H22O11 | 342.30 |
| Citric acid | C6H8O7 | 192.12 |
| MSG | C5H8NO4Na | 169.11 |
| Epsom salt | MgSO4.7H2O | 246.47 |
| Calcium chloride | CaCl2 | 110.98 |
| Potassium chloride | KCl | 74.55 |
| Acetic acid | C2H4O2 | 60.05 |
| Ethanol | C2H6O | 46.07 |
| Carbon dioxide | CO2 | 44.01 |
Hydrated salts carry water in the crystal. Epsom salt is MgSO4 with seven water molecules attached, so its molar mass includes 7 x 18.02 = 126.14 grams of water on top of the 120.33 grams of magnesium sulfate.
Worked example: 30 grams of salt in a brine
Brine recipes are written in weight percentages, which makes them a natural place to count moles. Thirty grams of salt in a kilogram of water is 30 + 1000 = 1030 grams of solution, a 2.91 percent brine by weight. In moles, 30 / 58.44 = 0.5133 mol of salt, dissolved in 1 kilogram of water, so the molality is 0.513 mol per kilogram.
If you measure the water by volume instead, 1 liter of water weighs 1 kilogram only near 4 degrees Celsius, and it weighs about 0.997 kilogram at room temperature. Close enough for pickling, not close enough for a lab. The volume of the finished brine also grows once the salt dissolves, so a 1 liter batch holds slightly less than a liter of water.
A 2 percent brine, the common starting point for pickles and poultry, is 20 grams of salt per kilogram of water, which is 20 / 58.44 = 0.3422 mol per kilogram. Nothing in the cooking changes with that number. What changes is that you can now compare two brines, or two acids, on the same footing instead of guessing from the scoop size.
Millimoles and particle counts for small doses
Half a teaspoon of baking soda is roughly 3 grams, and a rounded pinch is closer to 0.5 gram. Those small weights turn into small mole counts, so the working unit is the millimole, one thousandth of a mole.
- 3 / 84.01 = 0.0357 mol, so 35.71 millimoles of baking soda in 3 grams
- 0.5 / 84.01 = 0.005952 mol, so 5.95 millimoles in 500 milligrams
To count particles, multiply the moles by 6.02214076 x 10^23. Half a gram of baking soda gives 0.005952 x 6.02214076 x 10^23, which is 3.58 x 10^21 formula units. Written out that is 3,580,000,000,000,000,000,000 units, a number no kitchen needs but a chemistry problem usually does.
| Amount | Substance | Moles | Millimoles |
|---|---|---|---|
| 3 g | Baking soda | 0.0357 | 35.71 |
| 0.5 g | Baking soda | 0.005952 | 5.95 |
| 5 g | Table salt | 0.0856 | 85.56 |
| 30 g | Table salt | 0.5133 | 513.35 |
The same shift happens on supplement and medicine labels, which report milligrams of a mineral rather than the compound. 500 milligrams of calcium chloride is 0.5 / 110.98 = 0.00451 mol, but only 0.00451 mol of calcium, because each formula unit carries one calcium ion. Read the formula before you trust the mole count.
Same weight, different particle count
One hundred grams is one hundred grams on any scale, but the mole count behind it depends entirely on molar mass. The table below does the same division for five substances.
| Substance | Molar mass | Moles in 100 g | Particles in 100 g |
|---|---|---|---|
| Table salt | 58.44 | 1.711 | 1.03 x 10^24 |
| Baking soda | 84.01 | 1.190 | 7.17 x 10^23 |
| Citric acid | 192.12 | 0.521 | 3.13 x 10^23 |
| Sugar | 342.30 | 0.292 | 1.76 x 10^23 |
| Water | 18.02 | 5.549 | 3.34 x 10^24 |
Salt delivers 5.86 times as many formula units as sugar at the same weight, because one salt unit weighs 58.44 and one sugar molecule weighs 342.30. This is the number that matters when you compare how much of an acid or a salt is in two recipes: grams hide the difference, moles show it.
Where moles help in a kitchen and where they mislead
Moles help when two chemicals have to meet in a fixed ratio. Baking soda and citric acid react one to one on the bicarbonate side, but citric acid brings three acidic protons, so one mole of citric acid neutralizes three moles of bicarbonate. Three grams of baking soda is 0.0357 mol, which needs 0.0119 mol of citric acid, or 0.0119 x 192.12 = 2.29 grams. That is the arithmetic behind a fizzy bath bomb or a sour candy, and it is the reason a recipe scaled by volume alone can taste flat or soapy.
Moles mislead when the ingredient is a mixture. Flour, milk and honey have no single molar mass, so a mole of flour is a meaningless phrase. Water is the exception that proves it: 18.02 is exact enough for water, but a cup of it still has to be weighed to know how many moles you poured.
Two related tools cover the neighbouring jobs. If you have a chemical formula and want its molar mass, the molar mass calculator reads the formula for you. If you are making a solution and want molarity, the molarity calculator takes mass, molar mass and volume together. This page is narrower on purpose: a substance you can pick from a list, a weight in grams, and the mole count that comes out.
Frequently asked questions
How many moles are in 5 grams of salt?
5 / 58.44 = 0.0856 moles of sodium chloride, since salt has a molar mass of 58.44 grams per mole. That is 85.56 millimoles and 5.15 x 10^22 formula units.
What is the formula to convert grams to moles?
Moles = grams / molar mass. The molar mass must be in grams per mole, which is the number a periodic table gives you when you add up the atomic weights in the formula.
How many grams is one mole of water?
18.02 grams. Water is H2O, so 2 x 1.008 for hydrogen plus 15.999 for oxygen gives 18.015, which rounds to 18.02 grams per mole.
How many moles are in 100 grams of sugar?
100 / 342.30 = 0.292 moles for sucrose. Table sugar is a disaccharide, so a mole of it weighs far more than a mole of glucose at 180.16 grams.
How do I convert moles back to grams?
Multiply by the molar mass. A quarter mole of citric acid is 0.25 x 192.12 = 48.03 grams, and 0.5 mole of baking soda is 0.5 x 84.01 = 42.01 grams.
How many millimoles are in 500 mg of baking soda?
0.5 grams divided by 84.01 gives 0.00595 moles, which is 5.95 millimoles. Multiplying by 6.02214076 x 10^23 gives 3.58 x 10^21 formula units.
Why is a mole 6.022 x 10^23?
It is the Avogadro constant, fixed at exactly 6.02214076 x 10^23 per mole when the SI was redefined in 2019. It was chosen so that one mole of carbon-12 weighs close to 12 grams.
Is molar mass the same as molecular weight?
The number is the same, the unit is different. Molar mass is grams per mole, molecular mass is in daltons. For salt the correct term is formula mass, because salt is an ionic lattice with no discrete molecules.
How many moles of salt are in a 2 percent brine?
A 2 percent brine by weight is 20 grams of salt per kilogram of water, which is 20 / 58.44 = 0.3422 moles, so 0.342 mol per kilogram of water.
Can I use this for any chemical?
The picker covers twelve common kitchen and household chemicals. For anything else, look up the molar mass and type it in the custom field, then the same division applies.
Does a mole of salt weigh the same as a mole of sugar?
No. Salt is 58.44 grams per mole and sucrose is 342.30, so a mole of sugar is almost six times heavier for the same 6.02214076 x 10^23 particles.
Why does 100 grams of water hold more particles than 100 grams of salt?
Water molecules are light, at 18.02 grams per mole, so 100 grams holds 5.549 moles against 1.711 moles for salt. Lighter particles mean more of them in the same mass.
How many moles of citric acid does 3 grams of baking soda need?
3 / 84.01 = 0.0357 moles of bicarbonate, and each citric acid molecule carries three acidic protons, so 0.0357 / 3 = 0.0119 moles, which is 2.29 grams of citric acid.
Is this the same as the molar mass calculator?
That page builds the molar mass from a formula you type. This page starts from a substance and a weight, and answers in moles, millimoles and particles, which is the step most recipes and brines skip.
Spotted a wrong number or a broken result?
More Kitchen tools
- Air Fryer Conversion Calculator
- Air Fryer Time and Temperature Calculator
- Air Fryer to Oven Converter
- Alcohol Dilution Calculator
- BBQ Grill Size Calculator
- BBQ Party Calculator
- Baby Milk Intake Calculator
- Baking Powder Substitute Calculator
- Bread Hydration Calculator
- Bread Machine Recipe Ratio Calculator
- Bread Spread Calculator: Butter and Cream Cheese
- Brine Calculator
- Brown Sugar Cups to Grams
- Brown Sugar Substitute Calculator
- Butter Calculator
- Butter Stick to Grams Converter
Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.