# Finding the molar concentration of reactant used

We were given this problem at my university, and I can't seem to figure out how it was solved. The question says we have $\ce{NaHCO3}$ and 100 ml of $\ce{HCl}$ react and one of their products is $\ce{CO2}$ gas whose volume is 11.2 L, find the molar concentration of $\ce{HCl}$.

I first found the moles of $\ce{CO2}$ by dividing 11.2 L / 22.4 L which gave me 0.5 mol. Then I know concentration is number of moles/volume, so should I assume the moles $\ce{HCl}$ are also 0.5 by ratio and divide 0.5 by 0.1 L?

• Try to solve it yourself first. Don't give up so easily. Edit your post showing your efforts. – Pritt Balagopal May 30 '17 at 17:52

You have found the amount of $\ce{CO2}$, where did it come from? If you guessed sodium bicarbonate, congratulations, you win a cookie! Now you should be knowing the amount of $\ce{NaHCO3}$ that underwent the reaction.
Write the balanced equation for the reaction of $\ce{HCl}$ and $\ce{NaHCO3}$. Assuming that $\ce{NaHCO3}$ is present in excess, how much $\ce{HCl}$ was present in that $\pu{100mL}$ sample. What is the concentration now?