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 exactly 6.022 140 76 × 10²³ particles, a number fixed by the Avogadro 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: Clear fractions and simplify. If the values are not all whole numbers, the calculator multiplies every value by the same small whole number, trying 1, 2, 3 and so on up to 12. It stops at the first multiplier that makes every value a whole number, within a tolerance. The tolerance is 0.01 times the multiplier, capped at 0.1. This is the standard empirical-formula method: a ratio of 1 : 1.5 becomes 2 : 3. The whole numbers are then divided by their greatest common divisor (GCD) to give the simplest form.

If no multiplier up to 12 works, the calculator rounds any value within 0.01 of a whole number and shows the rest 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 fractional result

Not every calculation ends in whole numbers at step 2. A sample of iron oxide contains 69.94 g of iron (Fe, 55.845 g/mol) and 30.06 g of oxygen (O, 15.999 g/mol).

  • Moles: Fe = 69.94 ÷ 55.845 = 1.2524 mol, O = 30.06 ÷ 15.999 = 1.8789 mol
  • Smallest value is 1.2524 mol (Fe), so the ratios are Fe = 1 and O = 1.8789 ÷ 1.2524 = 1.50
  • 1.50 is not a whole number, so the calculator tries a multiplier of 2: Fe = 2, O = 3.00

The final ratio is 2 Fe : 3 O, the ratio in Fe₂O₃.

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

The law of definite proportions states that a given compound always contains the same elements in the same proportion by mass. John Dalton's atomic theory explained this by proposing that elements combine in small whole-number ratios of atoms, the same idea a molar ratio calculator applies today.

Amedeo Avogadro proposed that equal volumes of gases contain equal numbers of molecules at the same temperature and pressure, laying the groundwork for counting by moles. The mole was introduced to the SI in 1971. Today it is defined by a fixed value of the Avogadro constant.

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 any value is a fraction such as 1.5, multiply all values by the smallest whole number that makes them whole, then divide 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 instead of a whole number? A decimal appears only when no multiplier from 1 to 12 turns every value into a whole number within the tolerance. The calculator then shows those values rounded to two decimal places rather than forcing a whole-number ratio. A ratio of 1 : 1.06, for example, stays as 1 : 1.06.

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. Bureau International des Poids et Mesures. SI base unit: mole. BIPM: the mole — one mole contains exactly 6.022 140 76 × 10²³ elementary entities.
  2. OpenStax. Chemistry 2e, section 3.2 Determining Empirical and Molecular Formulas. OpenStax Chemistry 2e: empirical formulas — divide each molar amount by the smallest, then multiply by an integer to reach the smallest whole-number ratio (Fe₁O₁.₅ × 2 = Fe₂O₃).
  3. National Institute of Standards and Technology. Redefining the Mole. NIST: redefining the mole — Avogadro's equal-volumes hypothesis; the mole entered the SI in 1971.