molecalculator

Moles & Molar Mass

H2O, H2, and O2 Equation Balancer

Calculator No. 01-4289 · Updated · Formula and assumptions shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

For the reaction that forms water from hydrogen and oxygen, the balanced equation is 2 H2 + O2 → 2 H2O. Enter the amounts of H2 and O2 to calculate the theoretical amount of water, the limiting reactant, and any excess reactant; amounts are treated as moles.

Formula

The balanced chemical equation is 2 H2 + O2 → 2 H2O. It says that two moles of hydrogen react with one mole of oxygen to produce two moles of water, assuming the reaction goes to completion.

  • n(H2) is the entered hydrogen amount, in mol.
  • n(O2) is the entered oxygen amount, in mol.
  • Theoretical water, in mol, is min[n(H2), 2 × n(O2)].
  • The excess amount is the absolute difference between the hydrogen amount and twice the oxygen amount, expressed in the unit of whichever reactant remains.

The coefficients come from conserving atoms. Each H2 molecule has two hydrogen atoms, and each O2 molecule has two oxygen atoms. Water contains two hydrogen atoms and one oxygen atom. Two water molecules therefore contain four hydrogen atoms and two oxygen atoms, matching two H2 molecules and one O2 molecule.

Worked Example

Using the calculator defaults, the inputs are 2 mol H2 and 1 mol O2.

  1. Compare the amounts that can react: hydrogen allows 2 mol H2O, while oxygen allows 2 × 1 = 2 mol H2O.
  2. Theoretical water is min(2, 2 × 1) = 2.0000 mol H2O.
  3. The inputs are in the exact 2:1 stoichiometric ratio, so neither reactant is left over: |2 − 2 × 1| = 0.0000 mol excess.

Assumptions

  • The reaction follows the balanced equation shown, with no competing reactions.
  • Both entered amounts are nonnegative mole quantities, and the reaction proceeds to completion.
  • The result is a theoretical yield; it does not account for losses, incomplete reaction, or collection efficiency.

Why the Equation Needs Coefficients

The unbalanced expression H2 + O2 → H2O is a useful description of the substances involved, but it is not yet a valid chemical equation. It has two oxygen atoms on the left and one on the right. Putting a 2 before H2O fixes the oxygen count but gives four hydrogen atoms on the right, so a 2 is also needed before H2. The final atom counts are four H and two O on each side.

Balancing changes the coefficients in front of formulas, not the small numbers within a formula. H2 means each hydrogen molecule contains two hydrogen atoms; changing it to H would describe a different chemical species. The coefficient 2 H2 means two molecules or two moles of hydrogen, depending on the scale being discussed.

How to Balance It by Inspection

For this simple reaction, inspection is enough. Count the oxygen atoms first, since oxygen appears as O2 on one side and as one O per H2O on the other. Set the water coefficient to 2 to make two oxygen atoms on both sides, then set the hydrogen coefficient to 2 to match the four hydrogen atoms in the two water molecules.

Check both elements after balancing. The left side has 2 × 2 = 4 hydrogen atoms and 1 × 2 = 2 oxygen atoms. The right side has 2 × 2 = 4 hydrogen atoms and 2 × 1 = 2 oxygen atoms. Because both counts match, the equation is balanced and its coefficients have the smallest whole-number ratio, 2:1:2.

Using the Calculator and Reading the Result

The calculator uses the reactant amounts to identify which one runs out first. For each mole of O2, the equation requires two moles of H2. Compare the available hydrogen amount with twice the oxygen amount:

  • If hydrogen is less than twice the oxygen amount, H2 is limiting and some O2 remains.
  • If hydrogen is greater than twice the oxygen amount, O2 is limiting and some H2 remains.
  • If the amounts are equal in this comparison, the reactants are in the stoichiometric ratio and neither is in excess.

For instance, 3 mol H2 with 2 mol O2 can form 3 mol water: the hydrogen is limiting, and 0.5 mol O2 remains. The calculator’s excess output is the amount remaining in the reactant that is present beyond the reaction ratio. The limiting-reactant output gives the amount of that limiting substance consumed; the equation’s coefficients determine the corresponding amount of product.

Results are theoretical, not a guarantee of what a real experiment recovers. If a problem gives grams rather than moles, convert each mass to moles by dividing by its molar mass before using the stoichiometric ratio. For H2, the molar mass is about 2.016 g/mol; for O2, about 31.998 g/mol. Keep units consistent and avoid rounding intermediate mole values too early.

Common Misconceptions and Scope

A frequent mistake is to read the equation as a 1:1 ratio because one molecule of each reactant is written in a shorthand expression. The balanced coefficients show the actual mole ratio: two H2 for every one O2. Another mistake is to assume balanced coefficients predict the reaction speed or guarantee complete conversion. They express atom conservation and stoichiometric proportions, not reaction rate or experimental yield.

The equation represents water as H2O, without specifying whether it is liquid or vapor. A state symbol such as (l) or (g) can be added when the physical state matters; it does not change the atom balance. This page is for stoichiometry arithmetic and does not provide instructions for carrying out a reaction. For any bench work, follow your lab method, the safety data sheet (SDS), and your supervisor.

Frequently Asked Questions

What is the balanced equation for H2 and O2 making water?
2 H2 + O2 → 2 H2O.

Why is the coefficient before oxygen 1?
One O2 molecule supplies two oxygen atoms, exactly enough for the two H2O molecules produced by the balanced ratio.

What is the mole ratio of H2 to O2?
It is 2:1. Two moles of hydrogen react with one mole of oxygen when both are fully consumed.

Which reactant is limiting?
Compare the available H2 amount with twice the available O2 amount. The smaller supply relative to the equation’s requirements is the limiting reactant.

Can I balance the equation by changing H2O to H2O2?
No. That changes water into hydrogen peroxide, a different compound. Balance equations by adjusting coefficients, not subscripts in chemical formulas.

Related

Formula used
in h2 | Hydrogen amount | mol | 2 | 0
in o2 | Oxygen amount | mol | 1 | 0
out h2o | Theoretical water formed | mol | min(h2,o2*2)
out lim | Limiting reactant amount consumed | mol | min(h2,o2*2) | 4
out ex | Excess reactant remaining | mol | abs(h2-o2*2) | 4

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →