There are three factors that determine whether a molecule can pass through a cell membrane: concentration, charge and size. The greater the difference in concentration, the more rapid the diffusion. Large and heavier molecules more more slowly so they diffuse more slowly.
B. the concentration of the gas molecules on each side of the membrane.