determining molar mass by ideal gas Let's go over those steps for using the ideal gas law to calculate the molar mass of the gas: 1) you have to know the grams of gas involved find the volume occupied by 105 mol of this gas, assuming it is ideal (b.