A new theoretical method was developed to compute the Henry’s law constant for gas absorption in a solvent through strong nonphysical interactions.