Skip to content

Molar Ratio Calculator: Convert Mass to Moles

A molar ratio calculator that turns the mass of two or more substances into moles, then reduces the moles to a simplified whole-number ratio, step by step.

Chemical Molar Ratio Calculator

Chemical Substances

Moles: 2.0000 mol
Moles: 1.0000 mol

Result

Molar Ratio
2 H2O : 1 NaCl

Calculation Explanation

Mass is converted to moles by dividing it by the molar mass (moles = mass ÷ molar mass):

  • H2O: 36g ÷ 18g/mol = 2.0000mol
  • NaCl: 58.5g ÷ 58.5g/mol = 1.0000mol

Visual Representation

H2O
1.00
NaCl
0.50
Loading calculator...
📚

Documentation

What is a molar ratio calculator?

A molar ratio calculator converts the mass of two or more chemical substances into moles, then reduces those mole values to a simplified ratio. It is used in stoichiometry, the branch of chemistry that deals with the amounts of substances involved in a reaction.

A mole is a unit for counting particles, similar to how "dozen" means 12 of something. One mole of any substance contains about 6.022 × 10²³ particles, a number called Avogadro's constant. Chemists work in moles instead of grams because chemical reactions happen between fixed numbers of particles, not fixed weights.

Molar ratio formula

The calculator works in three steps.

Step 1: Convert mass to moles. For each substance:

moles=mass (g)molar mass (g/mol)\text{moles} = \frac{\text{mass (g)}}{\text{molar mass (g/mol)}}

Molar mass, also called molecular weight, is the mass of one mole of a substance. It is found by adding up the atomic weights of every atom in the chemical formula.

Step 2: Divide by the smallest mole value. Once every substance has been converted to moles, the calculator finds the smallest of those values and divides every substance's moles by it:

ratio for a substance=its molessmallest mole value\text{ratio for a substance} = \frac{\text{its moles}}{\text{smallest mole value}}

This gives each substance a number relative to the others, with the smallest substance always equal to 1.

Step 3: Clear any fractions. Dividing by the smallest value often leaves a fraction, such as 1.5 or 1.33. The calculator then multiplies every value by the same whole number, trying 1, 2, 3 and so on up to 12, and keeps the first multiplier that turns the whole set into whole numbers. Small rounding gaps are allowed: after multiplying, each value must sit within 0.01 times the multiplier of a whole number, and never more than 0.1 away. This is the standard way chemists turn 1 : 1.5 into 2 : 3.

Because the smallest multiplier that works is the one used, the answer is already in its simplest form. No further reduction is needed.

If no multiplier up to 12 clears the fractions, the calculator leaves the values as they are. Any value within 0.01 of a whole number is rounded to it, and the rest are shown to two decimal places.

How to calculate a molar ratio: worked example

Suppose a chemist mixes 36 g of water (H₂O, molar mass 18 g/mol) with 58.5 g of table salt (NaCl, molar mass 58.5 g/mol).

  1. Moles of H₂O = 36 ÷ 18 = 2 mol
  2. Moles of NaCl = 58.5 ÷ 58.5 = 1 mol
  3. Smallest value is 1 mol (NaCl), so H₂O's ratio is 2 ÷ 1 = 2, and NaCl's is 1 ÷ 1 = 1
  4. Both values are already whole numbers, so the final molar ratio is 2 H₂O : 1 NaCl

Example with a fraction

Dividing by the smallest value does not always give whole numbers. Take 100 g of substance A, 30 g of substance B, and 20 g of substance C, all with a molar mass of 10 g/mol:

  1. Moles: A = 100 ÷ 10 = 10, B = 30 ÷ 10 = 3, C = 20 ÷ 10 = 2
  2. Smallest value is 2 mol (C), so the ratios are A = 10 ÷ 2 = 5, B = 3 ÷ 2 = 1.5, C = 2 ÷ 2 = 1
  3. 1.5 is not a whole number, so every value is multiplied by 2: A = 10, B = 3, C = 2
  4. The final molar ratio is 10 A : 3 B : 2 C

Example that stays a decimal

Some mixtures have no simple whole-number ratio. With 10 g of A and 16.5 g of B, both with a molar mass of 10 g/mol, the moles are 1 and 1.65. The fraction 1.65 is 33/20, and 20 is larger than any multiplier the calculator tries, so nothing clears it. The result is shown as 1 A : 1.65 B.

How to use the calculator

  1. Enter a name or formula for each substance, its mass in grams, and its molar mass in g/mol.
  2. The calculator starts with two substance rows holding the water-and-salt example above. Use "Add Substance" for more rows, or "Remove" to delete a row (at least two rows must remain).
  3. The result appears automatically once every row has a name, a mass greater than zero, and a molar mass greater than zero. There is no separate button to press.
  4. The result section shows the simplified ratio, the mole value calculated for each substance, and a bar chart comparing the mole amounts.
  5. Use "Copy" to copy the ratio text, for example "2 H2O : 1 NaCl", to the clipboard.

Mass and molar mass must both be positive numbers; a zero or blank field leaves the result hidden until it is fixed.

Why molar ratios matter

Molar ratios come from balanced chemical equations and describe how many particles of each substance take part in a reaction. Because reactions happen particle by particle, not gram by gram, a ratio expressed in moles reflects the real chemistry, while a ratio expressed in grams does not.

Students use molar ratio calculations to check stoichiometry homework and to prepare reagents for lab experiments in the correct proportions. Chemists in research and manufacturing use the same calculation to plan how much of each starting material a synthesis needs, to avoid wasting reactants, and to confirm the ratio of ingredients in a finished formulation, such as a drug salt or a fertilizer blend.

Background

Jeremias Benjamin Richter coined the word "stoichiometry" in 1792 while studying the fixed proportions in which substances react. In 1799, Joseph Proust showed that a given chemical compound always contains the same elements in the same proportion by mass, a rule now called the law of definite proportions. John Dalton's atomic theory, published from 1803, explained this by proposing that elements combine in small whole-number ratios of atoms, the same idea a molar ratio calculator applies today.

The mole itself came later. Amedeo Avogadro proposed in 1811 that equal volumes of gas at the same temperature and pressure contain equal numbers of particles, laying the groundwork for counting by moles. The word "mole" was coined by Wilhelm Ostwald around 1900, and the mole became an official SI base unit in 1971.

Frequently asked questions

What is a molar ratio? A molar ratio is the relationship between the number of moles of two or more substances in a chemical reaction or mixture. It shows how many particles of one substance correspond to how many particles of another.

How do you calculate a molar ratio from mass? Divide each substance's mass by its molar mass to get moles. Divide every mole value by the smallest one. If that leaves a fraction, multiply every value by the smallest whole number that turns them all into whole numbers.

What is the difference between a molar ratio and a mass ratio? A molar ratio compares substances by particle count (moles). A mass ratio compares them by weight (grams). Reactions occur between fixed numbers of particles, so the molar ratio, not the mass ratio, matches the balanced chemical equation.

Why convert mass to moles instead of just using grams? Chemical reactions combine fixed numbers of atoms or molecules, not fixed weights. Converting mass to moles turns a value you can measure on a scale into a value that reflects how many particles are actually present.

Why does the calculator sometimes show a decimal instead of a whole number? The calculator tries multipliers from 1 to 12 to clear a fraction. A ratio such as 1 : 1.65 needs a multiplier of 20, which is outside that range, so the value is shown as a decimal rather than forced into an inaccurate whole-number ratio. Measurement error in the masses can also push a real ratio too far from a simple fraction to be recognised.

How is molar mass found for a compound? Molar mass is the sum of the atomic weights of every atom in the formula, taken from a periodic table. For a hydrate such as CuSO₄·5H₂O, the water molecules are included in the total.

References

  1. Brown, T. L., LeMay, H. E., Bursten, B. E., Murphy, C. J., Woodward, P. M., & Stoltzfus, M. W. (2017). Chemistry: The Central Science (14th ed.). Pearson.
  2. Chang, R., & Goldsby, K. A. (2015). Chemistry (12th ed.). McGraw-Hill Education.
  3. IUPAC. (2019). Compendium of Chemical Terminology (the "Gold Book"). https://goldbook.iupac.org/
  4. International Bureau of Weights and Measures. The International System of Units (SI), definition of the mole.