According to Avogadro's law, all gases with an identical volume and the same temperature and pressure have an equal number of molecules. If the temperature and pressure are constant, the volume and amount (in moles) of an ideal gas for a given mass are directly proportional.