Suppose the problem gives 28.0 g N₂ and 3.00 g H₂. First convert both reactants to moles: 28.0 g N₂ ÷ 28.014 g/mol ≈ 0.9995 mol N₂, and 3.00 g H₂ ÷ 2.016 g/mol ≈ 1.488 mol H₂.
Now divide by the coefficients in the balanced equation. N₂ has coefficient 1, so 0.9995 ÷ 1 = 0.9995. H₂ has coefficient 3, so 1.488 ÷ 3 = 0.496. The smaller value is 0.496, so H₂ is the limiting reactant and N₂ is the excess reactant.
The available reaction extent is 0.496. Because the coefficient of NH₃ is 2, product moles are 0.496 × 2 = 0.992 mol NH₃. Multiplying by the molar mass of NH₃ gives about 16.9 g NH₃ as the theoretical yield. N₂ consumed is 0.496 × 1 = 0.496 mol, leaving about 0.503 mol N₂, or about 14.1 g N₂.