Molar Ratio Calculator

What is the molar ratio between two substances in your reaction?

Enter the amounts of two substances — as moles or grams — and the calculator returns the molar ratio between them. Use this to check stoichiometry, determine limiting reagents, or scale reactions up or down.

Updated June 2026 · How this works

Example calculation — edit any field to use your own numbers

Worth knowing
How It Works
The formula, explained simply

Imagine you are assembling bicycles. Each bike needs 1 frame and 2 wheels. If you have 10 frames and 18 wheels, you can only build 9 bikes — the wheels run out first. The molar ratio works exactly the same way: it tells you how many units of one substance are available for each unit of another, and whether that matches what the reaction actually demands.

In chemistry, every balanced equation is a recipe with fixed proportions. The coefficients — the numbers in front of each formula — define those proportions in moles. A molar ratio of 2:1 for hydrogen to oxygen in water formation means two moles of hydrogen atoms bond with one mole of oxygen molecules, every time, without exception. No matter how large or small the batch, the ratio holds.

This calculator converts any input — whether entered as moles directly or as grams with a known molar mass — into a common mole-based ratio. It then optionally compares that ratio against the theoretical stoichiometric coefficients to tell you which reactant is in short supply. That single comparison is the foundation of yield prediction, cost optimisation, and reaction safety in every discipline from pharmaceuticals to environmental engineering.

When To Use This
Right tool, right situation

Use this calculator when you have measured or planned amounts of two substances and need to confirm they match the reaction stoichiometry, or when you want to know which one will run out first. It is appropriate for any two-substance comparison in a single reaction step — checking whether reagents are in proportion before a synthesis, scaling a reaction from a small trial to a larger batch, or verifying that a neutralisation reaction has sufficient base to absorb all the acid.

This tool is also useful for quality control checks in manufacturing contexts, where weighed batches must stay within a defined molar ratio tolerance to ensure consistent product quality.

It is not the right tool when you are working with more than two substances simultaneously, or when you need to track mass balance across multiple sequential reaction steps. In those cases, a full stoichiometry table that accounts for all species — including products and intermediates — is needed. Similarly, if your substance is not pure, the mole quantity will be off unless you correct for purity first. The calculator assumes 100% purity.

Common Mistakes
Why results sometimes look wrong

The most common mistake is skipping the molar mass conversion when working from grams. A student who enters 32 g of both methane (molar mass 16 g/mol) and oxygen (molar mass 32 g/mol) and assumes a 1:1 molar ratio is wrong — the actual molar ratio is 2:1 because methane has half the molar mass. Always convert grams to moles before comparing.

A second frequent error is confusing the molar ratio with the stoichiometric ratio from the balanced equation. The molar ratio describes what you have in the flask. The stoichiometric ratio describes what the reaction needs. These numbers are only equal when reactants are mixed in perfect proportion. Comparing them is how you find excess and limiting reagents — not by looking at them individually.

A subtler mistake is using an unbalanced equation to extract coefficients. If your equation is not balanced, the coefficients are wrong, and the limiting reagent calculation will point to the wrong substance. Before entering coefficients, verify atom counts on both sides of the equation. This tool cannot detect an unbalanced equation — that check is on you.

The Math
Worked examples and deeper derivation

The core calculation is division: molar ratio = molesA / molesB. When inputs are in grams, the tool first converts using moles = mass (g) / molar mass (g/mol), then takes the ratio of the two mole values.

To express the ratio as whole numbers, the tool multiplies both values by a scale factor and finds the greatest common divisor (GCD). For example, 0.5 mol and 0.25 mol become 2:1 after multiplying by 4 and dividing by the GCD of 2. When the simplified numbers exceed 20, the tool falls back to a decimal ratio against 1, which is easier to read for non-integer cases.

Limiting reagent identification adds one step: divide each mole quantity by its stoichiometric coefficient. The result is the number of reaction equivalents each substance can support. The smaller number points to the limiting reagent — the one that will be consumed first and stop the reaction.

Combustion of methane — checking stoichiometry
Substance A: 4 mol CH4 (methane), Substance B: 8 mol O2 (oxygen), coefficients 1:2 from balanced equation CH4 + 2O2 → CO2 + 2H2O
The calculator returns a molar ratio of 1 : 2, and confirms that neither reactant is limiting — the amounts are in exact stoichiometric proportion. This tells a lab technician the reaction will go to completion with no leftover reagent, so no adjustment is needed before running the experiment.
Gram-based pharmaceutical synthesis — scaling from mass measurements
Substance A: 90.075g of water (molar mass 18.015 g/mol = 5 mol), Substance B: 176.12g of sucrose (molar mass 342.3 g/mol, approximately 0.514 mol), no coefficients entered
The tool converts grams to moles automatically and returns a ratio of approximately 9.72 : 1. For a bench chemist who weighed reagents rather than measuring moles directly, this confirms that water is present in nearly ten-fold excess — which in a hydrolysis reaction would drive equilibrium toward products, a useful sanity check before committing to a full synthesis run.
Environmental engineer auditing flue gas neutralisation
Substance A: 0.85 mol SO2 (sulfur dioxide), Substance B: 0.9 mol NaOH (sodium hydroxide), stoichiometric coefficients 1:2
The ratio comes out to 0.85 : 0.9, and the limiting reagent result flags SO2 as limiting (0.85 mol per unit vs 0.45 for NaOH). Even though both amounts look comparable, the 1:2 stoichiometry means NaOH is actually in excess. The engineer can confirm the scrubber has sufficient alkali and no unabsorbed SO2 will escape — a compliance-critical check that is easy to miscalculate by eye.
Expert Unlock
The thing most explanations skip

This calculator assumes ideal stoichiometry — that every molecule reacts exactly as the balanced equation predicts. In real reactions, side products, incomplete conversion, and phase effects mean the apparent molar ratio at the end of a reaction differs from the theoretical input ratio. For reactions with equilibrium constants far from unity, or where one reactant is volatile and partially lost, the limiting reagent prediction can be wrong even with correct input values. Always treat this as the theoretical baseline, not the observed yield.

What does your molar ratio actually tell you about the reaction?

How do I find the molar ratio from a balanced chemical equation?
The molar ratio is read directly from the stoichiometric coefficients in the balanced equation. In 2H2 + O2 → 2H2O, the molar ratio of H2 to O2 is 2:1 — for every 2 moles of hydrogen, you need exactly 1 mole of oxygen. If you are working from measured amounts rather than a theoretical equation, this calculator finds the ratio from actual mole quantities instead.
What is the difference between molar ratio and mass ratio?
Molar ratio compares the number of particles (in mole units), while mass ratio compares the total mass in grams. Two substances can have a 1:1 molar ratio but a very different mass ratio if their molar masses differ — for example, 1 mol of hydrogen (2 g) and 1 mol of oxygen (32 g) have a 1:1 molar ratio but a 1:16 mass ratio. Stoichiometry always uses molar ratios, not mass ratios, because chemical reactions proceed by particle count.
How does the molar ratio identify the limiting reagent?
You identify the limiting reagent by comparing how many moles of each substance are available relative to how many the balanced equation demands. Divide the moles of each reactant by its stoichiometric coefficient — the reactant with the smaller result runs out first and is the limiting reagent. This calculator does that division automatically when you enter the coefficients from your balanced equation.

Need something this doesn't cover?

Suggest a tool — we'll build it →