This question already has an answer here:
I'm using a method of electrolysis where the anode and cathode are in close proximity (~0.7mm) and therefore the separate collection of H2 from the cathode is very difficult. Since O2 is paramagnetic and H2 is diamagnetic I was thinking I could use permanent magnets to separate the gases in a specially constructed bubbler.
Is it possible to calculate the required magnetic field strength necessary to perform this separation? If so, can you provide a formula or point me in the right direction where I can read about how to calculate this?