Dodecylamine, quinoline, allylthiourea, and thiourea, whose dipole moments were calculated by quantum chemistry and in gradient rise, were used to study the influence of magnetic field on inhibition effect through weight loss experiments, electrochemical measurements, and surface characterizations. Results confirmed that the inhibition efficiency can be improved to varying extents with the application of the magnetic field. In addition, maximum impedance increased three times more than that in controlled trial when the magnetic field increased to 12 mT. Furthermore, the inhibition efficiency of inhibitors with larger dipole moment will be affected more obviously, which was also positively related to the magnetic field strength. The mechanism of variation in polarizability of molecules was proposed to explain the effect of the magnetic field.