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

The molar ratio is calculated by converting mass to moles using the formula:

  • 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 two stages.

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: Round and simplify. Any ratio value that lands within 0.01 of a whole number is rounded to that whole number. If, after rounding, every value in the set is a whole number, the calculator divides all of them by their greatest common divisor (GCD) to shrink the ratio to its simplest form. If even one value is not close to a whole number, no rounding or GCD step happens, and that value is shown to two decimal places instead.

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 non-whole-number result

Not every calculation ends in whole numbers. With 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:

  • Moles: A = 10, B = 3, C = 2
  • Smallest value is 2 mol (C), so the ratios are A = 10 ÷ 2 = 5, B = 3 ÷ 2 = 1.5, C = 2 ÷ 2 = 1
  • Because 1.5 is not within 0.01 of a whole number, none of the values get rounded or reduced further

The final ratio is 5 A : 1.50 B : 1 C, with the non-integer value shown to two decimal places.

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 filled with the 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. Round values within 0.01 of a whole number, and if all values become whole numbers, divide them by their greatest common divisor.

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 like 1.50 instead of a whole number? When a set of mole values doesn't reduce to whole numbers within a tolerance of 0.01, the calculator leaves the result as a decimal, rounded to two places, rather than forcing an inaccurate whole-number ratio.

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.